|
@@ -128,7 +128,11 @@
|
|
|
onClickButton(e) {
|
|
|
let array = [];
|
|
|
if(this.pricelist.length == 0) {
|
|
|
- this.$msg('请选择商品');
|
|
|
+ if(this.isdelete) {
|
|
|
+ this.$msg('请选择商品');
|
|
|
+ }else {
|
|
|
+ this.$msg('请选择删除商品');
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
this.pricelist.forEach(item => {
|
|
@@ -137,13 +141,8 @@
|
|
|
let ids = array.toString();
|
|
|
if(this.isdelete) {
|
|
|
// 结算
|
|
|
- this.getorderId(); // 保存订单生成订单id
|
|
|
+ this.getorderId(); // 保存订单生成订单id 购买
|
|
|
}else {
|
|
|
- if(ids == '') {
|
|
|
- this.$msg('请选择删除商品');
|
|
|
- return;
|
|
|
- }
|
|
|
- // 删除
|
|
|
this.deleteshop(ids);
|
|
|
}
|
|
|
},
|
|
@@ -252,7 +251,6 @@
|
|
|
},
|
|
|
// 单选
|
|
|
checkboxChange(e) {
|
|
|
- console.log("kkkk")
|
|
|
this.checkboxList = []
|
|
|
e.detail.forEach((item, idx) => {
|
|
|
this.$set(this.checkboxList, idx, item)
|
|
@@ -264,7 +262,6 @@
|
|
|
})
|
|
|
this.pricelist = price;
|
|
|
let num = 0;
|
|
|
- console.log(this.pricelist);
|
|
|
this.pricelist.forEach(item => {
|
|
|
num += item.goods_num;
|
|
|
})
|