Authored by ccbikai

修改 SALE bug

... ... @@ -162,7 +162,7 @@ exports.filter = (req, res) => {
let params = Object.assign({}, req.query);
saleModel.getFilterData(params).then((result) => {
res.render('filter', {
res.render('sale/filter', {
layout: false,
params: params,
filter: result
... ... @@ -196,7 +196,7 @@ exports.search = (req, res) => {
}, vipObj);
}
res.render('product', Object.assign({
res.render('sale/product', Object.assign({
layout: false,
params: params,
goods: result[0]
... ...
... ... @@ -13,7 +13,7 @@ module.exports = {
port: 6001,
siteUrl: 'http://m.yohobuy.com',
domains: {
api: 'http://testapi.yoho.cn:28078/', // http://192.168.102.205:8080/gateway http://testapi.yoho.cn:28078/
api: 'http://testapi.yoho.cn:28078/', // http://192.168.102.205:8080/gateway
service: 'http://testservice.yoho.cn:28077/'
},
useOneapm: false,
... ...
... ... @@ -15,6 +15,7 @@ camelCaseObject = (obj) => {
obj[k] = camelCase(obj[k]);
if (/[_-]/.test(k)) {
obj[_.camelCase(k)] = obj[k];
delete obj[k];
}
});
return obj;
... ...