jobInformation.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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. industryList: [{
  138. name: '快递跑腿/配送/分拣1'
  139. },
  140. {
  141. name: '快递跑腿/配送/分拣2'
  142. },
  143. {
  144. name: '快递跑腿/配送/分拣3'
  145. },
  146. {
  147. name: '快递跑腿/配送/分拣4'
  148. },
  149. {
  150. name: '快递跑腿/配送/分拣5'
  151. }
  152. ],
  153. wayList:[{
  154. name:'日结'
  155. },
  156. {
  157. name:'周结'
  158. },
  159. {
  160. name:'月结'
  161. },
  162. {
  163. name:'完工结算'
  164. }],
  165. salaryList:[{
  166. name:'计件'
  167. },
  168. {
  169. name:'计时'
  170. },
  171. {
  172. name:'定额'
  173. }],
  174. selectList: [{
  175. id: 1,
  176. name: '找零工'
  177. },
  178. {
  179. id: 2,
  180. name: '找公司'
  181. },
  182. ],
  183. current: 0
  184. }
  185. },
  186. methods: {
  187. // 执行搜索
  188. doSearch(searchQuery) {
  189. console.log('searchQuery', searchQuery);
  190. },
  191. change(index) {
  192. this.current = index;
  193. },
  194. changeChecked(index) {
  195. this.isChecked = index;
  196. },
  197. changeWayChecked(index){
  198. this.wayChecked = index;
  199. },
  200. changeSaralyChecked(index){
  201. this.saralyChecked = index;
  202. },
  203. close(){
  204. this.isChecked = -1;
  205. this.wayChecked = -1;
  206. this.saralyChecked = -1;
  207. }
  208. }
  209. }
  210. </script>
  211. <style lang="scss" scoped>
  212. page {
  213. background: #F0F0F2;
  214. padding-bottom: 50px;
  215. }
  216. .search {
  217. background-color: #fff;
  218. padding: 16rpx 32rpx;
  219. .search-box {
  220. border-radius: 50px;
  221. height: 72rpx;
  222. line-height: 72rpx;
  223. }
  224. }
  225. // 搜索结果
  226. .result {
  227. background-color: #fff;
  228. .tabs {
  229. padding-right: 32rpx;
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. border-bottom: 1px solid #f1f1f1;
  234. .left {
  235. width: 68%;
  236. /deep/.u-tabs {
  237. background-color: #fff !important;
  238. }
  239. }
  240. .screen {
  241. display: flex;
  242. align-items: center;
  243. color: rgba(39, 149, 253, 1);
  244. font-size: 16px;
  245. img {
  246. width: 16px;
  247. height: 16px;
  248. vertical-align: middle;
  249. margin-right: 4rpx;
  250. }
  251. }
  252. }
  253. .result-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. .popup-content {
  317. padding: 32rpx;
  318. .headline {
  319. color: #101010;
  320. font-size: 40rpx;
  321. text-align: center;
  322. }
  323. //行业
  324. .industry,.clearing-form,.salary-form{
  325. margin-top: 16rpx;
  326. .title {
  327. font-size: 32rpx;
  328. color: #111111;
  329. }
  330. // 选项
  331. .options {
  332. display: flex;
  333. justify-content: space-between;
  334. flex-wrap: wrap;
  335. margin-top: 24rpx;
  336. .item {
  337. height: 56rpx;
  338. line-height: 56rpx;
  339. padding: 0 32rpx;
  340. margin-bottom: 16rpx;
  341. color: #999999;
  342. background-color: #F3F3F4;
  343. border-radius: 4px;
  344. }
  345. .checked {
  346. background-color: #2795FD;
  347. color: #fff;
  348. }
  349. }
  350. }
  351. .button{
  352. display: flex;
  353. margin-top:8rpx;
  354. .reset{
  355. color: #999999;
  356. background-color: #F3F3F4;
  357. width: 200rpx;
  358. height: 72rpx;
  359. line-height: 72rpx;
  360. border-radius: 8px;
  361. }
  362. .confirm{
  363. width: 440rpx;
  364. background-color: #2795FD;
  365. color: #fff;
  366. height: 72rpx;
  367. line-height: 72rpx;
  368. border-radius: 8px;
  369. }
  370. }
  371. }
  372. .salary-form,.clearing-form{
  373. .options{
  374. justify-content: start !important;
  375. }
  376. .item{
  377. margin-right: 24rpx;
  378. }
  379. }
  380. /deep/.u-close--top-right {
  381. top: 44rpx;
  382. }
  383. </style>