1
0

2 Revīzijas ea3452e3bf ... 42fdcda0c0

Autors SHA1 Ziņojums Datums
  lj 42fdcda0c0 Merge branch 'master' of http://39.104.94.153:3000/yf_lj/bigDataApp 4 gadi atpakaļ
  lj 4ed9c08c22 3/15 4 gadi atpakaļ
1 mainītis faili ar 20 papildinājumiem un 16 dzēšanām
  1. 20 16
      pages/index/index.vue

+ 20 - 16
pages/index/index.vue

@@ -138,25 +138,29 @@
 				console.log(ev)
 				this.loadTF = true
 				uni.showLoading({
-				    title: '加载中'
+					mask:true,
+					success:function(){
+						console.log(999)
+					}
 				});
 				if(this.flag == 2){
+					console.log('111')
 					// pest.pests.insect_discern 虫害
-					uni.uploadFile({
-						// url: 'http://182.92.193.64:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
-						url: 'http://182.92.193.64:8002/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
-						filePath: ev.path,
-						name: 'img_file',
-						formData: {
-							'user': 'test'
-						},
-						success: (uploadFileRes) => {
-							console.log(JSON.parse(uploadFileRes.data))
-							uni.navigateTo({
-								url: "../disandpests/index?datas=" + uploadFileRes.data + "&path=" + ev.path
-							})
-						}
-					});
+					// uni.uploadFile({
+					// 	// url: 'http://182.92.193.64:8002/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
+					// 	url: 'http://182.92.193.64:8002/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
+					// 	filePath: ev.path,
+					// 	name: 'img_file',
+					// 	formData: {
+					// 		'user': 'test'
+					// 	},
+					// 	success: (uploadFileRes) => {
+					// 		console.log(JSON.parse(uploadFileRes.data))
+					// 		uni.navigateTo({
+					// 			url: "../disandpests/index?datas=" + uploadFileRes.data + "&path=" + ev.path
+					// 		})
+					// 	}
+					// });
 				}else if(this.flag == 1){
 					//pest.pests.insect_discern病害识别
 					uni.showLoading({