Browse Source

修改bug

cr 4 years ago
parent
commit
d4c23fabd1
5 changed files with 16 additions and 7 deletions
  1. 2 2
      .env
  2. 2 2
      .env.develop
  3. 2 2
      .env.production
  4. 1 1
      src/pages/index/refund.vue
  5. 9 0
      src/pages/manage/add-good-form.vue

+ 2 - 2
.env

@@ -7,13 +7,13 @@ NODE_ENV = 'production'
7
 VUE_APP_ENV = develop
7
 VUE_APP_ENV = develop
8
 
8
 
9
 # 接口请求基地址
9
 # 接口请求基地址
10
-VUE_APP_API_BASE_URL = http://localhost:8076
10
+VUE_APP_API_BASE_URL = https://delivery.ixiaokejia.com
11
 
11
 
12
 # 接口请求基地址
12
 # 接口请求基地址
13
 VUE_APP_WEBSOCKET_BASE_URL = 
13
 VUE_APP_WEBSOCKET_BASE_URL = 
14
 
14
 
15
 # 图片基地址
15
 # 图片基地址
16
-VUE_APP_IMAGE_BASE_URL = http://localhost:8076
16
+VUE_APP_IMAGE_BASE_URL = https://delivery.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
18
 
18
 
19
 # 微信小程序appId
19
 # 微信小程序appId

+ 2 - 2
.env.develop

@@ -7,13 +7,13 @@ NODE_ENV = 'production'
7
 VUE_APP_ENV = production
7
 VUE_APP_ENV = production
8
 
8
 
9
 # 接口请求基地址
9
 # 接口请求基地址
10
-VUE_APP_API_BASE_URL = http://localhost:8076
10
+VUE_APP_API_BASE_URL = https://delivery.ixiaokejia.com
11
 
11
 
12
 # 接口请求基地址
12
 # 接口请求基地址
13
 VUE_APP_WEBSOCKET_BASE_URL = 
13
 VUE_APP_WEBSOCKET_BASE_URL = 
14
 
14
 
15
 # 图片基地址
15
 # 图片基地址
16
-VUE_APP_IMAGE_BASE_URL = http://localhost:8076
16
+VUE_APP_IMAGE_BASE_URL = https://delivery.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
18
 
18
 
19
 # 微信小程序appId
19
 # 微信小程序appId

+ 2 - 2
.env.production

@@ -7,13 +7,13 @@ NODE_ENV = 'production'
7
 VUE_APP_ENV = production
7
 VUE_APP_ENV = production
8
 
8
 
9
 # 接口请求基地址
9
 # 接口请求基地址
10
-VUE_APP_API_BASE_URL = http://localhost:8076
10
+VUE_APP_API_BASE_URL = https://delivery.ixiaokejia.com
11
 
11
 
12
 # 接口请求基地址
12
 # 接口请求基地址
13
 VUE_APP_WEBSOCKET_BASE_URL = 
13
 VUE_APP_WEBSOCKET_BASE_URL = 
14
 
14
 
15
 # 图片基地址
15
 # 图片基地址
16
-VUE_APP_IMAGE_BASE_URL = http://localhost:8076
16
+VUE_APP_IMAGE_BASE_URL = https://delivery.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
17
 VUE_APP_IMAGE_RESOURCE_URL = https://oss.ixiaokejia.com
18
 
18
 
19
 # 微信小程序appId
19
 # 微信小程序appId

+ 1 - 1
src/pages/index/refund.vue

@@ -192,7 +192,7 @@ export default {
192
             for (let id of this.curGoodItemIds) {
192
             for (let id of this.curGoodItemIds) {
193
                 for (let item of this.orderData.orderItems) {
193
                 for (let item of this.orderData.orderItems) {
194
                     if (item.id === id) {
194
                     if (item.id === id) {
195
-                        num += item.price * item.count;
195
+                        num += item.payAmount;
196
                     }
196
                     }
197
                 }
197
                 }
198
             }
198
             }

+ 9 - 0
src/pages/manage/add-good-form.vue

@@ -1076,6 +1076,15 @@ export default {
1076
                 video: "",
1076
                 video: "",
1077
                 skuInfo: skuInfo,
1077
                 skuInfo: skuInfo,
1078
             };
1078
             };
1079
+            if(sendData.baseInfo.weight){
1080
+                sendData.baseInfo.weight = Number(sendData.baseInfo.weight);
1081
+            }
1082
+            if(sendData.baseInfo.stock){
1083
+                sendData.baseInfo.stock = Number(sendData.baseInfo.stock);
1084
+            }
1085
+            if(sendData.baseInfo.initialSale){
1086
+                sendData.baseInfo.initialSale = Number(sendData.baseInfo.initialSale);
1087
+            }
1079
             //规格判断
1088
             //规格判断
1080
             if (this.specIndex === 0) {
1089
             if (this.specIndex === 0) {
1081
                 sendData.baseInfo.price = parseInt(
1090
                 sendData.baseInfo.price = parseInt(