瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB

3 months ago
  1. <template>
  2. <view class="page pageList">
  3. <navbar title="找车" bgColor="#5baaff" color="#fff" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="top-bg"></view>
  5. <view style="padding: 10rpx 30rpx 0 30rpx;">
  6. <uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
  7. placeholder="请输入搜索关键字..." v-model="queryParams.title"></uv-search>
  8. </view>
  9. <view class="">
  10. <screenRen :isArea="false" @clickItem="clickItem" />
  11. </view>
  12. <!-- <view class="list">
  13. <cartItem :key="index" v-for="(item, index) in list" :item="item"
  14. @click="$utils.navigateTo('/pages_order/car/carListDetail?id=' + item.id)" />
  15. </view> -->
  16. <!-- <view class="heid">
  17. <view class="pepo">
  18. 人找车
  19. </view>
  20. <view class="car">
  21. 车找人
  22. </view>
  23. </view> -->
  24. </view>
  25. </template>
  26. <script>
  27. import mixinsList from '@/mixins/list.js'
  28. import screenRen from '../components/screen/screenRen.vue'
  29. import cartItem from '../components/list/cart/cartItem.vue'
  30. export default {
  31. mixins: [mixinsList],
  32. components: {
  33. cartItem,
  34. screenRen,
  35. },
  36. data() {
  37. return {
  38. mixinsListApi: 'getCatPage',
  39. }
  40. },
  41. methods: {
  42. clickItem(result) {
  43. this.queryParams = {
  44. pageNo: 1,
  45. pageSize: 10,
  46. }
  47. result.forEach(n => {
  48. this.queryParams[n.name] = n.value
  49. })
  50. this.getData()
  51. },
  52. }
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .page {
  57. .list {
  58. padding: 0 20rpx;
  59. }
  60. }
  61. .top-bg {
  62. position: absolute;
  63. height: 500rpx;
  64. width: 100%;
  65. background: linear-gradient($uni-color, #fff);
  66. }
  67. </style>