-
Notifications
You must be signed in to change notification settings - Fork 94
/
noNetwork.nvue
68 lines (63 loc) · 1.29 KB
/
noNetwork.nvue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template>
<view class="u-page">
<up-no-network
@disconnected="disconnected"
@connected="connected"
@retry="retry"
></up-no-network>
<view class="u-content">
<view class="u-content__circle">
<up-icon
name="checkbox-mark"
color="#fff"
size="30"
></up-icon>
</view>
<text class="u-content__normal">网络正常</text>
<text class="u-content__tips">请您断开设备的WiFi和数据连接(或开启飞行模式),即可看到效果</text>
</view>
</view>
</template>
<script>
export default {
methods: {
disconnected() {
console.log('disconnected');
},
connected() {
console.log('connected');
},
retry() {
console.log('retry');
}
},
}
</script>
<style lang="scss">
.u-content {
padding: 150px 60px 0;
@include flex(column);
align-items: center;
justify-content: center;
&__circle {
background-color: $u-success;
@include flex;
border-radius: 100px;
width: 60px;
height: 60px;
align-items: center;
justify-content: center;
}
&__normal {
font-size: 15px;
color: $u-success;
margin-top: 15px;
}
&__tips {
color: $u-tips-color;
font-size: 13px;
margin-top: 15px;
text-align: center;
}
}
</style>