update;更新下拉刷新

This commit is contained in:
2021-10-09 11:26:47 +08:00
parent aecd1c7a3a
commit 9218cee300
2 changed files with 38 additions and 14 deletions

View File

@@ -18,17 +18,12 @@ export default {
}; };
}, },
mounted() { mounted() {
let app = document.querySelector("#app"); document.body.ontouchstart = function(e) {
app.onclick = function(e) { this.startValue = e.changedTouches[0].pageY;
this.startValue = e.target.offsetTop;
}; };
app.ontouchend = function(e) { document.body.ontouchend = function(e) {
this.endValue = e.target.offsetTop; this.endValue = e.changedTouches[0].pageY;
if ( if (this.endValue - this.startValue > 0) {
this.endValue - this.startValue > 0 ||
app.offsetTop > 0 ||
app.clientTop > 0
) {
window.location.reload(); window.location.reload();
} }
}; };

View File

@@ -108,7 +108,7 @@
</div> </div>
</div> </div>
<!-- 补偿协议部分 --> <!-- 补偿协议部分 -->
<div class="assess"> <div class="assess2">
<van-image :src="require('@/assets/img/assess_2.png')" /> <van-image :src="require('@/assets/img/assess_2.png')" />
<span>补偿结果</span> <span>补偿结果</span>
</div> </div>
@@ -213,6 +213,11 @@ export default {
year: "无数据", year: "无数据",
zsjdh: "无数据", zsjdh: "无数据",
fhpgList: [ fhpgList: [
{
assessmentNo: "宁波市房屋建设和建筑管理局办公室",
houseAddress: "宁波市房屋建设和建筑管理局办公室",
countValue: "无数据"
},
{ {
assessmentNo: "宁波市房屋建设和建筑管理局办公室", assessmentNo: "宁波市房屋建设和建筑管理局办公室",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "宁波市房屋建设和建筑管理局办公室",
@@ -220,6 +225,12 @@ export default {
} }
], ],
bcxyList: [ bcxyList: [
{
xyNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室",
switchProductionWay: "无数据",
summationShouldCompensateMoney: "无数据"
},
{ {
xyNo: "无数据", xyNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "宁波市房屋建设和建筑管理局办公室",
@@ -606,7 +617,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
height: 25px; height: 25px;
padding: 25px 10px; padding: 25px 10px 0px;
.van-image { .van-image {
width: 24px; width: 24px;
height: 24px; height: 24px;
@@ -621,7 +632,7 @@ export default {
} }
} }
.assessCenter1 { .assessCenter1 {
margin: 0px 22px; margin: 25px 22px 22px;
border-left: 2px solid #24bca3; border-left: 2px solid #24bca3;
font-weight: 400; font-weight: 400;
> div { > div {
@@ -641,8 +652,26 @@ export default {
margin: 15px 0; margin: 15px 0;
} }
} }
.assess2 {
display: flex;
align-items: center;
height: 25px;
padding: 0px 10px 0px;
.van-image {
width: 24px;
height: 24px;
margin-right: 10px;
background: #2468f2;
}
span {
font-family: PingFangSC-Regular, PingFang SC;
font-size: 16px;
font-weight: 400;
color: #2468f2;
}
}
.assessCenter2 { .assessCenter2 {
margin: 0px 22px; margin: 25px 22px 22px;
border-left: 2px solid #ff5959; border-left: 2px solid #ff5959;
font-weight: 400; font-weight: 400;
> div { > div {