feat(uniapp_v2): 二开功能迁移与小程序主包优化
- 从 uniapp 迁移 HJF 页面、API、组件及用户/订单相关改动 - queue、assets 使用独立分包以降低主包体积 - 修复首页单根节点与支付结果页 v-if 链 - 关闭 HjfDemoPanel 全局注册;uniNoticeBar 注释 $getAppWebview 避免 __webviewId__ 报错 - 配置域名与 manifest 应用名称;cache/store 防御性处理 Made-with: Cursor
This commit is contained in:
85
pro_v3.5.1/view/uniapp_v2/pages/work/components/tabNav.vue
Normal file
85
pro_v3.5.1/view/uniapp_v2/pages/work/components/tabNav.vue
Normal file
@@ -0,0 +1,85 @@
|
||||
<template>
|
||||
<!-- 企业温馨导航 -->
|
||||
<view class="tab_nav">
|
||||
<view class="tab_list acea-row row-between">
|
||||
<view class="tab_nav_item acea-row row-center row-column row-middle"
|
||||
:class="active == 0 ? 'on' : ''" @click="switchTab(0)">
|
||||
<text class="iconfont" :class="active == 0 ? 'icon-kehu-xuanzhong' : 'icon-kehu'" ></text>
|
||||
<span>客户</span>
|
||||
</view>
|
||||
<view class="tab_nav_item acea-row row-center row-column row-middle"
|
||||
:class="active == 1 ? 'on' : ''" @click="switchTab(1)">
|
||||
<text class="iconfont " :class="active == 1 ? 'icon-dingdan-xuanzhong' : 'icon-dingdan1'"></text>
|
||||
<span>订单</span>
|
||||
</view>
|
||||
<view class="tab_nav_item acea-row row-center row-column row-middle"
|
||||
:class="active == 2 ? 'on' : ''" @click="switchTab(2)">
|
||||
<text class="iconfont" :class="active == 2 ? 'icon-zuji-xuanzhong' : 'icon-zuji'"></text>
|
||||
<span>足迹</span>
|
||||
</view>
|
||||
<slot name="bottom"></slot>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default{
|
||||
data() {
|
||||
return {
|
||||
active1:this.active
|
||||
}
|
||||
},
|
||||
props:{
|
||||
active:{
|
||||
type:Number,
|
||||
default:0
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
switchTab(index){
|
||||
// this.active = index;
|
||||
let userid = this.$Cache.get('work_user_id')
|
||||
if(index == 0){
|
||||
uni.reLaunch({
|
||||
url:'/pages/work/userInfo/index?userid=' + userid
|
||||
})
|
||||
}else if(index == 1){
|
||||
uni.reLaunch({
|
||||
url:'/pages/work/orderList/index'
|
||||
})
|
||||
}else if(index == 2){
|
||||
uni.reLaunch({
|
||||
url:'/pages/work/record/index'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.tab_nav{
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
|
||||
padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
|
||||
}
|
||||
.tab_nav_item{
|
||||
width: 33.3%;
|
||||
height: 100rpx;
|
||||
background: #fff;
|
||||
.title{
|
||||
color: #1A1A1A;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.iconfont{
|
||||
font-size: 36rpx;
|
||||
}
|
||||
}
|
||||
.icon-kehu-xuanzhong,.icon-dingdan-xuanzhong,.icon-jilu-xuanzhong{
|
||||
color: #1890FF;
|
||||
}
|
||||
.on{
|
||||
color: #1890FF;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user