商品兑换券更新

This commit is contained in:
GaoHao
2024-11-19 16:58:37 +08:00
parent d2dbfd5163
commit 8c5e03d6c4
10 changed files with 141 additions and 69 deletions

View File

@@ -715,6 +715,7 @@
"skuId": this.skuId,
"num": num, //数量
"type": a == '+' ? 1 : 0,
"isVip": item.isVip,
"productId": item.id, //商品id
"shopId": this.shopId,
"note": item.note,
@@ -966,11 +967,12 @@
let res = await this.api.productqueryProductSku({
code: this.tableCode,
shopId: this.shopId,
"isVip": 0,
isVip: item.isVip, //商品id
productId: item.id, //商品id
spec_tag: this.skuidname.join(","),
})
this.salePrice = res.data.salePrice // 价格
this.salePrice = this.isVip == 1 && res.data.memberPrice > 0 ? res.data.memberPrice : res.data.salePrice // 价格
let data = null;
if (a == 1) { //1添加购物车 2是websocket返回这个商品的价格(应为不同的多规格商品返回不同的价格)
let params = {
@@ -979,7 +981,7 @@
"type": c == '+' ? 1 : 0,
"productId": item.id, //商品id
"note": item.note,
"isVip": 0,
"isVip": item.isVip,
"shopId": this.shopId,
"userId": uni.cache.get('userInfo').id,
}