1.优化角色模板 2.增加新版私域引流页面

This commit is contained in:
gyq
2025-12-15 14:56:29 +08:00
parent dd2ca5062f
commit fe200990e0
8 changed files with 225 additions and 44 deletions

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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) {