|
@@ -4,7 +4,8 @@ var api = require('../../utils/api.js');
|
|
|
|
|
|
Page({
|
|
Page({
|
|
data: {
|
|
data: {
|
|
- courseInfo: null
|
|
|
|
|
|
+ courseInfo: null,
|
|
|
|
+ is_new: true
|
|
},
|
|
},
|
|
onLoad: function () {
|
|
onLoad: function () {
|
|
let pt_student = wx.getStorageSync('pt_student')
|
|
let pt_student = wx.getStorageSync('pt_student')
|
|
@@ -17,7 +18,8 @@ Page({
|
|
success: res => {
|
|
success: res => {
|
|
if (res.data.status == 'success') {
|
|
if (res.data.status == 'success') {
|
|
this.setData({
|
|
this.setData({
|
|
- courseInfo: res.data.courseInfo
|
|
|
|
|
|
+ courseInfo: res.data.courseInfo,
|
|
|
|
+ is_new: res.data.is_new
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|