diff --git a/common/js/globalData.js b/common/js/globalData.js
index 1ca02c2..5c2fb93 100644
--- a/common/js/globalData.js
+++ b/common/js/globalData.js
@@ -2,5 +2,5 @@ export default {
deptId: 101,
from: 'customer',
initPageNum: 1,
- initPageSize: 5
+ initPageSize: 50
}
\ No newline at end of file
diff --git a/common/js/request.js b/common/js/request.js
index 9532344..1a4aca2 100644
--- a/common/js/request.js
+++ b/common/js/request.js
@@ -6,8 +6,8 @@ export default {
uni.addInterceptor('request', {
invoke(args) {
// request 触发前拼接 url
- args.url = 'https://www.opsoul.com' + args.url;
- // args.url = 'http://10.45.111.215:80' + args.url;
+ // args.url = 'https://www.opsoul.com' + args.url;
+ args.url = 'http://10.45.137.214:80' + args.url;
// args.url = 'http://127.0.0.1:80' + args.url;
if (args.data) {
args.data.deptId = globalData.deptId;
diff --git a/components/goods-card/horizontal-goods-card.vue b/components/goods-card/horizontal-goods-card.vue
index 497e464..0ff6c25 100644
--- a/components/goods-card/horizontal-goods-card.vue
+++ b/components/goods-card/horizontal-goods-card.vue
@@ -8,10 +8,13 @@
{{product.comments}}
-
+
{{product.discountPrice}}
¥{{product.goodsPrice}}
+
+ {{product.goodsPrice}}
+
{{product.type}}
diff --git a/pages/product/product-pick.vue b/pages/product/product-pick.vue
index 138ff21..df71bc7 100644
--- a/pages/product/product-pick.vue
+++ b/pages/product/product-pick.vue
@@ -6,9 +6,9 @@
- {{curSpec.discountPrice}}
+ {{curSpec.goodsPrice}}
- {{curSpec.remark}}
+ {{productInfo.remark}}
@@ -23,7 +23,7 @@
{{item.goodsStandardName}}
-
+
@@ -81,7 +81,8 @@
},
methods: {
loadData() {
- this.curSpec = this.specsList[0];
+ this.curSpec = this.specsList[0];
+ console.log(this.curSpec)
this.specsList.forEach(function(item) {
this.pickList.push({
price: item.goodsPrice,
@@ -91,8 +92,9 @@
}.bind(this));
},
changePiecesNum(piecesNum, index) {
- let spec = this.pickList[index];
- this.totalPrice -= spec.salePrice * (spec.pickCount - piecesNum);
+ let spec = this.pickList[index];
+ let price = spec.salePrice ? spec.salePrice : spec.price;
+ this.totalPrice -= price * (spec.pickCount - piecesNum);
this.totalPickCount -= spec.pickCount - piecesNum
this.pickList[index].pickCount = piecesNum;
},