Browse Source

添加分享功能

master
lqq 6 years ago
parent
commit
cca100a961
  1. 13
      pages/billboards/park/park-detail/index.js
  2. 7
      pages/billboards/policy/policy-list/index.js
  3. 2
      pages/billboards/policy/policy-list/index.wxss

13
pages/billboards/park/park-detail/index.js

@ -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) {

7
pages/billboards/policy/policy-list/index.js

@ -14,7 +14,12 @@ Page({
curCode: '', curCode: '',
show: false, show: false,
}, },
onShareAppMessage(res) {
return {
title: this.data.title,
path: `/pages/billboards/policy/policy-list/index?index=${this.data.navSelectIndex}`
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */

2
pages/billboards/policy/policy-list/index.wxss

@ -17,6 +17,7 @@
.page_segment { .page_segment {
width: 90vw; width: 90vw;
z-index: 100;
} }
.page_btn_all { .page_btn_all {
@ -51,6 +52,7 @@
} }
.pop_hidden { .pop_hidden {
transform: scaleY(0); transform: scaleY(0);
height: 0;
} }
.pop_view_layout { .pop_view_layout {
z-index: 10; z-index: 10;

Loading…
Cancel
Save