|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="ezy-custom-tabbar">
|
|
<view class="ezy-custom-tabbar">
|
|
|
<view class="tabbar-item-box" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)">
|
|
<view class="tabbar-item-box" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)">
|
|
|
- <view class="tabbar-item"
|
|
|
|
|
|
|
+ <view class="tabbar-item"
|
|
|
:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
|
|
:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<tip-big-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :imgShow="true"></tip-big-dialog>
|
|
<tip-big-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :imgShow="true"></tip-big-dialog>
|
|
|
-
|
|
|
|
|
|
|
+ <tishiDlVue ref="popupRef"></tishiDlVue>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -27,10 +27,12 @@
|
|
|
import {
|
|
import {
|
|
|
nextTick,
|
|
nextTick,
|
|
|
} from "vue";
|
|
} from "vue";
|
|
|
|
|
+ import tishiDlVue from './tishiDl.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
tipMiddleDialog,
|
|
tipMiddleDialog,
|
|
|
- tipBigDialog
|
|
|
|
|
|
|
+ tipBigDialog,
|
|
|
|
|
+ tishiDlVue
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -92,32 +94,13 @@
|
|
|
// 同页面不刷新
|
|
// 同页面不刷新
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (path !== '/pages/game/index') {
|
|
|
|
|
- this.currentTab = index;
|
|
|
|
|
- }
|
|
|
|
|
- if (getUserIdentity() == 'Visitor') {
|
|
|
|
|
- if (path === '/pages/game/index') {
|
|
|
|
|
- this.$refs.youkeDialogRef.handleShow();
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: path + '?levelId=' + this.levelId + '&typeId=' + this.typeId + '&subjectId=' +
|
|
|
|
|
- this.subjectId + '&tipFlag=' + this.tipFlag
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- /* if (path === '/pages/game/index') {
|
|
|
|
|
- // 游戏需要返回功能
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: path,
|
|
|
|
|
- "animationType": "fade-in",
|
|
|
|
|
- "animationDuration":0
|
|
|
|
|
- });
|
|
|
|
|
- return;
|
|
|
|
|
- } */
|
|
|
|
|
-
|
|
|
|
|
- this.navigateToEditPage(path)
|
|
|
|
|
|
|
|
|
|
|
|
+ if (path == '/pages/chanpinneirong/index' && !cacheManager.get('auth').typeId) {
|
|
|
|
|
+ this.$refs.popupRef.open();
|
|
|
|
|
+ return false
|
|
|
}
|
|
}
|
|
|
|
|
+ this.currentTab = index;
|
|
|
|
|
+ this.navigateToEditPage(path)
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
navigateToEditPage(path) {
|
|
navigateToEditPage(path) {
|