...
|
...
|
@@ -156,12 +156,6 @@ Page(Object.assign({ |
|
|
});
|
|
|
|
|
|
yas = new Yas(app); // 实例化埋点
|
|
|
// 必须这样做
|
|
|
let route = 'pages/product/detail/detail';
|
|
|
|
|
|
yas.pageOpenReport(null, {
|
|
|
PAGE_PATH: query.unionType ? `${route}?union_type=${query.unionType}` : route
|
|
|
});
|
|
|
|
|
|
this.initActionSheet();
|
|
|
|
...
|
...
|
@@ -194,8 +188,8 @@ Page(Object.assign({ |
|
|
let originUid = parseInt(json.originUid ? json.originUid : '0', 10);
|
|
|
let originUnionID = json.originUnionID ? json.originUnionID : '';
|
|
|
|
|
|
if (json.unionType) {
|
|
|
app.updateUnionType(json.unionType);
|
|
|
if (json.union_type) {
|
|
|
app.updateUnionType(json.union_type);
|
|
|
}
|
|
|
|
|
|
this.setData({
|
...
|
...
|
@@ -260,7 +254,7 @@ Page(Object.assign({ |
|
|
return {
|
|
|
title: params.TITLE, // 分享标题
|
|
|
desc: params.DESC, // 分享描述
|
|
|
path: `/pages/product/detail/detail?limitProductCode=${this.data.limitProductCode}&originUid=${app.getUid()}&originUnionID=${app.getUnionID()}&unionType=${app.getUserUnionType()}`,
|
|
|
path: `/pages/product/detail/detail?limitProductCode=${this.data.limitProductCode}&originUid=${app.getUid()}&originUnionID=${app.getUnionID()}&union_type=${app.getUserUnionType()}`,
|
|
|
imageUrl: this.data.snapData.default_image,
|
|
|
success: function() {},
|
|
|
fail: function() {}
|
...
|
...
|
@@ -364,7 +358,7 @@ Page(Object.assign({ |
|
|
originUid: app.getUid(),
|
|
|
limitProductCode: this.data.limitProductCode,
|
|
|
originUnionID: app.getUnionID(),
|
|
|
unionType: app.getUserUnionType()
|
|
|
union_type: app.getUserUnionType()
|
|
|
};
|
|
|
|
|
|
let product_qrCode = config.domains.api + `/wechat/miniapp/img-check.jpg?param=${JSON.stringify(params)}&miniapp_type=4&miniQrType=11`; // eslint-disable-line
|
...
|
...
|
|