Browse Source

我的订单头部导航栏优化

master
Enzo 4 years ago
parent
commit
0ec73c14ec
  1. 4
      components/me-tabs/me-tabs.vue
  2. 5
      pages/order/index.vue

4
components/me-tabs/me-tabs.vue

@ -54,7 +54,7 @@
return uni.upx2px(this.height)
},
tabHeightPx1() {
return uni.upx2px(54)
return uni.upx2px(60)
},
tabHeightVal() {
return this.tabHeightPx + 'px'
@ -176,6 +176,8 @@
background-color: white;
border-radius: 10px;
margin: 2px 0;
height: 27px!important;
line-height: 27px!important;
}
}
}

5
pages/order/index.vue

@ -148,7 +148,9 @@
}).then(res => {
if (res.code == 0) {
console.log(res)
if( Object.keys(res.metal_data).length != 0 ) {
this.$routerGo('/pages/login/index?type=userinfo')
}else {
let isPage = res.data.has_more_page;
tab_item.isPage = isPage;
if (isPage) {
@ -164,6 +166,7 @@
tab_item.list.push(...res.data.items);
}
}
}
}).catch(err => {

Loading…
Cancel
Save