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

1

parent 0ab938f7
This diff is collapsed.
...@@ -72,19 +72,20 @@ export default { ...@@ -72,19 +72,20 @@ export default {
], ],
currentStyle: 1, currentStyle: 1,
saveBtnLoad: false, saveBtnLoad: false,
id: 0,
}; };
}, },
created() { created() {
let data = localStorage.getItem("mall_userInfo");
this.id = JSON.parse(data).MallBaseId;
this.getStyle(); this.getStyle();
}, },
methods: { methods: {
SaveStyle() { SaveStyle() {
this.saveBtnLoad = true; this.saveBtnLoad = true;
let data = localStorage.getItem("mall_userInfo");
let id = JSON.parse(data).MallBaseId;
this.apipost( this.apipost(
"/api/Tenant/SetMiaiPPPlusStyle", "/api/Tenant/SetMiaiPPPlusStyle",
{ MiaiPPPlusStyle: this.currentStyle, MallBaseId: id }, { MiaiPPPlusStyle: this.currentStyle, MallBaseId: this.id },
(res) => { (res) => {
this.saveBtnLoad = false; this.saveBtnLoad = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
...@@ -101,12 +102,16 @@ export default { ...@@ -101,12 +102,16 @@ export default {
this.currentStyle = Style; this.currentStyle = Style;
}, },
getStyle() { getStyle() {
this.apipost("/api/Tenant/GetMiniPrograme", {}, (res) => { this.apipost(
if (res.data.resultCode == 1) { "/api/Tenant/GetMiniPrograme",
this.currentStyle = res.data.data.MiaiPPPlusStyle; { MallBaseId: this.id },
console.log(244, this.currentStyle, res.data.data.MiaiPPPlusStyle); (res) => {
if (res.data.resultCode == 1) {
this.currentStyle = res.data.data.MiaiPPPlusStyle;
console.log(244, this.currentStyle, res.data.data.MiaiPPPlusStyle);
}
} }
}); );
}, },
handleClick(val) {}, 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