index.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <template>
  2. <view>
  3. <u-navbar back-text="荆开零工驿站" :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">
  18. <view class="icon-box">
  19. <view class="icon">
  20. <img src="../../assets/img/riFill-cloud-fill@1x.png" alt="">
  21. </view>
  22. </view>
  23. <view class="item-text">
  24. 共享用工
  25. </view>
  26. </view>
  27. <view class="function-item">
  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">
  38. <view class="icon-box icon-box3">
  39. <view class="icon">
  40. <img src="../../assets/img/riFill-contacts-book-2-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. change(index) {
  162. this.current = index;
  163. }
  164. }
  165. }
  166. </script>
  167. <style>
  168. page {
  169. background: #F0F0F2;
  170. padding-bottom: 50px;
  171. }
  172. </style>
  173. <style scoped lang="scss">
  174. /deep/.u-navbar {
  175. .u-icon--right {
  176. display: none !important;
  177. }
  178. }
  179. // 头部
  180. .top {
  181. // 搜索框
  182. .search {
  183. background-color: rgba(39, 149, 253, 1);
  184. padding: 16rpx 32rpx;
  185. }
  186. }
  187. // 功能区
  188. .function {
  189. background-color: #fff;
  190. padding: 32rpx 46rpx;
  191. display: flex;
  192. justify-content: space-between;
  193. .function-item {
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: center;
  197. align-items: center;
  198. .icon-box {
  199. width: 96rpx;
  200. height: 96rpx;
  201. background-color: rgba(240, 233, 255, 1);
  202. text-align: center;
  203. border-radius: 999px;
  204. display: flex;
  205. justify-content: center;
  206. align-items: center;
  207. }
  208. .icon-box2 {
  209. background-color: rgba(255, 234, 230, 1);
  210. }
  211. .icon-box3 {
  212. background-color: rgba(227, 246, 255, 1);
  213. }
  214. .icon-box4 {
  215. background-color: rgba(255, 242, 224, 1);
  216. }
  217. .icon-box5 {
  218. background-color: rgba(221, 247, 238, 1);
  219. }
  220. .icon {
  221. width: 48rpx;
  222. height: 48rpx;
  223. img {
  224. width: 100%;
  225. height: 100%;
  226. }
  227. }
  228. .item-text {
  229. color: rgba(51, 51, 51, 1);
  230. margin-top: 8rpx;
  231. font-family: 'PingFang Medium';
  232. }
  233. }
  234. }
  235. // 标签
  236. .tabs{
  237. margin-top: 32rpx;
  238. .title{
  239. display: flex;
  240. justify-content: space-between;
  241. align-items: center;
  242. padding: 0rpx 24rpx;
  243. /deep/.u-tabs{
  244. width: 400rpx;
  245. }
  246. .more{
  247. color: rgba(119, 119, 119, 1);
  248. }
  249. }
  250. .classify-card{
  251. background-color: #fff;
  252. .item{
  253. padding: 24rpx 0;
  254. margin: 0 32rpx;
  255. border-bottom: 1px solid #F0F0F2;
  256. .content-1{
  257. display: flex;
  258. justify-content: space-between;
  259. align-items: center;
  260. // 职位
  261. .position{
  262. color: rgba(16, 16, 16, 1);
  263. font-size: 36rpx;
  264. font-family: 'PingFang Medium';
  265. }
  266. // 薪水
  267. .salary{
  268. color: rgba(255, 61, 0, 1);
  269. font-size: 32rpx;
  270. font-family: 'PingFang Medium';
  271. }
  272. }
  273. .content-2{
  274. margin-top: 12rpx;
  275. display: flex;
  276. justify-content: space-between;
  277. // 标签
  278. .tag{
  279. display: flex;
  280. .tag-item{
  281. width: 64rpx;
  282. height: 36rpx;
  283. line-height: 36rpx;
  284. border-radius: 8rpx;
  285. background-color: rgba(241, 241, 247, 1);
  286. color: rgba(129, 127, 153, 1);
  287. font-size: 24rpx;
  288. text-align: center;
  289. margin-right: 12rpx;
  290. }
  291. }
  292. // 日期
  293. .date{
  294. color: rgba(153, 153, 153, 1);
  295. font-size: 24rpx;
  296. }
  297. }
  298. .content-3{
  299. margin-top: 20rpx;
  300. display: flex;
  301. justify-content: space-between;
  302. align-items: center;
  303. .issuer{
  304. color: rgba(51, 51, 51, 1);
  305. font-size: 24rpx;
  306. }
  307. .address{
  308. color: rgba(51, 51, 51, 1);
  309. font-size: 24rpx;
  310. }
  311. }
  312. }
  313. }
  314. }
  315. </style>