mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-20 18:05:53 +08:00
管理端和商家端userInfo字段名变更,管理端会员详情,他的积分字段调整
This commit is contained in:
@@ -98,7 +98,7 @@ export default {
|
||||
this.$store.commit("addOpenSubmenu", pathArr[1].name);
|
||||
}
|
||||
|
||||
let userInfo = JSON.parse(Cookies.get("userInfo"));
|
||||
let userInfo = JSON.parse(Cookies.get("userInfoSeller"));
|
||||
this.userInfo = userInfo;
|
||||
this.checkTag(this.$route.name);
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ export default {
|
||||
},
|
||||
// 初始化数据
|
||||
async init() {
|
||||
let userInfo = JSON.parse(Cookies.get("userInfo"));
|
||||
let userInfo = JSON.parse(Cookies.get("userInfoSeller"));
|
||||
|
||||
this.userData = userInfo;
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.storeId = JSON.parse(Cookies.get("userInfo")).id;
|
||||
this.storeId = JSON.parse(Cookies.get("userInfoSeller")).id;
|
||||
this.getFiveYears();
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -103,13 +103,12 @@ export default {
|
||||
this.setStore("saveLogin", this.saveLogin);
|
||||
if (this.saveLogin) {
|
||||
// 保存7天
|
||||
Cookies.set("userInfo", JSON.stringify(res.result), {
|
||||
Cookies.set("userInfoSeller", JSON.stringify(res.result), {
|
||||
expires: 7,
|
||||
});
|
||||
} else {
|
||||
Cookies.set("userInfo", JSON.stringify(res.result));
|
||||
Cookies.set("userInfoSeller", JSON.stringify(res.result));
|
||||
}
|
||||
this.setStore("userInfo", res.result);
|
||||
this.$store.commit("setAvatarPath", res.result.storeLogo);
|
||||
// 加载菜单
|
||||
util.initRouter(this);
|
||||
|
||||
@@ -254,8 +254,7 @@ export default {
|
||||
},
|
||||
// 导出的待发货订单数据
|
||||
async exportOrder () {
|
||||
let userInfo = JSON.parse(Cookies.get("userInfo"));
|
||||
console.log(userInfo);
|
||||
let userInfo = JSON.parse(Cookies.get("userInfoSeller"));
|
||||
const params = {
|
||||
// 搜索框初始化对象
|
||||
pageNumber: 1, // 当前页数
|
||||
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
this.$set(this.form, "address", res.result.storeAddressPath);
|
||||
this.storeName = res.result.storeName;
|
||||
this.form.center = res.result.storeCenter;
|
||||
Cookies.set("userInfo", JSON.stringify(res.result));
|
||||
Cookies.set("userInfoSeller", JSON.stringify(res.result));
|
||||
//库存预警数赋值
|
||||
|
||||
this.$nextTick(() => {
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
searchType: "LAST_SEVEN",
|
||||
year: "",
|
||||
month: "",
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || '',
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || '',
|
||||
type: "NUM"
|
||||
},
|
||||
columns: [ // 表格表头
|
||||
|
||||
@@ -397,20 +397,20 @@ export default {
|
||||
orderParams: {
|
||||
searchType: "LAST_SEVEN", // TODAY , YESTERDAY , LAST_SEVEN , LAST_THIRTY
|
||||
year: "",
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || "",
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || "",
|
||||
memberId: "",
|
||||
},
|
||||
// 订单概念
|
||||
overViewParams: {
|
||||
month: "",
|
||||
searchType: "LAST_SEVEN", // TODAY , YESTERDAY , LAST_SEVEN , LAST_THIRTY
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || "",
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || "",
|
||||
year: "",
|
||||
},
|
||||
defaultParams: {
|
||||
month: "",
|
||||
searchType: "LAST_SEVEN", // TODAY , YESTERDAY , LAST_SEVEN , LAST_THIRTY
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || "",
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || "",
|
||||
year: "",
|
||||
},
|
||||
|
||||
@@ -420,7 +420,7 @@ export default {
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
searchType: "LAST_SEVEN",
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || "",
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || "",
|
||||
year: "",
|
||||
},
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
searchType: "LAST_SEVEN",
|
||||
year: "",
|
||||
month: "",
|
||||
storeId: JSON.parse(Cookies.get("userInfo")).id || "",
|
||||
storeId: JSON.parse(Cookies.get("userInfoSeller")).id || "",
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user