Authored by 陈峰

调整老商家端地址

... ... @@ -2,7 +2,7 @@
export default {
dev: {
historyMode: 'history',
shopsFeDomain: 'http://shops.yohobuy.com',
shopsFeDomain: 'http://shop-manage.yohobuy.com/oldshops',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
... ... @@ -12,7 +12,7 @@ export default {
},
production: {
historyMode: 'history',
shopsFeDomain: 'http://shops.yohobuy.com',
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
... ...
... ... @@ -127,6 +127,7 @@ export default function() {
render: (h, params) => {
const row = params.row;
const disabled = row._disabled;
const status = row.auditStatus;
return (
<div>
... ... @@ -136,12 +137,14 @@ export default function() {
尺码维护
</i-button>
</div>
<div class="cell-action-row">
<i-button type="primary" size="small"
onClick={() => this.editProduct(row.productSkn)}>
内容编辑
</i-button>
</div>
{status !== 3 ? (
<div class="cell-action-row">
<i-button type="primary" size="small"
onClick={() => this.editProduct(row.productSkn)}>
内容编辑
</i-button>
</div>
) : void 0}
<div class="cell-action-row">
<i-button type="error" size="small" disabled={disabled}
onClick={() => this.setOffSale(row.productSkn)}>
... ...
... ... @@ -122,16 +122,16 @@ class UserController extends Context {
}
config(req, res) {
let config = {
shopsFeDomain: 'http://shops.yohobuy.com'
shopsFeDomain: 'http://shop-manage.yohobuy.com/oldshops'
};
if (global.env.Gray) {
Object.assign(config, {
shopsFeDomain: 'http://shops.yohops.com'
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops'
});
} else if (global.env.Production) {
Object.assign(config, {
shopsFeDomain: 'http://shops.yohobuy.com'
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops'
});
}
res.json(config);
... ...