choreInformation.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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="result-item" v-for="item in 3">
  17. <!-- 照片 -->
  18. <view class="photo">
  19. <img src="../../assets/img/informationPhoto.png" alt="">
  20. </view>
  21. <view class="content">
  22. <!-- 职位薪水 -->
  23. <view class="top">
  24. <view class="position">
  25. 司机/保安/普工/地推
  26. </view>
  27. <view class="salary">
  28. 120元/天
  29. </view>
  30. </view>
  31. <view class="issuer">
  32. 李先生
  33. </view>
  34. <view class="bottom">
  35. <view class="tags">
  36. <view class="tag-item">
  37. </view>
  38. <view class="tag-item">
  39. 21岁
  40. </view>
  41. <view class="tag-item">
  42. 高中
  43. </view>
  44. </view>
  45. <view class="date">
  46. 更新时间:2023-06-01
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <tabbar ref="mytabbar"
  53. :current="3"></tabbar>
  54. </view>
  55. </template>
  56. <script>
  57. import nxsearch from "../../components/nx-search.vue"
  58. import tabbar from "../../components/Tabbar.vue"
  59. export default {
  60. components: {
  61. nxsearch,
  62. tabbar
  63. },
  64. data() {
  65. return {
  66. keyword: '',
  67. searchQuery: {
  68. keyword: '',
  69. selectIndex: 0
  70. },
  71. selectList: [{
  72. id: 1,
  73. name: '找工作'
  74. },
  75. {
  76. id: 2,
  77. name: '找公司'
  78. },
  79. ],
  80. tabList: [{
  81. name: '最新'
  82. }, {
  83. name: '日结'
  84. }],
  85. current: 0
  86. }
  87. },
  88. methods: {
  89. // 执行搜索
  90. doSearch(searchQuery) {
  91. console.log('searchQuery', searchQuery);
  92. },
  93. change(index) {
  94. this.current = index;
  95. }
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. page {
  101. background: #F0F0F2;
  102. padding-bottom: 50px;
  103. }
  104. .search {
  105. background-color: #fff;
  106. padding: 16rpx 32rpx;
  107. .search-box {
  108. border-radius: 50px;
  109. height: 72rpx;
  110. line-height: 72rpx;
  111. }
  112. }
  113. // 搜索结果
  114. .result{
  115. background-color: #fff;
  116. .tabs{
  117. padding-right:32rpx;
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. border-bottom:1px solid #f1f1f1;
  122. .left{
  123. width: 33%;
  124. /deep/.u-tabs{
  125. background-color: #fff !important;
  126. }
  127. }
  128. .screen{
  129. display: flex;
  130. align-items: center;
  131. color: rgba(39, 149, 253, 1);
  132. font-size: 16px;
  133. img{
  134. width: 16px;
  135. height: 16px;
  136. vertical-align: middle;
  137. margin-right: 4rpx;
  138. }
  139. }
  140. }
  141. .result-item{
  142. padding: 32rpx 0;
  143. margin:0 32rpx;
  144. display: flex;
  145. border-bottom:1px solid #f1f1f1;
  146. // 照片
  147. .photo{
  148. width: 96rpx;
  149. height:96rpx;
  150. overflow: hidden;
  151. border-radius: 50px;
  152. border: 1px solid rgba(255, 255, 255, 1);
  153. img{
  154. width: 100%;
  155. height: 100%;
  156. }
  157. }
  158. .content{
  159. margin-left: 24rpx;
  160. flex:1;
  161. // 职位薪水
  162. .top{
  163. display: flex;
  164. justify-content: space-between;
  165. align-items: center;
  166. font-size: 36rpx;
  167. .position{
  168. color: rgba(16, 16, 16, 1);
  169. font-family: 'PingFangSC-medium';
  170. }
  171. .salary{
  172. color: rgba(255, 61, 0, 1);
  173. font-size: 32rpx;
  174. }
  175. }
  176. // 发布人
  177. .issuer{
  178. margin-top:16rpx;
  179. }
  180. // 标签和时间
  181. .bottom{
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. margin-top:24rpx;
  186. .tags{
  187. display: flex;
  188. .tag-item{
  189. padding:0 16rpx ;
  190. height: 36rpx;
  191. line-height: 36rpx;
  192. border-radius: 4px;
  193. background-color: rgba(241, 241, 247, 1);
  194. color: rgba(129, 127, 153, 1);
  195. font-size: 24rpx;
  196. text-align: center;
  197. margin-right: 8rpx;
  198. }
  199. }
  200. .date{
  201. color: rgba(153, 153, 153, 1);
  202. font-size: 24rpx;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. </style>