Authored by zhangxiaoru

shop 添加链接

... ... @@ -18,11 +18,10 @@ const shopList = (uid, tabName) => {
code: 200,
cache: true
}).then((result) => {
// console.log(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":"'
+ data.shopsId + '","shop_template_type":"' + 2 + '","shop_name":"' + data.shopName + '"}}';
+ data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}';
data.isFavorite = data.isFavorite === 'Y';
... ...
... ... @@ -82,7 +82,7 @@ const getDetailData = (req, res, next) => {
clientType = 'h5';
}
plustarModel.getDetailData(id, uid, udid, gender, isApp, clientType).then((result) => {
result.brandIntro = htmlProcess.removeHtml(result.brandIntro);
result.brand_intro = htmlProcess.removeHtml(result.brand_intro);
if (!isApp & !isWeixin) {
res.render('plustar/detail', {
... ...
... ... @@ -43,7 +43,7 @@ function shopFav(shopIds) {
if (it && it.id) {
$it = $('.shop-info[data-id=' + it.id + ']', $('.shop-list'));
if (it.favorite === 'Y') {
if (it.favorite === true) {
$it.find('.collect-btn').addClass('already-collect');
} else {
$it.find('.collect-btn').removeClass('already-collect');
... ...