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

4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 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. <screenSearch isMaxPrice @clickItem="clickItem" />
  11. </view>
  12. <view class="list">
  13. <rentingItem :key="index" v-for="(item, index) in list" :item="item"
  14. @click="$utils.navigateTo('/pages_order/renting/rentingDetail?id=' + item.id)" />
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import mixinsList from '@/mixins/list.js'
  20. import screenSearch from '../components/screen/screenSearch.vue'
  21. import rentingItem from '../components/list/renting/rentingItem.vue'
  22. export default {
  23. mixins: [mixinsList],
  24. components: {
  25. screenSearch,
  26. rentingItem,
  27. },
  28. data() {
  29. return {
  30. mixinsListApi: 'getRentPage',
  31. }
  32. },
  33. methods: {
  34. clickDetail(item) {
  35. uni.navigateTo({
  36. url: '/pages_order/renting/rentingDetail?id=' + item.id
  37. })
  38. },
  39. clickItem(result) {
  40. console.log(result);
  41. this.queryParams = {
  42. pageNo: 1,
  43. pageSize: 10,
  44. }
  45. result.forEach(n => {
  46. this.queryParams[n.name] = n.value
  47. })
  48. this.getData()
  49. },
  50. }
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .page {
  55. min-height: 100vh;
  56. background-color: #fff;
  57. .list {
  58. padding: 10rpx;
  59. }
  60. }
  61. .top-bg{
  62. position: absolute;
  63. height: 500rpx;
  64. width: 100%;
  65. background: linear-gradient($uni-color, #fff);
  66. }
  67. </style>