myRegistration.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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="my-registration" v-if="current==0">
  11. <view class="card">
  12. <view class="positon-salary">
  13. <view class="positon">
  14. 家政清洁
  15. </view>
  16. <view class="salary">
  17. 200元/天
  18. </view>
  19. </view>
  20. <view class="tags-date">
  21. <view class="tags">
  22. <view class="item">
  23. 企业
  24. </view>
  25. <view class="item">
  26. 周结
  27. </view>
  28. </view>
  29. <view class="date">
  30. 报名时间:2023-06-01
  31. </view>
  32. </view>
  33. <u-line color="#E6E6E6"></u-line>
  34. <view class="check">
  35. 查看
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 收到的邀请 -->
  40. <view class="invitation-received" v-else>
  41. <view class="card">
  42. <view class="positon-salary">
  43. <view class="positon">
  44. 家政清洁
  45. </view>
  46. <view class="salary">
  47. 200元/天
  48. </view>
  49. </view>
  50. <view class="tags-date">
  51. <view class="company">
  52. 荆鹏家政公司
  53. </view>
  54. <view class="date">
  55. 邀请时间:2023-06-01
  56. </view>
  57. </view>
  58. <u-line color="#E6E6E6"></u-line>
  59. <view class="check">
  60. 查看
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. list: [{
  71. name: '我的报名'
  72. }, {
  73. name: '收到的邀请'
  74. }],
  75. current: 0
  76. }
  77. },
  78. methods: {
  79. change(index) {
  80. this.current = index;
  81. }
  82. }
  83. }
  84. </script>
  85. <style>
  86. page {
  87. background: #F0F0F2;
  88. padding-bottom: 150px;
  89. }
  90. </style>
  91. <style scoped lang="scss">
  92. .card{
  93. margin: 24rpx 32rpx;
  94. background-color: #fff;
  95. padding: 24rpx;
  96. border-radius: 12px;
  97. .positon-salary{
  98. display: flex;
  99. justify-content: space-between;
  100. align-items: center;
  101. .positon{
  102. color: rgba(16, 16, 16, 1);
  103. font-size: 36rpx;
  104. font-family: 'PingFangSC-medium';
  105. }
  106. .salary{
  107. color: rgba(255, 61, 0, 1);
  108. font-size: 32rpx;
  109. font-family: 'PingFangSC-medium';
  110. }
  111. }
  112. .tags-date{
  113. display: flex;
  114. justify-content: space-between;
  115. align-items: center;
  116. margin-top: 16rpx;
  117. margin-bottom: 24rpx;
  118. .tags{
  119. display: flex;
  120. .item{
  121. border-radius: 4px;
  122. background-color: rgba(241, 241, 247, 1);
  123. color: rgba(129, 127, 153, 1);
  124. font-size: 12px;
  125. text-align: center;
  126. line-height: 36rpx;
  127. height: 36rpx;
  128. padding: 0 12rpx;
  129. margin-right: 8rpx;
  130. }
  131. }
  132. .company{
  133. color: rgba(51, 51, 51, 1);
  134. font-size: 24rpx;
  135. }
  136. .date{
  137. color: rgba(153, 153, 153, 1);
  138. font-size: 24rpx;
  139. }
  140. }
  141. // 查看
  142. .check{
  143. width: 120rpx;
  144. height: 56rpx;
  145. line-height: 56rpx;
  146. margin-left: auto;
  147. margin-top: 24rpx;
  148. border-radius: 50px;
  149. background-color: rgba(255, 255, 255, 1);
  150. color: rgba(119, 119, 119, 1);
  151. text-align: center;
  152. font-family: Microsoft Yahei;
  153. border: 1px solid rgba(207, 210, 213, 1);
  154. }
  155. }
  156. </style>