|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<view> |
|
|
|
|
<!-- <navigator on open-type='exit' target="miniProgram">退出程序</navigator>--> |
|
|
|
|
<view class="uni-padding-wrap uni-common-mt"> |
|
|
|
|
|
|
|
|
|
<view class="uni-form-item uni-column"> |
|
|
|
@ -18,7 +19,7 @@ |
|
|
|
|
<view class="uni-flex uni-column"> |
|
|
|
|
<text class="title uni-center">打开相机拍照查询</text> |
|
|
|
|
<view class="flex-item flex-item-V uni-center"> |
|
|
|
|
<image class="photo" @click="chooseImage"></image> |
|
|
|
|
<image class="photo" @click="chooseImage"/> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -89,9 +90,9 @@ |
|
|
|
|
if (json_res["result"].length === 0) { |
|
|
|
|
let str="没有匹配结果" |
|
|
|
|
console.info(str) |
|
|
|
|
uni.showToast({ |
|
|
|
|
title:str, |
|
|
|
|
duration:3000 |
|
|
|
|
uni.showModal({ |
|
|
|
|
content:str, |
|
|
|
|
showCancel:false |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
that.show_info = true |
|
|
|
@ -157,11 +158,8 @@ |
|
|
|
|
that.query_result=json_res["result"] |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
let str = "照片解析失败" |
|
|
|
|
console.info(str) |
|
|
|
|
uni.showModal({ |
|
|
|
|
title:"错误提示", |
|
|
|
|
content:str, |
|
|
|
|
content:json_res["error"], |
|
|
|
|
showCancel:false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|