...
|
...
|
@@ -47,7 +47,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
|
|
|
if (isApp) {
|
|
|
val.detailUrl = val.detailUrl +
|
|
|
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http://m.yohobuy.com/activity/share-buy/detail","params":{"counum":"' +
|
|
|
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http://m.yohobuy.com/activity/share-buy/detail","params":{"counum":"' +
|
|
|
val.couponValue + '","couponType":"' + val.shareCouponType + '","detailDes":"' +
|
|
|
val.detailDes + '","couponId":"' + val.couponId + '"}}}';
|
|
|
}
|
...
|
...
|
@@ -68,7 +68,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' + rebeatUrl + '"}}' : rebeatUrl;
|
|
|
|
|
|
indexData.strategyUrl = isApp ? strategyUrl +
|
|
|
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + strategyUrl + '"}}' : strategyUrl;
|
|
|
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + strategyUrl + '"}}' : strategyUrl;
|
|
|
|
|
|
return indexData;
|
|
|
});
|
...
|
...
|
@@ -117,19 +117,22 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}, {
|
|
|
code: 200
|
|
|
}).then((result) => {
|
|
|
let moreUrl;
|
|
|
|
|
|
if (result && result.code === 200 && result.data) {
|
|
|
result.data = _.assign(result.data, param);
|
|
|
|
|
|
result.data.moreUrl = helpers.urlFormat('', {
|
|
|
moreUrl = helpers.urlFormat('', {
|
|
|
coupon_code: result.data.couponCode,
|
|
|
coupon_id: param.couponId,
|
|
|
title: '优惠活动商品'
|
|
|
}, 'list');
|
|
|
|
|
|
result.data = _.assign(result.data, {
|
|
|
isApp: isApp ? true : false
|
|
|
});
|
|
|
result.data.moreUrl = isApp ? moreUrl +
|
|
|
'&openbuy:yohobuy={"action":"go.list","params":{"coupon_code":"' + result.data.couponCode +
|
|
|
'","coupon_id":"' + param.couponId + '","title":"优惠活动商品","actiontype":"1"}}' : moreUrl;
|
|
|
|
|
|
result.data.isApp = isApp ? true : false;
|
|
|
|
|
|
result.data.finish = parseInt(result.data.expiredTime, 10) > 0 ? false : true;
|
|
|
|
...
|
...
|
@@ -168,7 +171,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
});
|
|
|
|
|
|
result.data.currencyUrl = isApp ? currencyUrl +
|
|
|
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' +
|
|
|
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' +
|
|
|
currencyUrl + '"}}' : currencyUrl;
|
|
|
|
|
|
result.data.shareUrl = isApp ? shareUrl +
|
...
|
...
|
|