Commit 9f5a9d32 authored by 罗超's avatar 罗超

1

parent 0ab938f7
This diff is collapsed.
......@@ -72,19 +72,20 @@ export default {
],
currentStyle: 1,
saveBtnLoad: false,
id: 0,
};
},
created() {
let data = localStorage.getItem("mall_userInfo");
this.id = JSON.parse(data).MallBaseId;
this.getStyle();
},
methods: {
SaveStyle() {
this.saveBtnLoad = true;
let data = localStorage.getItem("mall_userInfo");
let id = JSON.parse(data).MallBaseId;
this.apipost(
"/api/Tenant/SetMiaiPPPlusStyle",
{ MiaiPPPlusStyle: this.currentStyle, MallBaseId: id },
{ MiaiPPPlusStyle: this.currentStyle, MallBaseId: this.id },
(res) => {
this.saveBtnLoad = false;
if (res.data.resultCode === 1) {
......@@ -101,12 +102,16 @@ export default {
this.currentStyle = Style;
},
getStyle() {
this.apipost("/api/Tenant/GetMiniPrograme", {}, (res) => {
if (res.data.resultCode == 1) {
this.currentStyle = res.data.data.MiaiPPPlusStyle;
console.log(244, this.currentStyle, res.data.data.MiaiPPPlusStyle);
this.apipost(
"/api/Tenant/GetMiniPrograme",
{ MallBaseId: this.id },
(res) => {
if (res.data.resultCode == 1) {
this.currentStyle = res.data.data.MiaiPPPlusStyle;
console.log(244, this.currentStyle, res.data.data.MiaiPPPlusStyle);
}
}
});
);
},
handleClick(val) {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment