管理端和商家端userInfo字段名变更,管理端会员详情,他的积分字段调整

This commit is contained in:
mabo
2021-08-04 17:51:43 +08:00
parent 726ae1f856
commit 0387ac510a
22 changed files with 44 additions and 47 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -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, // 当前页数

View File

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

View File

@@ -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: [ // 表格表头

View File

@@ -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: "",
},

View File

@@ -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: [
{