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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
| <template>
| <div class="UnbindBox">
| <div class="iconfont warn"></div>
| <div class="title">请确认是否解除设备授权?</div>
| <div class="des">如需继续,请输入管理员密码,然后点击“确认”按钮</div>
| <el-input
| placeholder="请输入管理员密码"
| v-model="password"
| show-password
| :class="{ isWrong: isWrong }"
| ></el-input>
| <div class="wrong" v-if="isWrong">密码输入错误,请重新输入</div>
|
| <div class="btns">
| <div class="cancel" @click="close">取消</div>
| <div class="confirm">确认</div>
| </div>
|
| <div class="close iconfont" @click="close"></div>
| </div>
| </template>
|
| <script>
| export default {
| data() {
| return {
| isWrong: false,
| password: "",
| };
| },
| methods: {
| close() {
| this.$emit("close");
| },
| },
| };
| </script>
|
| <style lang="scss" scoped>
| .UnbindBox {
| position: fixed;
| top: 120px;
| left: 50%;
| margin-left: -210px;
| width: 420px;
| height: 332px;
| text-align: center;
| background-color: #fff;
|
| .warn {
| margin-top: 40px;
| margin-bottom: 10px;
| font-size: 40px;
| color: rgb(254, 109, 104);
| }
|
| .title {
| margin-bottom: 20px;
| font-weight: bold;
| font-size: 16px;
| color: #4f4f4f;
| }
|
| .des {
| text-align: start;
| margin: 0 auto;
| margin-bottom: 6px;
| width: 360px;
| font-size: 12px;
| color: #666666;
| }
|
| .el-input {
| width: 360px;
| height: 40px;
|
| ::v-deep input {
| border-color: #d4d6d9;
| border-radius: 20px;
|
| &::-webkit-input-placeholder {
| font-size: 12px;
| color: #999999;
| }
| }
|
| &.isWrong ::v-deep input {
| border-color: #fe6d68;
| }
| }
|
| .wrong {
| width: 360px;
| text-align: start;
| margin: 0 auto;
| margin-top: 4px;
| font-size: 12px;
| color: #fe6d68;
| }
|
| .btns {
| display: flex;
| justify-content: center;
| margin: 0 auto;
| margin-top: 50px;
| width: 360px;
|
| .cancel {
| width: 175px;
| height: 40px;
| background: #e0e0e0;
| border-radius: 25px;
|
| font-weight: bold;
| font-size: 16px;
| line-height: 40px;
| color: #333333;
| cursor: pointer;
| }
|
| .confirm {
| width: 175px;
| height: 40px;
| background: #4e94ff;
| border-radius: 25px;
|
| font-weight: bold;
| font-size: 16px;
| line-height: 40px;
| color: #fff;
| cursor: pointer;
| }
| }
|
| .close {
| position: absolute;
| top: 12px;
| right: 12px;
| font-size: 12px;
| color: #333333;
| cursor: pointer;
| }
| }
| </style>
|
|