You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
544 B
23 lines
544 B
5 years ago
|
const api = require("../../../../utils/activity")
|
||
|
import util from "../../../../utils/util"
|
||
|
Page({
|
||
|
data: {
|
||
|
noticeObj: {},
|
||
|
noticeObjContent: "", //富文本内容
|
||
|
preloadVisible: true
|
||
|
},
|
||
|
onLoad (options) {
|
||
|
this.getNoticeDetail(options.id)
|
||
|
},
|
||
|
getNoticeDetail (id) {
|
||
|
api.getBannerDetail(id).then(res => {
|
||
|
this.setData({
|
||
|
noticeObj: res.data,
|
||
|
noticeObjContent: util.formatRichText(res.data.content),
|
||
|
preloadVisible: false
|
||
|
})
|
||
|
}).catch(err => {
|
||
|
console.log(err)
|
||
|
})
|
||
|
}
|
||
|
})
|