| | |
| | | </view> |
| | | </view> |
| | | |
| | | <scroll-view class="mine-page__body" scroll-y :style="bodyStyle"> |
| | | <view class="mine-page__body" :style="bodyStyle"> |
| | | <view class="mine-page__content"> |
| | | <view class="mine-page__profile"> |
| | | <image class="mine-page__avatar" :src="userInfo.imgurl || '/static/image/ic_pic@2x.png'" mode="aspectFill"></image> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view style="width: 100%; height: 5rpx;"></view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | |
| | | <view class="mine-page__footer"> |
| | | <button class="mine-page__logout" hover-class="mine-page__logout--hover" @click.stop="handleLogout">退出登录</button> |
| | |
| | | menuList: [ |
| | | { key: 'wallet', title: '我的钱包' }, |
| | | { key: 'driver', title: '司机认证' }, |
| | | { key: 'guide', title: '规范须知' }, |
| | | { key: 'agreementPrivacy', title: '司机隐私政策', type: 'driverPrivacyPolicy' }, |
| | | { key: 'agreementErrandLuggage', title: '跑腿车主行李寄存须知', type: 'errandLuggageStorageNotice' }, |
| | | { key: 'agreementErrandService', title: '跑腿达人服务协议', type: 'errandServiceAgreement' }, |
| | | { key: 'agreementErrandRisk', title: '跑腿达人风险承诺', type: 'errandRiskCommitment' }, |
| | | { key: 'agreementOwnerLuggage', title: '平台车主行李寄存须知', type: 'ownerLuggageStorageNotice' }, |
| | | { key: 'agreementOwnerService', title: '平台车主服务协议', type: 'ownerServiceAgreement' }, |
| | | { key: 'agreementOwnerRisk', title: '平台车主风险承诺', type: 'ownerRiskCommitment' }, |
| | | { key: 'help', title: '帮助与客服' }, |
| | | { key: 'setting', title: '设置' } |
| | | ], |
| | |
| | | return this.useVerifiedState ? this.profileStates.verified : this.profileStates.guest |
| | | }, |
| | | bodyStyle() { |
| | | const footerHeight = uni.upx2px(124) |
| | | return { |
| | | marginTop: this.navHeight + 'px', |
| | | height: `calc(100vh - ${this.navHeight + footerHeight}px)` |
| | | marginTop: this.navHeight + 'px' |
| | | } |
| | | } |
| | | }, |
| | |
| | | url: '/pages/settings/settings' |
| | | }) |
| | | } else if (item.key === 'driver') { |
| | | if (this.userInfo.businessStatus === 99) { |
| | | if (this.userInfo.auditStatus === 99) { |
| | | uni.navigateTo({ |
| | | url: '/pages/driver-certification/driver-certification' |
| | | }) |
| | |
| | | } else if (item.key === 'wallet') { |
| | | uni.navigateTo({ |
| | | url: '/pages/wallet/wallet' |
| | | }) |
| | | } else if (item.key && item.key.startsWith('agreement')) { |
| | | uni.navigateTo({ |
| | | url: `/pages/agreement/agreement?type=${item.type}&title=${encodeURIComponent(item.title)}` |
| | | }) |
| | | } |
| | | }, |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .mine-page { |
| | | height: 100vh; |
| | | background: #f6f8fc; |
| | | overflow: hidden; |
| | | |
| | | &__nav { |
| | | position: fixed; |
| | |
| | | |
| | | &__body { |
| | | box-sizing: border-box; |
| | | // overflow: hidden; |
| | | } |
| | | |
| | | &__content { |
| | | padding: 28rpx 20rpx 20rpx; |
| | | padding: 28rpx 20rpx 0; |
| | | } |
| | | |
| | | &__profile { |
| | |
| | | right: 0; |
| | | bottom: 60rpx; |
| | | // padding: 16rpx 0 calc(env(safe-area-inset-bottom) + 20rpx); |
| | | background: #f6f8fc; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | |
| | | |
| | | .menu-panel { |
| | | margin-top: 20rpx; |
| | | margin-bottom: 200rpx; |
| | | border-radius: 22rpx; |
| | | background: #ffffff; |
| | | overflow: hidden; |