Commit 1aebc7ab by 李嘉林

购物车刷新

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