增加老年化指引
This commit is contained in:
@@ -1,5 +1,29 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
<van-overlay :show="show" @click="show = false">
|
||||||
|
<div class="overlay">
|
||||||
|
<div class="mode">
|
||||||
|
进入老年模式
|
||||||
|
</div>
|
||||||
|
<img src="@/assets/img/jiantou.png" />
|
||||||
|
<div>
|
||||||
|
为方便老年用户,可点击此按钮进入
|
||||||
|
<span>老年模式</span>
|
||||||
|
查询信息。
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
更大的字体,更多的贴心~
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
轻触屏幕关闭此指引
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="radio" @click="inputEvent" />
|
||||||
|
|
||||||
|
<span>下次进入不显示</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</van-overlay>
|
||||||
<van-pull-refresh
|
<van-pull-refresh
|
||||||
v-model="isLoading"
|
v-model="isLoading"
|
||||||
loosing-text="释放完成刷新"
|
loosing-text="释放完成刷新"
|
||||||
@@ -28,7 +52,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mode: false,
|
mode: false,
|
||||||
isLoading: true
|
isLoading: true,
|
||||||
|
|
||||||
|
show: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -37,6 +63,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mode = false;
|
this.mode = false;
|
||||||
}
|
}
|
||||||
|
if (localStorage.getItem("overlay")) {
|
||||||
|
this.show = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -55,6 +84,9 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
},
|
||||||
|
inputEvent() {
|
||||||
|
localStorage.setItem("overlay", "flase");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -68,6 +100,69 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #f6f7f8;
|
background: #f6f7f8;
|
||||||
|
.overlay {
|
||||||
|
color: #c9c0c0;
|
||||||
|
font-size: 22px;
|
||||||
|
|
||||||
|
.mode {
|
||||||
|
position: absolute;
|
||||||
|
right: 5px;
|
||||||
|
top: 15px;
|
||||||
|
background: #f82b36;
|
||||||
|
width: 124px;
|
||||||
|
height: 25px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 25px;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
right: 130px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50px;
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
> div:nth-child(n + 3) {
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
> :nth-child(3) {
|
||||||
|
top: 300px;
|
||||||
|
position: absolute;
|
||||||
|
> span {
|
||||||
|
font-size: 24px;
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
> :nth-child(4) {
|
||||||
|
top: 410px;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
> :nth-child(5) {
|
||||||
|
top: 500px;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
> :nth-child(6) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
top: 550px;
|
||||||
|
justify-content: center;
|
||||||
|
position: absolute;
|
||||||
|
input {
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
color: #c6e1f0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.bottomContent {
|
.bottomContent {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
|
|||||||
BIN
FrontCode2/sunshine_levy/src/assets/img/jiantou.png
Normal file
BIN
FrontCode2/sunshine_levy/src/assets/img/jiantou.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -7,7 +7,8 @@ import {
|
|||||||
Card,
|
Card,
|
||||||
Loading,
|
Loading,
|
||||||
Message,
|
Message,
|
||||||
Notification
|
Notification,
|
||||||
|
Input
|
||||||
} from "element-ui";
|
} from "element-ui";
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
@@ -15,6 +16,7 @@ Vue.use(FormItem);
|
|||||||
Vue.use(Button);
|
Vue.use(Button);
|
||||||
Vue.use(Card);
|
Vue.use(Card);
|
||||||
Vue.use(Loading);
|
Vue.use(Loading);
|
||||||
|
Vue.use(Input);
|
||||||
|
|
||||||
Vue.component(Message);
|
Vue.component(Message);
|
||||||
Vue.component(Notification);
|
Vue.component(Notification);
|
||||||
@@ -20,7 +20,8 @@ import {
|
|||||||
CellGroup,
|
CellGroup,
|
||||||
Notify,
|
Notify,
|
||||||
PullRefresh,
|
PullRefresh,
|
||||||
Toast
|
Toast,
|
||||||
|
Overlay
|
||||||
} from "vant";
|
} from "vant";
|
||||||
|
|
||||||
Vue.use(Button)
|
Vue.use(Button)
|
||||||
@@ -29,6 +30,7 @@ Vue.use(Button)
|
|||||||
.use(CellGroup);
|
.use(CellGroup);
|
||||||
Vue.use(PullRefresh);
|
Vue.use(PullRefresh);
|
||||||
Vue.use(Toast);
|
Vue.use(Toast);
|
||||||
|
Vue.use(Overlay);
|
||||||
|
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
|
|
||||||
|
|||||||
@@ -296,7 +296,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.onInit();
|
this.onInit();
|
||||||
}
|
}
|
||||||
// this.onInit();
|
|
||||||
this.setLocationAplus();
|
this.setLocationAplus();
|
||||||
SetTicket(this.$route.query.ticket);
|
SetTicket(this.$route.query.ticket);
|
||||||
$(".logout").css("display", "none");
|
$(".logout").css("display", "none");
|
||||||
|
|||||||
Reference in New Issue
Block a user