入住状态回显
This commit is contained in:
parent
0a8e130c33
commit
2ecd26d609
|
|
@ -73,7 +73,7 @@
|
||||||
v-if="!userInfo.servers_kill_arr || userInfo.servers_kill_arr.length === 0">
|
v-if="!userInfo.servers_kill_arr || userInfo.servers_kill_arr.length === 0">
|
||||||
</image>
|
</image>
|
||||||
<text style="margin-right: 16rpx;"
|
<text style="margin-right: 16rpx;"
|
||||||
:style="{ color: (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '#333333' : '#ec5d57' }">
|
:style="{ color: (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '#c9c9c9' : '#ec5d57' }">
|
||||||
{{ (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '已设置' :
|
{{ (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '已设置' :
|
||||||
'待完善' }}
|
'待完善' }}
|
||||||
</text>
|
</text>
|
||||||
|
|
@ -630,14 +630,12 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
navigateToQualification() { // 商家手艺人:资质信息
|
navigateToQualification() {
|
||||||
if (this.userInfo.credentials_state == '1') {
|
if (this.userInfo.credentials_state == '1') {
|
||||||
// 商家跳转到资质信息页面
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/ruzhu/ruzhu?type=1'
|
url: '/pages/ruzhu/ruzhu?type=1'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 手艺人跳转到资质信息页面
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shop/qualification_sj_change'
|
url: '/pages/shop/qualification_sj_change'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -176,8 +176,7 @@ export default {
|
||||||
{
|
{
|
||||||
title: "店铺装修",
|
title: "店铺装修",
|
||||||
url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4b558456-2e38-4185-8713-d1f0e6645820.png",
|
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/artisan/profile",
|
||||||
path: "/pages/shop/qualification_sj_change",
|
|
||||||
go_id_type: 1,
|
go_id_type: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -654,6 +653,19 @@ export default {
|
||||||
request.post("/sj/user/getUser").then((result) => {
|
request.post("/sj/user/getUser").then((result) => {
|
||||||
this.userInfo = result.data;
|
this.userInfo = result.data;
|
||||||
uni.setStorageSync("syrId", result.data.id);
|
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();
|
this.getInviteList();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue