jobInformation.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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="search">
  7. <view class="search-box">
  8. <view class="option">
  9. <nxsearch :selectList="selectList" button="inside" @search="doSearch" @confirm="doSearc"
  10. v-model="searchQuery.keyword" placeholder="输入关键字找工作" />
  11. </view>
  12. </view>
  13. </view>
  14. <!-- 搜索结果 -->
  15. <view class="result">
  16. <view class="tabs">
  17. <view class="left">
  18. <u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current"
  19. @change="change"></u-tabs>
  20. </view>
  21. <view class="screen" @click="popupShow = true">
  22. <view class="icon">
  23. <img src="../../assets/img/riLine-filter-line@1x.png" alt="">
  24. </view>
  25. <view>筛选</view>
  26. </view>
  27. </view>
  28. <view class="result-item" v-for="item in 3">
  29. <view class="content-1">
  30. <!-- 职位 -->
  31. <view class="position">
  32. 摄影助理
  33. </view>
  34. <!-- 薪水 -->
  35. <view class="salary">
  36. 200元/天
  37. </view>
  38. </view>
  39. <view class="content-2">
  40. <!-- 标签 -->
  41. <view class="tag">
  42. <view class="tag-item">
  43. 个人
  44. </view>
  45. <view class="tag-item">
  46. 日结
  47. </view>
  48. </view>
  49. <!-- 日期 -->
  50. <view class="date">
  51. 2023-06-01
  52. </view>
  53. </view>
  54. <view class="content-3">
  55. <view class="issuer">
  56. 李先生
  57. </view>
  58. <view class="address">
  59. 锦佳酒店
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 筛选框 -->
  65. <u-popup v-model="popupShow" @close="close" mode="bottom" border-radius="20" :closeable="true">
  66. <view class="popup-content" >
  67. <view class="headline">
  68. 筛选
  69. </view>
  70. <!-- 行业 -->
  71. <view class="industry">
  72. <view class="title">
  73. 行业
  74. </view>
  75. <!-- 选项 -->
  76. <view class="options">
  77. <view :class="{item,checked:isChecked==index}" v-for="(item,index) in industryList" :key="index"
  78. @click="changeChecked(index)" >
  79. <!-- 快递跑腿/配送/分拣 -->{{item.name}}
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 结算方式 -->
  84. <view class="clearing-form">
  85. <view class="title">
  86. 结算方式
  87. </view>
  88. <!-- 选项 -->
  89. <view class="options">
  90. <view :class="{item,checked:wayChecked==index}" v-for="(item,index) in wayList" :key="index"
  91. @click="changeWayChecked(index)" >
  92. {{item.name}}
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 薪资形式 -->
  97. <view class="salary-form">
  98. <view class="title">
  99. 薪资形式
  100. </view>
  101. <!-- 选项 -->
  102. <view class="options ">
  103. <view :class="{item,checked:saralyChecked==index}" v-for="(item,index) in salaryList" :key="index"
  104. @click="changeSaralyChecked(index)" >
  105. {{item.name}}
  106. </view>
  107. </view>
  108. </view>
  109. <view class="button">
  110. <button class="reset">重置</button>
  111. <button class="confirm">确认</button>
  112. </view>
  113. </view>
  114. </u-popup>
  115. <!-- <tabbar ref="mytabbar" :current="1"></tabbar> -->
  116. </view>
  117. </template>
  118. <script>
  119. import tabbar from "../../components/Tabbar.vue"
  120. import nxsearch from "../../components/nx-search.vue"
  121. export default {
  122. components: {
  123. nxsearch,
  124. tabbar
  125. },
  126. data() {
  127. return {
  128. keyword: '',
  129. popupShow:false,
  130. isChecked: -1,
  131. wayChecked:-1,
  132. saralyChecked:-1,
  133. searchQuery: {
  134. keyword: '',
  135. selectIndex: 0
  136. },
  137. tabList:[{
  138. name:'最新'
  139. },
  140. {
  141. name:'日结'
  142. },
  143. {
  144. name:'周结'
  145. },
  146. {
  147. name:'月结'
  148. }
  149. ],
  150. industryList: [{
  151. name: '快递跑腿/配送/分拣1'
  152. },
  153. {
  154. name: '快递跑腿/配送/分拣2'
  155. },
  156. {
  157. name: '快递跑腿/配送/分拣3'
  158. },
  159. {
  160. name: '快递跑腿/配送/分拣4'
  161. },
  162. {
  163. name: '快递跑腿/配送/分拣5'
  164. }
  165. ],
  166. wayList:[{
  167. name:'日结'
  168. },
  169. {
  170. name:'周结'
  171. },
  172. {
  173. name:'月结'
  174. },
  175. {
  176. name:'完工结算'
  177. }],
  178. salaryList:[{
  179. name:'计件'
  180. },
  181. {
  182. name:'计时'
  183. },
  184. {
  185. name:'定额'
  186. }],
  187. selectList: [{
  188. id: 1,
  189. name: '找零工'
  190. },
  191. {
  192. id: 2,
  193. name: '找公司'
  194. },
  195. ],
  196. current: 0
  197. }
  198. },
  199. methods: {
  200. // 执行搜索
  201. doSearch(searchQuery) {
  202. console.log('searchQuery', searchQuery);
  203. },
  204. change(index) {
  205. this.current = index;
  206. },
  207. changeChecked(index) {
  208. this.isChecked = index;
  209. },
  210. changeWayChecked(index){
  211. this.wayChecked = index;
  212. },
  213. changeSaralyChecked(index){
  214. this.saralyChecked = index;
  215. },
  216. close(){
  217. this.isChecked = -1;
  218. this.wayChecked = -1;
  219. this.saralyChecked = -1;
  220. }
  221. }
  222. }
  223. </script>
  224. <style>
  225. page {
  226. background: #F0F0F2;
  227. padding-bottom: 50px;
  228. }
  229. </style>
  230. <style lang="scss" scoped>
  231. .search {
  232. background-color: #fff;
  233. padding: 16rpx 32rpx;
  234. .search-box {
  235. border-radius: 50px;
  236. height: 72rpx;
  237. line-height: 72rpx;
  238. }
  239. }
  240. // 搜索结果
  241. .result {
  242. background-color: #fff;
  243. .tabs {
  244. padding-right: 32rpx;
  245. display: flex;
  246. justify-content: space-between;
  247. align-items: center;
  248. border-bottom: 1px solid #f1f1f1;
  249. .left {
  250. width: 68%;
  251. /deep/.u-tabs {
  252. background-color: #fff !important;
  253. }
  254. }
  255. .screen {
  256. display: flex;
  257. align-items: center;
  258. color: rgba(39, 149, 253, 1);
  259. font-size: 16px;
  260. img {
  261. width: 16px;
  262. height: 16px;
  263. vertical-align: middle;
  264. margin-right: 4rpx;
  265. }
  266. }
  267. }
  268. .result-item {
  269. padding: 24rpx 0;
  270. margin: 0 32rpx;
  271. border-bottom: 1px solid #F0F0F2;
  272. .content-1 {
  273. display: flex;
  274. justify-content: space-between;
  275. align-items: center;
  276. // 职位
  277. .position {
  278. color: rgba(16, 16, 16, 1);
  279. font-size: 36rpx;
  280. font-family: 'PingFang Medium';
  281. }
  282. // 薪水
  283. .salary {
  284. color: rgba(255, 61, 0, 1);
  285. font-size: 32rpx;
  286. font-family: 'PingFang Medium';
  287. }
  288. }
  289. .content-2 {
  290. margin-top: 12rpx;
  291. display: flex;
  292. justify-content: space-between;
  293. // 标签
  294. .tag {
  295. display: flex;
  296. .tag-item {
  297. width: 64rpx;
  298. height: 36rpx;
  299. line-height: 36rpx;
  300. border-radius: 8rpx;
  301. background-color: rgba(241, 241, 247, 1);
  302. color: rgba(129, 127, 153, 1);
  303. font-size: 24rpx;
  304. text-align: center;
  305. margin-right: 12rpx;
  306. }
  307. }
  308. // 日期
  309. .date {
  310. color: rgba(153, 153, 153, 1);
  311. font-size: 24rpx;
  312. }
  313. }
  314. .content-3 {
  315. margin-top: 20rpx;
  316. display: flex;
  317. justify-content: space-between;
  318. align-items: center;
  319. .issuer {
  320. color: rgba(51, 51, 51, 1);
  321. font-size: 24rpx;
  322. }
  323. .address {
  324. color: rgba(51, 51, 51, 1);
  325. font-size: 24rpx;
  326. }
  327. }
  328. }
  329. }
  330. // 筛选框
  331. .popup-content {
  332. padding: 32rpx;
  333. .headline {
  334. color: #101010;
  335. font-size: 40rpx;
  336. text-align: center;
  337. }
  338. //行业
  339. .industry,.clearing-form,.salary-form{
  340. margin-top: 16rpx;
  341. .title {
  342. font-size: 32rpx;
  343. color: #111111;
  344. }
  345. // 选项
  346. .options {
  347. display: flex;
  348. justify-content: space-between;
  349. flex-wrap: wrap;
  350. margin-top: 24rpx;
  351. .item {
  352. height: 56rpx;
  353. line-height: 56rpx;
  354. padding: 0 32rpx;
  355. margin-bottom: 16rpx;
  356. color: #999999;
  357. background-color: #F3F3F4;
  358. border-radius: 4px;
  359. }
  360. .checked {
  361. background-color: #2795FD;
  362. color: #fff;
  363. }
  364. }
  365. }
  366. .button{
  367. display: flex;
  368. margin-top:8rpx;
  369. .reset{
  370. color: #999999;
  371. background-color: #F3F3F4;
  372. width: 200rpx;
  373. height: 72rpx;
  374. line-height: 72rpx;
  375. border-radius: 8px;
  376. }
  377. .confirm{
  378. width: 440rpx;
  379. background-color: #2795FD;
  380. color: #fff;
  381. height: 72rpx;
  382. line-height: 72rpx;
  383. border-radius: 8px;
  384. }
  385. }
  386. }
  387. .salary-form,.clearing-form{
  388. .options{
  389. justify-content: start !important;
  390. }
  391. .item{
  392. margin-right: 24rpx;
  393. }
  394. }
  395. /deep/.u-close--top-right {
  396. top: 44rpx;
  397. }
  398. </style>