Commit 17d5511d by 胡悦

修改分享

1 parent 094569cc
...@@ -96,6 +96,11 @@ App({ ...@@ -96,6 +96,11 @@ App({
resolve(result) resolve(result)
}) })
} else {
_this.getUserInfo(openId, returnResponse).then(result => {
wx.$storage.set('scene', wx.$trackData)
resolve(result)
})
} }
// ssoApi // ssoApi
// .getUserInfo({ // .getUserInfo({
......
...@@ -249,8 +249,9 @@ Page({ ...@@ -249,8 +249,9 @@ Page({
*/ */
onShareAppMessage() { onShareAppMessage() {
const cardId = wx.$storage.get("scene").cardId const cardId = wx.$storage.get("scene").cardId
const merchant = wx.$storage.get("scene").merchant const merchant = wx.$storage.get("scene").merchant || wx.$storage.get("scene").merchantId
const shareType = 'SHARE_HOME' const shareType = 'SHARE_HOME'
console.log('cardId', cardId, 'merchant', merchant)
return { return {
title: `您好,我向你推荐了广联数科${this.data.cardInfo.staffName}的智能名片~`, title: `您好,我向你推荐了广联数科${this.data.cardInfo.staffName}的智能名片~`,
imageUrl: this.data.shareImg, imageUrl: this.data.shareImg,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!