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
36f11009
Commit
36f11009
authored
Oct 09, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
训练计划增加字段
parent
9ef9a745
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
app.json
app.json
+2
-2
updatePlan.js
pages/updatePlan/updatePlan.js
+17
-1
No files found.
app.json
View file @
36f11009
{
{
"pages"
:
[
"pages"
:
[
"pages/plan/plan"
,
"pages/index/index"
,
"pages/index/index"
,
"pages/updatePlan/updatePlan"
,
"pages/plan/plan"
,
"pages/historyDetail/historyDetail"
,
"pages/historyDetail/historyDetail"
,
"pages/user/user"
,
"pages/user/user"
,
"pages/mine/mine"
,
"pages/mine/mine"
,
"pages/idea/idea"
,
"pages/idea/idea"
,
"pages/message/message"
,
"pages/message/message"
,
"pages/updatePlan/updatePlan"
,
"pages/trainReport/trainReport"
,
"pages/trainReport/trainReport"
,
"pages/starSort/starSort"
,
"pages/starSort/starSort"
,
"pages/trainSort/trainSort"
,
"pages/trainSort/trainSort"
,
...
...
pages/updatePlan/updatePlan.js
View file @
36f11009
...
@@ -738,7 +738,21 @@ Page({
...
@@ -738,7 +738,21 @@ Page({
chaptersId
:
chaptersIdSecond
,
//章节
chaptersId
:
chaptersIdSecond
,
//章节
},
},
]
]
console
.
log
(
trainingData
)
console
.
log
(
trainingData
)
let
newLeftEye
=
me
.
data
.
luoeyeArray
[
0
][
me
.
data
.
luoeyeIndex
[
0
]]
let
newRightEye
=
me
.
data
.
luoeyeArray
[
1
][
me
.
data
.
luoeyeIndex
[
1
]]
if
(
newLeftEye
==
'-'
||
newRightEye
==
'-'
){
wx
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
content
:
'请选择裸眼视力'
})
this
.
setData
({
luoeyeIndex
:
[
10
,
10
]
})
return
}
// 请求前加Loading
// 请求前加Loading
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
...
@@ -749,7 +763,9 @@ Page({
...
@@ -749,7 +763,9 @@ Page({
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
token
:
wx
.
getStorageSync
(
'token'
),
token
:
wx
.
getStorageSync
(
'token'
),
trainingData
:
trainingData
trainingData
:
trainingData
,
leftEye
:
newLeftEye
,
rightEye
:
newRightEye
},
},
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 请求成功后关闭Loading
// 请求成功后关闭Loading
...
...
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