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