import {Cell, InfiniteLoading} from '@nutui/nutui-react-taro' import navTo from "@/utils/common"; import UserFooter from "./UserFooter"; import Taro from '@tarojs/taro' import {ArrowRight, ShieldCheck, Truck, LogisticsError} from '@nutui/icons-react-taro' import {CSSProperties, useEffect, useState} from "react"; const UserCell = () => { const [roleName, setRoleName] = useState('') const InfiniteUlStyle: CSSProperties = { height: '88vh', padding: '16px', overflowY: 'auto', overflowX: 'hidden', } const onLogout = () => { Taro.showModal({ title: '提示', content: '确定要退出登录吗?', success: function (res) { if (res.confirm) { Taro.clearStorageSync() Taro.removeStorageSync('access_token') Taro.removeStorageSync('TenantId') Taro.removeStorageSync('UserId') Taro.removeStorageSync('userInfo') Taro.reLaunch({ url: '/pages/index/index' }) } } }) } useEffect(() => { setRoleName(Taro.getStorageSync('RoleCode')) }, []); return ( <>
实名认证
} align="center" extra={} onClick={() => { navTo('/user/userVerify/index', true) }} /> { (roleName === 'kuaidi' || roleName == 'zhandian') && ( 实名认证审核 } align="center" extra={} onClick={() => { navTo('/user/userVerify/admin', true) }} /> ) } { roleName === 'kuaidiyuan' && ( <> 车辆信息 } align="center" extra={} onClick={() => { navTo('/user/car/index', true) }} /> 报险记录 } align="center" extra={} onClick={() => { navTo('/hjm/bx/bx', true) }} /> ) } { roleName === 'jiaojing' && ( 违章记录 } align="center" extra={} onClick={() => { navTo('/hjm/violation/list', true) }} /> ) } { roleName === 'youzheng' && ( 违章记录 } align="center" extra={} onClick={() => { navTo('/hjm/violation/list', true) }} /> ) } {/**/} {/* 管理*/} {/* */} {/*}>*/} {/* */} {/* */} {/* 分析*/} {/* */} {/* }*/} {/* align="center"*/} {/* extra={}*/} {/* onClick={() => {*/} {/* navTo('/bszx/bm-cert/bm-cert', true)*/} {/* }}*/} {/* />*/} {/* */} {/* */} {/* 客户*/} {/* */} {/* }*/} {/* align="center"*/} {/* extra={}*/} {/* onClick={() => {*/} {/* navTo('/bszx/pay-log/pay-log', true)*/} {/* }}*/} {/* />*/} {/* */} {/* */} {/* 折扣*/} {/* */} {/* }*/} {/* align="center"*/} {/* extra={}*/} {/* onClick={() => {*/} {/* navTo('/user/profile/profile', true)*/} {/* }}*/} {/* />*/} {/**/} {/**/} {/* 设置与帮助*/} {/* */} {/*}>*/} {/* }*/} {/* onClick={() => Taro.navigateTo({url: '/website/modify'})}*/} {/* />*/} {/* }*/} {/* onClick={() => {*/} {/* navTo('/user/profile/profile', true)*/} {/* }}*/} {/* />*/} {/* }*/} {/* onClick={() => {*/} {/* navTo('/user/profile/profile', true)*/} {/* }}*/} {/* />*/} {/**/} 账号管理 }> } onClick={() => navTo('/user/profile/profile', true)} /> } onClick={() => navTo('/passport/sms-login', true)} /> } onClick={onLogout} /> ) } export default UserCell