|
@@ -16,32 +16,29 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
- wx.setNavigationBarTitle({
|
|
|
- title: "通告详情"
|
|
|
- })
|
|
|
-
|
|
|
- console.log(options)
|
|
|
- const item = JSON.parse(options.item);
|
|
|
- this.setData({
|
|
|
- detailsData: item
|
|
|
- })
|
|
|
+ /* 详情 */
|
|
|
_Http.basic({
|
|
|
"classname": "saletool.notice.notice",
|
|
|
- "method": "queryReadRecord",
|
|
|
+ "method": "queryNoticeMain",
|
|
|
"content": {
|
|
|
- "sat_noticeid": item.sat_noticeid
|
|
|
+ "sat_noticeid": options.id
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- console.log(res)
|
|
|
+ console.log('详情', res)
|
|
|
+ this.setData({
|
|
|
+ detailsData: res.data[0]
|
|
|
+ })
|
|
|
})
|
|
|
- /* 详情计数 */
|
|
|
_Http.basic({
|
|
|
"classname": "saletool.notice.notice",
|
|
|
- "method": "queryNoticeMain",
|
|
|
+ "method": "queryReadRecord",
|
|
|
"content": {
|
|
|
- "sat_noticeid": item.sat_noticeid
|
|
|
+ "sat_noticeid": options.id
|
|
|
}
|
|
|
+ }).then(res => {
|
|
|
+ console.log("评分", res)
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
/* 评分 */
|
|
|
rateChange({
|