master
lemon橪 2021-05-18 14:02:50 +08:00
commit 9dfc3a1eba
4 changed files with 25 additions and 19 deletions

View File

@ -9,7 +9,7 @@ let util = {
}; };
util.title = function (title) { util.title = function (title) {
title = title || 'lili '; title = title || 'lili 运营后台';
window.document.title = title; window.document.title = title;
}; };

View File

@ -18,10 +18,14 @@ export default {
* @description api请求基础路径 * @description api请求基础路径
*/ */
api_dev: { api_dev: {
common: 'http://127.0.0.1:8890', // common: 'https://common-api.pickmall.cn',
buyer: 'http://127.0.0.1:8888', // buyer: 'https://buyer-api.pickmall.cn',
seller: 'http://127.0.0.1:8889', // seller: 'https://store-api.pickmall.cn',
manager: 'http://127.0.0.1:8887' // manager: 'https://admin-api.pickmall.cn'
common: 'http://192.168.0.100:8890',
buyer: 'http://192.168.0.100:8888',
seller: 'http://192.168.0.100:8889',
manager: 'http://192.168.0.100:8887'
}, },
api_prod: { api_prod: {
common: 'https://common-api.pickmall.cn', common: 'https://common-api.pickmall.cn',

View File

@ -10,7 +10,7 @@ let util = {
}; };
util.title = function (title) { util.title = function (title) {
title = title || 'lili '; title = title || 'lili 商家后台';
window.document.title = title; window.document.title = title;
}; };

View File

@ -528,7 +528,7 @@
v-model="baseInfoForm.freightPayer" v-model="baseInfoForm.freightPayer"
> >
<Radio label="BUYER"> <Radio label="BUYER">
<span>家承担运费</span> <span>家承担运费</span>
</Radio> </Radio>
<Radio label="STORE"> <Radio label="STORE">
<span>使用物流规则</span> <span>使用物流规则</span>
@ -1189,7 +1189,7 @@ export default {
} }
}, },
gotoGoodsList() { gotoGoodsList() {
this.$router.push({name: "seller-goods"}); this.$router.push({name: "goods"});
}, },
gotoBack() { gotoBack() {
this.$router.go(); this.$router.go();
@ -1220,14 +1220,12 @@ export default {
i.title = i.labelName; i.title = i.labelName;
i.expand = false; i.expand = false;
i.checked = shopCategories.some((o) => o === i.id); i.checked = shopCategories.some((o) => o === i.id);
if (i.list) { i.children = i.children.map((j) => {
i.children = i.list.map((j) => {
j.title = j.labelName; j.title = j.labelName;
j.expand = false; j.expand = false;
j.checked = shopCategories.some((o) => o === j.id); j.checked = shopCategories.some((o) => o === j.id);
return j; return j;
}); });
}
return i; return i;
}); });
} }
@ -1730,6 +1728,7 @@ export default {
}, },
/** 上一步*/ /** 上一步*/
pre() { pre() {
window.scrollTo(0,0)
this.loading = true; this.loading = true;
if (this.activestep === 1) { if (this.activestep === 1) {
this.toPreCount > 0 this.toPreCount > 0
@ -1745,6 +1744,8 @@ export default {
}, },
/** 下一步*/ /** 下一步*/
next() { next() {
console.log(111);
window.scrollTo(0,0)
if (this.activestep === 0 && this.draftId) { if (this.activestep === 0 && this.draftId) {
this.activestep = 1; this.activestep = 1;
this.GET_GoodData(); this.GET_GoodData();
@ -1880,6 +1881,7 @@ export default {
if (res.success) { if (res.success) {
this.submitLoading = false; this.submitLoading = false;
this.activestep = 2; this.activestep = 2;
window.scrollTo(0,0)
}else{ }else{
this.submitLoading = false; this.submitLoading = false;
} }