Commit e6ea11e5 by 李嘉林

优化底部logo展示

parent 39b670e9
...@@ -45,10 +45,15 @@ export default { ...@@ -45,10 +45,15 @@ export default {
}, },
watch:{ watch:{
globalDataShopInfo:{ globalDataShopInfo:{
handler(){ handler(newVal,oldVal){
if(newVal){
console.log(newVal,oldVal,'------------------globalDataShopInfo')
this.shopInfo = this.mpApp.globalData.shopInfo this.shopInfo = this.mpApp.globalData.shopInfo
if(this.shopInfo && this.shopInfo.logoUrl) {
this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400) this.shopInfo.logoUrl = DFSImg(this.shopInfo.logoUrl, 400, 400)
}
console.log(this.shopInfo,'this.shopInfo') console.log(this.shopInfo,'this.shopInfo')
}
}, },
immediate: true, immediate: true,
} }
...@@ -62,8 +67,7 @@ export default { ...@@ -62,8 +67,7 @@ export default {
this.showHideWrap = true this.showHideWrap = true
} }
}, },
onLoad() { onLoad() {},
},
onShow(){ onShow(){
}, },
methods:{ methods:{
......
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