diff --git a/static/js/request.js b/static/js/request.js
index a8bfb5d..dc5df2c 100644
--- a/static/js/request.js
+++ b/static/js/request.js
@@ -8,7 +8,7 @@ const DEV_API_URL = 'http://1.13.193.49';
// const PROD_API_URL = 'https://epic.js-dyyj.com';
const PROD_API_URL = 'http://1.13.193.49';
const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL;
-const DEV_API_URL_DES = 'http://192.168.124.177:8083/xcx';
+const DEV_API_URL_DES = 'http://192.168.124.118:8083/xcx';
// const DEV_API_URL_DES = 'https://des.js-dyyj.com/xcx';
// const DEV_API_URL_DES = 'http://1.13.193.49:8083/xcx';
// const PROD_API_URL_DES = 'https://des.js-dyyj.com/xcx';
diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue
index 352eae2..9346c65 100644
--- a/subPackages/techan/detail.vue
+++ b/subPackages/techan/detail.vue
@@ -61,15 +61,14 @@
-
-
+
加入购物车
@@ -102,7 +101,7 @@
-
+
@@ -186,18 +185,19 @@
};
},
onShow() {
- // 获取购物车数量
- this.Post({
- is_post: 1,
- }, '/api/shopping/getShoppingList').then(res => {
- console.log(res)
- })
+ this.getShoppingList()
},
onLoad(option) {
this.id = option.id;
this.getInfo();
},
methods: {
+ getShoppingList() {
+ this.Post({}, "/framework/cart/list", "DES")
+ .then((res) => {
+ this.paramData.num = res.data.length
+ })
+ },
changPopShow (e) {
this.popShow = e.show
},
@@ -318,10 +318,13 @@
if (!currentGoods) {
selectedData.push(goods.goodsId)
}
- uni.showToast({
- title:'加购成功',
- icon:'none'
- })
+ setTimeout(() =>{
+ uni.showToast({
+ title:'加购成功',
+ icon:'none'
+ })
+ },400)
+ this.getShoppingList()
uni.setStorageSync('cartDataInfo', JSON.stringify(selectedData));
uni.$emit("updateDataByConnect", {msgType:'updateCartDataInfo',data:null})
this.closePopup()
diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue
index 9e4100d..e503d26 100644
--- a/subPackages/techan/order.vue
+++ b/subPackages/techan/order.vue
@@ -64,17 +64,24 @@
-
+
-
+
-
+
-
+
购买数量
-
+