diff --git a/pages/contract/index.vue b/pages/contract/index.vue index 062240b..77b424f 100644 --- a/pages/contract/index.vue +++ b/pages/contract/index.vue @@ -13,8 +13,8 @@
合同编号
签署日期
- -
+ +
{{item.contractTile}}
{{item.contractId.length>10?`${item.contractId.slice(0,10)}...`:item.contractId}}
@@ -36,11 +36,20 @@ export default { return{ page:1, pageSize:999, - mainList:[] + mainList:[], + distance:'' } }, mounted(){ this.getData() + uni.createSelectorQuery().select('.content2').boundingClientRect(data => { + let res = uni.getSystemInfoSync(); + function pxToRpx(px) { + return (px / res.windowWidth) * 750; + } + const distance = res.windowHeight - data.bottom; + this.distance = pxToRpx(distance)-50 + }).exec() }, methods:{ loadMore(){ @@ -76,6 +85,7 @@ export default { height: 100vh; .content3{ margin-bottom: 166rpx; + .wrap1{ margin-bottom: 20rpx; border-radius: 20rpx;