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
604 B
23 lines
604 B
4 years ago
|
const api = require("../../utils/api")
|
||
|
import util from "../../../../utils/util"
|
||
|
Page({
|
||
|
data: {
|
||
|
noticeObj: '',
|
||
|
noticeObjContent: ''
|
||
|
},
|
||
|
onLoad: function (options) {
|
||
|
if (options.id) {
|
||
|
this.getVolunteerUnionDetail(options.id)
|
||
|
}
|
||
|
},
|
||
|
getVolunteerUnionDetail (id) {
|
||
|
api.getVolunteerUnionDetail({ id }).then(res => {
|
||
|
this.setData({
|
||
|
noticeObj: res.data,
|
||
|
noticeObjContent: util.formatRichText(res.data.content)
|
||
|
})
|
||
|
}).catch(err => {
|
||
|
console.log(err)
|
||
|
})
|
||
|
}
|
||
|
})
|