Commit f1a73bf0 by 陈玉桐

增加视力信息校验

parent 36f11009
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<view id="eyesightPopup" hidden="{{flag}}"> <view id="eyesightPopup" hidden="{{flag}}">
<view id="eyesightPopupCon"> <view id="eyesightPopupCon">
<view id="eyesightPopupTitle">重要提醒</view> <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> <button id="eyesightKnow" disabled="{{disabled}}" style="{{disabled?'background:#ccc;':''}}" bindtap='eyesightKnow'>知道了{{second}}</button>
</view> </view>
</view> </view>
......
...@@ -437,6 +437,14 @@ Page({ ...@@ -437,6 +437,14 @@ Page({
return return
} }
// 没有视力信息跳转初始视力
if(res.data.errno==4001){
wx.navigateTo({
url: '/pages/eyesight/eyesight'
})
return
}
if(res.data.errno==200){ if(res.data.errno==200){
// 锁定设备警告状态 // 锁定设备警告状态
// 1:正常使用设备; // 1:正常使用设备;
......
...@@ -11,8 +11,14 @@ ...@@ -11,8 +11,14 @@
"newFeature": true, "newFeature": true,
"autoAudits": false, "autoAudits": false,
"uglifyFileName": true, "uglifyFileName": true,
"checkInvalidKey": true,
"checkSiteMap": false, "checkSiteMap": false,
"checkInvalidKey": true "uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.3", "libVersion": "2.8.3",
......
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