index.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <template>
  2. <view>
  3. <u-navbar back-text="荆州经开区共享用工平台" :customBack="customBack" :background="background" :back-text-style="backColor"></u-navbar>
  4. <!-- 头部 -->
  5. <view class="top">
  6. <!-- 搜索框 -->
  7. <view class="search">
  8. <u-search placeholder="请输入找工关键字" v-model="keyword" :show-action="false"></u-search>
  9. </view>
  10. </view>
  11. <!-- 幻灯片 -->
  12. <view class="swiper">
  13. <u-swiper :list="list"></u-swiper>
  14. </view>
  15. <!-- 功能区 -->
  16. <view class="function">
  17. <view class="function-item" @click="gotoUrl('pages/choreInformation/choreInformation')">
  18. <view class="icon-box icon-box3">
  19. <view class="icon">
  20. <img src="../../assets/img/riFill-contacts-book-2-fill@1x.png" alt="">
  21. </view>
  22. </view>
  23. <view class="item-text">
  24. 零工驿站
  25. </view>
  26. </view>
  27. <view class="function-item" @click="gotoUrl('pages/choreInformation/choreInformation')">
  28. <view class="icon-box icon-box2">
  29. <view class="icon">
  30. <img src="../../assets/img/riFill-heart-2-fill@1x.png" alt="">
  31. </view>
  32. </view>
  33. <view class="item-text">
  34. 爱心驿站
  35. </view>
  36. </view>
  37. <view class="function-item" @click="gotoUrl('pages/mine/employmentService/shareEmployment')">
  38. <view class="icon-box">
  39. <view class="icon">
  40. <img src="../../assets/img/riFill-cloud-fill@1x.png" alt="">
  41. </view>
  42. </view>
  43. <view class="item-text">
  44. 共享用工
  45. </view>
  46. </view>
  47. <view class="function-item">
  48. <view class="icon-box icon-box4">
  49. <view class="icon">
  50. <img src="../../assets/img/riFill-tools-fill@1x.png" alt="">
  51. </view>
  52. </view>
  53. <view class="item-text">
  54. 技能培训
  55. </view>
  56. </view>
  57. <view class="function-item">
  58. <view class="icon-box icon-box5">
  59. <view class="icon">
  60. <img src="../../assets/img/riFill-newspaper-fill@1x.png" alt="">
  61. </view>
  62. </view>
  63. <view class="item-text">
  64. 政策发布
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 标签 -->
  69. <view class="tabs">
  70. <view class="title">
  71. <u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
  72. <view class="more">
  73. 更多
  74. <u-icon name="arrow-right"></u-icon>
  75. </view>
  76. </view>
  77. <!-- 卡片 -->
  78. <view class="classify-card">
  79. <view class="item" v-for="item in 3">
  80. <view class="content-1">
  81. <!-- 职位 -->
  82. <view class="position">
  83. 摄影助理
  84. </view>
  85. <!-- 薪水 -->
  86. <view class="salary">
  87. 200元/天
  88. </view>
  89. </view>
  90. <view class="content-2">
  91. <!-- 标签 -->
  92. <view class="tag">
  93. <view class="tag-item">
  94. 个人
  95. </view>
  96. <view class="tag-item">
  97. 日结
  98. </view>
  99. </view>
  100. <!-- 日期 -->
  101. <view class="date">
  102. 2023-06-01
  103. </view>
  104. </view>
  105. <view class="content-3">
  106. <view class="issuer">
  107. 李先生
  108. </view>
  109. <view class="address">
  110. 锦佳酒店
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <tabbar ref="mytabbar"
  117. :current="0"></tabbar>
  118. </view>
  119. </template>
  120. <script>
  121. import tabbar from "../../components/Tabbar.vue"
  122. export default {
  123. components: {
  124. tabbar
  125. },
  126. data() {
  127. return {
  128. keyword: '',
  129. // 导航栏背景
  130. background: {
  131. backgroundColor: '#2795FD',
  132. },
  133. backColor: {
  134. color: '#ffffff'
  135. },
  136. list: [{
  137. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
  138. },
  139. {
  140. image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
  141. },
  142. {
  143. image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
  144. }
  145. ],
  146. tabList: [{
  147. name: '最新'
  148. }, {
  149. name: '日结'
  150. }, {
  151. name: '周结',
  152. },{
  153. name:'月结'
  154. }],
  155. current:0
  156. }
  157. },
  158. onLoad() {
  159. },
  160. methods: {
  161. customBack(){},
  162. change(index) {
  163. this.current = index;
  164. }
  165. }
  166. }
  167. </script>
  168. <style>
  169. page {
  170. background: #F0F0F2;
  171. padding-bottom: 50px;
  172. }
  173. </style>
  174. <style scoped lang="scss">
  175. /deep/.u-navbar {
  176. .u-icon--right {
  177. display: none !important;
  178. }
  179. }
  180. // 头部
  181. .top {
  182. // 搜索框
  183. .search {
  184. background-color: rgba(39, 149, 253, 1);
  185. padding: 16rpx 32rpx;
  186. }
  187. }
  188. // 功能区
  189. .function {
  190. background-color: #fff;
  191. padding: 32rpx 46rpx;
  192. display: flex;
  193. justify-content: space-between;
  194. .function-item {
  195. display: flex;
  196. flex-direction: column;
  197. justify-content: center;
  198. align-items: center;
  199. .icon-box {
  200. width: 96rpx;
  201. height: 96rpx;
  202. background-color: rgba(240, 233, 255, 1);
  203. text-align: center;
  204. border-radius: 999px;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. }
  209. .icon-box2 {
  210. background-color: rgba(255, 234, 230, 1);
  211. }
  212. .icon-box3 {
  213. background-color: rgba(227, 246, 255, 1);
  214. }
  215. .icon-box4 {
  216. background-color: rgba(255, 242, 224, 1);
  217. }
  218. .icon-box5 {
  219. background-color: rgba(221, 247, 238, 1);
  220. }
  221. .icon {
  222. width: 48rpx;
  223. height: 48rpx;
  224. img {
  225. width: 100%;
  226. height: 100%;
  227. }
  228. }
  229. .item-text {
  230. color: rgba(51, 51, 51, 1);
  231. margin-top: 8rpx;
  232. font-family: 'PingFang Medium';
  233. }
  234. }
  235. }
  236. // 标签
  237. .tabs{
  238. margin-top: 32rpx;
  239. .title{
  240. display: flex;
  241. justify-content: space-between;
  242. align-items: center;
  243. padding: 0rpx 24rpx;
  244. /deep/.u-tabs{
  245. width: 400rpx;
  246. }
  247. .more{
  248. color: rgba(119, 119, 119, 1);
  249. }
  250. }
  251. .classify-card{
  252. background-color: #fff;
  253. .item{
  254. padding: 24rpx 0;
  255. margin: 0 32rpx;
  256. border-bottom: 1px solid #F0F0F2;
  257. .content-1{
  258. display: flex;
  259. justify-content: space-between;
  260. align-items: center;
  261. // 职位
  262. .position{
  263. color: rgba(16, 16, 16, 1);
  264. font-size: 36rpx;
  265. font-family: 'PingFang Medium';
  266. }
  267. // 薪水
  268. .salary{
  269. color: rgba(255, 61, 0, 1);
  270. font-size: 32rpx;
  271. font-family: 'PingFang Medium';
  272. }
  273. }
  274. .content-2{
  275. margin-top: 12rpx;
  276. display: flex;
  277. justify-content: space-between;
  278. // 标签
  279. .tag{
  280. display: flex;
  281. .tag-item{
  282. width: 64rpx;
  283. height: 36rpx;
  284. line-height: 36rpx;
  285. border-radius: 8rpx;
  286. background-color: rgba(241, 241, 247, 1);
  287. color: rgba(129, 127, 153, 1);
  288. font-size: 24rpx;
  289. text-align: center;
  290. margin-right: 12rpx;
  291. }
  292. }
  293. // 日期
  294. .date{
  295. color: rgba(153, 153, 153, 1);
  296. font-size: 24rpx;
  297. }
  298. }
  299. .content-3{
  300. margin-top: 20rpx;
  301. display: flex;
  302. justify-content: space-between;
  303. align-items: center;
  304. .issuer{
  305. color: rgba(51, 51, 51, 1);
  306. font-size: 24rpx;
  307. }
  308. .address{
  309. color: rgba(51, 51, 51, 1);
  310. font-size: 24rpx;
  311. }
  312. }
  313. }
  314. }
  315. }
  316. </style>