From 90789fb467215134bc0527639b593dd7e3a8c53c Mon Sep 17 00:00:00 2001 From: whitechiina <1293616053@qq.com> Date: Sun, 30 Mar 2025 15:37:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=82=B9=E5=8D=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/b-nx-sku-popup/b-nx-sku-popup.vue | 7 ++++--- .../home/shop_home/components/shop-item/shop-item.vue | 4 +--- pages/restaurant/order/orders-settlement/settlement.vue | 6 +++--- request/restaurant/index.js | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/components/b-nx-sku-popup/b-nx-sku-popup.vue b/components/b-nx-sku-popup/b-nx-sku-popup.vue index 555b05d..721b6a2 100644 --- a/components/b-nx-sku-popup/b-nx-sku-popup.vue +++ b/components/b-nx-sku-popup/b-nx-sku-popup.vue @@ -59,8 +59,8 @@ - - {{_amount(skuinfor['adj_pay'] * skuinfor['num'])}} + + {{skuinfor['adj_pay'] * skuinfor['num']}} @@ -259,7 +259,8 @@ // 实际价格 // this['skuinfor']['adj_pay'] = price; // 加价价格 - this.$set(this['skuinfor'], 'adj_pay', price); + // this.$set(this['skuinfor'], 'adj_pay', price); + this.$set(this['skuinfor'], 'adj_pay', product_price); // 实际价格 this.$set(this['skuinfor'], 'add_price', skupay); // 计算价格之后匹配文字 diff --git a/pages/restaurant/home/shop_home/components/shop-item/shop-item.vue b/pages/restaurant/home/shop_home/components/shop-item/shop-item.vue index 3f3116e..0fc5c74 100644 --- a/pages/restaurant/home/shop_home/components/shop-item/shop-item.vue +++ b/pages/restaurant/home/shop_home/components/shop-item/shop-item.vue @@ -262,9 +262,8 @@ res['data']['num'] = 1; // 接口修改后数据格式问题 - // if(brand_id == 13) { - // } res.data.pay_price = res.data.product_price * 100 + res.data.adj_pay = res.data.product_price console.log(res['data'], '接口修改后数据格式问题') @@ -308,7 +307,6 @@ // 麦当劳计算 this['item']['pay_price'] = this['item']['product_price']; - console.log(this['item']) // 单品添加 uni.hideLoading(); this.ADD_CART({ diff --git a/pages/restaurant/order/orders-settlement/settlement.vue b/pages/restaurant/order/orders-settlement/settlement.vue index ae4d4cb..e8b7e46 100644 --- a/pages/restaurant/order/orders-settlement/settlement.vue +++ b/pages/restaurant/order/orders-settlement/settlement.vue @@ -28,10 +28,10 @@ - + @@ -104,7 +104,7 @@ 实际付款: - + ¥{{calculationamount['payments']}} diff --git a/request/restaurant/index.js b/request/restaurant/index.js index 42a2b27..a373fdb 100644 --- a/request/restaurant/index.js +++ b/request/restaurant/index.js @@ -19,7 +19,7 @@ export const storeCollectionListAPI = parameters => request.Request({ url: "/car /** * @取消或者关注店铺 */ - export const storeCollectionAPI = parameters => request.Request({ url: "/card.Restaurant/storeCollection", parameters }); + export const storeCollectionAPI = parameters => request.Request({ url: "/api/client/food/restaurantCollection", parameters, method: 'POST' }); /** * @获取店铺商品 */