123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <template>
- <view class="">
- <view class="head">
- <image src="../../static/mic.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
- <view class="nickname">
- 昵称
- </view>
- </view>
- <view class="content">
- <view class="row" style="border-bottom: 1px solid #d6d7d9;">
- <button class="left-btn left" open-type='contact'>联系客服</button>
- <u-icon name="arrow-right" color="#909399" size="16"></u-icon>
- </view>
- <view class="row" @click="toPage">
- <view class="left">
- 去用户端
- </view>
- <u-icon name="arrow-right" color="#909399" size="16"></u-icon>
- </view>
- </view>
- <u-tabbar :value="tabbarCheck" @change="tabbarChange" activeColor="#5F7DE9">
- <u-tabbar-item name="team" text="加入">
- <image class="u-page__item__slot-icon" slot="active-icon"
- src="@/static/image/nav-icon/antOutline-team Copy.png"></image>
- <image class="u-page__item__slot-icon" slot="inactive-icon"
- src="@/static/image/nav-icon/antOutline-team.png"></image>
- </u-tabbar-item>
- <u-tabbar-item name="notification" text="通知">
- <image class="u-page__item__slot-icon" slot="active-icon"
- src="@/static/image/nav-icon/md-notifications_none Copy.png"></image>
- <image class="u-page__item__slot-icon" slot="inactive-icon"
- src="@/static/image/nav-icon/md-notifications_none.png"></image>
- </u-tabbar-item>
- <u-tabbar-item name="user" text="我的">
- <image class="u-page__item__slot-icon" slot="active-icon"
- src="@/static/image/nav-icon/antOutline-user1 Copy.png"></image>
- <image class="u-page__item__slot-icon" slot="inactive-icon"
- src="@/static/image/nav-icon/antOutline-user1.png"></image>
- </u-tabbar-item>
- </u-tabbar>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- tabbarCheck: 'user',
- }
- },
- methods: {
- toPage(){
- uni.switchTab({
- url:"/pages/food/food"
- })
- },
- tabbarChange(e) {
- console.log(e)
- if (e == 'team') {
- uni.navigateTo({
- url: '/pageA/notice/index'
- })
- } else if (e == 'user') {
- uni.navigateTo({
- url: '/pageA/my/my'
- })
- }
- // name => tabbarCheck = name
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .head{
- background: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- padding: 40rpx;
- .nickname{
- margin-top: 30rpx;
- font-size: 32rpx;
- font-weight: bold;
- }
- }
- .content{
- background: #fff;
- margin-top: 20rpx;
- padding: 20rpx;
-
- }
- .left-btn {
- padding: 0;
- margin: 0;
- font-size: 15px;
- height: 42rpx;
- display: flex;
- align-items: center;
- background-color: #fff;
- }
-
- .left-btn:after {
- border: none !important;
- }
- .row{
- display: flex;
- padding: 20rpx 0;
- justify-content: space-between;
-
- }
- </style>
|