瑶都万能墙
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.

70 lines
1.3 KiB

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