receiveRegistration.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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. export default {
  102. data() {
  103. return {
  104. list: [{
  105. name: '收到的报名'
  106. }, {
  107. name: '邀请记录'
  108. }],
  109. current: 0
  110. }
  111. },
  112. methods: {
  113. change(index) {
  114. this.current = index;
  115. }
  116. }
  117. }
  118. </script>
  119. <style>
  120. page {
  121. background: #F0F0F2;
  122. padding-bottom: 150px;
  123. }
  124. </style>
  125. <style scoped lang="scss">
  126. .card{
  127. margin: 24rpx 32rpx;
  128. background-color: #fff;
  129. padding: 24rpx;
  130. border-radius: 12px;
  131. .top{
  132. display: flex;
  133. }
  134. // 头像
  135. .photo{
  136. width: 48px;
  137. height: 48px;
  138. border-radius: 50px;
  139. overflow: hidden;
  140. margin-right: 16rpx;
  141. img{
  142. width: 100%;
  143. height: 100%;
  144. }
  145. }
  146. // 信息
  147. .infos{
  148. flex: 1;
  149. }
  150. .positon-salary{
  151. display: flex;
  152. justify-content: space-between;
  153. align-items: center;
  154. .positon{
  155. color: rgba(16, 16, 16, 1);
  156. font-size: 36rpx;
  157. font-family: 'PingFangSC-medium';
  158. }
  159. .salary{
  160. color: rgba(255, 61, 0, 1);
  161. font-size: 32rpx;
  162. font-family: 'PingFangSC-medium';
  163. }
  164. }
  165. .tags-date{
  166. display: flex;
  167. justify-content: space-between;
  168. align-items: center;
  169. margin-top: 16rpx;
  170. margin-bottom: 24rpx;
  171. .tags{
  172. display: flex;
  173. .item{
  174. border-radius: 4px;
  175. background-color: rgba(241, 241, 247, 1);
  176. color: rgba(129, 127, 153, 1);
  177. font-size: 12px;
  178. text-align: center;
  179. line-height: 36rpx;
  180. height: 36rpx;
  181. padding: 0 12rpx;
  182. margin-right: 8rpx;
  183. }
  184. }
  185. .company{
  186. color: rgba(51, 51, 51, 1);
  187. font-size: 24rpx;
  188. }
  189. .date{
  190. color: rgba(153, 153, 153, 1);
  191. font-size: 24rpx;
  192. }
  193. }
  194. .buttons{
  195. display: flex;
  196. justify-content: flex-end;
  197. margin-top: 24rpx;
  198. // 查看
  199. .btn{
  200. width: 120rpx;
  201. height: 56rpx;
  202. line-height: 56rpx;
  203. border-radius: 50px;
  204. background-color: rgba(255, 255, 255, 1);
  205. color: rgba(119, 119, 119, 1);
  206. text-align: center;
  207. font-family: Microsoft Yahei;
  208. border: 1px solid rgba(207, 210, 213, 1);
  209. margin-left: 24rpx;
  210. }
  211. // 删除
  212. .delete{
  213. color: rgba(255, 61, 0, 1);
  214. }
  215. }
  216. }
  217. </style>