Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-program
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
陈玉桐
wx-program
Commits
f1a73bf0
Commit
f1a73bf0
authored
Oct 10, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加视力信息校验
parent
36f11009
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
eyesight.wxml
pages/eyesight/eyesight.wxml
+1
-1
index.js
pages/index/index.js
+8
-0
project.config.json
project.config.json
+7
-1
No files found.
pages/eyesight/eyesight.wxml
View file @
f1a73bf0
...
...
@@ -114,7 +114,7 @@
<view id="eyesightPopup" hidden="{{flag}}">
<view id="eyesightPopupCon">
<view id="eyesightPopupTitle">重要提醒</view>
<view id="eyesightPopupDes">
【佩奇】的视力信息包含“弱视、斜视、散光”,训练计划将包含弱视训练,该训练会对一般近视等造成不良影响
,如无此情况,请勿选择!</view>
<view id="eyesightPopupDes">
视力信息包含“弱视、斜视、散光”
,如无此情况,请勿选择!</view>
<button id="eyesightKnow" disabled="{{disabled}}" style="{{disabled?'background:#ccc;':''}}" bindtap='eyesightKnow'>知道了{{second}}</button>
</view>
</view>
...
...
pages/index/index.js
View file @
f1a73bf0
...
...
@@ -436,6 +436,14 @@ Page({
})
return
}
// 没有视力信息跳转初始视力
if
(
res
.
data
.
errno
==
4001
){
wx
.
navigateTo
({
url
:
'/pages/eyesight/eyesight'
})
return
}
if
(
res
.
data
.
errno
==
200
){
// 锁定设备警告状态
...
...
project.config.json
View file @
f1a73bf0
...
...
@@ -11,8 +11,14 @@
"newFeature"
:
true
,
"autoAudits"
:
false
,
"uglifyFileName"
:
true
,
"checkInvalidKey"
:
true
,
"checkSiteMap"
:
false
,
"checkInvalidKey"
:
true
"uploadWithSourceMap"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
}
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.3"
,
...
...
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