Commit 9f20b381 by 李嘉林

接口传参数

parent 15e8b806
...@@ -85,11 +85,12 @@ export default { ...@@ -85,11 +85,12 @@ export default {
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
let shareVal={}; let shareVal={};
let {shopCode} = app.globalData.shopInfo;
if (res.from === "button") { if (res.from === "button") {
console.log(res.target,'-----------78'); console.log(res.target,'-----------78');
return new Promise((resolve,reject)=>{ return new Promise((resolve,reject)=>{
shop.getShopInfo({ shopMixId: "antgood" }).then(res=>{ shop.getShopInfo({ shopMixId: shopCode }).then(res=>{
if(res.data.code ==200){ if(res.data.code ==200){
let {shopName} = res.data.data; let {shopName} = res.data.data;
let logoUrl = app.DFSImg(res.data.data.logoUrl,500,400,0); let logoUrl = app.DFSImg(res.data.data.logoUrl,500,400,0);
......
...@@ -36,7 +36,7 @@ const componentOptions = { ...@@ -36,7 +36,7 @@ const componentOptions = {
miniProgram: 0, miniProgram: 0,
flag: false, flag: false,
productId: "", productId: "",
copyLink: "32132132" copyLink: ""
}, },
// 数据监听器 // 数据监听器
observers: {}, observers: {},
...@@ -72,7 +72,7 @@ const componentOptions = { ...@@ -72,7 +72,7 @@ const componentOptions = {
copyText(e) { copyText(e) {
let { text } = e.currentTarget.dataset; let { text } = e.currentTarget.dataset;
let pagePath = getCurrentPages()[0].route; let pagePath = getCurrentPages()[0].route;
// let copyVal = pagePath + text; let copyVal = pagePath + text;
wx.setClipboardData({ wx.setClipboardData({
data: copyVal, data: copyVal,
success: function(res) { 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