|
@@ -98,7 +98,8 @@
|
|
|
<block v-for="(item,index) in orderMenu" :key="index">
|
|
|
<view class="order-item" @click="menusTap(item.url)">
|
|
|
<view class="pic">
|
|
|
- <text class="iconfont pic_status" :class="item.img"></text>
|
|
|
+ <image :src="item.pic" class="image"></image>
|
|
|
+ <!-- <text class="iconfont pic_status" :class="item.img"></text> -->
|
|
|
<text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
|
|
|
</view>
|
|
|
<view class="txt tui-skeleton-rect">{{item.title}}</view>
|
|
@@ -372,7 +373,6 @@
|
|
|
onShow: function() {
|
|
|
if (this.isLogin) {
|
|
|
this.getUserCenterInfo();
|
|
|
- this.getOrderData();
|
|
|
this.getMerchantList()
|
|
|
}
|
|
|
this.copyrightImage();
|
|
@@ -544,6 +544,12 @@
|
|
|
userCenterInfo().then(res => {
|
|
|
let data = res.data;
|
|
|
this.userInfo = data;
|
|
|
+ this.orderMenu = data.orderMenu.map(item => ({
|
|
|
+ ...item,
|
|
|
+ title: item.name,
|
|
|
+ num: 0
|
|
|
+ }));
|
|
|
+ this.getOrderData();
|
|
|
this.$store.commit("SETUID", data.id);
|
|
|
this.$store.commit("SetIsEmployee", data.isEmployee);
|
|
|
this.$set(this, 'centerMenu', data.centerMenu);
|