Commit 080c37a3 by 李嘉林

测试底部logo

parent 9123a05e
......@@ -38,6 +38,7 @@ export default {
},
showVConsole : 0,
showHideWrap : false,
attemptNum: 0, //获取logo次数
};
},
computed:{
......@@ -71,15 +72,22 @@ export default {
},
onLoad() {
console.log('bottomCont-------onLoad');
if(!this.shopInfo.logoUrl) {
this.shopInfo.logoUrl = wx.getStorageSync("logoUrl");
}
this.setLogoUrl();
console.log(this.shopInfo.logoUrl,'bottomCont-onLoad-logoUrl')
log.info(this.shopInfo.logoUrl,'bottomCont-onLoad-logoUrl')
},
onShow(){
},
methods:{
setLogoUrl(){
if(!this.shopInfo.logoUrl && this.attemptNum<5) {
this.attemptNum ++;
setTimeout(() => {
this.shopInfo.logoUrl = wx.getStorageSync("logoUrl");
this.setLogoUrl();
}, 500);
}
},
showVConsoles(){
this.showVConsole++;
......
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