Showing
3 changed files
with
3 additions
and
4 deletions
@@ -18,11 +18,10 @@ const shopList = (uid, tabName) => { | @@ -18,11 +18,10 @@ const shopList = (uid, tabName) => { | ||
18 | code: 200, | 18 | code: 200, |
19 | cache: true | 19 | cache: true |
20 | }).then((result) => { | 20 | }).then((result) => { |
21 | - // console.log(result) | ||
22 | if (result && result.code === 200) { | 21 | if (result && result.code === 200) { |
23 | _.forEach(result.data, function(data) { | 22 | _.forEach(result.data, function(data) { |
24 | let href = 'https://m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"' | 23 | let href = 'https://m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"' |
25 | - + data.shopsId + '","shop_template_type":"' + 2 + '","shop_name":"' + data.shopName + '"}}'; | 24 | + + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; |
26 | 25 | ||
27 | data.isFavorite = data.isFavorite === 'Y'; | 26 | data.isFavorite = data.isFavorite === 'Y'; |
28 | 27 |
@@ -82,7 +82,7 @@ const getDetailData = (req, res, next) => { | @@ -82,7 +82,7 @@ const getDetailData = (req, res, next) => { | ||
82 | clientType = 'h5'; | 82 | clientType = 'h5'; |
83 | } | 83 | } |
84 | plustarModel.getDetailData(id, uid, udid, gender, isApp, clientType).then((result) => { | 84 | plustarModel.getDetailData(id, uid, udid, gender, isApp, clientType).then((result) => { |
85 | - result.brandIntro = htmlProcess.removeHtml(result.brandIntro); | 85 | + result.brand_intro = htmlProcess.removeHtml(result.brand_intro); |
86 | 86 | ||
87 | if (!isApp & !isWeixin) { | 87 | if (!isApp & !isWeixin) { |
88 | res.render('plustar/detail', { | 88 | res.render('plustar/detail', { |
@@ -43,7 +43,7 @@ function shopFav(shopIds) { | @@ -43,7 +43,7 @@ function shopFav(shopIds) { | ||
43 | if (it && it.id) { | 43 | if (it && it.id) { |
44 | $it = $('.shop-info[data-id=' + it.id + ']', $('.shop-list')); | 44 | $it = $('.shop-info[data-id=' + it.id + ']', $('.shop-list')); |
45 | 45 | ||
46 | - if (it.favorite === 'Y') { | 46 | + if (it.favorite === true) { |
47 | $it.find('.collect-btn').addClass('already-collect'); | 47 | $it.find('.collect-btn').addClass('already-collect'); |
48 | } else { | 48 | } else { |
49 | $it.find('.collect-btn').removeClass('already-collect'); | 49 | $it.find('.collect-btn').removeClass('already-collect'); |
-
Please register or login to post a comment