- 从 uniapp 迁移 HJF 页面、API、组件及用户/订单相关改动 - queue、assets 使用独立分包以降低主包体积 - 修复首页单根节点与支付结果页 v-if 链 - 关闭 HjfDemoPanel 全局注册;uniNoticeBar 注释 $getAppWebview 避免 __webviewId__ 报错 - 配置域名与 manifest 应用名称;cache/store 防御性处理 Made-with: Cursor
52 lines
961 B
Vue
52 lines
961 B
Vue
<template>
|
|
<view>
|
|
<template3 v-if="level == 2" :level="level"></template3>
|
|
<template2 v-else :level="level"></template2>
|
|
<tab-bar></tab-bar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import template2 from './template/template2.vue';
|
|
import template3 from './template/template3.vue';
|
|
import tabBar from "../components/tabBar/index.vue"
|
|
import { mapGetters } from 'vuex';
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
},
|
|
components: {
|
|
template2,
|
|
template3,
|
|
tabBar
|
|
},
|
|
computed:{
|
|
...mapGetters(['isLogin', 'uid', 'diyCategory']),
|
|
level(){
|
|
return this.diyCategory.level
|
|
},
|
|
},
|
|
onLoad() {
|
|
let identity = this.$store.state.app.identity;
|
|
if(identity != 1 && this.isLogin){
|
|
setTimeout(()=>{
|
|
uni.switchTab({
|
|
url: "/pages/index/index"
|
|
})
|
|
},500)
|
|
}else if(identity == 2 && this.isLogin){
|
|
uni.redirectTo({
|
|
url: "/pages/admin/work/index"
|
|
})
|
|
}
|
|
}
|
|
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
</style>
|