From d7a1f9601bf4a1f1d0a6026fb2ffe6b158a178d1 Mon Sep 17 00:00:00 2001 From: wangjw <wangjw@dbc-healthcare.com> Date: Wed, 22 Apr 2020 14:12:54 +0800 Subject: [PATCH] bug fix --- main.js | 8 ++++++-- pages/financial/financialstage.vue | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index b2d22a0..2f9775a 100644 --- a/main.js +++ b/main.js @@ -82,8 +82,12 @@ function jump(url, type) { if(type === 1){ // 閲嶅畾鍚戝埌鎸囧畾鍦板潃锛岄槻姝㈠洖閫€ window.location.replace(url); - }else{ - window.location.href = url; + } else if (type === 2){ + uni.navigateTo({ + url: url + }) + } else { + window.location.href = url; } // #endif diff --git a/pages/financial/financialstage.vue b/pages/financial/financialstage.vue index 711b681..b1d26ae 100644 --- a/pages/financial/financialstage.vue +++ b/pages/financial/financialstage.vue @@ -2,12 +2,12 @@ <view class="fin_content"> <SearchBar :isLogin="isLogin"/> <view class="tab_bar"> - <text @click="$jump('/pages/home/home')">棣栭〉</text> + <text @click="$jump('/pages/home/home', 2)">棣栭〉</text> <!-- <text @click="jumpPhpPage('app=promotion')">绮惧僵娲诲姩</text> --> - <text @click="$jump('/pages/index/index')"> + <!-- <text @click="$jump('/pages/index/index')"> <i class="credit_icon"></i> 璋涘疂鐧芥潯 - </text> + </text> --> <text class="act">閲囪喘鍒嗘湡</text> </view> <!-- <view class="flex_category"> -- 2.18.1