Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
c69b9dac
Commit
c69b9dac
authored
Jan 05, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 添加验证码背景色schame
parent
700872b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
index.vue
app/web/lib/Form/index.vue
+10
-9
config.ts
app/web/lib/config.ts
+7
-1
No files found.
app/web/lib/Form/index.vue
View file @
c69b9dac
...
...
@@ -41,6 +41,7 @@
<
template
slot=
"button"
>
<a
href=
"javascript:;"
:style=
"vcStyles"
:class=
"['login-form-send',
{ 'not-allow': noAllowSend || showCount }]"
ref="sendVcode"
>
...
...
@@ -48,7 +49,7 @@
</a>
</
template
>
</cr-field>
<cr-button
:color=
"btnColor"
:style=
"
s
tyles"
shape=
'circle'
block
native-type=
"submit"
class=
"login-form-submit"
>
<cr-button
:color=
"btnColor"
:style=
"
btnS
tyles"
shape=
'circle'
block
native-type=
"submit"
class=
"login-form-submit"
>
{{ btnTxt }}
</cr-button>
</cr-form>
...
...
@@ -81,6 +82,7 @@ export default {
default
:
'
#000
'
},
btnImage
:
String
,
vcBgColor
:
String
,
registerFrom
:
String
,
},
data
()
{
...
...
@@ -115,10 +117,13 @@ export default {
captchaBtnText
()
{
return
this
.
showCount
?
`剩余
${
this
.
count
}
秒`
:
'
获取验证码
'
;
},
s
tyles
()
{
btnS
tyles
()
{
return
this
.
btnImage
?
{
background
:
`url(
${
this
.
btnImage
}
) no-repeat 0 0 / 100%`
,
}
:
{};
},
vcStyles
()
{
return
{
backgroundColor
:
this
.
vcBgColor
};
}
},
mounted
()
{
...
...
@@ -313,16 +318,12 @@ export default {
position: relative;
}
&-send {
border-radius: 8px;
background-color: #eaeaea;
color: #999;
padding: 5px 10px 4px;
}
&-send {
background-color: #f00;
border-radius: 8px;
background-color: #97d5ff;
color: #fff;
&.not-allow {
background-color: #eaeaea;
background-color: #eaeaea
!important
;
color: #999;
}
}
...
...
app/web/lib/config.ts
View file @
c69b9dac
...
...
@@ -111,6 +111,11 @@ export const businessComponents = [
name
:
'
按钮图片
'
,
type
:
'
Upload
'
},
{
key
:
'
vcBgColor
'
,
name
:
'
验证码背景色
'
,
type
:
'
ColorSelector
'
},
{
key
:
'
registerFrom
'
,
name
:
'
渠道号
'
,
...
...
@@ -121,7 +126,8 @@ export const businessComponents = [
btnTxt
:
''
,
btnColor
:
'
#ee0a24
'
,
btnImage
:
'
https://static.q-gp.com/new-xyqb-user-ui/public/static/img/landing-submit.d875947.png
'
,
registerFrom
:
''
registerFrom
:
''
,
vcBgColor
:
'
#97d5ff
'
},
commonStyle
:
{}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment