shareEmployment.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view>
  3. <u-navbar back-text="共享用工" back-icon-size="28" back-icon-color="#ffffff" :background="{backgroundColor: '#2795FD',}"
  4. :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. <view class="content">
  10. <view class="info-card" v-for="item in 5">
  11. <!-- 卡片信息 -->
  12. <view class="detail">
  13. 企业现急需熟练机床车工5名,如有资源请联系0716-8818118 刘女士。
  14. </view>
  15. <view class="tag">
  16. <view class="item1">
  17. 急需用工
  18. </view>
  19. <view class="date-item">
  20. 2023-06-12
  21. </view>
  22. </view>
  23. <u-line color="#CFD2D5" />
  24. <!-- 发布状态 -->
  25. <view class="check">
  26. <view class="state">
  27. 发布中
  28. </view>
  29. <view class="handle">
  30. <view class="unamend">
  31. 修改
  32. </view>
  33. <view class="delete">
  34. 删除
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="info-card">
  40. <!-- 卡片信息 -->
  41. <view class="detail">
  42. 因企业季节性停产3个月,现产生闲置熟练机床车工5名,如有需求请联系0716-8668168 汪先生。
  43. </view>
  44. <view class="tag">
  45. <view class="item2">
  46. 资源共享
  47. </view>
  48. <view class="date-item">
  49. 2023-06-12
  50. </view>
  51. </view>
  52. <u-line color="#CFD2D5" />
  53. <!-- 发布状态-->
  54. <view class="check">
  55. <view class="state">
  56. 发布中
  57. </view>
  58. <view class="handle">
  59. <view class="amend">
  60. 修改
  61. </view>
  62. <view class="delete">
  63. 删除
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <u-divider bg-color="#F0F0F2" margin-top="40" border-color="#CFD2D5">已经到底了</u-divider>
  70. <!-- 底部按钮 -->
  71. <button class="btn">发布信息</button>
  72. </view>
  73. </template>
  74. <script>
  75. import * as API_packages from '@/apis/pagejs/packages.js'
  76. export default {
  77. data() {
  78. return {
  79. list: [{
  80. name: '发布中'
  81. }, {
  82. name: '待审核'
  83. }, {
  84. name: '未通过',
  85. }],
  86. current: 0
  87. }
  88. },
  89. methods: {
  90. change(index) {
  91. this.current = index;
  92. }
  93. }
  94. }
  95. </script>
  96. <style>
  97. page {
  98. background: #F0F0F2;
  99. padding-bottom: 120px;
  100. }
  101. </style>
  102. <style scoped lang="scss">
  103. // 标签
  104. .tabs {
  105. position: fixed;
  106. left: 0;
  107. right: 0;
  108. z-index: 99;
  109. }
  110. .content {
  111. margin-top: 108rpx;
  112. }
  113. .info-card {
  114. margin: 24rpx 32rpx 0;
  115. padding: 24rpx;
  116. background-color: #fff;
  117. border-radius: 24rpx;
  118. // 卡片信息
  119. .detail {
  120. color: rgba(16, 16, 16, 1);
  121. line-height: 40rpx;
  122. }
  123. .tag {
  124. display: flex;
  125. justify-content: space-between;
  126. margin-top: 16rpx;
  127. margin-bottom: 24rpx;
  128. .item1 {
  129. color: rgba(39, 149, 253, 1);
  130. font-size: 24rpx;
  131. }
  132. .item2 {
  133. color: rgba(0, 185, 98, 1);
  134. font-size: 24rpx;
  135. }
  136. }
  137. // 发布状态
  138. .check {
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: center;
  142. margin-top: 32rpx;
  143. .state {
  144. color: rgba(51, 51, 51, 1);
  145. font-weight: 600;
  146. }
  147. .handle {
  148. display: flex;
  149. align-items: center;
  150. .unamend {
  151. width: 120rpx;
  152. height: 56rpx;
  153. line-height: 56rpx;
  154. text-align: center;
  155. font-family: Microsoft Yahei;
  156. border: 1px solid rgba(231, 232, 234, 1);
  157. border-radius: 50px;
  158. opacity: 0.4;
  159. }
  160. .amend {
  161. width: 120rpx;
  162. height: 56rpx;
  163. line-height: 56rpx;
  164. text-align: center;
  165. font-family: Microsoft Yahei;
  166. border: 1px solid rgba(231, 232, 234, 1);
  167. border-radius: 50px;
  168. }
  169. .delete {
  170. width: 120rpx;
  171. height: 56rpx;
  172. line-height: 56rpx;
  173. text-align: center;
  174. font-family: Microsoft Yahei;
  175. border: 1px solid rgba(231, 232, 234, 1);
  176. border-radius: 50px;
  177. margin-left: 24rpx;
  178. color: #E60012;
  179. }
  180. }
  181. }
  182. }
  183. // 底部按钮
  184. .btn {
  185. position: fixed;
  186. bottom: 40rpx;
  187. left: 0;
  188. right: 0;
  189. background-color: #F0F0F2;
  190. padding: 0 32rpx;
  191. border-radius: 50px;
  192. background-color: rgba(34, 149, 255, 1);
  193. color: rgba(241, 241, 241, 1);
  194. font-size: 36rpx;
  195. margin: 0 32rpx;
  196. box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.03);
  197. }
  198. </style>