...
|
...
|
@@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 首页数据
|
|
|
*/
|
|
|
shareIndex(activityId, isApp, uid, protocol) {
|
|
|
shareIndex(activityId, isApp, uid) {
|
|
|
|
|
|
return api.all([this._CouponInfo(activityId, uid), this._redeatList(),
|
|
|
this._banner()]).then(result => {
|
...
|
...
|
@@ -37,18 +37,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
} else if (val.shareCoupon === '商品券'){
|
|
|
val.couponDescribe = '指定商品可用';
|
|
|
}
|
|
|
|
|
|
// val.detailUrl = helpers.urlFormat('/activity/share-buy/detail', {
|
|
|
// couponId: val.couponId,
|
|
|
// couponCode: val.couponCode
|
|
|
// });
|
|
|
|
|
|
// if (isApp) {
|
|
|
// val.detailUrl = protocol + val.detailUrl +
|
|
|
// '&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + protocol +
|
|
|
// val.detailUrl + '","params":{"couponId":"' + val.couponId + '","couponCode":"' +
|
|
|
// val.couponCode + '"}}}';
|
|
|
// }
|
|
|
});
|
|
|
|
|
|
indexData.userCouponBoList = result[0].data.userCouponBoList;
|
...
|
...
|
@@ -190,26 +178,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 判断是不是学生
|
|
|
*/
|
|
|
// checkStudent(uid) {
|
|
|
// return api.get('', {
|
|
|
// method: 'app.student.checkIsStudent',
|
|
|
// uid: uid
|
|
|
// }).then(result => {
|
|
|
|
|
|
// let isStudent;
|
|
|
|
|
|
// if (result && result.data && result.code === 200) {
|
|
|
// isStudent = parseInt(result.data.isStudent, 10) === 1 ? true : false;
|
|
|
// }
|
|
|
|
|
|
// return isStudent;
|
|
|
|
|
|
// });
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
* 获取分享码
|
|
|
*/
|
...
|
...
|
|