Authored by zzzzzzz

去掉camelcase

... ... @@ -17,12 +17,11 @@ app.on('mount', function(parent) {
delete parent.locals.settings; // 不继承父 App 的设置
Object.assign(app.locals, parent.locals);
});
app.set('views', path.join(__dirname, 'views/action'));
app.use(global.yoho.hbs({
extname: '.hbs',
defaultLayout: 'layout',
layoutsDir: doraemon,
partialsDir: path.join(__dirname, 'views/partial', `${doraemon}/partial`),
partialsDir: path.join(__dirname, 'views/partial'),
views: path.join(__dirname, 'views/action'),
helpers: Object.assign({}, global.yoho.helpers, helpers)
}));
... ...
... ... @@ -90,10 +90,10 @@ exports.getGoods = cate => {
let data = {};
productList.forEach(product=> {
let skn = product.productSkn;
let imgSrc = url.parse(product.defaultImages || '');
let skn = product.product_skn;
let imgSrc = url.parse(product.default_images || '');
product.defaultImages = ['//', imgSrc.hostname, imgSrc.pathname].join('');
product.default_images = ['//', imgSrc.hostname, imgSrc.pathname].join('');
product.url = helpers.appUrlFormat(product.url, 'go.productDetail', {
product_skn: skn
... ...
<li class="vip10-good" skn={{productSkn}}>
<li class="vip10-good" skn={{product_skn}}>
<a href="{{url}}">
<img class="vip10-good-show" src="{{image defaultImages 215 192}}" alt="">
<h6 class="vip10-good-name line-clamp-1">{{productName}}</h6>
<img class="vip10-good-show" src="{{image default_images 215 192}}" alt="">
<h6 class="vip10-good-name line-clamp-1">{{product_name}}</h6>
<div class="vip10-good-price">
{{#if marketPrice}}
<sup class="sale-price">&yen;</sup><span class="sale-price">{{salesPrice}}</span><span class="disable-price">&yen;{{marketPrice}}</span><span class="buy-icon">BUY</span>
{{#if market_price}}
<sup class="sale-price">&yen;</sup><span class="sale-price">{{sales_price}}</span><span class="disable-price">&yen;{{market_price}}</span><span class="buy-icon">BUY</span>
{{else}}
<sup class="sale-price">&yen;</sup><span class="sale-price">{{salesPrice}}</span><span class="buy-icon">BUY</span>
<sup class="sale-price">&yen;</sup><span class="sale-price">{{sales_price}}</span><span class="buy-icon">BUY</span>
{{/if}}
</div>
</a>
... ...