| | |
| | | </view> |
| | | |
| | | <view class="menu-panel"> |
| | | <view v-for="item in menuList" :key="item.title" class="menu-panel__item" @click="jump(item)"> |
| | | <view v-for="item in menuList" :key="item.title" class="menu-panel__item" @click="jump(item)" v-show="item.key !== 'reward' || userInfo.auditStatus === 3"> |
| | | <text class="menu-panel__title">{{ item.title }}</text> |
| | | <view class="menu-panel__right"> |
| | | <template v-if="item.key === 'wallet'"> |
| | |
| | | <text v-else-if="userInfo.auditStatus === 3" class="menu-panel__sub menu-panel__sub--primary">已认证</text> |
| | | </template> |
| | | <template v-else-if="item.key === 'setting'"> |
| | | <text class="menu-panel__sub menu-panel__sub--muted">当前版本V1.0.0</text> |
| | | <text class="menu-panel__sub menu-panel__sub--muted">当前版本{{ appVersion }}</text> |
| | | </template> |
| | | <view class="menu-panel__arrow"> |
| | | <image src="/static/image/mine_ar2@2x.png" mode="widthFix"></image> |
| | |
| | | navHeight: 0, |
| | | useVerifiedState: true, |
| | | serverPhone: '', |
| | | appVersion: 'V1.0.0', |
| | | menuList: [ |
| | | { key: 'wallet', title: '我的钱包' }, |
| | | { key: 'driver', title: '司机认证' }, |
| | | { key: 'reward', title: '奖励大厅' }, |
| | | { key: 'revenue', title: '营收分析' }, |
| | | { key: 'agreementPrivacy', title: '司机隐私政策', type: 'driverPrivacyPolicy' }, |
| | | { key: 'agreementErrandLuggage', title: '跑腿车主行李寄存须知', type: 'errandLuggageStorageNotice' }, |
| | | { key: 'agreementErrandService', title: '跑腿达人服务协议', type: 'errandServiceAgreement' }, |
| | |
| | | const systemInfo = uni.getSystemInfoSync() |
| | | this.statusBarHeight = systemInfo.statusBarHeight || 0 |
| | | this.navHeight = this.statusBarHeight + uni.upx2px(88) |
| | | if (plus.runtime && plus.runtime.version) { |
| | | this.appVersion = 'V' + plus.runtime.version |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.getStats() |
| | |
| | | if (item.key === 'setting') { |
| | | uni.navigateTo({ |
| | | url: '/pages/settings/settings' |
| | | }) |
| | | } else if (item.key === 'reward') { |
| | | if (this.userInfo.auditStatus === 3) { |
| | | uni.navigateTo({ |
| | | url: '/pages/reward-hall/reward-hall' |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '认证通过后才可进入奖励大厅', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } else if (item.key === 'revenue') { |
| | | uni.navigateTo({ |
| | | url: '/pages/revenue-analysis/revenue-analysis' |
| | | }) |
| | | } else if (item.key === 'driver') { |
| | | if (this.userInfo.auditStatus === 99) { |
| | |
| | | } |
| | | |
| | | &__footer { |
| | | position: fixed; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 60rpx; |
| | | // padding: 16rpx 0 calc(env(safe-area-inset-bottom) + 20rpx); |
| | | padding-bottom: 30rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | |
| | | |
| | | .menu-panel { |
| | | margin-top: 20rpx; |
| | | margin-bottom: 200rpx; |
| | | margin-bottom: 30rpx; |
| | | border-radius: 22rpx; |
| | | background: #ffffff; |
| | | overflow: hidden; |