Commit 36f11009 by 陈玉桐

训练计划增加字段

parent 9ef9a745
{
"pages": [
"pages/plan/plan",
"pages/index/index",
"pages/updatePlan/updatePlan",
"pages/plan/plan",
"pages/historyDetail/historyDetail",
"pages/user/user",
"pages/mine/mine",
"pages/idea/idea",
"pages/message/message",
"pages/updatePlan/updatePlan",
"pages/trainReport/trainReport",
"pages/starSort/starSort",
"pages/trainSort/trainSort",
......
......@@ -738,7 +738,21 @@ Page({
chaptersId: chaptersIdSecond,//章节
},
]
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
wx.showLoading({
title: '加载中',
......@@ -749,7 +763,9 @@ Page({
method: 'POST',
data: {
token: wx.getStorageSync('token'),
trainingData: trainingData
trainingData: trainingData,
leftEye: newLeftEye,
rightEye: newRightEye
},
success: function (res) {
// 请求成功后关闭Loading
......
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