|
@@ -6,9 +6,9 @@
|
|
|
:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
<tip-big-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :imgShow="false"></tip-big-dialog>
|
|
|
-
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -52,6 +52,7 @@
|
|
|
},
|
|
|
],
|
|
|
currentTab: 0,
|
|
|
+ isNavigating: false,
|
|
|
MESSAGE_VISITER_TO_LOGIN
|
|
|
};
|
|
|
},
|
|
@@ -82,12 +83,11 @@
|
|
|
},
|
|
|
|
|
|
switchTab(path, index) {
|
|
|
-
|
|
|
+
|
|
|
if (index == this.currentTab) {
|
|
|
// 同页面不刷新
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
if (path !== '/pages/game/index') {
|
|
|
this.currentTab = index;
|
|
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
}
|
|
|
uni.redirectTo({
|
|
|
url: path + '?nianji=' + this.nianji + '&cardId=' + this.cardId + '&zhangId=' +
|
|
|
- this.zhangId+ '&tipFlag=' + this.tipFlag
|
|
|
+ this.zhangId + '&tipFlag=' + this.tipFlag
|
|
|
});
|
|
|
} else {
|
|
|
/* if (path === '/pages/game/index') {
|
|
@@ -110,20 +110,37 @@
|
|
|
});
|
|
|
return;
|
|
|
} */
|
|
|
- uni.redirectTo({
|
|
|
- url: path,
|
|
|
- "animationType": "fade-in",
|
|
|
- "animationDuration":0
|
|
|
- });
|
|
|
+
|
|
|
+ this.navigateToEditPage(path)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ navigateToEditPage(path) {
|
|
|
+ if (this.isNavigating) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '正在跳转中...',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.isNavigating = true;
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ }); // 显示Loading
|
|
|
|
|
|
+ uni.redirectTo({
|
|
|
+ url: path,
|
|
|
+ complete: () => {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.isNavigating = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
|
|
|
- this.currentTab =this.currentTabNumber
|
|
|
+ this.currentTab = this.currentTabNumber
|
|
|
}
|
|
|
}
|
|
|
-</script>
|
|
|
-
|
|
|
+</script>
|