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

优化入口

parent 43386f4f
......@@ -217,6 +217,12 @@
});
},
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) {
uni.redirectTo({
url: url,
......
......@@ -91,7 +91,7 @@
</button>
</view>
<view v-if="showtabs == true">
<tabbar></tabbar>
<tabbar ></tabbar>
</view>
<view class="tips_t" v-if="
......@@ -349,6 +349,18 @@
if (options && 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
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