1.优化角色模板 2.增加新版私域引流页面
This commit is contained in:
@@ -650,6 +650,13 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
this.shopId = shopInfo.id
|
||||
} else {
|
||||
this.shopId = localStorage.getItem('shopId')
|
||||
}
|
||||
|
||||
// 增加首页提示是否账号30天过期
|
||||
let date = dayjs(localStorage.getItem("expireDate")).diff(dayjs().format("YYYY-MM-DD"), "day");
|
||||
if (date <= 30 && date >= 0) {
|
||||
@@ -702,9 +709,12 @@ export default {
|
||||
*/
|
||||
async geiShopList() {
|
||||
try {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
}
|
||||
|
||||
@@ -238,6 +238,13 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
this.shopId = shopInfo.id
|
||||
} else {
|
||||
this.shopId = localStorage.getItem('shopId')
|
||||
}
|
||||
|
||||
this.resetQuery = { ...this.query };
|
||||
this.getTableData();
|
||||
this.getCategory();
|
||||
@@ -248,9 +255,16 @@ export default {
|
||||
* 获取分店列表
|
||||
*/
|
||||
async geiShopList() {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
try {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
}
|
||||
},
|
||||
totalfilter(item, d) {
|
||||
let num = item + d;
|
||||
|
||||
@@ -142,6 +142,13 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
this.shopId = shopInfo.id
|
||||
} else {
|
||||
this.shopId = localStorage.getItem('shopId')
|
||||
}
|
||||
|
||||
this.resetQuery = { ...this.query };
|
||||
this.getTableData();
|
||||
this.geiShopList();
|
||||
@@ -151,9 +158,16 @@ export default {
|
||||
* 获取分店列表
|
||||
*/
|
||||
async geiShopList() {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
try {
|
||||
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
|
||||
if (shopInfo.isHeadShop) {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('获取分店列表===', error);
|
||||
}
|
||||
},
|
||||
//携带table id跳转到订单列表页面
|
||||
toTableOrderList(data) {
|
||||
|
||||
Reference in New Issue
Block a user