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

76 lines
1.5 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page pageList">
  3. <navbar title="租房列表" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="flex"
  5. style="padding: 20rpx;">
  6. <uv-search
  7. @search="getData"
  8. :showAction="false"
  9. searchIconSize="30rpx"
  10. placeholder="请输入搜索关键字..."
  11. v-model="queryParams.title"></uv-search>
  12. </view>
  13. <view class="">
  14. <screenRen
  15. isMaxPrice
  16. @clickItem="clickItem"/>
  17. </view>
  18. <view class="list">
  19. <rentingItem
  20. :key="index"
  21. v-for="(item, index) in list"
  22. :item="item"
  23. @click="$utils.navigateTo('/pages_order/renting/rentingDetail?id=' + item.id)"
  24. />
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import mixinsList from '@/mixins/list.js'
  30. import screenRen from '../components/screen/screenRen.vue'
  31. import rentingItem from '../components/list/renting/rentingItem.vue'
  32. export default {
  33. mixins: [mixinsList],
  34. components : {
  35. screenRen,
  36. rentingItem,
  37. },
  38. data() {
  39. return {
  40. mixinsListApi : 'getRentPage',
  41. }
  42. },
  43. methods: {
  44. clickDetail(item){
  45. uni.navigateTo({
  46. url: '/pages_order/renting/rentingDetail?id=' + item.id
  47. })
  48. },
  49. clickItem(result){
  50. console.log(result);
  51. this.queryParams = {
  52. pageNo: 1,
  53. pageSize: 10,
  54. }
  55. result.forEach(n => {
  56. this.queryParams[n.name] = n.value
  57. })
  58. this.getData()
  59. },
  60. }
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .page{
  65. min-height: 100vh;
  66. background-color: #fff;
  67. .list{
  68. padding: 10rpx;
  69. }
  70. }
  71. </style>