Commit d3783440 by 李嘉林

改背景图片

parent dc065061
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
tabbar tabbar
--> -->
<template> <template>
<div> <div v-if="showPage">
<web-view :src="pageUrl" @error="handleError"></web-view> <web-view :src="pageUrl" @error="handleError"></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;"
> >
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
params: "?mixid=" + this.$store.state.mixid, params: "?mixid=" + this.$store.state.mixid,
ss: "", ss: "",
timestamp:"", timestamp:"",
isMiniPage : false isMiniPage : false,
showPage : true,
}; };
}, },
computed: { computed: {
...@@ -51,6 +52,7 @@ export default { ...@@ -51,6 +52,7 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
console.log('--onLoad')
let tabIndex = this.index>=this.mpApp.globalData.footerVal.componentData.list.length?this.mpApp.globalData.footerVal.componentData.list.length-1:this.index; let tabIndex = this.index>=this.mpApp.globalData.footerVal.componentData.list.length?this.mpApp.globalData.footerVal.componentData.list.length-1:this.index;
this.params = this.$options.data.call(this).params this.params = this.$options.data.call(this).params
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
...@@ -85,6 +87,18 @@ export default { ...@@ -85,6 +87,18 @@ export default {
} }
} }
}, },
onShow(){
console.log('--onShow--')
// 重载页面
let reloadTabbarPage = wx.getStorageSync("reloadTabbarPage") || 0;
if(reloadTabbarPage == 1){
this.showPage = false;
setTimeout(() => {
this.showPage = true;
}, 0);
wx.removeStorageSync("reloadTabbarPage");
}
},
methods: { methods: {
handleError(data) { handleError(data) {
wx.showLoading({ wx.showLoading({
......
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log("---onLoad"); console.log("---onLoad");
this.init();
}, },
onShow() { onShow() {
console.log("---onShow"); console.log("---onShow");
...@@ -201,9 +202,10 @@ export default { ...@@ -201,9 +202,10 @@ export default {
if(this.editImg == true) { if(this.editImg == true) {
console.log('----需要修改证件照') console.log('----需要修改证件照')
this.update_info(); this.update_info();
wx.setStorageSync("reloadTabbarPage", 1);
} }
if(getCurrentPages().length>1){ if(getCurrentPages().length>1){
wx.navigateBack(); wx.navigateBack({ delta: 1 });
} else { } else {
wx.reLaunch({ wx.reLaunch({
url: '/pages/home/main' // 指定页面的url url: '/pages/home/main' // 指定页面的url
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<image <image
v-else v-else
mode="aspectFill" mode="aspectFill"
src="http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/jpeg/9e733736-3e9d-48d1-82a8-96d21ee014df.jpeg" src="http://cdn.mayi888.com/public/png/4660508a-ee25-4872-a3a8-da10a0fbaab1.png"
alt="" alt=""
></image> ></image>
</div> </div>
......
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