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