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.
30 lines
699 B
30 lines
699 B
const app = getApp();
|
|
Page({
|
|
data: {
|
|
imageUrl: getApp().globalData.imageUrl,
|
|
id: ''
|
|
},
|
|
onLoad() {
|
|
wx.setNavigationBarTitle({
|
|
title: '详情'
|
|
})
|
|
let pages = getCurrentPages();
|
|
let currentPage = pages[pages.length-1]
|
|
let options = currentPage.options
|
|
this.setData({
|
|
id: options.id
|
|
})
|
|
},
|
|
onShow() {
|
|
this.getData()
|
|
},
|
|
getData() {
|
|
app.globalData.request({
|
|
action: 'getSwsQyQuartz',
|
|
id: this.data.id,
|
|
token: wx.getStorageSync('token') || 't%2BrswgjvzGM='
|
|
}).then(res => {
|
|
console.log(res)
|
|
})
|
|
}
|
|
}) |