wong1988 1 year ago
parent
commit
799a57e1b2
  1. 55
      pages/home/cloudCard2.vue

55
pages/home/cloudCard2.vue

@ -342,7 +342,7 @@
})
})
},
jian(item) {
const that = this
console.log("item》》》》", item)
@ -392,7 +392,7 @@
}
this.page.price = num
},
getweight() {
@ -441,39 +441,8 @@
return
}
let list = []
for (var i = 0; i < this.goods.length; i++) {
var item = this.goods[i]
if (item.goodsNumber > 0)
list.push({
goodsSid: item.goodsSid,
goodsName: item.name,
partNumber: item.goodsNumber,
numofPart: item.weight,
priceUnit: item.jprice, //
pricePart: item.mefenPrice, //
})
}
// console.log("ddd", list);
if (list.length == 0) {
this.shortToast('请添加商品')
return
}
this.showPop()
// console.log("params", params);
// let _this = this
// _this.$api.createOrder(params).then((resp) => {
// // console.log("resp", resp);
// this.$pay(resp)
// }).catch(e => {})
},
showPop() {
@ -507,27 +476,9 @@
saveGoods() {
let list = []
for (var i = 0; i < this.goods.length; i++) {
var item = this.goods[i]
if (item.goodsNumber > 0)
list.push({
goodsSid: item.goodsSid,
goodsNumber: item.goodsNumber,
})
}
// console.log("ddd", list);
if (list.length == 0) {
this.shortToast('请添加商品')
return
}
var params = {
customerSid: getApp().globalData.sid,
brandId: this.data.brandVos[this.selectIndex2].id,
vos: list
brandId: this.data.brandVos[this.selectIndex2].id
}
// console.log("params", params);

Loading…
Cancel
Save