|
@@ -454,6 +454,8 @@
|
|
let store = this.store_id;
|
|
let store = this.store_id;
|
|
let order_id = res.data.data.order_id;
|
|
let order_id = res.data.data.order_id;
|
|
this.specClass = 'none';
|
|
this.specClass = 'none';
|
|
|
|
+ this.specSelected = [];
|
|
|
|
+ this.chosename = [];
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/pages/index/sureBuy?store=${store}&order_id=${order_id}`
|
|
url: `/pages/index/sureBuy?store=${store}&order_id=${order_id}`
|
|
});
|
|
});
|
|
@@ -478,7 +480,7 @@
|
|
this.specSelected = this.datalist.goods_list;
|
|
this.specSelected = this.datalist.goods_list;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if(this.chosename.length == 0) {
|
|
|
|
|
|
+ if(this.chosename.length == 0&&this.datalist.spec_list.length != 0) {
|
|
this.specClass = 'show';
|
|
this.specClass = 'show';
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -495,6 +497,8 @@
|
|
goods_num: this.shopnumber
|
|
goods_num: this.shopnumber
|
|
},
|
|
},
|
|
success: () => {
|
|
success: () => {
|
|
|
|
+ this.specSelected = [];
|
|
|
|
+ this.chosename = [];
|
|
this.$msg("商品添加成功");
|
|
this.$msg("商品添加成功");
|
|
this.specClass = 'none';
|
|
this.specClass = 'none';
|
|
this.getshopdetail();
|
|
this.getshopdetail();
|