Commit 22fcc826 by 张卓

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents e86afeda cf08618e
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
<apply-sucess-entry></apply-sucess-entry> <apply-sucess-entry></apply-sucess-entry>
</div> </div>
<!-- 底部栏 --> <!-- 底部栏 -->
{{active}}
<custom-tab-bar class="custom-tab-bar" :selected="active"></custom-tab-bar> <custom-tab-bar class="custom-tab-bar" :selected="active"></custom-tab-bar>
</div> </div>
</template> </template>
...@@ -407,7 +408,7 @@ export default { ...@@ -407,7 +408,7 @@ export default {
}) })
}, },
scrolls(el){ scrolls(el){
this.setFooterShow(el); // this.setFooterShow(el);
if (this.pageData) { if (this.pageData) {
for (let i = 0; i < this.pageData.length; i++) { for (let i = 0; i < this.pageData.length; i++) {
const element = this.pageData[i] const element = this.pageData[i]
......
...@@ -26,6 +26,11 @@ export function getUrlofQuery(data) { ...@@ -26,6 +26,11 @@ export function getUrlofQuery(data) {
} }
// 全局跳转 data:link数据 option:是否为底部栏触发 // 全局跳转 data:link数据 option:是否为底部栏触发
export function $themeToLink(data, option) { export function $themeToLink(data, option) {
// console.log(currentPage,'currentPage',getUrlofLink(data))
// if(getUrlofLink(data).includes(currentPage)) return
//
let app = getApp(); let app = getApp();
let type = data.type; let type = data.type;
// 登录拦截和底部导航栏拦截(非功能项) // 登录拦截和底部导航栏拦截(非功能项)
...@@ -44,14 +49,21 @@ export function $themeToLink(data, option) { ...@@ -44,14 +49,21 @@ export function $themeToLink(data, option) {
let isTabbarIndex = checkTabbarPage(parseLink); let isTabbarIndex = checkTabbarPage(parseLink);
if (isTabbarIndex >= 0) { if (isTabbarIndex >= 0) {
// 无底部栏h5页面 // 无底部栏h5页面
if (!containFooterPage.includes(parseLink)) { // if (!containFooterPage.includes(parseLink)) {
toPage(getUrlofLink(data), getUrlofQuery(data)) // toPage(getUrlofLink(data), getUrlofQuery(data))
return // return
} // }
isTabbarIndex = isTabbarIndex == 0 ? checkTabbarPage('/') : isTabbarIndex
let query=parseQuery?`?${parseQuery}`:''
isTabbarIndex = isTabbarIndex == 0 ? checkTabbarPage('/') : isTabbarIndex;
let url=parseLink == '/' ? `/pages/home/main` : `/pages/tabBar${isTabbarIndex}/main`;
let routes = getCurrentPages();
let currentPage = routes[routes.length - 1].route;
if (currentPage==url) return
let query=parseQuery?`?${parseQuery}`:'';
wx.reLaunch({ wx.reLaunch({
url: parseLink == '/' ? `/pages/home/main${query}` : `/pages/tabBar${isTabbarIndex}/main${query}`, url:url+query
}) })
return return
} }
......
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