Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 67 KiB |
@ -0,0 +1,104 @@ |
|||
import {chooseRoomRec} from '../../../api/index' |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
list:[] |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad(options) { |
|||
this.getList() |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage() { |
|||
|
|||
}, |
|||
getList(){ |
|||
let parm = { |
|||
flag:1, |
|||
pageSize:10, |
|||
pageNo:1 |
|||
} |
|||
chooseRoomRec(parm).then(res=>{ |
|||
if(res.code === 200){ |
|||
this.setData({ |
|||
list:this.data.list.concat(res.data) |
|||
}) |
|||
} |
|||
}).catch(err=>{ |
|||
wx.showToast({ |
|||
title: err.msg, |
|||
duration:2000, |
|||
icon:'none' |
|||
}) |
|||
}) |
|||
}, |
|||
scrolltolower(){ |
|||
if (this.data.list.length < this.data.total) { |
|||
this.setData({ |
|||
pageNo: this.data.pageNo + 1 |
|||
}) |
|||
this.getList() |
|||
}else{ |
|||
wx.showToast({ |
|||
icon:'none', |
|||
title:'没有更多了' |
|||
}) |
|||
} |
|||
}, |
|||
toEvaluate(e){ |
|||
wx.navigateTo({ |
|||
url: `/subpages/mine/evaluate/evaluate?id=${e.currentTarget.dataset.item.checkInRecId}`, |
|||
}) |
|||
} |
|||
}) |
@ -0,0 +1,9 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"no-data":"../../../components/noData/nodata", |
|||
"van-divider": "@vant/weapp/divider/index", |
|||
"van-button": "@vant/weapp/button/index", |
|||
"van-rate": "@vant/weapp/rate/index" |
|||
}, |
|||
"navigationBarTitleText": "入住评价" |
|||
} |
@ -0,0 +1,25 @@ |
|||
<scroll-view scroll-y class="scroll-view" bindscrolltolower="scrolltolower" wx:if="{{list.length>0}}"> |
|||
<view class="card " wx:key="index" wx:for="{{list}}"> |
|||
<view class="item flex"> |
|||
<image src="{{item.imageUrl}}" style="width: 200rpx;height:152rpx;margin-right: 16rpx;border-radius: 10rpx;" mode="" /> |
|||
<view class="flex flex-col flex-1"> |
|||
<view class="flex flex-sb"> |
|||
<view class="name font-bold">{{item.apartmentName}}</view> |
|||
<view class="status text-28" style="color:{{item.status === '1'?'#ee952f':item.status === '4'?'#1cc9cd':item.status === '5'?'#181c18':''}}">{{item.status === '1'?'入住办理中':item.status === '4'?'入住中':item.status === '5'?'已退房':''}}</view> |
|||
</view> |
|||
<view style="margin-bottom: 22rpx;">{{item.buildingName}}-{{item.unitName}}-{{item.houseName}}-{{item.roomType}}</view> |
|||
<view class="date">{{item.inDate}}至{{item.outDate}}</view> |
|||
</view> |
|||
</view> |
|||
<van-divider dashed /> |
|||
<view class="flex flex-sb px-20"> |
|||
<view class="doc" wx:if="{{item.contractUrl}}"> |
|||
青岛免租金租房合同.docx |
|||
</view> |
|||
<van-button round plain size="small" bind:click="toEvaluate" wx:if="{{(item.status === '4' || item.status === '5' || item.status === '6') && item.evaluateLevel === null}}" data-item="{{item}}">去评价</van-button> |
|||
<van-rate wx:if="{{item.evaluateLevel}}" value="{{ item.evaluateLevel }}" disabled="{{true}}" size="{{ 25 }}" color="#13c2c2" void-icon="star" void-color="#eee"/> |
|||
</view> |
|||
</view> |
|||
|
|||
</scroll-view> |
|||
<no-data isShow="{{list.length === 0 || !list}}"></no-data> |
@ -0,0 +1,12 @@ |
|||
/* subpages/mine/checkInRecord/checkInRecord.wxss */ |
|||
.name{ |
|||
font-size: 36rpx; |
|||
} |
|||
.date{ |
|||
font-size: 26rpx; |
|||
color: #737373; |
|||
} |
|||
.doc{ |
|||
color: #08b3b3; |
|||
font-size: 20rpx; |
|||
} |