Merge remote-tracking branch 'origin/release/5.1' into release/5.1
Showing
6 changed files
with
12 additions
and
7 deletions
@@ -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 = 'https://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'; |
@@ -106,7 +106,7 @@ const favoriteBrand = (req, res, next) => { | @@ -106,7 +106,7 @@ const favoriteBrand = (req, res, next) => { | ||
106 | /* 判断参数是否有效 */ | 106 | /* 判断参数是否有效 */ |
107 | let id = req.body.id, | 107 | let id = req.body.id, |
108 | opt = req.body.opt || 'ok', | 108 | opt = req.body.opt || 'ok', |
109 | - uid = req.user.uid || (req.body.uid && crypto.decrypt(null, req.body.uid)) || req.cookies.appUid; | 109 | + uid = req.user.uid || (req.body.uid && crypto.decrypt(null, req.body.uid)) || req.cookies.appUid; |
110 | 110 | ||
111 | if (!stringProcess.isNumeric(id) || !stringProcess.isNumeric(uid)) { | 111 | if (!stringProcess.isNumeric(id) || !stringProcess.isNumeric(uid)) { |
112 | 112 |
@@ -76,7 +76,7 @@ const getDetailData = (req, res, next) => { | @@ -76,7 +76,7 @@ const getDetailData = (req, res, next) => { | ||
76 | let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 | 76 | let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 |
77 | 77 | ||
78 | if (req.yoho.isApp) { | 78 | if (req.yoho.isApp) { |
79 | - uid = crypto.encryption('', req.query.uid + ''); | 79 | + uid = crypto.encryption('', req.query.uid + ''); |
80 | } else { | 80 | } else { |
81 | uid = req.user.uid; | 81 | uid = req.user.uid; |
82 | } | 82 | } |
@@ -93,7 +93,7 @@ likeHammer.on('tap', function(e) { | @@ -93,7 +93,7 @@ likeHammer.on('tap', function(e) { | ||
93 | var opt = 'ok', | 93 | var opt = 'ok', |
94 | $this = $(e.target); | 94 | $this = $(e.target); |
95 | 95 | ||
96 | - //jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP | 96 | + // jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP |
97 | if (jumpToApp === '1') { | 97 | if (jumpToApp === '1') { |
98 | return false; | 98 | return false; |
99 | } | 99 | } |
@@ -113,7 +113,7 @@ likeHammer.on('tap', function(e) { | @@ -113,7 +113,7 @@ likeHammer.on('tap', function(e) { | ||
113 | uid: uid | 113 | uid: uid |
114 | }, | 114 | }, |
115 | success: function(data) { | 115 | success: function(data) { |
116 | - console.log(data) | 116 | + console.log(data); |
117 | if (data.code === 200) { | 117 | if (data.code === 200) { |
118 | $this.toggleClass('like'); | 118 | $this.toggleClass('like'); |
119 | tip.show(data.message); | 119 | tip.show(data.message); |
@@ -213,6 +213,7 @@ seckillObj = { | @@ -213,6 +213,7 @@ seckillObj = { | ||
213 | 213 | ||
214 | if (focusElem.length) { | 214 | if (focusElem.length) { |
215 | history.go(0); | 215 | history.go(0); |
216 | + | ||
216 | // that.refreshProductList( | 217 | // that.refreshProductList( |
217 | // focusElem.find('input.activityId').val(), | 218 | // focusElem.find('input.activityId').val(), |
218 | // focusElem.find('input.date').val() | 219 | // focusElem.find('input.date').val() |
@@ -49,17 +49,21 @@ | @@ -49,17 +49,21 @@ | ||
49 | 49 | ||
50 | .collect { | 50 | .collect { |
51 | float: right; | 51 | float: right; |
52 | - margin-right: 30px; | 52 | + margin-right: 15px; |
53 | line-height: 70px; | 53 | line-height: 70px; |
54 | height: 70px; | 54 | height: 70px; |
55 | 55 | ||
56 | .fans { | 56 | .fans { |
57 | - margin-right: 30px; | 57 | + margin-right: 10px; |
58 | color: #666; | 58 | color: #666; |
59 | } | 59 | } |
60 | 60 | ||
61 | .collect-btn { | 61 | .collect-btn { |
62 | color: #b0b0b0; | 62 | color: #b0b0b0; |
63 | + display: inline-block; | ||
64 | + width: 50px; | ||
65 | + font-size: 24px; | ||
66 | + text-align: center; | ||
63 | } | 67 | } |
64 | 68 | ||
65 | .already-collect { | 69 | .already-collect { |
-
Please register or login to post a comment