完善功能
This commit is contained in:
@ -33,7 +33,8 @@
|
||||
class="level-card-bg">
|
||||
<view class="level-header">
|
||||
<view class="level-info">
|
||||
<wd-img width="48rpx" height="48rpx" :src="`${OSS}icon/icon_level${userLevel.id + 1}.png`" mode="aspectFill" />
|
||||
<wd-img width="48rpx" height="48rpx"
|
||||
:src="`${OSS}icon/icon_level${userLevel.id + 1}.png`" mode="aspectFill" />
|
||||
<text :class="`level${userLevel.id}-txt`">LV{{ userLevel.id }}</text>
|
||||
<view class="level-label-wrapper">
|
||||
<text class="level-label">{{ userLevel.level_name }}</text>
|
||||
@ -43,7 +44,8 @@
|
||||
<view class="commission-info">
|
||||
<view class="commission-item">
|
||||
<text class="commission-label" :class="`level${userLevel.id}-txt`">业绩分成</text>
|
||||
<text class="commission-value font-bold" :class="`level${userLevel.id}-txt`">{{ userLevel.percentage }}%</text>
|
||||
<text class="commission-value font-bold" :class="`level${userLevel.id}-txt`">{{
|
||||
userLevel.percentage }}%</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="progress-section">
|
||||
@ -176,7 +178,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 平台公告 -->
|
||||
<view class="announcement-section mx-30rpx mt-30rpx">
|
||||
<view class="announcement-section mx-30rpx mt-30rpx" v-if="setting.status == 1">
|
||||
<view class="section-header">
|
||||
<view class="announcement-header-left">
|
||||
<image class="speaker-icon" :src="`${OSS}images/chayishi/laba.png`" mode="aspectFit" />
|
||||
@ -212,6 +214,7 @@ import { router, getCurrentDate } from '@/utils/tools'
|
||||
import { useUserStore } from '@/store'
|
||||
import { getTeaSpecialistOrderList, getAnnouncements, getUserLevel } from '@/api/tes-specialist'
|
||||
import { TeaSpecialistManageStatusTextValue, TeaSpecialistOrderStatus } from '@/utils/teaSpecialistOrder'
|
||||
import { getConfigItem } from '@/api/user'
|
||||
|
||||
const OSS = inject('OSS')
|
||||
const navbarHeight = inject('navbarHeight')
|
||||
@ -246,6 +249,8 @@ onLoad(() => {
|
||||
getUserLevel().then(res => {
|
||||
userLevel.value = res
|
||||
})
|
||||
|
||||
Index.handleGetSettings()
|
||||
})
|
||||
|
||||
// 当前订单索引(用于指示点)
|
||||
@ -255,7 +260,18 @@ const currentOrderIndex = ref(0)
|
||||
const month = ref<number>(0)
|
||||
const day = ref<number>(0)
|
||||
|
||||
const setting = ref({
|
||||
status: 0
|
||||
})
|
||||
|
||||
const Index = {
|
||||
/**
|
||||
* 获取配置项
|
||||
*/
|
||||
handleGetSettings: async () => {
|
||||
const res = await getConfigItem()
|
||||
setting.value.status = res.status
|
||||
},
|
||||
/**
|
||||
* 获取今日订单
|
||||
*/
|
||||
@ -491,7 +507,7 @@ page {
|
||||
|
||||
.level-label-wrapper {
|
||||
// background-color: #5a5d74;
|
||||
background: linear-gradient( 270deg, #575A72 0%, #868898 100%);
|
||||
background: linear-gradient(270deg, #575A72 0%, #868898 100%);
|
||||
border-radius: 30rpx;
|
||||
padding: 10rpx;
|
||||
display: inline-block;
|
||||
|
||||
@ -398,7 +398,7 @@
|
||||
|
||||
await editTeaSpecialistProfile(params)
|
||||
toast.show('保存成功')
|
||||
router.navigateBack(1, 500)
|
||||
// router.navigateBack(1, 500)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 修改信息按钮- 待审核和审核失败可修改信息 -->
|
||||
<view class="mx-30rpx mb-40rpx mt-40rpx" v-if="auditStatus == 0 || auditStatus == 2">
|
||||
<view class="mx-30rpx mb-40rpx mt-40rpx" v-if="(auditStatus == 0 && certId == 0) || auditStatus == 2">
|
||||
<view class="edit-btn h-88rpx rounded-16rpx bg-[#4C9F44] text-center leading-88rpx"
|
||||
@click="UploadData.handleEdit">
|
||||
<text class="text-32rpx text-[#fff] font-bold">修改信息</text>
|
||||
@ -358,7 +358,7 @@
|
||||
const certImg = documents.value.qualification ? documents.value.qualification.replace(import.meta.env.VITE_UPLOAD_IMAGE_URL, '') : ''
|
||||
const fitnessImg = documents.value.healthCert ? documents.value.healthCert.replace(import.meta.env.VITE_UPLOAD_IMAGE_URL, '') : ''
|
||||
|
||||
if (certId.value > 0) {
|
||||
if (certId.value > 0 && auditStatus.value === 2) {
|
||||
// 编辑资料
|
||||
await editTeaSpecialistQualification({
|
||||
id: certId.value,
|
||||
|
||||
@ -269,11 +269,11 @@
|
||||
</view>
|
||||
|
||||
<view class="info-item" @click="Detail.handleCall(order.order_sn)"
|
||||
v-if="orderStatus === TeaSpecialistOrderStatus.Pending || orderStatus === TeaSpecialistOrderStatus.Accepted || orderStatus === TeaSpecialistOrderStatus.Departed"
|
||||
v-if="orderStatus === TeaSpecialistOrderStatus.Pending || orderStatus === TeaSpecialistOrderStatus.Accepted || orderStatus === TeaSpecialistOrderStatus.Departed || orderStatus === TeaSpecialistOrderStatus.Arrived"
|
||||
>
|
||||
<view class="info-label">用户联系方式:</view>
|
||||
<view class="flex items-center">
|
||||
<wd-img :src="`${OSS}icon/icon_phone2.png`" width="32rpx" height="32rpx"></wd-img>
|
||||
<wd-img :src="`${OSS}icon/icon_phone2.png`" width="40rpx" height="40rpx"></wd-img>
|
||||
</view>
|
||||
<!-- <wd-icon name="call" size="32px"></wd-icon> -->
|
||||
<!-- <text class="info-value" @click="Detail.handleCall(order.order_sn)">{{ order.user_mobile }}</text> -->
|
||||
|
||||
Reference in New Issue
Block a user