Commit ac347ac3 by luyt

feat:添加分享人名称

1 parent 1d600d8e
...@@ -152,7 +152,19 @@ Page({ ...@@ -152,7 +152,19 @@ Page({
// if(actNum&&activeNavIdx)return // if(actNum&&activeNavIdx)return
// 设置标题 // 设置标题
this.shareTitle = `给你分享一个${senceData[actNum]?.productList[activeNavIdx].proName}~`; let userInfoObj = wx.$storage.get('userInfo')
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
let name
if (userInfoObj.name) {
name = userInfoObj.name
}else if(userInfoObj.merchantName){
name = userInfoObj.merchantName
}else if(userInfoObj.merchantName){
//全称
name = userInfoObj.merchantName
}
this.shareTitle = `${name}给你分享一个活动${senceData[actNum]?.productList[activeNavIdx].proName},戳我参与~`;
this.getImgInfo(actNum) this.getImgInfo(actNum)
this.setData({ this.setData({
...@@ -205,7 +217,7 @@ Page({ ...@@ -205,7 +217,7 @@ Page({
// let wx_user_info = wx.$storage.get("wx_user_info"); // let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info.appId); // console.log('wx_user_info: ', wx_user_info.appId);
wx.showLoading({ wx.showLoading({
title: "下载中", title: "海报生成中...",
}); });
let params = { let params = {
actNum, actNum,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!