From 398d744fc82d3075b744947c8c74bdb7daae995c Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 6 Mar 2019 17:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BA=BA=E6=A8=A1=E5=BC=8F=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E9=A1=B5=E9=9D=A2=E5=88=86=E4=BA=AB=E9=87=87=E7=94=A8?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/z-action-sheet.wpy | 2 +- src/pages/game.wpy | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/z-action-sheet.wpy b/src/components/z-action-sheet.wpy index 1f620b7..87ef483 100644 --- a/src/components/z-action-sheet.wpy +++ b/src/components/z-action-sheet.wpy @@ -57,7 +57,7 @@ target="miniProgram" open-type="navigate" app-id="wx815bf59d472c0a63" - path="/pages/product?{{config.params}}}" + path="/pages/product?{{config.params}}" extra-data="" version="develop" >促销开通 diff --git a/src/pages/game.wpy b/src/pages/game.wpy index 9289044..12cda5e 100644 --- a/src/pages/game.wpy +++ b/src/pages/game.wpy @@ -58,10 +58,19 @@ let account = wepy.getStorageSync('account'); let userInfo = this.$parent.getUserInfo(); let shareStr = `${userInfo.nickName || '好友'} 邀请你玩 ${this.name}`; + let shareImg = this.share_image; + let url = `/pages/index?isShare=1&inviter_id=${account.account_id}`; + if (this.roomId) { + url = `/pages/index?isShare=1&inviter_id=${account.account_id}&roomId=${this.roomId}&gid=${this.gid}&togame=1&t=${Date.now()}`; + } else { + let shareObj = this.$getShareCfg(); + shareStr = shareObj.str; + shareImg = shareObj.image + } return { title: shareStr, - path: `/pages/index?isShare=1&inviter_id=${account.account_id}&roomId=${this.roomId}&gid=${this.gid}&togame=1&t=${Date.now()}`, - imageUrl: this.share_image, + path: url, + imageUrl: shareImg, success: function (res) { wepy.getShareInfo({ shareTicket: res.shareTickets[0]