完善功能
This commit is contained in:
@ -33,7 +33,8 @@
|
|||||||
class="level-card-bg">
|
class="level-card-bg">
|
||||||
<view class="level-header">
|
<view class="level-header">
|
||||||
<view class="level-info">
|
<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>
|
<text :class="`level${userLevel.id}-txt`">LV{{ userLevel.id }}</text>
|
||||||
<view class="level-label-wrapper">
|
<view class="level-label-wrapper">
|
||||||
<text class="level-label">{{ userLevel.level_name }}</text>
|
<text class="level-label">{{ userLevel.level_name }}</text>
|
||||||
@ -43,7 +44,8 @@
|
|||||||
<view class="commission-info">
|
<view class="commission-info">
|
||||||
<view class="commission-item">
|
<view class="commission-item">
|
||||||
<text class="commission-label" :class="`level${userLevel.id}-txt`">业绩分成</text>
|
<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>
|
</view>
|
||||||
<!-- <view class="progress-section">
|
<!-- <view class="progress-section">
|
||||||
@ -176,7 +178,7 @@
|
|||||||
</view>
|
</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="section-header">
|
||||||
<view class="announcement-header-left">
|
<view class="announcement-header-left">
|
||||||
<image class="speaker-icon" :src="`${OSS}images/chayishi/laba.png`" mode="aspectFit" />
|
<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 { useUserStore } from '@/store'
|
||||||
import { getTeaSpecialistOrderList, getAnnouncements, getUserLevel } from '@/api/tes-specialist'
|
import { getTeaSpecialistOrderList, getAnnouncements, getUserLevel } from '@/api/tes-specialist'
|
||||||
import { TeaSpecialistManageStatusTextValue, TeaSpecialistOrderStatus } from '@/utils/teaSpecialistOrder'
|
import { TeaSpecialistManageStatusTextValue, TeaSpecialistOrderStatus } from '@/utils/teaSpecialistOrder'
|
||||||
|
import { getConfigItem } from '@/api/user'
|
||||||
|
|
||||||
const OSS = inject('OSS')
|
const OSS = inject('OSS')
|
||||||
const navbarHeight = inject('navbarHeight')
|
const navbarHeight = inject('navbarHeight')
|
||||||
@ -246,6 +249,8 @@ onLoad(() => {
|
|||||||
getUserLevel().then(res => {
|
getUserLevel().then(res => {
|
||||||
userLevel.value = res
|
userLevel.value = res
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Index.handleGetSettings()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 当前订单索引(用于指示点)
|
// 当前订单索引(用于指示点)
|
||||||
@ -255,7 +260,18 @@ const currentOrderIndex = ref(0)
|
|||||||
const month = ref<number>(0)
|
const month = ref<number>(0)
|
||||||
const day = ref<number>(0)
|
const day = ref<number>(0)
|
||||||
|
|
||||||
|
const setting = ref({
|
||||||
|
status: 0
|
||||||
|
})
|
||||||
|
|
||||||
const Index = {
|
const Index = {
|
||||||
|
/**
|
||||||
|
* 获取配置项
|
||||||
|
*/
|
||||||
|
handleGetSettings: async () => {
|
||||||
|
const res = await getConfigItem()
|
||||||
|
setting.value.status = res.status
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 获取今日订单
|
* 获取今日订单
|
||||||
*/
|
*/
|
||||||
@ -491,7 +507,7 @@ page {
|
|||||||
|
|
||||||
.level-label-wrapper {
|
.level-label-wrapper {
|
||||||
// background-color: #5a5d74;
|
// background-color: #5a5d74;
|
||||||
background: linear-gradient( 270deg, #575A72 0%, #868898 100%);
|
background: linear-gradient(270deg, #575A72 0%, #868898 100%);
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
padding: 10rpx;
|
padding: 10rpx;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
@ -398,7 +398,7 @@
|
|||||||
|
|
||||||
await editTeaSpecialistProfile(params)
|
await editTeaSpecialistProfile(params)
|
||||||
toast.show('保存成功')
|
toast.show('保存成功')
|
||||||
router.navigateBack(1, 500)
|
// router.navigateBack(1, 500)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -94,7 +94,7 @@
|
|||||||
</view>
|
</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"
|
<view class="edit-btn h-88rpx rounded-16rpx bg-[#4C9F44] text-center leading-88rpx"
|
||||||
@click="UploadData.handleEdit">
|
@click="UploadData.handleEdit">
|
||||||
<text class="text-32rpx text-[#fff] font-bold">修改信息</text>
|
<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 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, '') : ''
|
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({
|
await editTeaSpecialistQualification({
|
||||||
id: certId.value,
|
id: certId.value,
|
||||||
|
|||||||
@ -269,11 +269,11 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="info-item" @click="Detail.handleCall(order.order_sn)"
|
<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="info-label">用户联系方式:</view>
|
||||||
<view class="flex items-center">
|
<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>
|
</view>
|
||||||
<!-- <wd-icon name="call" size="32px"></wd-icon> -->
|
<!-- <wd-icon name="call" size="32px"></wd-icon> -->
|
||||||
<!-- <text class="info-value" @click="Detail.handleCall(order.order_sn)">{{ order.user_mobile }}</text> -->
|
<!-- <text class="info-value" @click="Detail.handleCall(order.order_sn)">{{ order.user_mobile }}</text> -->
|
||||||
|
|||||||
Reference in New Issue
Block a user