From b44e24f73870a20d9fada5fae57f5dc8414793ab Mon Sep 17 00:00:00 2001 From: wangzhen <37717239@qq.com> Date: Tue, 27 Apr 2021 15:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E4=BA=AB.wz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/agent/detail/index.wxml | 2 +- pages/index/index.js | 15 ++++++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) 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