鸿宇研学生前端代码
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.

174 lines
4.2 KiB

  1. <template>
  2. <view class="page__view highlight">
  3. <!-- 导航栏 -->
  4. <navbar title="我的成就" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="main">
  6. <view class="flex summary">
  7. <view class="info">
  8. <view class="flex title">共获得<view class="highlight">8</view>枚成就</view>
  9. <view class="tag">新获得</view>
  10. </view>
  11. <view class="icon">
  12. <image class="img" src="@/pages_order/static/temp-49.png" mode="widthFix"></image>
  13. </view>
  14. </view>
  15. <view class="list">
  16. <recordsView :list="list"></recordsView>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import mixinsList from '@/mixins/list.js'
  23. import recordsView from './recordsView.vue'
  24. export default {
  25. mixins: [mixinsList],
  26. components: {
  27. recordsView,
  28. },
  29. data() {
  30. return {
  31. keyword: '',
  32. // todo
  33. mixinsListApi: '',
  34. }
  35. },
  36. onLoad({ search }) {
  37. if (search) {
  38. this.keyword = search
  39. this.queryParams.title = search
  40. }
  41. this.getData()
  42. },
  43. methods: {
  44. // todo: delete
  45. getData() {
  46. this.list = [
  47. {
  48. id: '001',
  49. name: '呼伦贝尔6/8日丨经典or环线 双套餐可选',
  50. children: [
  51. {
  52. id: '0011',
  53. icon: '/pages_order/static/temp-47.png',
  54. label: '言值认证',
  55. createTime: '2025-07-12',
  56. },
  57. {
  58. id: '0012',
  59. icon: '/pages_order/static/temp-47.png',
  60. label: '国际旅行',
  61. createTime: '2025-07-12',
  62. },
  63. {
  64. id: '0013',
  65. icon: '/pages_order/static/temp-47.png',
  66. label: '萌新毕业证',
  67. createTime: '2025-07-12',
  68. },
  69. ],
  70. },
  71. {
  72. id: '002',
  73. name: '新疆天山行7/9日丨醉美伊犁&吐鲁番双套餐新疆天山行7/9日丨醉美伊犁&吐鲁番双套餐',
  74. children: [
  75. {
  76. id: '0011',
  77. icon: '/pages_order/static/temp-47.png',
  78. label: '言值认证',
  79. createTime: '2025-05-15',
  80. },
  81. ],
  82. },
  83. {
  84. id: '003',
  85. name: '呼伦贝尔6/8日丨经典or环线 双套餐可选',
  86. children: [
  87. {
  88. id: '0011',
  89. icon: '/pages_order/static/temp-47.png',
  90. label: '言值认证',
  91. createTime: '2025-07-12',
  92. },
  93. {
  94. id: '0012',
  95. icon: '/pages_order/static/temp-47.png',
  96. label: '国际旅行',
  97. createTime: '2025-07-12',
  98. },
  99. ],
  100. },
  101. {
  102. id: '004',
  103. name: '新丝路到敦煌7日丨甘青轻松穿越,沙漠+草原',
  104. children: [
  105. {
  106. id: '0012',
  107. icon: '/pages_order/static/temp-47.png',
  108. label: '国际旅行',
  109. createTime: '2025-07-12',
  110. },
  111. {
  112. id: '0013',
  113. icon: '/pages_order/static/temp-47.png',
  114. label: '萌新毕业证',
  115. createTime: '2025-07-12',
  116. },
  117. ],
  118. },
  119. ]
  120. },
  121. },
  122. }
  123. </script>
  124. <style scoped lang="scss">
  125. .summary {
  126. padding: 16rpx 72rpx 32rpx 64rpx;
  127. justify-content: space-between;
  128. font-family: PingFang SC;
  129. font-weight: 400;
  130. line-height: 1.4;
  131. .info {
  132. .title {
  133. font-size: 32rpx;
  134. font-weight: 600;
  135. color: #000000;
  136. .highlight {
  137. margin: 0 8rpx;
  138. color: $uni-color;
  139. }
  140. }
  141. .tag {
  142. margin-top: 4rpx;
  143. display: inline-block;
  144. padding: 4rpx 16rpx;
  145. font-size: 26rpx;
  146. color: #21607D;
  147. background: #DBF4FF;
  148. border-radius: 22rpx;
  149. }
  150. }
  151. .icon {
  152. width: 160rpx;
  153. height: auto;
  154. .img {
  155. width: 100%;
  156. height: auto;
  157. }
  158. }
  159. }
  160. </style>