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
Plain Diff
Browse Files
Authored by
郭成尧
2017-04-13 09:58:31 +0800
Commit
a121330a28478202ec8cc8c7ac024d0b40fd4d76
2 parents
a4bd5cdd
86ddd286
Merge branch 'master' into feature/bundleToCart
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
22 deletions
apps/activity/controllers/student.js
apps/activity/views/action/detail.hbs
apps/activity/views/action/register.hbs
package.json
public/scss/activity/_aslider.css
apps/activity/controllers/student.js
View file @
a121330
...
...
@@ -509,7 +509,13 @@ exports.detail = (req, res) => {
isQuanYi
:
true
};
}
options
.
isApp
=
req
.
__USER__
.
isApp
;
if
(
req
.
yoho
.
isApp
||
req
.
yoho
.
isWechat
)
{
options
.
isShowHeader
=
false
;
}
else
{
options
.
isShowHeader
=
true
;
}
res
.
render
(
'detail'
,
options
);
};
...
...
apps/activity/views/action/detail.hbs
View file @
a121330
{{#
unless
isApp
}}
{{#
if
isShowHeader
}}
<header
class=
"yoho-header"
>
<a
href=
"javascript:history.go(-1);"
class=
"iconfont nav-back close"
>
</a>
<p
class=
"nav-title"
>
{{
title
}}
</p>
</header>
{{/
unless
}}
{{/
if
}}
{{#
isQuanYi
}}
<div
class=
"mobile-container"
>
<div
class=
"mobile-wrap yoho-page student"
>
<section
class=
's-text'
>
<h6>
权益1:新品立享9折
</h6>
<p>
1、学生购买指定原价新品时,可立即享受9折优惠,与VIP折扣不可同时享受。
</p>
<h6>
权益2:每1元返1个有货币
</h6>
<p>
1、学生购买指定商品时,以商品的实际成交金额计算,每1元返1个有货币;
</p>
<p>
2、返有货币时间:确认收货7日后,系统将自动将对应数量的有货币返至购买账户;
</p>
<h6><b>
权益一:
</b>
认证立赠100有货币
</h6>
<p>
认证成功,立即赠送100有货币。
</p>
<h6><b>
权益二:
</b>
新品立享9折
</h6>
<p>
学生购买指定原价新品时,可立即享受9折优惠,此折扣与VIP折扣不可同时享受。
</p>
<h6><b>
权益三:
</b>
每1元返1个有货币
</h6>
<p>
1、学生购买指定商品时,每1元返1个有货币(以商品的实际成交金额计算);
</p>
<p>
2、有货币返还时间:确认收货7日后,系统自动将对应数量的有货币返还至购买账户;
</p>
<p>
3、有货币有效期:获得当日至次年12月31日,逾期自动作废;
</p>
<p>
4、查看有货币:登录后,点击“个人中心”在“我的有货币”中可以查看有货币余额及明细。
</p>
<h6>
权益3:免单抽奖
</h6>
<p>
1、每月将在累计购物金额最高的学校中,抽取3名幸运学生用户,获得免单资格;
</p>
<p>
2、免单用户名单将在每月第1个工作日公布在有货微信公众号上,可关注【有货YOHOBUY】;
</p>
<p>
3、免单用户将在中奖次日获得与实付金额等额的现金券,使用时间:中奖当月。
</p>
<h6>
权益4:学生专享活动
</h6>
<p>
1、每月不定期的开展学生专享活动,可打开有货APP推送,及时查收学生专享活动通知。
</p>
<h6><b>
权益四:
</b>
分期付款
</h6>
<p>
开通有货分期后,可享受部分商品30天延后付款,最长6个月的分期付款,开启任性购物模式。
</p>
<h6></h6>
</section>
</div>
...
...
@@ -30,10 +28,26 @@
<div
class=
"mobile-container"
>
<div
class=
"mobile-wrap yoho-page student"
>
<section
class=
's-text'
>
<h6>
认证协议
</h6>
<p>
1、全日制大学及硕士博士研究生
</p>
<p>
2、学校在可选范围内,有部分学校可能暂未收录,后期会尽快添加
</p>
<p>
3、每个学号只能认证一个有货账户
</p>
<h6>
认证资格说明
</h6>
<p>
1、全日制大学本科、研究生、博士;
</p>
<p>
2、学校在可选范围之内,可能有部分学校暂未被收录,后期会尽快添加;
</p>
<p>
3、每个学号只能认证一个有货账户;
</p>
</section>
<section
class=
's-text'
>
<h6>
特权详细说明
</h6>
<p><b>
权益一:
</b>
认证立赠100有货币
</p>
<p>
认证成功,立即赠送100有货币。
</p><br>
<p><b>
权益二:
</b>
新品立享9折
</p>
<p>
学生购买指定原价新品时,可立即享受9折优惠,此折扣与VIP折扣不可同时享受。
</p><br>
<p><b>
权益三:
</b>
每1元返1个有货币
</p>
<p>
1、学生购买指定商品时,每1元返1个有货币(以商品的实际成交金额计算);
</p>
<p>
2、有货币返还时间:确认收货7日后,系统自动将对应数量的有货币返还至购买账户;
</p>
<p>
3、有货币有效期:获得当日至次年12月31日,逾期自动作废;
</p>
<p>
4、查看有货币:登录后,点击“个人中心”在“我的有货币”中可以查看有货币余额及明细。
</p><br>
<p><b>
权益四:
</b>
分期付款
</p>
<p>
开通有货分期后,可享受部分商品30天延后付款,最长6个月的分期付款,开启任性购物模式。
</p>
<h6></h6>
</section>
</div>
</div>
...
...
apps/activity/views/action/register.hbs
View file @
a121330
...
...
@@ -37,7 +37,7 @@
<input
type=
"checkbox"
id=
"checkbox"
class=
"regular-checkbox"
style=
"visibility: hidden;"
>
<label
class=
"checkbox icon-s-checked iconfont"
for=
"checkbox"
>
</label>
同意
<a
class=
"s-blue"
href=
'//m.yohobuy.com/activity/student/detail/renzhen
?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"
{{
http
}}
//m.yohobuy.com/activity/student/detail/renzhen"}}
'
>
Yoho!Buy有货学生认证协议
</a>
同意
<a
class=
"s-blue"
href=
'//m.yohobuy.com/activity/student/detail/renzhen'
>
Yoho!Buy有货学生认证协议
</a>
</section>
<a
class=
"s-submit"
href=
"javascript:void(0);"
>
立即认证
</a>
</div>
...
...
package.json
View file @
a121330
{
"name"
:
"m-yohobuy-node"
,
"version"
:
"5.5.2
0
"
,
"version"
:
"5.5.2
1
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/scss/activity/_aslider.css
View file @
a121330
...
...
@@ -594,9 +594,13 @@
h6
{
font-size
:
34px
;
margin-top
:
6
0px
;
margin-top
:
4
0px
;
margin-bottom
:
30px
;
}
b
{
font-weight
:
700
;
}
}
}
...
...
@@ -622,7 +626,7 @@
.s-dialog-content
{
max-height
:
460px
;
max-width
:
540px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
text-align
:
left
;
color
:
#444
;
font-family
:
'PingFangSC-Regular'
,
'helvetica'
,
'Arial'
,
'黑体'
;
...
...
Please
register
or
login
to post a comment