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
c5952ada
Commit
c5952ada
authored
Oct 16, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新计划替换-
parent
4e32c4d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
app.json
app.json
+1
-1
updatePlan.js
pages/updatePlan/updatePlan.js
+6
-6
updatePlan.wxml
pages/updatePlan/updatePlan.wxml
+1
-1
No files found.
app.json
View file @
c5952ada
{
"pages"
:
[
"pages/updatePlan/updatePlan"
,
"pages/index/index"
,
"pages/eyesight/eyesight"
,
"pages/childInfo/childInfo"
,
"pages/trainReport/trainReport"
,
"pages/setting/setting"
,
"pages/updatePlan/updatePlan"
,
"pages/plan/plan"
,
"pages/message/message"
,
"pages/trainSort/trainSort"
,
...
...
pages/updatePlan/updatePlan.js
View file @
c5952ada
...
...
@@ -7,8 +7,8 @@ Page({
firstTrainType
:
''
,
secondTrainType
:
''
,
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
],
trainArray
:
[
'单词训练'
,
'动态训练'
,
'静态训练'
],
...
...
@@ -273,7 +273,7 @@ Page({
left
:
this
.
data
.
luoeyeArray
[
0
][
e
.
detail
.
value
[
0
]],
right
:
this
.
data
.
luoeyeArray
[
1
][
e
.
detail
.
value
[
1
]]
}
if
(
luoData
.
left
==
'
-'
&&
luoData
.
right
==
'-
'
){
if
(
luoData
.
left
==
'
请选择'
&&
luoData
.
right
==
'请选择
'
){
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
...
...
@@ -284,7 +284,7 @@ Page({
})
return
}
if
(
luoData
.
left
==
'
-'
||
luoData
.
right
==
'-
'
){
if
(
luoData
.
left
==
'
请选择'
||
luoData
.
right
==
'请选择
'
){
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
...
...
@@ -754,7 +754,7 @@ Page({
let
newLeftEye
=
me
.
data
.
luoeyeArray
[
0
][
me
.
data
.
luoeyeIndex
[
0
]]
let
newRightEye
=
me
.
data
.
luoeyeArray
[
1
][
me
.
data
.
luoeyeIndex
[
1
]]
console
.
log
(
newLeftEye
,
newRightEye
)
if
(
newLeftEye
==
'
-'
&&
newRightEye
==
'-
'
){
if
(
newLeftEye
==
'
请选择'
&&
newRightEye
==
'请选择
'
){
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
...
...
@@ -765,7 +765,7 @@ Page({
})
return
}
if
(
newLeftEye
==
'
-'
||
newRightEye
==
'-
'
){
if
(
newLeftEye
==
'
请选择'
||
newRightEye
==
'请选择
'
){
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
...
...
pages/updatePlan/updatePlan.wxml
View file @
c5952ada
...
...
@@ -13,7 +13,7 @@
<view id="sightInfoBom">
<text class="sightInfoLeft">本次裸眼视力</text>
<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>
</view>
<view class="eyesightConRight" wx:else>
...
...
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