|
@ -10,8 +10,15 @@ Page({ |
|
|
*/ |
|
|
*/ |
|
|
data: { |
|
|
data: { |
|
|
content: '', |
|
|
content: '', |
|
|
|
|
|
code: '', |
|
|
|
|
|
name: '' |
|
|
|
|
|
}, |
|
|
|
|
|
onShareAppMessage(res) { |
|
|
|
|
|
return { |
|
|
|
|
|
title: this.data.title, |
|
|
|
|
|
path: `/pages/billboards/park/park-detail/index?code=${this.data.code}&name=${this.data.name}` |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
*/ |
|
|
*/ |
|
@ -21,6 +28,10 @@ Page({ |
|
|
wx.setNavigationBarTitle({ |
|
|
wx.setNavigationBarTitle({ |
|
|
title: name, |
|
|
title: name, |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
code: code, |
|
|
|
|
|
name: name |
|
|
|
|
|
}) |
|
|
this.fetchCategoryIntro(code) |
|
|
this.fetchCategoryIntro(code) |
|
|
}, |
|
|
}, |
|
|
fetchCategoryIntro (code) { |
|
|
fetchCategoryIntro (code) { |
|
|