Authored by 郭成尧

Merge branch 'hotfix/studentPriceAdd' into gray

... ... @@ -94,7 +94,7 @@
{{/activities}}
<section class='s-section clearfix'>
<h1>学生专享商品<a class="more iconfont" href="//search.m.yohobuy.com/?students=1&title=学生专享商品&uid={{uid}}{{#isApp}}&app_version={{@root.app_version}}{{/isApp}}?openby:yohobuy={'action':'go.h5','params':{'islogin':'N','url':'{{@root.http}}//search.m.yohobuy.com/','param':{'students':'1','title':'学生专享商品','uid':'{{uid}}'}}}">&#xe618;</a></h1>
<h1>学生专享商品<a class="more iconfont" href='//search.m.yohobuy.com/?students=1&title=学生专享商品&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"{{@root.http}}//search.m.yohobuy.com/","param":{"students":"1","title":"学生专享商品"}}}'>&#xe618;</a></h1>
<div class='goods-list clearfix'>
{{#each goods}}
<div class="good-info">
... ... @@ -139,7 +139,7 @@
</div>
{{/each}}
</div>
<a class='s-more' href="//search.m.yohobuy.com/?students=1&title=学生专享商品&uid={{uid}}{{#isApp}}&app_version={{@root.app_version}}{{/isApp}}?openby:yohobuy={'action':'go.h5','params':{'islogin':'N','url':'{{@root.http}}//search.m.yohobuy.com/','param':{'students':'1','title':'学生专享商品','uid':'{{uid}}'}}}">查看更多</a>
<a class='s-more' href='//search.m.yohobuy.com/?students=1&title=学生专享商品&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"{{@root.http}}//search.m.yohobuy.com/","param":{"students":"1","title":"学生专享商品"}}}'>查看更多</a>
</section>
{{#loginUrl}}
... ...
... ... @@ -158,6 +158,10 @@ const _searchGoods = (params) => {
params.app_type = 1;
}
if (params.students) {
method = 'app.student.discount';
}
return api.get('', _.assign({
method: method
}, params), {
... ...
... ... @@ -85,3 +85,7 @@
{{#if yhChannel}}
<input class="query-param" type="hidden" data-attr="yhChannel" value="{{yhChannel}}">
{{/if}}
{{#if students}}
<input class="query-param" type="hidden" data-attr="students" value="{{students}}">
{{/if}}
\ No newline at end of file
... ...
... ... @@ -37,7 +37,7 @@ var $input = $('#search-input input'),
$buriedpoint = $('.buriedpoint'),
$search = $('#search');
var shopId, sort, brand, outlets, app_type, age_level, msort, misort, coin, app_version;
var shopId, sort, brand, outlets, app_type, age_level, msort, misort, coin, app_version, students;
var size, color, style, standard, gender, price, p_d, query, limited, specialoffer, specialsale_id, promotion;
... ... @@ -245,6 +245,7 @@ limited = getQueryString('limited');
specialoffer = getQueryString('specialoffer');
specialsale_id = getQueryString('specialsale_id');
promotion = getQueryString('promotion');
students = getQueryString('students');
if ($fsgc.children().length > 0) {
var fsgcgoods = [],
... ... @@ -505,6 +506,10 @@ function search(opt) {
params.promotion = promotion;
}
if (students) {
params.students = students;
}
if (firstScreen) {
// 如果首屏加载了,则去掉12条记录
params.start = 12;
... ...