Authored by 张文文

修改拼团分享小程序路径和快照码

... ... @@ -5,7 +5,7 @@
// miniQrType=7 商品详情 √
// miniQrType=9 h5 √
// miniQrType=15 拼团列表 √
// miniQrType=18 逛
// miniQrType=18 逛
// miniQrType=15
... ... @@ -19,8 +19,8 @@ const shareGroupPurchaseList = (shareInfo) => {
let param = {
activityId,
}
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=15';
let miniProgramPath = `/pages/groupPurchase/groupPurchase?activityId=${activityId}`;
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=24' + '&miniapp_type=60';
let miniProgramPath = `/pages/group/list?activityId=${activityId}`;
let fromPage = 'GroupPurchase';
let businessId = 'collage';
... ... @@ -48,13 +48,13 @@ const shareGroupPurchaseDetail = (shareInfo) => {
union_type
} = shareInfo;
let miniProgramPath = `pages/groupPurchase/groupPurchaseDetail?productSkn=${productSkn}&activityId=${activityId}&union_type=${union_type}`
let miniProgramPath = `pages/group/detail?productSkn=${productSkn}&activityId=${activityId}&union_type=${union_type}`
let param = {
productSkn,
activityId,
union_type
};
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=17';
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=24' + '&miniapp_type=60';
let shareParam = {
title: productInfo.productName ? productInfo.productName : '',
... ... @@ -162,9 +162,9 @@ const shareH5 = (shareInfo) => {
return shareParam;
}
export {
shareGroupPurchaseList,
shareGroupPurchaseDetail,
export {
shareGroupPurchaseList,
shareGroupPurchaseDetail,
shareGoodsDetail,
shareStrollDetail,
shareH5,
... ...
... ... @@ -118,7 +118,7 @@ class GroupPurchaseContainer extends Component {
if (!resource) {
return;
}
let miniProgramPath = '/pages/groupPurchase/groupPurchase?activityId=' + activityId;
let miniProgramPath = '/pages/group/list?activityId=' + activityId;
let fromPage = 'GroupPurchase';
let bigImage = shareCodeInfo.get('bigImage');
let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
... ... @@ -164,7 +164,7 @@ class GroupPurchaseContainer extends Component {
activityId,
}
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=15';
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=24' + '&miniapp_type=60';
return (
<View style={styles.container}>
... ...
... ... @@ -164,7 +164,7 @@ class GroupPurchaseDetailContainer extends Component {
return;
}
let productIcon = resource.productIcon ? getSlicedUrl(resource.productIcon,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : '';
let miniProgramPath = '/pages/groupPurchase/groupPurchaseResult?activity_id=' + activityId + '&group_no=' + groupNo;
let miniProgramPath = '/pages/group/result?activity_id=' + activityId + '&group_no=' + groupNo;
unionType && (miniProgramPath += '&unionType=' + unionType);
let productGroupPrice = resource.productGroupPrice;
let productName = resource.productName;
... ... @@ -214,7 +214,7 @@ class GroupPurchaseDetailContainer extends Component {
group_no: groupNo,
}
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=4';
let qrCode = host + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=26' + '&miniapp_type=60';
return (
<View style={styles.container}>
... ...