市北党建引领小程序初始化
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.
 

34 lines
503 B

import { getDetail } from "../../api/index"
Page({
/**
* 页面的初始数据
*/
data: {
id:"",
detail: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
id: options.id
})
this.getDetail()
},
getDetail () {
const para = {
id: this.data.id
}
getDetail(para).then(res => {
this.setData({
detail: res.data
})
}).catch(err => {
console.log(err)
})
}
})