This commit is contained in:
路 范
2021-10-11 13:45:57 +08:00
6 changed files with 31 additions and 12 deletions

View File

@@ -23,7 +23,10 @@ export default {
}; };
document.body.ontouchend = function(e) { document.body.ontouchend = function(e) {
this.endValue = e.changedTouches[0].pageY; this.endValue = e.changedTouches[0].pageY;
if (this.endValue - this.startValue > 0) { if (
this.endValue - this.startValue > 50 &&
e.changedTouches[0].pageY === e.changedTouches[0].clientY
) {
window.location.reload(); window.location.reload();
} }
}; };
@@ -38,6 +41,7 @@ export default {
padding-bottom: 48px; padding-bottom: 48px;
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
background: #f6f7f8;
.bottomContent { .bottomContent {
position: absolute; position: absolute;
bottom: 10px; bottom: 10px;
@@ -46,6 +50,7 @@ export default {
font-size: 10px; font-size: 10px;
p { p {
margin: 0; margin: 0;
line-height: 14px;
} }
b { b {
color: #5d8cbc; color: #5d8cbc;

View File

@@ -1,6 +1,14 @@
import Vue from "vue"; import Vue from "vue";
import { Form, FormItem, Button, Card, Loading, Message } from "element-ui"; import {
Form,
FormItem,
Button,
Card,
Loading,
Message,
Notification
} from "element-ui";
Vue.use(Form); Vue.use(Form);
Vue.use(FormItem); Vue.use(FormItem);
@@ -9,3 +17,4 @@ Vue.use(Card);
Vue.use(Loading); Vue.use(Loading);
Vue.component(Message); Vue.component(Message);
Vue.component(Notification);

View File

@@ -1,6 +1,7 @@
.page { .page {
border-radius: 6px; border-radius: 6px;
background: #f2fbfd; /* background: #f2fbfd; */
background: #f6f7f8;
} }
.topBox { .topBox {

View File

@@ -4,6 +4,7 @@
v-loading="loading" v-loading="loading"
element-loading-text="拼命加载中" element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading" element-loading-spinner="el-icon-loading"
element-loading-background=" rgba(118,118,118)"
> >
<div class="topBox"> <div class="topBox">
<div class="titleBox"> <div class="titleBox">
@@ -161,7 +162,7 @@
> >
<!-- 非最后一行有边框 --> <!-- 非最后一行有边框 -->
<div <div
style="border-bottom: 1px dashed #C9C7C7" style="border-bottom: 1px dashed #E8E9EC"
v-if="i != data.policiesRegulationsLists.list.length - 1" v-if="i != data.policiesRegulationsLists.list.length - 1"
> >
<div>{{ item.title }}</div> <div>{{ item.title }}</div>
@@ -324,7 +325,12 @@ export default {
} }
}, },
onFail: err => { onFail: err => {
console.log("用户无数据,不展示"); this.$notify({
title: "错误",
message: "请求失败",
duration: 3000,
type: "error"
});
} }
}); });
}, },
@@ -337,7 +343,6 @@ export default {
gotoProject(type) { gotoProject(type) {
$(".bottomContent").removeClass("display"); $(".bottomContent").removeClass("display");
$("#app").removeClass("padding"); $("#app").removeClass("padding");
this.$router.push({ this.$router.push({
name: "projectSelect", name: "projectSelect",
params: { params: {
@@ -447,7 +452,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.page { .page {
border-radius: 6px; border-radius: 6px;
background: #f2fbfd; background: #f6f7f8;
padding-bottom: 20px; padding-bottom: 20px;
> div:nth-child(n + 2) { > div:nth-child(n + 2) {
margin-top: 10px; margin-top: 10px;

View File

@@ -175,17 +175,15 @@ export default {
} }
> div { > div {
margin: 20px 0; margin: 20px 0;
height: 20px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
line-height: 20px;
> div { > div {
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%;
width: 50%;
img { img {
height: 100%; height: 20px;
margin-right: 10px; margin-right: 10px;
} }
span { span {

View File

@@ -234,6 +234,7 @@ export default {
margin: 14px 0; margin: 14px 0;
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 20px;
img { img {
margin-right: 6px; margin-right: 6px;
width: 20px; width: 20px;