my.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view>
  3. <view class="head">
  4. <image src="../../static/mic.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
  5. <view class="nickname">
  6. 昵称
  7. </view>
  8. </view>
  9. <view class="content">
  10. <view class="contact">
  11. <view class="row">
  12. <view class="flex justify-space-between kf">
  13. <button class="left-btn" open-type='contact'>联系客服</button>
  14. <u-icon name="arrow-right" color="#909399" size="16"></u-icon>
  15. </view>
  16. </view>
  17. <view class="row" @click="toPage">
  18. <view class="left">
  19. 去用户端
  20. </view>
  21. <view class="right">
  22. >
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <u-tabbar :value="tabbarCheck" @change="tabbarChange" activeColor="#5F7DE9">
  28. <u-tabbar-item name="team" text="加入">
  29. <image class="u-page__item__slot-icon" slot="active-icon"
  30. src="@/static/image/nav-icon/antOutline-team Copy.png"></image>
  31. <image class="u-page__item__slot-icon" slot="inactive-icon"
  32. src="@/static/image/nav-icon/antOutline-team.png"></image>
  33. </u-tabbar-item>
  34. <u-tabbar-item name="notification" text="通知">
  35. <image class="u-page__item__slot-icon" slot="active-icon"
  36. src="@/static/image/nav-icon/md-notifications_none Copy.png"></image>
  37. <image class="u-page__item__slot-icon" slot="inactive-icon"
  38. src="@/static/image/nav-icon/md-notifications_none.png"></image>
  39. </u-tabbar-item>
  40. <u-tabbar-item name="user" text="我的">
  41. <image class="u-page__item__slot-icon" slot="active-icon"
  42. src="@/static/image/nav-icon/antOutline-user1 Copy.png"></image>
  43. <image class="u-page__item__slot-icon" slot="inactive-icon"
  44. src="@/static/image/nav-icon/antOutline-user1.png"></image>
  45. </u-tabbar-item>
  46. </u-tabbar>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. tabbarCheck: 'user',
  54. }
  55. },
  56. methods: {
  57. toPage(){
  58. uni.switchTab({
  59. url:"/pages/food/food"
  60. })
  61. },
  62. tabbarChange(e) {
  63. console.log(e)
  64. if (e == 'team') {
  65. uni.navigateTo({
  66. url: '/pageA/notice/index'
  67. })
  68. } else if (e == 'user') {
  69. uni.navigateTo({
  70. url: '/pageA/my/my'
  71. })
  72. }
  73. // name => tabbarCheck = name
  74. },
  75. }
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .head{
  80. background: #fff;
  81. }
  82. .content{
  83. background: #fff;
  84. margin-top: 20rpx;
  85. }
  86. </style>