Browse Source

首页增加分享.wz

featrue/v4.3
wangzhen 4 years ago
parent
commit
b44e24f738
3 changed files with 16 additions and 3 deletions
  1. 2
      app.js
  2. 2
      pages/agent/detail/index.wxml
  3. 15
      pages/index/index.js

2
app.js

@ -1,7 +1,7 @@
//app.js
App({
//----------------------------------------------globalData--------------------------------------
evn: 1,//0:开发环境,1:测试环境,2:生产环境
evn: 2,//0:开发环境,1:测试环境,2:生产环境
tmplIds: ['SUjEgwDopCv9xkkSZ4KbS0L7XbAiVQor6GmPg14K760'],
agentMsgIds: ['kG8DErWDpyzBHCFaLlSKYMF7xVy8UpgogCwV_WSNt10', 'oLbv-IyJOia2tenh64_Lc8xeAzwgzu3gh1vFJ1Se-ME'],
version: 152,

2
pages/agent/detail/index.wxml

@ -9,7 +9,7 @@
<!-- ------顶部信息------ -->
<!-- -------------------- -->
<header-info orderInfo="{{orderInfo}}" />
<!-- -------------------- -->
<!-- ------特殊信息------ -->
<!-- -------------------- -->

15
pages/index/index.js

@ -302,5 +302,18 @@ Page({
},
onUnload: function(){
event.remove('EventMessage', this)
}
},
onShareAppMessage: function () {
return {
title: '分享纸通宝',
path: '/pages/index/index'
}
},
// 分享至朋友圈
onShareTimeline() {
return {
title: '分享纸通宝',
path: '/pages/index/index'
}
},
})
Loading…
Cancel
Save