|
|
|
@ -626,6 +626,8 @@ |
|
|
|
|
curTabIndex: 0, |
|
|
|
|
wxAppSetting: {}, |
|
|
|
|
storagePageIndex: '', |
|
|
|
|
tabActiveColor: '', |
|
|
|
|
navBgColor: '', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -633,18 +635,14 @@ |
|
|
|
|
const index = uni.getStorageSync('styleIndex') || ''; |
|
|
|
|
return index; |
|
|
|
|
}, |
|
|
|
|
tabActiveColor() { |
|
|
|
|
return this.styleIndex ? (styleColor.indexColor[this.styleIndex - 1] || '') : '' |
|
|
|
|
}, |
|
|
|
|
navBgColor() { |
|
|
|
|
return this.styleIndex ? (styleColor.indexNavBgColor[this.styleIndex - 1] || '') : '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
storagePageIndex: { |
|
|
|
|
immediate: true, |
|
|
|
|
handler() { |
|
|
|
|
this.styleIndex = this.storagePageIndex; |
|
|
|
|
this.tabActiveColor = this.styleIndex ? (styleColor.indexColor[this.styleIndex - 1] || '') : ''; |
|
|
|
|
this.navBgColor = this.styleIndex ? (styleColor.indexNavBgColor[this.styleIndex - 1] || '') : ''; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -691,6 +689,8 @@ |
|
|
|
|
console.log(data, data.style.style); |
|
|
|
|
uni.setStorageSync('styleIndex', data.style.style || ''); |
|
|
|
|
this.styleIndex = data.style.style; |
|
|
|
|
this.tabActiveColor = this.styleIndex ? (styleColor.indexColor[this.styleIndex - 1] || '') : ''; |
|
|
|
|
this.navBgColor = this.styleIndex ? (styleColor.indexNavBgColor[this.styleIndex - 1] || '') : ''; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onChangeSeckillCutDownTime(e) { |
|
|
|
|