Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
X
xinya_mini
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xwq
xinya_mini
Commits
2c6ae65d
Commit
2c6ae65d
authored
Jun 29, 2021
by
xwq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结果显示之后显示确认
parent
24168450
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
displayAnswers.js
pages/displayAnswers/displayAnswers.js
+3
-2
displayAnswers.wxml
pages/displayAnswers/displayAnswers.wxml
+1
-1
photo.js
pages/photo/photo.js
+2
-0
No files found.
pages/displayAnswers/displayAnswers.js
View file @
2c6ae65d
...
@@ -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
)
=>
{
...
...
pages/displayAnswers/displayAnswers.wxml
View file @
2c6ae65d
...
@@ -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>
...
...
pages/photo/photo.js
View file @
2c6ae65d
...
@@ -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
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment