普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
4.8 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="page__view">
  3. <image class="bg" src="@/pages_order/static/center/bg.png" mode="widthFix"></image>
  4. <view class="main">
  5. <navbar bgColor="transparent" >
  6. <image class="nav-icon" src="@/pages_order/static/center/icon-nav.png" mode="widthFix"></image>
  7. </navbar>
  8. <view class="content">
  9. <view class="flex user">
  10. <view class="user-avatar">
  11. <image class="user-avatar-img" src="@/pages_order/static/report/avatar.png" mode="scaleToFill"></image>
  12. </view>
  13. <view class="user-info">
  14. <view class="user-info-name">战斗世界</view>
  15. <view class="user-info-desc">世界这么美身体要健康</view>
  16. </view>
  17. </view>
  18. <reportCard></reportCard>
  19. <orderCard></orderCard>
  20. <accountCard></accountCard>
  21. <view class="card">
  22. <view v-for="item in list1" :key="item.id">
  23. <!-- todo: key -> custom -->
  24. <view class="flex row" @click="$utils.navigateTo(item.path)">
  25. <view class="flex label">
  26. <image class="icon" :src="item.icon" mode="scaleToFill"></image>
  27. <view>{{ item.label }}</view>
  28. </view>
  29. <uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="card">
  34. <view v-for="item in list2" :key="item.id">
  35. <!-- todo: key -> custom -->
  36. <view class="flex row" @click="$utils.navigateTo(item.path)">
  37. <view class="flex label">
  38. <image class="icon" :src="item.icon" mode="scaleToFill"></image>
  39. <view>{{ item.label }}</view>
  40. </view>
  41. <uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <tabber select="center" />
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import tabber from '@/components/base/tabbar.vue'
  52. import reportCard from '@/components/center/reportCard.vue'
  53. import orderCard from '@/components/center/orderCard.vue'
  54. import accountCard from '@/components/center/accountCard.vue'
  55. export default {
  56. components: {
  57. reportCard,
  58. orderCard,
  59. accountCard,
  60. tabber,
  61. },
  62. data() {
  63. return {
  64. list1: [
  65. // todo
  66. { id: '001', label: '检测预约', icon: '/pages_order/static/center/icon-detectBook.png', path: '/pages_order/mine/detectBook' },
  67. // todo
  68. { id: '002', label: '联系客服', icon: '/pages_order/static/center/icon-service.png', key: 'service' },
  69. // todo
  70. { id: '003', label: '服用说明', icon: '/pages_order/static/center/icon-instruc.png', path: '/pages_order/mine/instruc' },
  71. // todo
  72. { id: '004', label: '用户须知', icon: '/pages_order/static/center/icon-userAgreement.png', path: '/pages_order/mine/userAgreement' },
  73. ],
  74. list2: [
  75. // todo
  76. { id: '005', label: '我的评价', icon: '/pages_order/static/center/icon-comment.png', path: '/pages_order/mine/detectBook' },
  77. // todo
  78. { id: '006', label: '关于我们', icon: '/pages_order/static/center/icon-aboutUs.png', path: '/pages_order/mine/service' },
  79. // todo
  80. { id: '007', label: '修改信息', icon: '/pages_order/static/center/icon-modifyInfo.png', path: '/pages_order/mine/instruc' },
  81. // todo
  82. { id: '008', label: '退出登录', icon: '/pages_order/static/center/icon-logout.png', key: 'logout' },
  83. ],
  84. }
  85. },
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .page__view {
  90. width: 100vw;
  91. min-height: 100vh;
  92. background-color: $uni-bg-color;
  93. position: relative;
  94. /deep/ .nav-bar__view {
  95. position: fixed;
  96. top: 0;
  97. left: 0;
  98. }
  99. .nav-icon {
  100. width: 200rpx;
  101. height: auto;
  102. vertical-align: top;
  103. }
  104. }
  105. .bg {
  106. width: 100vw;
  107. height: auto;
  108. }
  109. .main {
  110. position: absolute;
  111. top: 176rpx;
  112. left: 0;
  113. width: 100%;
  114. }
  115. .content {
  116. width: 100%;
  117. padding: 16rpx 32rpx 80rpx 32rpx;
  118. box-sizing: border-box;
  119. }
  120. .user {
  121. column-gap: 24rpx;
  122. &-avatar {
  123. flex: none;
  124. width: 100rpx;
  125. height: 100rpx;
  126. border: 4rpx solid #FFFFFF;
  127. border-radius: 50%;
  128. overflow: hidden;
  129. &-img {
  130. width: 100%;
  131. height: 100%;
  132. }
  133. }
  134. &-info {
  135. flex: 1;
  136. &-name {
  137. font-family: PingFang SC;
  138. font-weight: 600;
  139. font-size: 36rpx;
  140. line-height: 1.2;
  141. color: #FFFFFF;
  142. }
  143. &-desc {
  144. margin-top: 8rpx;
  145. font-family: PingFang SC;
  146. font-weight: 400;
  147. font-size: 24rpx;
  148. line-height: 1.5;
  149. color: #F4F4F4;
  150. }
  151. }
  152. }
  153. .card {
  154. margin-top: 32rpx;
  155. width: 100%;
  156. background: #FAFAFF;
  157. border: 2rpx solid #FFFFFF;
  158. border-radius: 32rpx;
  159. box-sizing: border-box;
  160. .row {
  161. justify-content: space-between;
  162. width: 100%;
  163. padding: 40rpx;
  164. box-sizing: border-box;
  165. .label {
  166. font-family: PingFang SC;
  167. font-weight: 400;
  168. font-size: 28rpx;
  169. line-height: 1;
  170. color: #252545;
  171. .icon {
  172. margin-right: 16rpx;
  173. width: 40rpx;
  174. height: 40rpx;
  175. }
  176. }
  177. }
  178. }
  179. </style>