Commit c5952ada by 陈玉桐

更新计划替换-

parent 4e32c4d6
{ {
"pages": [ "pages": [
"pages/updatePlan/updatePlan",
"pages/index/index", "pages/index/index",
"pages/eyesight/eyesight", "pages/eyesight/eyesight",
"pages/childInfo/childInfo", "pages/childInfo/childInfo",
"pages/trainReport/trainReport", "pages/trainReport/trainReport",
"pages/setting/setting", "pages/setting/setting",
"pages/updatePlan/updatePlan",
"pages/plan/plan", "pages/plan/plan",
"pages/message/message", "pages/message/message",
"pages/trainSort/trainSort", "pages/trainSort/trainSort",
......
...@@ -7,8 +7,8 @@ Page({ ...@@ -7,8 +7,8 @@ Page({
firstTrainType: '', firstTrainType: '',
secondTrainType: '', secondTrainType: '',
luoeyeArray: [ luoeyeArray: [
['4.0','4.1','4.2','4.3','4.4','4.5','4.6','4.7','4.8','4.9','-','5.0','5.1','5.2','5.3'], ['4.0','4.1','4.2','4.3','4.4','4.5','4.6','4.7','4.8','4.9','请选择','5.0','5.1','5.2','5.3'],
['4.0','4.1','4.2','4.3','4.4','4.5','4.6','4.7','4.8','4.9','-','5.0','5.1','5.2','5.3'] ['4.0','4.1','4.2','4.3','4.4','4.5','4.6','4.7','4.8','4.9','请选择','5.0','5.1','5.2','5.3']
], ],
luoeyeIndex: [10, 10], luoeyeIndex: [10, 10],
trainArray: ['单词训练','动态训练','静态训练'], trainArray: ['单词训练','动态训练','静态训练'],
...@@ -273,7 +273,7 @@ Page({ ...@@ -273,7 +273,7 @@ Page({
left: this.data.luoeyeArray[0][e.detail.value[0]], left: this.data.luoeyeArray[0][e.detail.value[0]],
right: this.data.luoeyeArray[1][e.detail.value[1]] right: this.data.luoeyeArray[1][e.detail.value[1]]
} }
if(luoData.left=='-' && luoData.right=='-'){ if(luoData.left=='请选择' && luoData.right=='请选择'){
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
showCancel: false, showCancel: false,
...@@ -284,7 +284,7 @@ Page({ ...@@ -284,7 +284,7 @@ Page({
}) })
return return
} }
if(luoData.left=='-'||luoData.right=='-'){ if(luoData.left=='请选择'||luoData.right=='请选择'){
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
showCancel: false, showCancel: false,
...@@ -754,7 +754,7 @@ Page({ ...@@ -754,7 +754,7 @@ Page({
let newLeftEye = me.data.luoeyeArray[0][me.data.luoeyeIndex[0]] let newLeftEye = me.data.luoeyeArray[0][me.data.luoeyeIndex[0]]
let newRightEye = me.data.luoeyeArray[1][me.data.luoeyeIndex[1]] let newRightEye = me.data.luoeyeArray[1][me.data.luoeyeIndex[1]]
console.log(newLeftEye,newRightEye) console.log(newLeftEye,newRightEye)
if(newLeftEye=='-' && newRightEye=='-'){ if(newLeftEye=='请选择' && newRightEye=='请选择'){
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
showCancel: false, showCancel: false,
...@@ -765,7 +765,7 @@ Page({ ...@@ -765,7 +765,7 @@ Page({
}) })
return return
} }
if(newLeftEye=='-' || newRightEye=='-'){ if(newLeftEye=='请选择' || newRightEye=='请选择'){
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
showCancel: false, showCancel: false,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view id="sightInfoBom"> <view id="sightInfoBom">
<text class="sightInfoLeft">本次裸眼视力</text> <text class="sightInfoLeft">本次裸眼视力</text>
<picker mode="multiSelector" class="selectorPicker" bindchange="luoeyeChange" value="{{luoeyeIndex}}" range="{{luoeyeArray}}"> <picker mode="multiSelector" class="selectorPicker" bindchange="luoeyeChange" value="{{luoeyeIndex}}" range="{{luoeyeArray}}">
<view class="eyesightConRight" wx:if="{{ luoeyeArray[0][luoeyeIndex[0]]=='-'||luoeyeArray[1][luoeyeIndex[1]]=='-' }}"> <view class="eyesightConRight" wx:if="{{ luoeyeArray[0][luoeyeIndex[0]]=='请选择'||luoeyeArray[1][luoeyeIndex[1]]=='请选择' }}">
<text>请选择</text> <text>请选择</text>
</view> </view>
<view class="eyesightConRight" wx:else> <view class="eyesightConRight" wx:else>
......
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