Authored by 郭成尧

data-struct-change

... ... @@ -120,7 +120,7 @@ class Grade {
let uid = req.user.uid;
req.ctx(GradeModel).vipIconList({uid}).then(result => {
let vipNav = _.filter(_.get(result, 'data', {}), {status: 1});
let vipNav = _.get(result, 'data', []);
let id = parseInt(`0${req.query.vrid}`, 10) || _.get(vipNav, '[0].id', 0);
let findex = _.findIndex(vipNav, {id: id});
... ...
... ... @@ -8,7 +8,7 @@ function droitHtml(contents) {
let imageView2 = '?imageView2/2/w/{width}/h/{height}';
_.map(contents, item => {
if (item.displayName === '7天退换货') {
if (item.title === '7天退换货') {
item.content = {
banner: `http://img10.static.yhbimg.com/sort/2018/03/26/13/018a576d12f6f337d8ee4009e060e4137e.jpg${imageView2}`,
intros: [
... ... @@ -17,7 +17,7 @@ function droitHtml(contents) {
],
interlocution: []
};
} else if (item.displayName === '极速发货') {
} else if (item.title === '极速发货') {
item.content = {
banner: `http://img10.static.yhbimg.com/sort/2018/03/26/13/013fc1a6ce378be56f3d1470715f741723.jpg${imageView2}`,
intros: [
... ... @@ -26,7 +26,7 @@ function droitHtml(contents) {
],
interlocution: []
};
} else if (item.displayName === '专享折扣') {
} else if (item.title === '专享折扣') {
item.content = {
banner: `http://img12.static.yhbimg.com/sort/2018/03/26/13/02ae523f4c97e2c8d184932c3c846a59f9.jpg${imageView2}`,
intros: [
... ... @@ -35,7 +35,7 @@ function droitHtml(contents) {
],
interlocution: []
};
} else if (item.displayName === '生日礼包') {
} else if (item.title === '生日礼包') {
item.content = {
banner: `http://img12.static.yhbimg.com/sort/2018/03/26/13/02402b95df5f0f0f5ef4d4b79edd515577.jpg${imageView2}`,
intros: [
... ... @@ -49,7 +49,7 @@ function droitHtml(contents) {
]},
]
};
} else if (item.displayName === '免邮服务') {
} else if (item.title === '免邮服务') {
item.content = {
banner: `http://img10.static.yhbimg.com/sort/2018/03/26/13/01a583cddfa6fc90be33eab8c1f5a6c892.jpg${imageView2}`,
intros: [
... ... @@ -60,21 +60,21 @@ function droitHtml(contents) {
],
interlocution: []
};
} else if (item.displayName === '购物返币') {
} else if (item.title === '购物返币') {
item.content = {
banner: `http://img11.static.yhbimg.com/sort/2018/03/26/13/0160bd2c93e5730608a7921181eb826ab2.jpg${imageView2}`,
intros: [
{title: 'Dear:', data: ['近期将针对有货的VIP会员推出购物返有货币服务,成功购物之后自动到账,服务即将开启请随时关注最新APP会员权益动态!']},
]
};
} else if (item.displayName === '升级礼包') {
} else if (item.title === '升级礼包') {
item.content = {
banner: `http://img11.static.yhbimg.com/sort/2018/03/26/13/0100d72b57f8c364e69cdfeb708b5d852a.jpg${imageView2}`,
intros: [
{title: 'Dear:', data: ['近期将针对有货的VIP会员推出专享升级礼包服务,等级提升后即可领取,服务即将开启请随时关注最新APP会员权益动态!']},
]
};
} else if (item.displayName === '优享客服') {
} else if (item.title === '优享客服') {
item.content = {
banner: `http://img11.static.yhbimg.com/sort/2018/03/26/13/01ded1925ced60db1a63937bcd3afbbb1d.jpg${imageView2}`,
intros: [
... ...
... ... @@ -4,8 +4,8 @@
<div class="swiper-container droit-nav">
<div class="swiper-wrapper">
{{#vipNav}}
<div class="swiper-slide droit-nav-item {{#if active}}active1{{/if}}">
<img class="droit-nav-icon" src="{{image iosSmallImage 100 100}}" />
<div class="swiper-slide droit-nav-item{{#if active}} active1{{/if}} {{#isEqualOr light 'N'}} no-light{{/isEqualOr}}">
<img class="droit-nav-icon" src="{{image pic_big 100 100}}" />
<span class="name">{{displayName}}</span>
</div>
{{/vipNav}}
... ...
... ... @@ -19,16 +19,16 @@ const domains = {
// singleApi: 'http://api-test3.yohops.com:9999/',
// gray
api: 'http://apigray.yoho.cn/',
service: 'http://apigray.yoho.cn/',
// api: 'http://apigray.yoho.cn/',
// service: 'http://apigray.yoho.cn/',
// platformApi: 'http://172.16.6.210:8088/',
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
imSocket: 'ws://socket.yohobuy.com:10240',
imCs: 'http://im.yohobuy.com/api',
... ...
... ... @@ -45,6 +45,10 @@
border-bottom-color: #fff;
z-index: 10;
}
&.no-light > .name {
color: #bbb;
}
}
}
... ...