diff --git a/app.js b/app.js index 1b33a91..6e6b87a 100644 --- a/app.js +++ b/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, diff --git a/pages/agent/detail/index.wxml b/pages/agent/detail/index.wxml index 778ff2d..de6998f 100644 --- a/pages/agent/detail/index.wxml +++ b/pages/agent/detail/index.wxml @@ -9,7 +9,7 @@ - + diff --git a/pages/index/index.js b/pages/index/index.js index ab8fb6e..96e095c 100644 --- a/pages/index/index.js +++ b/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' + } + }, }) \ No newline at end of file