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