Showing
2 changed files
with
7 additions
and
7 deletions
@@ -6,7 +6,7 @@ const _ = require('lodash'); | @@ -6,7 +6,7 @@ const _ = require('lodash'); | ||
6 | // 会员权益方案写死,后台未做,后期删除 | 6 | // 会员权益方案写死,后台未做,后期删除 |
7 | function droitHtml(contents) { | 7 | function droitHtml(contents) { |
8 | let banner = 'http://img10.static.yhbimg.com/article/2017/06/20/12/01a50a1f45b97365e758d6890858998310.jpg' + | 8 | let banner = 'http://img10.static.yhbimg.com/article/2017/06/20/12/01a50a1f45b97365e758d6890858998310.jpg' + |
9 | - '?imageView2/2/w/670/h/240/q/60/format/webp'; | 9 | + '?imageView2/2/w/{width}/h/{height}'; |
10 | 10 | ||
11 | _.map(contents, item => { | 11 | _.map(contents, item => { |
12 | if (item.displayName === '7天退换货') { | 12 | if (item.displayName === '7天退换货') { |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="droit-nav"> | 2 | <div class="droit-nav"> |
3 | {{#vipNav}} | 3 | {{#vipNav}} |
4 | <div class="droit-nav-item {{#if active}}active{{/if}}"> | 4 | <div class="droit-nav-item {{#if active}}active{{/if}}"> |
5 | - <img class="droit-nav-icon" src="{{iosSmallImage}}"> | 5 | + <img class="droit-nav-icon" src="{{image iosSmallImage 100 100}}" /> |
6 | <span class="name">{{displayName}}</span> | 6 | <span class="name">{{displayName}}</span> |
7 | </div> | 7 | </div> |
8 | {{/vipNav}} | 8 | {{/vipNav}} |
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | <div class="grade-droit-content"> | 10 | <div class="grade-droit-content"> |
11 | {{#vipNav}} | 11 | {{#vipNav}} |
12 | <div class="droit-nav-content {{#unless active}}hide{{/unless}}"> | 12 | <div class="droit-nav-content {{#unless active}}hide{{/unless}}"> |
13 | + {{#if content.banner}} | ||
14 | + <div class="banner"> | ||
15 | + <img src="{{image content.banner 670 240}}" /> | ||
16 | + </div> | ||
17 | + {{/if}} | ||
13 | {{#if content.intros}} | 18 | {{#if content.intros}} |
14 | - {{#if content.banner}} | ||
15 | - <div class="banner"> | ||
16 | - <img src="{{content.banner}}"> | ||
17 | - </div> | ||
18 | - {{/if}} | ||
19 | <div class="intro"> | 19 | <div class="intro"> |
20 | {{#content.intros}} | 20 | {{#content.intros}} |
21 | <div class="intro-item"> | 21 | <div class="intro-item"> |
-
Please register or login to post a comment