Commit 2c6ae65d authored by xwq's avatar xwq

结果显示之后显示确认

parent 24168450
...@@ -9,7 +9,7 @@ Page({ ...@@ -9,7 +9,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showButton:false
}, },
getImageInfopromised(src) { getImageInfopromised(src) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -181,7 +181,8 @@ Page({ ...@@ -181,7 +181,8 @@ Page({
this.setData({ this.setData({
corrects, corrects,
errors: ret.Response.TextDetections.length - corrects, errors: ret.Response.TextDetections.length - corrects,
imgResults:ret.Response imgResults:ret.Response,
showButton:true
}); });
// console.warn("Res sys", radio); // console.warn("Res sys", radio);
ret.Response.TextDetections.forEach((t, index) => { ret.Response.TextDetections.forEach((t, index) => {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{{corrects}}题正确,<text style="color: red">{{errors}}</text>题存疑 {{corrects}}题正确,<text style="color: red">{{errors}}</text>题存疑
</view> </view>
</block> </block>
<view style="display: flex; justify-content: center; margin: 10px 0"> <view style="display: flex; justify-content: center; margin: 10px 0" wx:if="{{showButton}}">
<view style="padding: 4px 34px;border: 1px solid #FFB12C;border-radius: 21px; display: flex; align-items: center;color:#FFB12C" bindtap="reTake">重拍</view> <view style="padding: 4px 34px;border: 1px solid #FFB12C;border-radius: 21px; display: flex; align-items: center;color:#FFB12C" bindtap="reTake">重拍</view>
<view style="padding: 4px 34px; background: #FFB12C;border-radius: 21px; margin-left: 20px; display: flex; align-items: center; color: white" bindtap="confirm">确定</view> <view style="padding: 4px 34px; background: #FFB12C;border-radius: 21px; margin-left: 20px; display: flex; align-items: center; color: white" bindtap="confirm">确定</view>
</view> </view>
......
...@@ -36,6 +36,7 @@ Page({ ...@@ -36,6 +36,7 @@ Page({
// } // }
}, },
fail: err => { fail: err => {
log.error("获取信息失败",err)
wx.showToast({ wx.showToast({
title: '获取信息失败', title: '获取信息失败',
icon: 'none', icon: 'none',
...@@ -93,6 +94,7 @@ Page({ ...@@ -93,6 +94,7 @@ Page({
}, },
fail: err => { fail: err => {
log.error("获取信息失败",err)
wx.showToast({ wx.showToast({
title: '获取信息失败', title: '获取信息失败',
icon: 'none', icon: 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment