@@ -129,7 +129,9 @@ export default {
page: 1,
total: 0,
current: 'list',
- item:{},
+ item:{
+ order_num:0
+ },
userInfo:{
vip_id:0,
order_num:0,
@@ -158,6 +160,9 @@ export default {
userInfo().then((res)=>{
if(res.code == 1){
this.userInfo = res.data;
+ if(this.userInfo.order_num>= this.item.order_num && this.current === 'goods'){
+ this.current='list'
+ }
}
})
},