|
|
- <template>
- <view class="page pageList">
- <navbar title="租房列表" leftClick @leftClick="$utils.navigateBack" />
-
- <view class="flex"
- style="padding: 20rpx;">
- <uv-search
- @search="getData"
- :showAction="false"
- searchIconSize="30rpx"
- placeholder="请输入搜索关键字..."
- v-model="queryParams.title"></uv-search>
- </view>
-
- <view class="">
- <screenRen
- isMaxPrice
- @clickItem="clickItem"/>
- </view>
-
- <view class="list">
- <rentingItem
- :key="index"
- v-for="(item, index) in list"
- :item="item"
- @click="$utils.navigateTo('/pages_order/renting/rentingDetail?id=' + item.id)"
- />
- </view>
-
- </view>
- </template>
-
- <script>
- import mixinsList from '@/mixins/list.js'
- import screenRen from '../components/screen/screenRen.vue'
- import rentingItem from '../components/list/renting/rentingItem.vue'
- export default {
- mixins: [mixinsList],
- components : {
- screenRen,
- rentingItem,
- },
- data() {
- return {
- mixinsListApi : 'getRentPage',
- }
- },
- methods: {
- clickDetail(item){
- uni.navigateTo({
- url: '/pages_order/renting/rentingDetail?id=' + item.id
- })
- },
- clickItem(result){
- console.log(result);
- this.queryParams = {
- pageNo: 1,
- pageSize: 10,
- }
- result.forEach(n => {
- this.queryParams[n.name] = n.value
- })
- this.getData()
- },
- }
- }
- </script>
-
- <style scoped lang="scss">
- .page{
- .page pageList{
- background-color: blue;
- }
- min-height: 100vh;
- background-color: #fff;
- .list{
- padding: 10rpx;
- }
-
- /deep/ .uv-drop-down{
- justify-content: space-around;
- }
- }
- </style>
|