|
@@ -67,10 +67,13 @@ Page({
|
|
sessionKey
|
|
sessionKey
|
|
},
|
|
},
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
|
+
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
this.setData({
|
|
this.setData({
|
|
classInfo: res.data.data
|
|
classInfo: res.data.data
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+
|
|
this.isAgree(sessionKey);
|
|
this.isAgree(sessionKey);
|
|
this.getMynotice(sessionKey);
|
|
this.getMynotice(sessionKey);
|
|
this.getMycourse(sessionKey);
|
|
this.getMycourse(sessionKey);
|
|
@@ -109,6 +112,7 @@ Page({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
// 协议是否已同意
|
|
// 协议是否已同意
|
|
isAgree(sessionKey) {
|
|
isAgree(sessionKey) {
|
|
wx.request({
|
|
wx.request({
|
|
@@ -939,7 +943,7 @@ Page({
|
|
that.setData({
|
|
that.setData({
|
|
myCanvasId: that.data.myCanvasId + 1
|
|
myCanvasId: that.data.myCanvasId + 1
|
|
})
|
|
})
|
|
- let str = that.data.studentName + " 同志于" + that.data.classInfo.beginDate + "至" + that.data.classInfo.endDate + "参加" + that.data.classInfo.clasName + ",完成规定培训内容,准予结业,特发此证。"
|
|
|
|
|
|
+ let str = that.data.studentName + " 同志于" + app.dateFilter(that.data.classInfo.beginDate) + "-" + app.dateFilter(that.data.classInfo.endDate) + "参加" + that.data.classInfo.clasName + ",完成规定培训内容,准予结业,特发此证。"
|
|
//汉字占两格,英文数字占一格
|
|
//汉字占两格,英文数字占一格
|
|
let re = /^[\u4e00-\u9fa5]$/;
|
|
let re = /^[\u4e00-\u9fa5]$/;
|
|
let stra = str.split("");
|
|
let stra = str.split("");
|