Commit 080c37a3 by 李嘉林

测试底部logo

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