Commit e53352a8 by 程智春

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents 96a6efc2 f373826a
...@@ -95,11 +95,12 @@ export default { ...@@ -95,11 +95,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