Commit 0b80a25e authored by 石盼盼's avatar 石盼盼

bug修改

parent d6e4965d
......@@ -22,6 +22,8 @@ Page({
isMoment: true, // 课程瞬间是否能点击
curTime: '', // 当前时间
isrefresh: false
},
/**
......@@ -39,6 +41,17 @@ Page({
})
this.getDetail()
},
onShow() {
this.setData({
isrefresh: this.data.isrefresh? this.data.isrefresh : false
})
if (this.data.isrefresh) {
this.getDetail()
this.setData({
isrefresh: false
})
}
},
getDate() {
let date = util.formatTime(new Date())
let newDate = new Date()
......@@ -115,6 +128,7 @@ Page({
let class_single_id = e.currentTarget.dataset.class_single_id
let course_id = e.currentTarget.dataset.course_id
console.log(course_id)
console.log(class_single_id)
wx.navigateTo({
url: '/pages/index/evaluation/evaluation?child_id=' + child_id + '&class_id=' + class_id + '&class_single_id=' + class_single_id + '&course_id=' + course_id,
})
......
......@@ -21,6 +21,7 @@ Page({
class_single_id: options.class_single_id,
course_id : options.course_id
})
console.log(options)
this.getComment()
},
......@@ -128,11 +129,12 @@ Page({
lesson_id: this.data.class_single_id,
child_id: this.data.child_id,
comment_score: JSON.stringify(obj),
commnet: this.data.value
comment: this.data.value
},
type: 'POST',
callback: (data) => {
base.toast('保存成功')
base.goBack(2)
}
}
base.newRequest(params)
......
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