Showing
5 changed files
with
11 additions
and
10 deletions
@@ -20,7 +20,8 @@ const shopIndex = (req, res) => { | @@ -20,7 +20,8 @@ const shopIndex = (req, res) => { | ||
20 | uid = crypto.encryption('', req.query.uid + ''), | 20 | uid = crypto.encryption('', req.query.uid + ''), |
21 | parameter = { | 21 | parameter = { |
22 | appVersion: true, | 22 | appVersion: true, |
23 | - uid: uid | 23 | + uid: uid, |
24 | + version: isApp | ||
24 | }; | 25 | }; |
25 | } | 26 | } |
26 | 27 |
@@ -20,7 +20,7 @@ const shopList = (uid, tabName) => { | @@ -20,7 +20,7 @@ const shopList = (uid, tabName) => { | ||
20 | }).then((result) => { | 20 | }).then((result) => { |
21 | if (result && result.code === 200) { | 21 | if (result && result.code === 200) { |
22 | _.forEach(result.data, function(data) { | 22 | _.forEach(result.data, function(data) { |
23 | - let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"' | 23 | + let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' |
24 | + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; | 24 | + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; |
25 | 25 | ||
26 | data.isFavorite = data.isFavorite === 'Y'; | 26 | data.isFavorite = data.isFavorite === 'Y'; |
@@ -4,12 +4,9 @@ | @@ -4,12 +4,9 @@ | ||
4 | {{> resources/banner-top}} | 4 | {{> resources/banner-top}} |
5 | {{/ bannerTop}} | 5 | {{/ bannerTop}} |
6 | 6 | ||
7 | - <div class="shop-nav nav"> | ||
8 | - </div> | 7 | + <div class="shop-nav nav"></div> |
9 | 8 | ||
10 | - <div class="shop-list"> | ||
11 | - | ||
12 | - </div> | 9 | + <div class="shop-list"></div> |
13 | {{/ shopCollect}} | 10 | {{/ shopCollect}} |
14 | <input type="hidden" name="app_version" value="{{appVersion}}"> | 11 | <input type="hidden" name="app_version" value="{{appVersion}}"> |
15 | <input type="hidden" name="uid" value="{{uid}}"> | 12 | <input type="hidden" name="uid" value="{{uid}}"> |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="shop-tile"> | 10 | <div class="shop-tile"> |
11 | - <img src="{{logoUrl}}"></img> | 11 | + <img class="lazy" data-original="{{image logoUrl 110 70}}"></img> |
12 | <p> | 12 | <p> |
13 | <span class="shop-name">{{shopName}}</span><br> | 13 | <span class="shop-name">{{shopName}}</span><br> |
14 | <span class="giving">{{words}}</span> | 14 | <span class="giving">{{words}}</span> |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </div> | 17 | </div> |
18 | 18 | ||
19 | <div class="info-content"> | 19 | <div class="info-content"> |
20 | - <img class="content" src="{{bannerUrl}}"></img> | 20 | + <img class="lazy content" data-original="{{image bannerUrl 690 175}}"></img> |
21 | </div> | 21 | </div> |
22 | </a> | 22 | </a> |
23 | </div> | 23 | </div> |
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | 4 | ||
5 | var $ = require('yoho-jquery'), | 5 | var $ = require('yoho-jquery'), |
6 | Swiper = require('yoho-swiper'), | 6 | Swiper = require('yoho-swiper'), |
7 | - tip = require('../plugin/tip'); | 7 | + tip = require('../plugin/tip'), |
8 | + lazyLoad = require('yoho-jquery-lazyload'); | ||
8 | 9 | ||
9 | var searching, | 10 | var searching, |
10 | shopId, | 11 | shopId, |
@@ -76,6 +77,8 @@ function shopListData(tabName, stoping) { | @@ -76,6 +77,8 @@ function shopListData(tabName, stoping) { | ||
76 | 77 | ||
77 | $('.shop-list').html(list); | 78 | $('.shop-list').html(list); |
78 | 79 | ||
80 | + lazyLoad($('img.lazy')); | ||
81 | + | ||
79 | stoping = false; | 82 | stoping = false; |
80 | 83 | ||
81 | 84 |
-
Please register or login to post a comment