From 6a0aad3fdfc7b21b44218e13f3f896cbbab12b34 Mon Sep 17 00:00:00 2001
From: yuanteng0011 <1876787513@qq.com>
Date: Wed, 18 Dec 2024 19:40:47 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/request.ts | 2 +-
pages.json | 7 --
pages/Shopping-cart/component/addProduct.vue | 7 +-
.../Shopping-cart/productmain/productmain.vue | 107 +++++++++++-------
4 files changed, 72 insertions(+), 51 deletions(-)
diff --git a/api/request.ts b/api/request.ts
index 219aee6..69017c9 100644
--- a/api/request.ts
+++ b/api/request.ts
@@ -2,4 +2,4 @@ export const Url = 'http://localhost:9092/api' //后端接口文档
export const testUrl = 'http://123.249.108.160:8888/api' //自己组的服务器接口地址
export const suiUrl = 'http://154.8.193.216:9092/api' //隋宇霏的接口地址
-export const baseUrl = testUrl
\ No newline at end of file
+export const baseUrl = Url
\ No newline at end of file
diff --git a/pages.json b/pages.json
index a27d8da..3691c23 100644
--- a/pages.json
+++ b/pages.json
@@ -205,13 +205,6 @@
{
"navigationBarTitleText" : ""
}
- },
- {
- "path" : "pages/syy",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
}
],
"globalStyle": {
diff --git a/pages/Shopping-cart/component/addProduct.vue b/pages/Shopping-cart/component/addProduct.vue
index a648c86..2d46cdc 100644
--- a/pages/Shopping-cart/component/addProduct.vue
+++ b/pages/Shopping-cart/component/addProduct.vue
@@ -82,11 +82,8 @@
cookie: wx.getStorageSync('cookie')
},
data: {
- userId: userInfo.value.id,
goodId: productBrief.value.id,
- quantity: quantity.value,
- subtotal: productBrief.value.price * quantity.value,
- isGoodType: productBrief.value.isGoodType
+ quantity: quantity.value
}
})
if (res.data.code === 1) {
@@ -107,7 +104,7 @@
//减少商品
const decrease = () => {
// console.log('index-->',index);
- if (quantity.value > 0) {
+ if (quantity.value != 1) {
quantity.value -= 1
}
}
diff --git a/pages/Shopping-cart/productmain/productmain.vue b/pages/Shopping-cart/productmain/productmain.vue
index 6ab8d21..9c1532d 100644
--- a/pages/Shopping-cart/productmain/productmain.vue
+++ b/pages/Shopping-cart/productmain/productmain.vue
@@ -2,7 +2,7 @@
- 编辑
+ {{ stateText.topBtn }}
@@ -20,23 +20,22 @@
- {{ item.goodVO.name }}
- 【{{ item.goodVO.type }}】
+ {{ item.cartGoodVO.name }}
+ 【{{ item.cartGoodVO.type }}】
- ¥{{ item.goodVO.price }}.00
+ ¥{{ item.cartGoodVO.price }}
-
@@ -122,7 +121,7 @@
src="https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FJipaVPoQ-storeRmb.png"
/>
{{ totalPrice }}
- 去结算
+ {{ stateText.bottomBtn }}
@@ -130,7 +129,7 @@