Authored by zhangxiaoru

个人中心权益

... ... @@ -114,7 +114,7 @@ module.exports = class extends global.yoho.BaseModel {
description: val.description,
pic: val.pic,
title: val.title,
href: val.id === 8
href: val.id === 8 ? '//m.yohobuy.com/activity/birthday' : _.get(val, 'actionParam', false)
};
obj.privilege.push(enp);
... ...
... ... @@ -463,7 +463,7 @@ const getPreferential = (params) => {
description: val.description,
pic: val.pic,
title: val.title,
href: val.id === 8
href: val.id === 8 ? '//m.yohobuy.com/activity/birthday' : _.get(val, 'actionParam', false)
};
resu.privilege.push(obj);
... ...
<div class="vip-privilege-page yoho-page">
<div class="privilege-list clearfix">
{{#each privilege}}
<a{{#if href}} href="//m.yohobuy.com/activity/birthday"{{/if}}>
<a{{#if href}} href="{{href}}"{{/if}}>
<img class="icon" src="{{pic}}">
<p>
{{title}}
... ...
<div class="privilege-list clearfix">
{{#each privilege}}
<a{{#if href}} href="//m.yohobuy.com/activity/birthday"{{/if}}>
<a{{#if href}} href="{{href}}"{{/if}}>
<img class="icon" src="{{pic}}">
<p>
{{title}}
... ...