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.
31 lines
513 B
31 lines
513 B
const api = require("../../../../utils/api")
|
|
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
suggestId: '',
|
|
suggestDetail: {}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
this.setData({
|
|
suggestId: options.id
|
|
})
|
|
this.getSuggestDetail()
|
|
},
|
|
|
|
getSuggestDetail () {
|
|
api.suggestDetail(this.data.suggestId).then(res => {
|
|
// console.log(res.data)
|
|
this.setData({
|
|
suggestDetail: res.data
|
|
})
|
|
})
|
|
},
|
|
})
|