Authored by 姜枫

修改商品详情页地址

... ... @@ -211,11 +211,11 @@ const helpers = {
goodsId = goodsList[0].goodsId;
goodsList.forEach(o => {
o.url = `${config.siteUrl}/product/item/${g.productId}_${o.goodsId}.html`;
o.url = `${config.siteUrl}/product/item/pro_${g.productId}_${o.goodsId}_${o.cnAlphabet}.html`;
});
}
g.url = `${config.siteUrl}/product/item/${g.productId}_${goodsId}.html`;
g.url = `${config.siteUrl}/product/item/pro_${g.productId}_${goodsId}_${g.cnAlphabet}.html`;
});
}
return list;
... ...
... ... @@ -4,6 +4,7 @@ var common = require('../../common');
var query = common.queryString();
var YohoListPage = {
rootDoc: $('.yoho-product-list'),
brandsDoc: $('.yoho-product-list .brand-list'),
... ... @@ -16,7 +17,7 @@ var YohoListPage = {
require('yoho-jquery-nanoscroller');
require('../../plugins/check');
require('../../common/return-top');
require('../../common/header');
lazyload();
$('.nano').nanoScroller();
$('.yoho-ui-accordion', this.rootDoc).each(function() {
... ...
var lazyload = require('yoho-jquery-lazyload');
require('../common/header');
lazyload();
... ...