|
|
@@ -130,25 +130,29 @@
|
|
|
this.path = this.url
|
|
|
console.log(ev)
|
|
|
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({
|