ccj 2 роки тому
батько
коміт
e6740bac40
2 змінених файлів з 15 додано та 7 видалено
  1. 2 2
      config/index.js
  2. 13 5
      pages/order/confirmLoading.vue

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	// baseUrlNew: 'https://api.changyuntong56.com',
-	baseUrlNew: 'http://192.168.110.9:8099',
+	baseUrlNew: 'https://api.changyuntong56.com',
+	// baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.110.67:8999',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 13 - 5
pages/order/confirmLoading.vue

@@ -741,8 +741,8 @@
 				var that = this
 				this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
 					console.log("提交状态",res)
+					uni.hideLoading()
 						if (res.code == 200) {
-							uni.hideLoading()
 							let _title = ''
 							if (that.detailData.statusFlag == 1) {
 								_title = '暂存成功!'
@@ -801,7 +801,7 @@
 								}
 							);
 				
-							this.$refs.uToast.show({
+							that.$refs.uToast.show({
 								type: 'success',
 								message: _title,
 								complete() {
@@ -811,12 +811,20 @@
 								}
 							})
 						} else {
-							console.log("1",res.message)
-							uni.$u.toast(res.message);
+							console.log("1",res)
+							// uni.$u.toast(res.message);
+							that.$refs.uToast.show({
+								type: 'error',
+								message: res.message,
+							})
 						}
 					}).catch(res => {
 						console.log("2",res.message)
-						uni.$u.toast(res.message);
+						// uni.$u.toast(res.message);
+						that.$refs.uToast.show({
+							type: 'error',
+							message: res.message,
+						})
 					});
 			},
 			confirmClick() {