Showing
1 changed file
with
1 additions
and
33 deletions
@@ -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, protocol) { | 14 | + shareIndex(activityId, isApp, uid) { |
15 | 15 | ||
16 | return api.all([this._CouponInfo(activityId, uid), this._redeatList(), | 16 | return api.all([this._CouponInfo(activityId, uid), this._redeatList(), |
17 | this._banner()]).then(result => { | 17 | this._banner()]).then(result => { |
@@ -37,18 +37,6 @@ module.exports = class extends global.yoho.BaseModel { | @@ -37,18 +37,6 @@ module.exports = class extends global.yoho.BaseModel { | ||
37 | } else if (val.shareCoupon === '商品券'){ | 37 | } else if (val.shareCoupon === '商品券'){ |
38 | val.couponDescribe = '指定商品可用'; | 38 | val.couponDescribe = '指定商品可用'; |
39 | } | 39 | } |
40 | - | ||
41 | - // val.detailUrl = helpers.urlFormat('/activity/share-buy/detail', { | ||
42 | - // couponId: val.couponId, | ||
43 | - // couponCode: val.couponCode | ||
44 | - // }); | ||
45 | - | ||
46 | - // if (isApp) { | ||
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 + '"}}}'; | ||
51 | - // } | ||
52 | }); | 40 | }); |
53 | 41 | ||
54 | indexData.userCouponBoList = result[0].data.userCouponBoList; | 42 | indexData.userCouponBoList = result[0].data.userCouponBoList; |
@@ -190,26 +178,6 @@ module.exports = class extends global.yoho.BaseModel { | @@ -190,26 +178,6 @@ module.exports = class extends global.yoho.BaseModel { | ||
190 | }); | 178 | }); |
191 | } | 179 | } |
192 | 180 | ||
193 | - /** | ||
194 | - * 判断是不是学生 | ||
195 | - */ | ||
196 | - // checkStudent(uid) { | ||
197 | - // return api.get('', { | ||
198 | - // method: 'app.student.checkIsStudent', | ||
199 | - // uid: uid | ||
200 | - // }).then(result => { | ||
201 | - | ||
202 | - // let isStudent; | ||
203 | - | ||
204 | - // if (result && result.data && result.code === 200) { | ||
205 | - // isStudent = parseInt(result.data.isStudent, 10) === 1 ? true : false; | ||
206 | - // } | ||
207 | - | ||
208 | - // return isStudent; | ||
209 | - | ||
210 | - // }); | ||
211 | - // } | ||
212 | - | ||
213 | /** | 181 | /** |
214 | * 获取分享码 | 182 | * 获取分享码 |
215 | */ | 183 | */ |
-
Please register or login to post a comment