Authored by 陈轩

Merge remote-tracking branch 'origin/release/5.1' into release/5.1

... ... @@ -20,7 +20,7 @@ const shopList = (uid, tabName) => {
}).then((result) => {
if (result && result.code === 200) {
_.forEach(result.data, function(data) {
let href = 'https://m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"'
let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"'
+ data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}';
data.isFavorite = data.isFavorite === 'Y';
... ...
... ... @@ -106,7 +106,7 @@ const favoriteBrand = (req, res, next) => {
/* 判断参数是否有效 */
let id = req.body.id,
opt = req.body.opt || 'ok',
uid = req.user.uid || (req.body.uid && crypto.decrypt(null, req.body.uid)) || req.cookies.appUid;
uid = req.user.uid || (req.body.uid && crypto.decrypt(null, req.body.uid)) || req.cookies.appUid;
if (!stringProcess.isNumeric(id) || !stringProcess.isNumeric(uid)) {
... ...
... ... @@ -76,7 +76,7 @@ const getDetailData = (req, res, next) => {
let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问
if (req.yoho.isApp) {
uid = crypto.encryption('', req.query.uid + '');
uid = crypto.encryption('', req.query.uid + '');
} else {
uid = req.user.uid;
}
... ...
... ... @@ -93,7 +93,7 @@ likeHammer.on('tap', function(e) {
var opt = 'ok',
$this = $(e.target);
//jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP
// jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP
if (jumpToApp === '1') {
return false;
}
... ... @@ -113,7 +113,7 @@ likeHammer.on('tap', function(e) {
uid: uid
},
success: function(data) {
console.log(data)
console.log(data);
if (data.code === 200) {
$this.toggleClass('like');
tip.show(data.message);
... ...
... ... @@ -213,6 +213,7 @@ seckillObj = {
if (focusElem.length) {
history.go(0);
// that.refreshProductList(
// focusElem.find('input.activityId').val(),
// focusElem.find('input.date').val()
... ...
... ... @@ -49,17 +49,21 @@
.collect {
float: right;
margin-right: 30px;
margin-right: 15px;
line-height: 70px;
height: 70px;
.fans {
margin-right: 30px;
margin-right: 10px;
color: #666;
}
.collect-btn {
color: #b0b0b0;
display: inline-block;
width: 50px;
font-size: 24px;
text-align: center;
}
.already-collect {
... ...