jobInformation.vue 8.3 KB

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