Commit 9f20b381 by 李嘉林

接口传参数

parent 15e8b806
......@@ -85,11 +85,12 @@ export default {
},
onShareAppMessage(res) {
let shareVal={};
let {shopCode} = app.globalData.shopInfo;
if (res.from === "button") {
console.log(res.target,'-----------78');
return new Promise((resolve,reject)=>{
shop.getShopInfo({ shopMixId: "antgood" }).then(res=>{
shop.getShopInfo({ shopMixId: shopCode }).then(res=>{
if(res.data.code ==200){
let {shopName} = res.data.data;
let logoUrl = app.DFSImg(res.data.data.logoUrl,500,400,0);
......
......@@ -36,7 +36,7 @@ const componentOptions = {
miniProgram: 0,
flag: false,
productId: "",
copyLink: "32132132"
copyLink: ""
},
// 数据监听器
observers: {},
......@@ -72,7 +72,7 @@ const componentOptions = {
copyText(e) {
let { text } = e.currentTarget.dataset;
let pagePath = getCurrentPages()[0].route;
// let copyVal = pagePath + text;
let copyVal = pagePath + text;
wx.setClipboardData({
data: copyVal,
success: function(res) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment