receiveRegistration.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view>
  3. <u-navbar back-text="我的报名" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <!-- 标签 -->
  6. <view class="tabs">
  7. <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  8. </view>
  9. <!-- 我的报名 -->
  10. <view class="receive-registration" v-if="current==0">
  11. <view class="card">
  12. <view class="top">
  13. <!-- 头像 -->
  14. <view class="photo">
  15. <img src="@/assets/img/informationPhoto.png"></img>
  16. </view>
  17. <!-- 信息 -->
  18. <view class="infos">
  19. <view class="positon-salary">
  20. <view class="positon">
  21. 家政清洁
  22. </view>
  23. <view class="salary">
  24. 200元/天
  25. </view>
  26. </view>
  27. <view class="tags-date">
  28. <view class="tags">
  29. <view class="item">
  30. </view>
  31. <view class="item">
  32. 21岁
  33. </view>
  34. <view class="item">
  35. 高中
  36. </view>
  37. </view>
  38. <view class="date">
  39. 报名时间:2023-06-01
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <u-line color="#E6E6E6"></u-line>
  45. <view class="buttons">
  46. <view class="btn check">
  47. 查看
  48. </view>
  49. <view class="btn delete">
  50. 删除
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 邀请记录 -->
  56. <view class="invitation-record" v-if="current==1">
  57. <view class="card">
  58. <view class="top">
  59. <!-- 头像 -->
  60. <view class="photo">
  61. <img src="@/assets/img/informationPhoto.png"></img>
  62. </view>
  63. <!-- 信息 -->
  64. <view class="infos">
  65. <view class="positon-salary">
  66. <view class="positon">
  67. 家政清洁
  68. </view>
  69. <view class="salary">
  70. 200元/天
  71. </view>
  72. </view>
  73. <view class="tags-date">
  74. <view class="tags">
  75. <view class="item">
  76. </view>
  77. <view class="item">
  78. 21岁
  79. </view>
  80. <view class="item">
  81. 高中
  82. </view>
  83. </view>
  84. <view class="date">
  85. 报名时间:2023-06-01
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <u-line color="#E6E6E6"></u-line>
  91. <view class="buttons">
  92. <view class="btn check">
  93. 查看
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. import * as API from '@/apis/pagejs/packages.js'
  102. export default {
  103. data() {
  104. return {
  105. list: [{
  106. name: '收到的报名'
  107. }, {
  108. name: '邀请记录'
  109. }],
  110. current: 0
  111. }
  112. },
  113. methods: {
  114. change(index) {
  115. this.current = index;
  116. }
  117. }
  118. }
  119. </script>
  120. <style>
  121. page {
  122. background: #F0F0F2;
  123. padding-bottom: 150px;
  124. }
  125. </style>
  126. <style scoped lang="scss">
  127. .card{
  128. margin: 24rpx 32rpx;
  129. background-color: #fff;
  130. padding: 24rpx;
  131. border-radius: 12px;
  132. .top{
  133. display: flex;
  134. }
  135. // 头像
  136. .photo{
  137. width: 48px;
  138. height: 48px;
  139. border-radius: 50px;
  140. overflow: hidden;
  141. margin-right: 16rpx;
  142. img{
  143. width: 100%;
  144. height: 100%;
  145. }
  146. }
  147. // 信息
  148. .infos{
  149. flex: 1;
  150. }
  151. .positon-salary{
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. .positon{
  156. color: rgba(16, 16, 16, 1);
  157. font-size: 36rpx;
  158. font-family: 'PingFangSC-medium';
  159. }
  160. .salary{
  161. color: rgba(255, 61, 0, 1);
  162. font-size: 32rpx;
  163. font-family: 'PingFangSC-medium';
  164. }
  165. }
  166. .tags-date{
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. margin-top: 16rpx;
  171. margin-bottom: 24rpx;
  172. .tags{
  173. display: flex;
  174. .item{
  175. border-radius: 4px;
  176. background-color: rgba(241, 241, 247, 1);
  177. color: rgba(129, 127, 153, 1);
  178. font-size: 12px;
  179. text-align: center;
  180. line-height: 36rpx;
  181. height: 36rpx;
  182. padding: 0 12rpx;
  183. margin-right: 8rpx;
  184. }
  185. }
  186. .company{
  187. color: rgba(51, 51, 51, 1);
  188. font-size: 24rpx;
  189. }
  190. .date{
  191. color: rgba(153, 153, 153, 1);
  192. font-size: 24rpx;
  193. }
  194. }
  195. .buttons{
  196. display: flex;
  197. justify-content: flex-end;
  198. margin-top: 24rpx;
  199. // 查看
  200. .btn{
  201. width: 120rpx;
  202. height: 56rpx;
  203. line-height: 56rpx;
  204. border-radius: 50px;
  205. background-color: rgba(255, 255, 255, 1);
  206. color: rgba(119, 119, 119, 1);
  207. text-align: center;
  208. font-family: Microsoft Yahei;
  209. border: 1px solid rgba(207, 210, 213, 1);
  210. margin-left: 24rpx;
  211. }
  212. // 删除
  213. .delete{
  214. color: rgba(255, 61, 0, 1);
  215. }
  216. }
  217. }
  218. </style>