diff --git a/pages/artisan/profile.vue b/pages/artisan/profile.vue index 7c9d35d..5d62d4f 100644 --- a/pages/artisan/profile.vue +++ b/pages/artisan/profile.vue @@ -73,7 +73,7 @@ v-if="!userInfo.servers_kill_arr || userInfo.servers_kill_arr.length === 0"> + :style="{ color: (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '#c9c9c9' : '#ec5d57' }"> {{ (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '已设置' : '待完善' }} @@ -630,14 +630,12 @@ }) }, - navigateToQualification() { // 商家手艺人:资质信息 + navigateToQualification() { if (this.userInfo.credentials_state == '1') { - // 商家跳转到资质信息页面 uni.navigateTo({ url: '/pages/ruzhu/ruzhu?type=1' }) } else { - // 手艺人跳转到资质信息页面 uni.navigateTo({ url: '/pages/shop/qualification_sj_change' }) diff --git a/pages/my/my.vue b/pages/my/my.vue index 67f1fac..71cf155 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -176,8 +176,7 @@ export default { { title: "店铺装修", url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4b558456-2e38-4185-8713-d1f0e6645820.png", - // https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/e6e72039-eec4-414c-8a86-aad404602962.png - path: "/pages/shop/qualification_sj_change", + path: "/pages/artisan/profile", go_id_type: 1, }, { @@ -654,6 +653,19 @@ export default { request.post("/sj/user/getUser").then((result) => { this.userInfo = result.data; uni.setStorageSync("syrId", result.data.id); + const allReady = result.data.business_time + && result.data.servers_kill_arr + && result.data.servers_kill_arr.length > 0 + && result.data.credentials_state === 2; + const mgmtCard = this.cardList.find(c => c.title === "管理中心"); + if (mgmtCard) { + const shopItem = mgmtCard.list.find(i => i.title === "店铺装修"); + if (shopItem) { + shopItem.url = allReady + ? "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/e6e72039-eec4-414c-8a86-aad404602962.png" + : "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4b558456-2e38-4185-8713-d1f0e6645820.png"; + } + } }); this.getInviteList(); }, diff --git a/pages/ruzhu/qualification_sj copy.vue b/pages/ruzhu/qualification_sj copy.vue index 921f2f0..39037df 100644 --- a/pages/ruzhu/qualification_sj copy.vue +++ b/pages/ruzhu/qualification_sj copy.vue @@ -1,210 +1,275 @@ + +.invite-info-container { + padding: 20rpx 24rpx; + width: 100%; + box-sizing: border-box; + min-height: 60rpx; +} + +.invite-tip { + font-size: 24rpx; + color: #666666; +} + +.invite-validating { + font-size: 20rpx; + color: #999999; +} + +.invite-error { + font-size: 24rpx; + color: #E8101E; +} + +.inviter-info { + display: flex; + align-items: center; + font-size: 20rpx; +} + +.inviter-label { + color: #666666; +} + +.inviter-name { + color: #333333; + font-weight: 500; +} + +.inviter-divider { + color: #666666; + margin: 0 5rpx; +} + +.inviter-phone { + color: #666666; +} + \ No newline at end of file diff --git a/pages/ruzhu/ruzhu.vue b/pages/ruzhu/ruzhu.vue index aa64e95..8caea0d 100644 --- a/pages/ruzhu/ruzhu.vue +++ b/pages/ruzhu/ruzhu.vue @@ -416,8 +416,8 @@ if (qualificationData.contact_type) { formData.contact_type = qualificationData.contact_type; } - if (qualificationData.invite_code) { - formData.invite_code_other = qualificationData.invite_code; + if (qualificationData.invite_code_other) { + formData.invite_code_other = qualificationData.invite_code_other; } if (qualificationData.contact_name) { formData.contact_name = qualificationData.contact_name;