Commit d3783440 by 李嘉林

改背景图片

parent dc065061
......@@ -2,7 +2,7 @@
tabbar
-->
<template>
<div>
<div v-if="showPage">
<web-view :src="pageUrl" @error="handleError"></web-view>
<div style="width: 100%;height: 90vh;display: flex;justify-content: center;align-items: center;"
>
......@@ -33,7 +33,8 @@ export default {
params: "?mixid=" + this.$store.state.mixid,
ss: "",
timestamp:"",
isMiniPage : false
isMiniPage : false,
showPage : true,
};
},
computed: {
......@@ -51,6 +52,7 @@ export default {
},
},
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;
this.params = this.$options.data.call(this).params
let ss = wx.getStorageSync("sessionid");
......@@ -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: {
handleError(data) {
wx.showLoading({
......
......@@ -115,6 +115,7 @@ export default {
},
onLoad(options) {
console.log("---onLoad");
this.init();
},
onShow() {
console.log("---onShow");
......@@ -201,9 +202,10 @@ export default {
if(this.editImg == true) {
console.log('----需要修改证件照')
this.update_info();
wx.setStorageSync("reloadTabbarPage", 1);
}
if(getCurrentPages().length>1){
wx.navigateBack();
wx.navigateBack({ delta: 1 });
} else {
wx.reLaunch({
url: '/pages/home/main' // 指定页面的url
......
......@@ -38,7 +38,7 @@
<image
v-else
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=""
></image>
</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