@ -0,0 +1,14 @@ |
|||
"use strict"; |
|||
Component({ |
|||
properties: { |
|||
isShow: { |
|||
type: Boolean |
|||
}, |
|||
top:{ |
|||
type:Boolean, |
|||
value:false |
|||
} |
|||
}, |
|||
data: {}, |
|||
methods: {} |
|||
}); |
@ -0,0 +1,3 @@ |
|||
{ |
|||
"component": true |
|||
} |
@ -0,0 +1,5 @@ |
|||
<!--components/nodata/nodata.wxml--> |
|||
<view class="box" wx:if="{{isShow}}" style="margin-top:{{top?'400rpx':''}}"> |
|||
<text class="text">暂无数据~</text> |
|||
</view> |
|||
|
@ -0,0 +1,20 @@ |
|||
/* components/nodata/nodata.wxss */ |
|||
.box{ |
|||
width: 100%; |
|||
height: auto; |
|||
box-sizing: border-box; |
|||
text-align: center; |
|||
margin-top: 100rpx; |
|||
} |
|||
.image{ |
|||
width: 450rpx; |
|||
height: 240rpx; |
|||
} |
|||
.text{ |
|||
width: 100%; |
|||
height: auto; |
|||
font-size: 28rpx; |
|||
color: #BCBCBC; |
|||
display: block; |
|||
margin: 0 auto; |
|||
} |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 750 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 487 B |
@ -1,6 +1,7 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-icon": "@vant/weapp/icon/index" |
|||
"van-icon": "@vant/weapp/icon/index", |
|||
"van-notify": "@vant/weapp/notify/index" |
|||
}, |
|||
"navigationStyle": "custom" |
|||
} |
@ -0,0 +1,99 @@ |
|||
// subpages/mine/checkInRecord/checkInRecord.js
|
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad(options) { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage() { |
|||
|
|||
}, |
|||
getList(){ |
|||
let parm = { |
|||
flag:1, |
|||
pageSize:10, |
|||
pageNo:1 |
|||
} |
|||
getList(parm).then(res=>{ |
|||
if(res.code === 0){ |
|||
this.setData({ |
|||
list:res.data.list |
|||
}) |
|||
} |
|||
}).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:'没有更多了' |
|||
}) |
|||
} |
|||
}, |
|||
}) |
@ -0,0 +1,8 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"no-data":"../../../components/noData/nodata", |
|||
"van-divider": "@vant/weapp/divider/index", |
|||
"van-button": "@vant/weapp/button/index" |
|||
}, |
|||
"navigationBarTitleText": "入住记录" |
|||
} |
@ -0,0 +1,23 @@ |
|||
<!-- bindscrolltolower="scrolltolower" wx:if="{{list.length>0}}" --> |
|||
<scroll-view scroll-y class="scroll-view" > |
|||
<!-- wx:for="{{list}}" --> |
|||
<view class="card flex" wx:key="index"> |
|||
<image src="../../../images/zixun.png" 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">国信</view> |
|||
<view class="status text-28">入住办理中</view> |
|||
</view> |
|||
<view style="margin-bottom: 22rpx;">5号楼1单元888南卧</view> |
|||
<view class="date">2028-11-11至2222-22-22</view> |
|||
</view> |
|||
</view> |
|||
<van-divider dashed /> |
|||
<view class="flex flex-sb px-20"> |
|||
<view class="doc"> |
|||
青岛免租金租房合同.docx |
|||
</view> |
|||
<van-button round type="info" plain size="small" color="#d3d3d3">待支付</van-button> |
|||
</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; |
|||
} |