gjy 2 年 前
コミット
5967ba454c
3 ファイル変更5 行追加3 行削除
  1. 2 2
      config/index.js
  2. 2 0
      main.js
  3. 1 1
      pages/user/newReport.vue

+ 2 - 2
config/index.js

@@ -4,9 +4,9 @@ const dev = {
 	// baseUrlNew: 'http://192.168.110.67:9100/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9100/',
-	// baseUrlNew: 'http://192.168.110.138:8090/',
+	baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8099/',
-	 baseUrlNew: 'http://192.168.110.82:8090/',
+	 // baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// 上传图片的

+ 2 - 0
main.js

@@ -224,10 +224,12 @@ const doRequest = (method, url, data, header) => {
 				'content-type': contentheader //'application/x-www-form-urlencoded; charset=UTF-8',
 			},
 			success: function(result) {
+				uni.hideLoading()
 				// resolve调用后,即可传递到调用方使用then或者async+await同步方式进行处理逻辑
 				resolve(result)
 			},
 			fail: function(e) {
+				uni.hideLoading()
 				console.log('error in...', e)
 				uni.showToast({
 					title: e

+ 1 - 1
pages/user/newReport.vue

@@ -1034,7 +1034,7 @@
 						this.makeDate7(res.data.data)
 						//APP注册
 						this.makeDate8(res.data.data)
-						uni.hideLoading()
+						// uni.hideLoading()
 
 
 					})