修改个人中心刷新的逻辑

This commit is contained in:
赵毅 2025-11-10 10:50:39 +08:00
parent 686a9df6e1
commit 876e54a416

View File

@ -49,7 +49,7 @@
<view class="center">
<view class="gold_container" @click="headerGoldClick">
<view class="gold_title">
<span class="gold"></span> <span class="monenyt">0</span> | <span class="price">价值0.00</span>
<span class="gold">米多</span> <span class="monenyt">0</span> | <span class="price">价值0.00</span>
<u-icon size="30" name="arrow-right" />
</view>
<image class="gold_pic"
@ -324,6 +324,30 @@ export default {
uni.setStorageSync('is_merchant', loginRes.is_merchant);
uni.setStorageSync('is_worker', loginRes.is_worker);
//
this.userInfo = {};
//
this.shopManagementList = [
{
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/user_page_Group_1782.png",
name: "商家端",
url: "/packages/storeManagement/index/index",
isShow: loginRes.is_merchant,
},
{
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/userPageGys.png",
name: "供应商端",
url: "",
isShow: loginRes.is_worker,
},
{
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/userPageWuye.png",
name: "物业端",
url: "/packages/workOrderDashboard/guide/index",
isShow: loginRes.is_worker,
}
];
//
request(apiArr.loginInfo, 'POST', {
@ -461,6 +485,7 @@ export default {
onShow() {
this.getUserInfo();
this.headerLoginClick();
},
}
</script>