Commit a7125f4d authored by sujie@126.com's avatar sujie@126.com

dd

parent 23cfc9e8
......@@ -138,7 +138,7 @@ function onlinecoursesverifypwd (data) {
url: apis.customer.websiteindex.onlinecoursesverifypwd,
data,
method: 'POST',
errorresolve: 1,
errorresolve: 2,
})
}
......
......@@ -140,7 +140,8 @@ Page({
source_id: this.data.onlineCourseId,
param: JSON.stringify({
query: `sid=${this.data.sid}&onlineCourseId=${this.data.onlineCourseId}&w=${app.globalData.currentSchoolStudentId}`
})
}),
type:1
});
return {
title: `${this.data.coursesDetail.title}`,
......@@ -337,20 +338,22 @@ Page({
})
}else{
this.setData({
showPassWordTip:true
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '失败',
title: '密码错误',
icon: 'none',
duration: 2000
})
}
}).catch((res)=>{
this.setData({
showPassWordTip:true
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '失败',
title: '密码错误',
icon: 'none',
duration: 2000
})
......
......@@ -197,7 +197,8 @@ Page({
source_id: this.data.onlineCourseId,
param: JSON.stringify({
query: `sid=${this.data.sid}&onlineCourseId=${this.data.onlineCourseId}&pid=${this.data.pid}&w=${app.globalData.currentSchoolStudentId}`
})
}),
type:1
});
return {
title: `${this.data.coursesDetail.title}`,
......@@ -691,20 +692,22 @@ Page({
})
}else{
this.setData({
showPassWordTip:true
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '失败',
title: '密码错误',
icon: 'none',
duration: 2000
})
}
}).catch((res)=>{
this.setData({
showPassWordTip:true
showPassWordTip:true,
passWord: ''
})
wx.showToast({
title: '失败',
title: '密码错误',
icon: 'none',
duration: 2000
})
......@@ -799,7 +802,8 @@ Page({
source_id: onlineCourseId,
param: JSON.stringify({
query: `s=${sid}&o=${onlineCourseId}&p=${pid}&w=${app.globalData.currentSchoolStudentId}`,
})
}),
type:2
});
this.setData({
painting: {
......
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