Commit cc2df63b by 李嘉林

底部logo偶发不显示

parent 166393ed
...@@ -38,9 +38,24 @@ export default { ...@@ -38,9 +38,24 @@ export default {
showHideWrap : false, showHideWrap : false,
}; };
}, },
computed:{
globalDataShopInfo() {
return this.mpApp.globalData.shopInfo;
}
},
watch:{
globalDataShopInfo:{
handler(){
this.shopInfo = this.mpApp.globalData.shopInfo
this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400)
console.log(this.shopInfo,'this.shopInfo')
},
immediate: true,
}
},
created(){ created(){
this.shopInfo = this.mpApp.globalData.shopInfo // this.shopInfo = this.mpApp.globalData.shopInfo
this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400) // this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400)
console.log(this.shopInfo,'mpapp123') console.log(this.shopInfo,'mpapp123')
if(wx.getStorageSync('workBox')){ if(wx.getStorageSync('workBox')){
......
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