Commit 7e715025 authored by 罗超's avatar 罗超

优化入口

parent 43386f4f
...@@ -217,6 +217,12 @@ ...@@ -217,6 +217,12 @@
}); });
}, },
goUrl(url) { goUrl(url) {
const replace = uni.getStorageSync('replace_page_index')
if(url=='/pages/index/index' && replace && replace.url){
url = replace.url
}
console.log(url,replace)
if (this.crtPath != url) { if (this.crtPath != url) {
uni.redirectTo({ uni.redirectTo({
url: url, url: url,
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</button> </button>
</view> </view>
<view v-if="showtabs == true"> <view v-if="showtabs == true">
<tabbar></tabbar> <tabbar ></tabbar>
</view> </view>
<view class="tips_t" v-if=" <view class="tips_t" v-if="
...@@ -349,6 +349,18 @@ ...@@ -349,6 +349,18 @@
if (options && options.type) { if (options && options.type) {
this.carrierType = options.type; this.carrierType = options.type;
} }
if (options && options.setnav){
let current_url = "/"+this.currentParent+'?'
for (let key in options) {
current_url += key + '=' + options[key]+'&';
}
current_url = current_url.slice(0, -1);
const replacePageData = {
url: current_url,
state: options.setnav
}
uni.setStorageSync("replace_page_index",replacePageData)
}
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
wx.showShareMenu({ wx.showShareMenu({
......
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