shareEmployment.vue 4.1 KB

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