searchResult.vue 4.3 KB

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