Commit 1aebc7ab by 李嘉林

购物车刷新

parent 550108f2
......@@ -2,8 +2,8 @@
tabbar
-->
<template>
<div v-if="showPage">
<web-view :src="pageUrl" @error="handleError" @message="getMessage"></web-view>
<div>
<web-view :src="pageUrl1" @error="handleError" @message="getMessage"></web-view>
<div style="width: 100%;height: 90vh;display: flex;justify-content: center;align-items: center;"
>
<van-loading size="40px" type="spinner"></van-loading>
......@@ -37,6 +37,7 @@ export default {
timestamp:"",
isMiniPage : false,
showPage : true,
pageUrl1: "",
};
},
computed: {
......@@ -51,7 +52,7 @@ export default {
)}` +
this.ss+this.timestamp
);
},
}
},
onLoad(options) {
console.log('--onLoad')
......@@ -101,6 +102,7 @@ export default {
});
}
}
this.pageUrl1 = this.pageUrl;
},
onShow(){
console.log('--onShow--')
......@@ -119,7 +121,9 @@ export default {
setTimeout(() => {
this.showPage = true;
}, 0);
this.pageUrl1 = this.pageUrl + `&tim=${new Date().getTime()}`
wx.removeStorageSync("reloadTabbarPage");
console.log(this.pageUrl1,'--this.pageUrl1')
}
},
handleError(data) {
......
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