af-mobile-client-vue3 1.3.77 → 1.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/certs/127.0.0.1+2-key.pem +28 -0
- package/certs/127.0.0.1+2.pem +27 -0
- package/package.json +115 -115
- package/src/App.vue +1 -1
- package/src/api/user/index.ts +45 -45
- package/src/components/data/XFormItem/index.vue +1431 -1409
- package/src/router/guards.ts +131 -131
- package/src/router/routes.ts +421 -421
- package/src/services/api/Login.ts +6 -6
- package/src/services/v3Api.ts +166 -147
- package/src/stores/modules/user.ts +1 -1
- package/src/styles/login.less +109 -109
- package/src/types/platform.ts +194 -194
- package/src/utils/platform-auth.ts +150 -150
- package/src/utils/wechat.ts +297 -297
- package/src/views/loading/AuthLoading.vue +378 -378
- package/src/views/user/my/comm/ModifyPassword.vue +5 -1
- package/src/views/user/my/index.vue +14 -12
- package/src/views/user/register/index.vue +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const loginApi = {
|
|
2
|
-
Login: '/af-auth/login',
|
|
3
|
-
Logout: '/af-auth/logout',
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export { loginApi }
|
|
1
|
+
const loginApi = {
|
|
2
|
+
Login: '/af-auth/login',
|
|
3
|
+
Logout: '/af-auth/logout',
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export { loginApi }
|
package/src/services/v3Api.ts
CHANGED
|
@@ -1,147 +1,166 @@
|
|
|
1
|
-
import { runLogic } from '@af-mobile-client-vue3/services/api/common'
|
|
2
|
-
import { METHOD, request } from '@af-mobile-client-vue3/utils/http/index'
|
|
3
|
-
|
|
4
|
-
function getLeafNodes(nodes) {
|
|
5
|
-
// console.log(nodes)
|
|
6
|
-
// 确保 nodes 是数组
|
|
7
|
-
const nodeArray = Array.isArray(nodes) ? nodes : [nodes]
|
|
8
|
-
return nodeArray.reduce((leaves, node) => {
|
|
9
|
-
if (node.children && node.children.length) {
|
|
10
|
-
// 递归处理子节点并合并结果
|
|
11
|
-
leaves.push(...getLeafNodes(node.children))
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
// 当前节点是叶子节点时,直接加入结果
|
|
15
|
-
leaves.push(node)
|
|
16
|
-
}
|
|
17
|
-
return leaves
|
|
18
|
-
}, [])
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function getLeafNodesByCondition(type, nodes, parent = null) {
|
|
22
|
-
// console.log('nodes------',nodes)
|
|
23
|
-
// 确保 nodes 是数组
|
|
24
|
-
const nodeArray = Array.isArray(nodes) ? nodes : [nodes]
|
|
25
|
-
|
|
26
|
-
return nodeArray.reduce((leaves, node) => {
|
|
27
|
-
const isValidNode = node.resourcetype === type && node.name !== '组织机构'
|
|
28
|
-
const updatedParent = node.name === '组织机构' ? null : node.name
|
|
29
|
-
|
|
30
|
-
if (node.children && node.children.length) {
|
|
31
|
-
// 当前节点符合条件时,加入叶子节点列表
|
|
32
|
-
if (isValidNode && node.resourcetype === 'organization') {
|
|
33
|
-
leaves.push({
|
|
34
|
-
...node,
|
|
35
|
-
name: parent ? `${node.name}` : node.name,
|
|
36
|
-
children: [],
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
if (isValidNode && node.resourcetype === 'department') {
|
|
40
|
-
leaves.push({
|
|
41
|
-
...node,
|
|
42
|
-
name: parent ? `${node.name}-${parent}` : node.name,
|
|
43
|
-
children: [],
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
// 递归处理子节点
|
|
47
|
-
leaves.push(...getLeafNodesByCondition(type, node.children, updatedParent))
|
|
48
|
-
}
|
|
49
|
-
else if (isValidNode) {
|
|
50
|
-
// 无子节点但符合条件时,直接加入叶子节点列表
|
|
51
|
-
if (node.resourcetype === 'organization') {
|
|
52
|
-
leaves.push({
|
|
53
|
-
...node,
|
|
54
|
-
name: parent ? `${node.name}-${parent}` : node.name,
|
|
55
|
-
})
|
|
56
|
-
}
|
|
57
|
-
else if (node.resourcetype === 'department' && !nodeArray.includes(node.name)) {
|
|
58
|
-
// console.log('数组',nodeArray.includes(node.name))
|
|
59
|
-
leaves.push({
|
|
60
|
-
...node,
|
|
61
|
-
name: parent ? `${node.name}-${parent}` : node.name,
|
|
62
|
-
})
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return leaves
|
|
66
|
-
}, [])
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function transformData(inputData) {
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
1
|
+
import { runLogic } from '@af-mobile-client-vue3/services/api/common'
|
|
2
|
+
import { METHOD, request } from '@af-mobile-client-vue3/utils/http/index'
|
|
3
|
+
|
|
4
|
+
function getLeafNodes(nodes) {
|
|
5
|
+
// console.log(nodes)
|
|
6
|
+
// 确保 nodes 是数组
|
|
7
|
+
const nodeArray = Array.isArray(nodes) ? nodes : [nodes]
|
|
8
|
+
return nodeArray.reduce((leaves, node) => {
|
|
9
|
+
if (node.children && node.children.length) {
|
|
10
|
+
// 递归处理子节点并合并结果
|
|
11
|
+
leaves.push(...getLeafNodes(node.children))
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
// 当前节点是叶子节点时,直接加入结果
|
|
15
|
+
leaves.push(node)
|
|
16
|
+
}
|
|
17
|
+
return leaves
|
|
18
|
+
}, [])
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getLeafNodesByCondition(type, nodes, parent = null) {
|
|
22
|
+
// console.log('nodes------',nodes)
|
|
23
|
+
// 确保 nodes 是数组
|
|
24
|
+
const nodeArray = Array.isArray(nodes) ? nodes : [nodes]
|
|
25
|
+
|
|
26
|
+
return nodeArray.reduce((leaves, node) => {
|
|
27
|
+
const isValidNode = node.resourcetype === type && node.name !== '组织机构'
|
|
28
|
+
const updatedParent = node.name === '组织机构' ? null : node.name
|
|
29
|
+
|
|
30
|
+
if (node.children && node.children.length) {
|
|
31
|
+
// 当前节点符合条件时,加入叶子节点列表
|
|
32
|
+
if (isValidNode && node.resourcetype === 'organization') {
|
|
33
|
+
leaves.push({
|
|
34
|
+
...node,
|
|
35
|
+
name: parent ? `${node.name}` : node.name,
|
|
36
|
+
children: [],
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
if (isValidNode && node.resourcetype === 'department') {
|
|
40
|
+
leaves.push({
|
|
41
|
+
...node,
|
|
42
|
+
name: parent ? `${node.name}-${parent}` : node.name,
|
|
43
|
+
children: [],
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
// 递归处理子节点
|
|
47
|
+
leaves.push(...getLeafNodesByCondition(type, node.children, updatedParent))
|
|
48
|
+
}
|
|
49
|
+
else if (isValidNode) {
|
|
50
|
+
// 无子节点但符合条件时,直接加入叶子节点列表
|
|
51
|
+
if (node.resourcetype === 'organization') {
|
|
52
|
+
leaves.push({
|
|
53
|
+
...node,
|
|
54
|
+
name: parent ? `${node.name}-${parent}` : node.name,
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
else if (node.resourcetype === 'department' && !nodeArray.includes(node.name)) {
|
|
58
|
+
// console.log('数组',nodeArray.includes(node.name))
|
|
59
|
+
leaves.push({
|
|
60
|
+
...node,
|
|
61
|
+
name: parent ? `${node.name}-${parent}` : node.name,
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return leaves
|
|
66
|
+
}, [])
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function transformData(inputData) {
|
|
70
|
+
if (!inputData || !Array.isArray(inputData)) return []
|
|
71
|
+
|
|
72
|
+
function transform(node) {
|
|
73
|
+
if (!node || typeof node !== 'object') return {}
|
|
74
|
+
|
|
75
|
+
let children = []
|
|
76
|
+
if (node.children) {
|
|
77
|
+
if (Array.isArray(node.children)) {
|
|
78
|
+
children = node.children.map(transform);
|
|
79
|
+
} else if (typeof node.children === 'object') {
|
|
80
|
+
// 检查是否是空标记
|
|
81
|
+
if (node.children.empty === true) {
|
|
82
|
+
children = []
|
|
83
|
+
} else if (node.children.id || node.children.name) {
|
|
84
|
+
// 如果是单个节点对象
|
|
85
|
+
children = [transform(node.children)]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
label: node.name || '',
|
|
92
|
+
value: node.id ?? null,
|
|
93
|
+
f_organization_id: node.f_organization_id,
|
|
94
|
+
f_department_id: node.f_department_id,
|
|
95
|
+
parentid: node.parentid || node.parentId || node.parent_id || null,
|
|
96
|
+
orgid: node.orgid,
|
|
97
|
+
children: children,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return inputData.map(transform);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function getResData(params, toCallback) {
|
|
105
|
+
const data = { userId: params.userid, roleName: params.roleName, filter: params.filter, filterType: params.filterType }
|
|
106
|
+
if (params.source === '获取分公司') {
|
|
107
|
+
runLogic('getOrgBySearch', data, 'af-system').then(res => toCallback(res))
|
|
108
|
+
}
|
|
109
|
+
else if (params.source === '获取部门') {
|
|
110
|
+
runLogic('getDepBySearch', data, 'af-system').then(res => toCallback(res))
|
|
111
|
+
}
|
|
112
|
+
else if (params.source === '获取人员') {
|
|
113
|
+
runLogic('getUserBySearch', data, 'af-system').then(res => toCallback(res))
|
|
114
|
+
}
|
|
115
|
+
else if (params.source === '根据角色获取人员') {
|
|
116
|
+
runLogic('getUserBySearchRole', data, 'af-system').then(res => toCallback(res))
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
return search(params).then(res => toCallback(res))
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export async function searchToOption(params, callback) {
|
|
124
|
+
function toCallback(res) {
|
|
125
|
+
if (res.length) {
|
|
126
|
+
if (res[0].children && res[0].children.length) {
|
|
127
|
+
if (res[0].children[0].children) {
|
|
128
|
+
callback(transformData(res[0].children[0].children))
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
callback(transformData(res[0].children))
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
callback(res[0].children)
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
callback(res)
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
await getResData(params, toCallback)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export async function searchToListOption(params, callback) {
|
|
147
|
+
function toCallback(res) {
|
|
148
|
+
if (params.source.includes('人员')) {
|
|
149
|
+
// console.log('ren---------',res)
|
|
150
|
+
callback(transformData(getLeafNodes(res)))
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
const type = params.source.includes('公司') ? 'organization' : 'department'
|
|
154
|
+
// console.log('bumenpgonngsi',res)
|
|
155
|
+
callback(transformData(getLeafNodesByCondition(type, res)))
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
await getResData(params, toCallback)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export async function search(params) {
|
|
163
|
+
return request('/rs/search', METHOD.POST, params, params.config)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export default { searchToOption, search }
|
package/src/styles/login.less
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
html:not(.dark) {
|
|
2
|
-
.form {
|
|
3
|
-
.form_field {
|
|
4
|
-
:deep(.van-field__label) {
|
|
5
|
-
color: rgb(88, 88, 88);
|
|
6
|
-
}
|
|
7
|
-
:deep(.van-field__body) {
|
|
8
|
-
background: rgb(251, 251, 251);
|
|
9
|
-
box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.1);
|
|
10
|
-
color: rgb(71, 71, 71);
|
|
11
|
-
}
|
|
12
|
-
:deep(.van-cell) {
|
|
13
|
-
background: #ffffff;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.extra_setting {
|
|
17
|
-
.extra_setting_for_remember_password {
|
|
18
|
-
color: rgb(88, 88, 88);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.form {
|
|
24
|
-
width: 100%;
|
|
25
|
-
padding: 0 40px;
|
|
26
|
-
.form_field {
|
|
27
|
-
padding-right: 0;
|
|
28
|
-
padding-left: 0;
|
|
29
|
-
:deep(.van-field__label) {
|
|
30
|
-
opacity: 0.7;
|
|
31
|
-
font-size: 16px;
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
line-height: 23px;
|
|
34
|
-
text-transform: uppercase;
|
|
35
|
-
text-indent: 10px;
|
|
36
|
-
}
|
|
37
|
-
:deep(.van-field__body) {
|
|
38
|
-
height: 40px;
|
|
39
|
-
border-radius: 5px;
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
padding: 8px 10px;
|
|
43
|
-
opacity: 0.6;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.extra_setting {
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
line-height: 12px;
|
|
50
|
-
.extra_setting_for_remember_password {
|
|
51
|
-
opacity: 0.7;
|
|
52
|
-
span {
|
|
53
|
-
position: relative;
|
|
54
|
-
bottom: 3px;
|
|
55
|
-
left: 5px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.extra_setting_for_reset_password {
|
|
59
|
-
position: relative;
|
|
60
|
-
top: 2px;
|
|
61
|
-
opacity: 0.7;
|
|
62
|
-
color: rgb(56, 149, 250);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.btn {
|
|
66
|
-
height: 50px;
|
|
67
|
-
:deep(.van-button__text) {
|
|
68
|
-
color: rgb(255, 255, 255);
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
font-weight: 700;
|
|
71
|
-
line-height: 23px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.login_btn {
|
|
75
|
-
background: rgb(56, 149, 250);
|
|
76
|
-
margin-top: 104px;
|
|
77
|
-
}
|
|
78
|
-
.reset_btn {
|
|
79
|
-
margin: 24px 0;
|
|
80
|
-
}
|
|
81
|
-
.back_btn {
|
|
82
|
-
:deep(.van-button__text) {
|
|
83
|
-
color: rgb(56, 149, 250);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
:deep(.van-cell:after) {
|
|
87
|
-
border-bottom: none;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
.login_form {
|
|
91
|
-
margin-top: 65px;
|
|
92
|
-
}
|
|
93
|
-
.forget_password_form {
|
|
94
|
-
margin-top: 15px;
|
|
95
|
-
}
|
|
96
|
-
/* 使图标垂直居中 */
|
|
97
|
-
.wechat-login-btn .van-icon {
|
|
98
|
-
vertical-align: middle;
|
|
99
|
-
}
|
|
100
|
-
/* 悬停效果 */
|
|
101
|
-
.wechat-login-btn:hover {
|
|
102
|
-
background-color: #06ad56 !important;
|
|
103
|
-
border-color: #06ad56 !important;
|
|
104
|
-
}
|
|
105
|
-
/* 点击效果 */
|
|
106
|
-
.wechat-login-btn:active {
|
|
107
|
-
background-color: #05994c !important;
|
|
108
|
-
border-color: #05994c !important;
|
|
109
|
-
}
|
|
1
|
+
html:not(.dark) {
|
|
2
|
+
.form {
|
|
3
|
+
.form_field {
|
|
4
|
+
:deep(.van-field__label) {
|
|
5
|
+
color: rgb(88, 88, 88);
|
|
6
|
+
}
|
|
7
|
+
:deep(.van-field__body) {
|
|
8
|
+
background: rgb(251, 251, 251);
|
|
9
|
+
box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.1);
|
|
10
|
+
color: rgb(71, 71, 71);
|
|
11
|
+
}
|
|
12
|
+
:deep(.van-cell) {
|
|
13
|
+
background: #ffffff;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.extra_setting {
|
|
17
|
+
.extra_setting_for_remember_password {
|
|
18
|
+
color: rgb(88, 88, 88);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.form {
|
|
24
|
+
width: 100%;
|
|
25
|
+
padding: 0 40px;
|
|
26
|
+
.form_field {
|
|
27
|
+
padding-right: 0;
|
|
28
|
+
padding-left: 0;
|
|
29
|
+
:deep(.van-field__label) {
|
|
30
|
+
opacity: 0.7;
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
line-height: 23px;
|
|
34
|
+
text-transform: uppercase;
|
|
35
|
+
text-indent: 10px;
|
|
36
|
+
}
|
|
37
|
+
:deep(.van-field__body) {
|
|
38
|
+
height: 40px;
|
|
39
|
+
border-radius: 5px;
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
padding: 8px 10px;
|
|
43
|
+
opacity: 0.6;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.extra_setting {
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
line-height: 12px;
|
|
50
|
+
.extra_setting_for_remember_password {
|
|
51
|
+
opacity: 0.7;
|
|
52
|
+
span {
|
|
53
|
+
position: relative;
|
|
54
|
+
bottom: 3px;
|
|
55
|
+
left: 5px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.extra_setting_for_reset_password {
|
|
59
|
+
position: relative;
|
|
60
|
+
top: 2px;
|
|
61
|
+
opacity: 0.7;
|
|
62
|
+
color: rgb(56, 149, 250);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.btn {
|
|
66
|
+
height: 50px;
|
|
67
|
+
:deep(.van-button__text) {
|
|
68
|
+
color: rgb(255, 255, 255);
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
line-height: 23px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.login_btn {
|
|
75
|
+
background: rgb(56, 149, 250);
|
|
76
|
+
margin-top: 104px;
|
|
77
|
+
}
|
|
78
|
+
.reset_btn {
|
|
79
|
+
margin: 24px 0;
|
|
80
|
+
}
|
|
81
|
+
.back_btn {
|
|
82
|
+
:deep(.van-button__text) {
|
|
83
|
+
color: rgb(56, 149, 250);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
:deep(.van-cell:after) {
|
|
87
|
+
border-bottom: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.login_form {
|
|
91
|
+
margin-top: 65px;
|
|
92
|
+
}
|
|
93
|
+
.forget_password_form {
|
|
94
|
+
margin-top: 15px;
|
|
95
|
+
}
|
|
96
|
+
/* 使图标垂直居中 */
|
|
97
|
+
.wechat-login-btn .van-icon {
|
|
98
|
+
vertical-align: middle;
|
|
99
|
+
}
|
|
100
|
+
/* 悬停效果 */
|
|
101
|
+
.wechat-login-btn:hover {
|
|
102
|
+
background-color: #06ad56 !important;
|
|
103
|
+
border-color: #06ad56 !important;
|
|
104
|
+
}
|
|
105
|
+
/* 点击效果 */
|
|
106
|
+
.wechat-login-btn:active {
|
|
107
|
+
background-color: #05994c !important;
|
|
108
|
+
border-color: #05994c !important;
|
|
109
|
+
}
|