update:下拉刷新完善
This commit is contained in:
@@ -24,7 +24,11 @@ export default {
|
|||||||
};
|
};
|
||||||
app.ontouchend = function(e) {
|
app.ontouchend = function(e) {
|
||||||
this.endValue = e.target.offsetTop;
|
this.endValue = e.target.offsetTop;
|
||||||
if (this.endValue - this.startValue > 0) {
|
if (
|
||||||
|
this.endValue - this.startValue > 0 ||
|
||||||
|
app.offsetTop > 0 ||
|
||||||
|
app.clientTop > 0
|
||||||
|
) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user