Commit 38fc677d authored by Mac's avatar Mac

报错的修改

parent 49483c1f
......@@ -57,7 +57,7 @@
<text style="font-size: 21px;">{{user_info.footprint?user_info.footprint:0}}</text>
<text>{{meueData.user_center.foot_bar[1].name}}</text>
</view>
<view class="top_b_item" v-if="meueData.user_center.is_account_status == 1" @click="goUrl(couponsObj.link_url)">
<view class="top_b_item" v-if="meueData.user_center&&meueData.user_center.is_account_status == 1" @click="goUrl(couponsObj.link_url)">
<text style="font-size: 21px;">{{user_info.coupon?user_info.coupon:0}}</text>
<text>{{couponsObj.name}}</text>
</view>
......@@ -67,7 +67,7 @@
<u-icon name="location" color="#fff" size="23"></u-icon>
<Text style="color: #fff;font-size: 12px;margin-left: 20rpx;">收货地址</Text>
</view>
<view class="Receiptbalance" v-if="meueData.user_center.is_account_status == 1">
<view class="Receiptbalance" v-if="meueData.user_center&&meueData.user_center.is_account_status == 1">
<view class="Receiptbalance_item" v-for="(item, index) in meueData.user_center.account" :key="index"
v-if="item.link_url == '/pages/balance/balance'" @click="goUrl(item.link_url)">
<image :src="item.icon_url" style="width: 22px;height: auto" mode ='widthFix' ></image>
......@@ -119,7 +119,7 @@
</view>
</view>
<view :class="meueData.user_center.menu_style == 1 ? 'menus2' : 'menus'" v-if="meueData.user_center.is_menu_status == 1">
<view :class="meueData.user_center.menu_style == 1 ? 'menus2' : 'menus'" v-if="meueData.user_center&& meueData.user_center.is_menu_status == 1">
<view
:class="meueData.user_center.menu_style == 1 ? 'menus_item2' : 'menus_item'"
v-for="(item, index) in meueData.user_center.menus"
......@@ -299,7 +299,11 @@ export default {
})
}
);
this.getMicroShopBasics()
let u = uni.getStorageSync("mall_UserInfo");
if(u){
this.getMicroShopBasics()
}
},
getMicroShopBasics(){
this.request2(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment