...
|
...
|
@@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 首页数据
|
|
|
*/
|
|
|
shareIndex(activityId, isApp, uid, isStudent) {
|
|
|
shareIndex(activityId, isApp, uid, isStudent, protocol) {
|
|
|
|
|
|
return api.all([this._CouponInfo(activityId, uid, isStudent), this._redeatList(),
|
|
|
this._banner()]).then(result => {
|
...
|
...
|
@@ -44,9 +44,9 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
});
|
|
|
|
|
|
if (isApp) {
|
|
|
val.detailUrl = val.detailUrl +
|
|
|
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' + val.detailUrl +
|
|
|
'","params":{"couponId":"' + val.couponId + '","couponCode":"' +
|
|
|
val.detailUrl = protocol + ':' + val.detailUrl +
|
|
|
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + protocol + ':' +
|
|
|
val.detailUrl + '","params":{"couponId":"' + val.couponId + '","couponCode":"' +
|
|
|
val.couponCode + '"}}}';
|
|
|
}
|
|
|
|
...
|
...
|
|