easy3wmui 0.0.6 → 0.0.9
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/assets/index.css +20 -14
- package/assets/mLogin.css +6 -0
- package/lib/Easy3wMLogin/index.js +58 -46
- package/package.json +1 -1
package/assets/index.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
:root:root {
|
|
2
|
-
--adm-font-size-main: var(--adm-font-size-
|
|
2
|
+
--adm-font-size-main: var(--adm-font-size-4);
|
|
3
3
|
}
|
|
4
4
|
:root:root .adm-tabs {
|
|
5
|
-
--title-font-size: var(--adm-font-size-
|
|
5
|
+
--title-font-size: var(--adm-font-size-6);
|
|
6
6
|
}
|
|
7
7
|
:root:root .adm-button {
|
|
8
|
-
font-size: var(--adm-font-size-
|
|
8
|
+
font-size: var(--adm-font-size-4);
|
|
9
9
|
}
|
|
10
10
|
:root:root .adm-card-header-title {
|
|
11
|
-
font-size: var(--adm-font-size-
|
|
11
|
+
font-size: var(--adm-font-size-6);
|
|
12
12
|
}
|
|
13
13
|
:root:root .adm-input {
|
|
14
|
-
--font-size: var(--adm-font-size-
|
|
14
|
+
--font-size: var(--adm-font-size-4);
|
|
15
15
|
}
|
|
16
16
|
:root:root .adm-input-element {
|
|
17
17
|
border: 1px solid #d9d9d9;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
border-color: var(--adm-color-primary);
|
|
22
22
|
}
|
|
23
23
|
:root:root .adm-text-area {
|
|
24
|
-
--font-size: var(--adm-font-size-
|
|
24
|
+
--font-size: var(--adm-font-size-4);
|
|
25
25
|
}
|
|
26
26
|
:root:root .adm-text-area-element {
|
|
27
27
|
border: 1px solid #d9d9d9;
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
border-color: var(--adm-color-primary);
|
|
32
32
|
}
|
|
33
33
|
:root:root .adm-text-area-count {
|
|
34
|
-
font-size: var(--adm-font-size-
|
|
34
|
+
font-size: var(--adm-font-size-4);
|
|
35
35
|
}
|
|
36
36
|
:root:root .adm-selector {
|
|
37
|
-
font-size: var(--adm-font-size-
|
|
37
|
+
font-size: var(--adm-font-size-4);
|
|
38
38
|
}
|
|
39
39
|
:root:root .adm-rate {
|
|
40
|
-
--star-size:
|
|
40
|
+
--star-size: var(--adm-font-size-4);
|
|
41
41
|
}
|
|
42
42
|
:root:root .adm-radio,
|
|
43
43
|
:root:root .adm-checkbox {
|
|
44
|
-
--icon-size:
|
|
45
|
-
--font-size:
|
|
44
|
+
--icon-size: var(--adm-font-size-4);
|
|
45
|
+
--font-size: var(--adm-font-size-4);
|
|
46
46
|
}
|
|
47
47
|
:root:root .adm-switch {
|
|
48
48
|
--height: 20.8px;
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
padding: 0;
|
|
52
52
|
}
|
|
53
53
|
:root:root .adm-list-header {
|
|
54
|
-
--header-font-size: var(--adm-font-size-
|
|
54
|
+
--header-font-size: var(--adm-font-size-6);
|
|
55
55
|
border-bottom: var(--border-bottom);
|
|
56
56
|
}
|
|
57
57
|
:root:root .adm-list-body {
|
|
58
|
-
--font-size: var(--adm-font-size-
|
|
58
|
+
--font-size: var(--adm-font-size-4);
|
|
59
59
|
}
|
|
60
60
|
:root:root .adm-list-default .adm-list-body {
|
|
61
61
|
border-top: 0;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
padding-right: 0;
|
|
79
79
|
}
|
|
80
80
|
:root:root .adm-list-item-content-extra {
|
|
81
|
-
font-size: var(--adm-font-size-
|
|
81
|
+
font-size: var(--adm-font-size-4);
|
|
82
82
|
}
|
|
83
83
|
:root:root .adm-collapse-panel-content-inner > .adm-list-item {
|
|
84
84
|
border-bottom: none;
|
|
@@ -161,3 +161,9 @@
|
|
|
161
161
|
cursor: pointer;
|
|
162
162
|
color: #999;
|
|
163
163
|
}
|
|
164
|
+
#Easy3wMLogin .errorMsgReal {
|
|
165
|
+
background: #fff1f0;
|
|
166
|
+
border: 1px solid #ffa39e;
|
|
167
|
+
padding-top: 3px;
|
|
168
|
+
padding-bottom: 3px;
|
|
169
|
+
}
|
|
@@ -123,60 +123,72 @@ var Easy3wMLogin = function (_Component) {
|
|
|
123
123
|
|
|
124
124
|
var errorMsgReal = errorMsg || '账户或密码错误';
|
|
125
125
|
return _react2['default'].createElement(
|
|
126
|
-
|
|
127
|
-
{
|
|
126
|
+
'div',
|
|
127
|
+
{ id: 'Easy3wMLogin' },
|
|
128
128
|
_react2['default'].createElement(
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
status === 'error' && submitting === false && this.renderMessage(errorMsgReal),
|
|
129
|
+
_tabs2['default'],
|
|
130
|
+
{ activeKey: 'account', onChange: this.onChange },
|
|
132
131
|
_react2['default'].createElement(
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
// ref={this.formRef}
|
|
136
|
-
form: form,
|
|
137
|
-
layout: 'horizontal' // 字段与
|
|
138
|
-
, name: 'login',
|
|
139
|
-
footer: // 表单尾部的内容,常常用来放置提交按钮
|
|
140
|
-
_react2['default'].createElement(
|
|
141
|
-
'div',
|
|
142
|
-
null,
|
|
143
|
-
_react2['default'].createElement(
|
|
144
|
-
_button2['default'],
|
|
145
|
-
{ color: 'primary', fill: 'solid', block: true, onClick: this.submitAccountLogin },
|
|
146
|
-
'\u767B\u5F55'
|
|
147
|
-
)
|
|
148
|
-
)
|
|
149
|
-
},
|
|
132
|
+
Tab,
|
|
133
|
+
{ title: '\u7528\u6237\u767B\u5F55', key: 'account' },
|
|
150
134
|
_react2['default'].createElement(
|
|
151
|
-
|
|
152
|
-
{ name: 'userName', required: true },
|
|
153
|
-
_react2['default'].createElement(_input2['default'], { onClick: this.changePsmode, placeholder: '\u8BF7\u8F93\u5165\u7528\u6237\u540D' })
|
|
154
|
-
),
|
|
155
|
-
_react2['default'].createElement(
|
|
156
|
-
FormItem,
|
|
135
|
+
_form2['default'],
|
|
157
136
|
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
137
|
+
// ref={this.formRef}
|
|
138
|
+
form: form,
|
|
139
|
+
layout: 'horizontal' // 字段与
|
|
140
|
+
, name: 'login',
|
|
141
|
+
footer: // 表单尾部的内容,常常用来放置提交按钮
|
|
142
|
+
_react2['default'].createElement(
|
|
161
143
|
'div',
|
|
162
144
|
null,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
145
|
+
_react2['default'].createElement(
|
|
146
|
+
_button2['default'],
|
|
147
|
+
{ color: 'primary', fill: 'solid', block: true, onClick: this.submitAccountLogin },
|
|
148
|
+
'\u767B\u5F55'
|
|
149
|
+
)
|
|
168
150
|
)
|
|
169
151
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
_react2['default'].createElement(
|
|
152
|
+
status === 'error' && submitting === false ? _react2['default'].createElement(
|
|
153
|
+
FormItem,
|
|
154
|
+
null,
|
|
155
|
+
_react2['default'].createElement(
|
|
156
|
+
'div',
|
|
157
|
+
{ className: 'errorMsgReal' },
|
|
158
|
+
errorMsgReal
|
|
159
|
+
)
|
|
160
|
+
) : '',
|
|
161
|
+
_react2['default'].createElement(
|
|
162
|
+
FormItem,
|
|
163
|
+
{ name: 'userName', required: true },
|
|
164
|
+
_react2['default'].createElement(_input2['default'], { onClick: this.changePsmode, placeholder: '\u8BF7\u8F93\u5165\u7528\u6237\u540D' })
|
|
165
|
+
),
|
|
166
|
+
_react2['default'].createElement(
|
|
167
|
+
FormItem,
|
|
168
|
+
{
|
|
169
|
+
name: 'password',
|
|
170
|
+
required: true,
|
|
171
|
+
extra: _react2['default'].createElement(
|
|
172
|
+
'div',
|
|
173
|
+
null,
|
|
174
|
+
visible ? _react2['default'].createElement(_antdMobileIcons.EyeOutline, { onClick: function onClick() {
|
|
175
|
+
return _this2.touchSetPassword(false);
|
|
176
|
+
} }) : _react2['default'].createElement(_antdMobileIcons.EyeInvisibleOutline, { onClick: function onClick() {
|
|
177
|
+
return _this2.touchSetPassword(true);
|
|
178
|
+
} })
|
|
179
|
+
)
|
|
180
|
+
},
|
|
181
|
+
_react2['default'].createElement(_input2['default'], { placeholder: '\u8BF7\u8F93\u5165\u5BC6\u7801', type: visible ? 'text' : 'password' })
|
|
182
|
+
),
|
|
183
|
+
_react2['default'].createElement(
|
|
184
|
+
FormItem,
|
|
185
|
+
{
|
|
186
|
+
name: 'piccaptcha',
|
|
187
|
+
rules: [{ required: true, message: '请输入验证码 不区分大小写' }, { validator: this.checkCaptcha }],
|
|
188
|
+
extra: _react2['default'].createElement(_Easy3wMCaptcha2['default'], { touchCaptchaResult: this.touchCaptchaResult })
|
|
189
|
+
},
|
|
190
|
+
_react2['default'].createElement(_input2['default'], { placeholder: '\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801 \u4E0D\u533A\u5206\u5927\u5C0F\u5199' })
|
|
191
|
+
)
|
|
180
192
|
)
|
|
181
193
|
)
|
|
182
194
|
)
|