Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Zhang
8 years ago
Commit
fb5a6b9de069ad68ab90fca7fd720de23ac2582d
1 parent
9a764d53
master
...
develop
feature/1215
feature/baidu_ocpcapi
feature/captcha
feature/coupon-captcha
feature/delete-verify-code
feature/extend-params
feature/group-6.9.17
feature/group-tab-and-limit
feature/groupTab
feature/limit-uuid-coupon
feature/magazine
feature/payment
feature/phoneCoupon
feature/privacy
feature/refactor_alert
feature/seckill-coupon
feature/shoppingPay
feature/tagPrice
hotfix/11
hotfix/autoopenapp
hotfix/captcha
hotfix/change-xianyu-login
hotfix/couponWebSession
hotfix/fix-shop-product-floor
hotfix/hide-xianyu-yas
hotfix/im
hotfix/login
hotfix/magazine-style
hotfix/ocpc
hotfix/show-collage-price
hotfix/sub-domain
hotfix/uid-undifined-error
release/6.9.17
release/6.9.22
release/6.9.23
release/7.0.1
release/7.1.1
userAgentTest
ys
2019-12-5
0913
0906
0711
0517
0515
0503
0502
0426
0423
0417
0416
0413
0411
报错
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
33 deletions
apps/activity/models/share-buy.js
apps/activity/models/share-buy.js
View file @
fb5a6b9
...
...
@@ -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;
// });
// }
/**
* 获取分享码
*/
...
...
Please
register
or
login
to post a comment