jobInformation.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  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 nxsearch from "@/components/nx-search.vue"
  120. export default {
  121. components: {
  122. nxsearch,
  123. },
  124. data() {
  125. return {
  126. keyword: '',
  127. popupShow:false,
  128. isChecked: -1,
  129. wayChecked:-1,
  130. saralyChecked:-1,
  131. searchQuery: {
  132. keyword: '',
  133. selectIndex: 0
  134. },
  135. tabList:[{
  136. name:'最新'
  137. },
  138. {
  139. name:'日结'
  140. },
  141. {
  142. name:'周结'
  143. },
  144. {
  145. name:'月结'
  146. }
  147. ],
  148. industryList: [{
  149. name: '快递跑腿/配送/分拣1'
  150. },
  151. {
  152. name: '快递跑腿/配送/分拣2'
  153. },
  154. {
  155. name: '快递跑腿/配送/分拣3'
  156. },
  157. {
  158. name: '快递跑腿/配送/分拣4'
  159. },
  160. {
  161. name: '快递跑腿/配送/分拣5'
  162. }
  163. ],
  164. wayList:[{
  165. name:'日结'
  166. },
  167. {
  168. name:'周结'
  169. },
  170. {
  171. name:'月结'
  172. },
  173. {
  174. name:'完工结算'
  175. }],
  176. salaryList:[{
  177. name:'计件'
  178. },
  179. {
  180. name:'计时'
  181. },
  182. {
  183. name:'定额'
  184. }],
  185. selectList: [{
  186. id: 1,
  187. name: '找零工'
  188. },
  189. {
  190. id: 2,
  191. name: '找公司'
  192. },
  193. ],
  194. current: 0
  195. }
  196. },
  197. methods: {
  198. // 执行搜索
  199. doSearch(searchQuery) {
  200. console.log('searchQuery', searchQuery);
  201. },
  202. change(index) {
  203. this.current = index;
  204. },
  205. changeChecked(index) {
  206. this.isChecked = index;
  207. },
  208. changeWayChecked(index){
  209. this.wayChecked = index;
  210. },
  211. changeSaralyChecked(index){
  212. this.saralyChecked = index;
  213. },
  214. close(){
  215. this.isChecked = -1;
  216. this.wayChecked = -1;
  217. this.saralyChecked = -1;
  218. }
  219. }
  220. }
  221. </script>
  222. <style>
  223. page {
  224. background: #F0F0F2;
  225. padding-bottom: 50px;
  226. }
  227. </style>
  228. <style lang="scss" scoped>
  229. .search {
  230. background-color: #fff;
  231. padding: 16rpx 32rpx;
  232. .search-box {
  233. border-radius: 50px;
  234. height: 72rpx;
  235. line-height: 72rpx;
  236. }
  237. }
  238. // 搜索结果
  239. .result {
  240. background-color: #fff;
  241. .tabs {
  242. padding-right: 32rpx;
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: center;
  246. border-bottom: 1px solid #f1f1f1;
  247. .left {
  248. width: 68%;
  249. /deep/.u-tabs {
  250. background-color: #fff !important;
  251. }
  252. }
  253. .screen {
  254. display: flex;
  255. align-items: center;
  256. color: rgba(39, 149, 253, 1);
  257. font-size: 16px;
  258. img {
  259. width: 16px;
  260. height: 16px;
  261. vertical-align: middle;
  262. margin-right: 4rpx;
  263. }
  264. }
  265. }
  266. .result-item {
  267. padding: 24rpx 0;
  268. margin: 0 32rpx;
  269. border-bottom: 1px solid #F0F0F2;
  270. .content-1 {
  271. display: flex;
  272. justify-content: space-between;
  273. align-items: center;
  274. // 职位
  275. .position {
  276. color: rgba(16, 16, 16, 1);
  277. font-size: 36rpx;
  278. font-family: 'PingFang Medium';
  279. }
  280. // 薪水
  281. .salary {
  282. color: rgba(255, 61, 0, 1);
  283. font-size: 32rpx;
  284. font-family: 'PingFang Medium';
  285. }
  286. }
  287. .content-2 {
  288. margin-top: 12rpx;
  289. display: flex;
  290. justify-content: space-between;
  291. // 标签
  292. .tag {
  293. display: flex;
  294. .tag-item {
  295. width: 64rpx;
  296. height: 36rpx;
  297. line-height: 36rpx;
  298. border-radius: 8rpx;
  299. background-color: rgba(241, 241, 247, 1);
  300. color: rgba(129, 127, 153, 1);
  301. font-size: 24rpx;
  302. text-align: center;
  303. margin-right: 12rpx;
  304. }
  305. }
  306. // 日期
  307. .date {
  308. color: rgba(153, 153, 153, 1);
  309. font-size: 24rpx;
  310. }
  311. }
  312. .content-3 {
  313. margin-top: 20rpx;
  314. display: flex;
  315. justify-content: space-between;
  316. align-items: center;
  317. .issuer {
  318. color: rgba(51, 51, 51, 1);
  319. font-size: 24rpx;
  320. }
  321. .address {
  322. color: rgba(51, 51, 51, 1);
  323. font-size: 24rpx;
  324. }
  325. }
  326. }
  327. }
  328. // 筛选框
  329. .popup-content {
  330. padding: 32rpx;
  331. .headline {
  332. color: #101010;
  333. font-size: 40rpx;
  334. text-align: center;
  335. }
  336. //行业
  337. .industry,.clearing-form,.salary-form{
  338. margin-top: 16rpx;
  339. .title {
  340. font-size: 32rpx;
  341. color: #111111;
  342. }
  343. // 选项
  344. .options {
  345. display: flex;
  346. justify-content: space-between;
  347. flex-wrap: wrap;
  348. margin-top: 24rpx;
  349. .item {
  350. height: 56rpx;
  351. line-height: 56rpx;
  352. padding: 0 32rpx;
  353. margin-bottom: 16rpx;
  354. color: #999999;
  355. background-color: #F3F3F4;
  356. border-radius: 4px;
  357. }
  358. .checked {
  359. background-color: #2795FD;
  360. color: #fff;
  361. }
  362. }
  363. }
  364. .button{
  365. display: flex;
  366. margin-top:8rpx;
  367. .reset{
  368. color: #999999;
  369. background-color: #F3F3F4;
  370. width: 200rpx;
  371. height: 72rpx;
  372. line-height: 72rpx;
  373. border-radius: 8px;
  374. }
  375. .confirm{
  376. width: 440rpx;
  377. background-color: #2795FD;
  378. color: #fff;
  379. height: 72rpx;
  380. line-height: 72rpx;
  381. border-radius: 8px;
  382. }
  383. }
  384. }
  385. .salary-form,.clearing-form{
  386. .options{
  387. justify-content: start !important;
  388. }
  389. .item{
  390. margin-right: 24rpx;
  391. }
  392. }
  393. /deep/.u-close--top-right {
  394. top: 44rpx;
  395. }
  396. </style>