mine.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="mine_container">
  3. <view class="card_head_mine">
  4. <view class="same_row_in">
  5. <image class="logo" src="/static/logo.png"></image>
  6. <view class="login_hint">登录/注册</view>
  7. </view>
  8. <view>
  9. <u-icon name="arrow-right"></u-icon>
  10. </view>
  11. </view>
  12. <view class="card_order_box space_between">
  13. <view class="same_row_in">
  14. <u-icon name="file-text" size="25"></u-icon>
  15. <view class="title_item_shop">全部订单</view>
  16. </view>
  17. <u-icon name="arrow-right"></u-icon>
  18. </view>
  19. <view class="card_tabs_box">
  20. <view class="card_item_box space_between" v-for="(item,index) in list" :key="index" @click="goMenu(item)">
  21. <view class="same_row_in">
  22. <u-icon name="file-text" size="25"></u-icon>
  23. <view class="title_item_shop">{{item.title}}</view>
  24. </view>
  25. <u-icon name="arrow-right"></u-icon>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. list: [{
  35. type: 'drugUser',
  36. title: '用药人管理',
  37. }, {
  38. type: 'address',
  39. title: '地址管理',
  40. }, {
  41. type: 'news',
  42. title: '消息通知',
  43. }]
  44. }
  45. },
  46. onLoad() {},
  47. methods: {
  48. goMenu(event) {
  49. if (event.type == 'drugUser') {
  50. uni.navigateTo({
  51. url: '/pages/mine/drugUser'
  52. });
  53. } else if (event.type == 'address') {
  54. uni.navigateTo({
  55. url: '/pages/mine/address'
  56. });
  57. }
  58. console.log(event, 87)
  59. }
  60. }
  61. }
  62. </script>
  63. <style>
  64. /* page {
  65. background-color: #F3F4F6;
  66. } */
  67. .mine_container {
  68. width: 100%;
  69. position: relative;
  70. top: calc(28rpx + var(--status-bar-height));
  71. }
  72. .header {
  73. position: absolute;
  74. width: 100%;
  75. padding: 38rpx 20rpx 20rpx 20rpx;
  76. box-sizing: border-box;
  77. height: 42rpx;
  78. }
  79. .card_head_mine {
  80. position: relative;
  81. display: flex;
  82. justify-content: space-between;
  83. align-items: center;
  84. padding: 85rpx 30rpx 0rpx 30rpx;
  85. margin-bottom: 30rpx;
  86. }
  87. .logo {
  88. height: 100rpx;
  89. width: 100rpx;
  90. border-radius: 50%;
  91. }
  92. .login_hint {
  93. margin-left: 20rpx;
  94. font-weight: bold;
  95. font-size: 36rpx;
  96. }
  97. .card_order_box {
  98. background-color: #fff;
  99. padding: 26rpx 20rpx;
  100. margin: 20rpx;
  101. border-radius: 20rpx;
  102. }
  103. .card_tabs_box {
  104. margin: 20rpx;
  105. background-color: #fff;
  106. border-radius: 20rpx;
  107. }
  108. .card_item_box {
  109. padding: 26rpx 20rpx;
  110. border-bottom: 1px solid #F3F4F6;
  111. }
  112. .title_item_shop {
  113. margin-left: 10rpx;
  114. font-size: 30rpx;
  115. }
  116. </style>