diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 8eba248..ab26620 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -28,25 +28,27 @@ - - - - - LV{{ userLevel.id }} - - {{ userLevel.level_name }} - + + + + + LV{{ userLevel.id }} + + {{ userLevel.level_name }} - - - 业绩分成 - {{ userLevel.percentage }}% - + + + + 业绩分成 + {{ + userLevel.percentage }}% - - + - + @@ -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(0) const day = ref(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; diff --git a/src/pages/my/profile-edit.vue b/src/pages/my/profile-edit.vue index 24ccc9d..9b8164a 100644 --- a/src/pages/my/profile-edit.vue +++ b/src/pages/my/profile-edit.vue @@ -398,7 +398,7 @@ await editTeaSpecialistProfile(params) toast.show('保存成功') - router.navigateBack(1, 500) + // router.navigateBack(1, 500) }, } diff --git a/src/pages/my/upload-data.vue b/src/pages/my/upload-data.vue index d24c377..5ca13ff 100644 --- a/src/pages/my/upload-data.vue +++ b/src/pages/my/upload-data.vue @@ -94,7 +94,7 @@ - + 修改信息 @@ -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, diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue index 08f8085..4c53c18 100644 --- a/src/pages/order/detail.vue +++ b/src/pages/order/detail.vue @@ -269,11 +269,11 @@ 用户联系方式: - +