Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
cd-bid
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f7bf6d7d
authored
Jul 29, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新安全校验问题
parent
264e71c2
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
19 deletions
src/assets/logo@2x.png
src/common/js/rule/atom.js
src/common/js/rule/rule.js
src/components/currency-footer.vue
src/view/about.vue
src/view/register-specialist.vue
src/view/register-supplier.vue
src/assets/logo@2x.png
View file @
f7bf6d7d
17.5 KB
|
W:
|
H:
16.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/common/js/rule/atom.js
View file @
f7bf6d7d
...
@@ -11,7 +11,6 @@ let output = {
...
@@ -11,7 +11,6 @@ let output = {
},
},
isMoney
:
function
(
value
)
{
isMoney
:
function
(
value
)
{
let
regExp
=
new
RegExp
(
'^[0-9]+(.[0-9]{1,2})?$'
)
let
regExp
=
new
RegExp
(
'^[0-9]+(.[0-9]{1,2})?$'
)
console
.
log
(
'isMoney'
,
regExp
.
test
(
value
))
return
regExp
.
test
(
value
)
return
regExp
.
test
(
value
)
},
},
...
...
src/common/js/rule/rule.js
View file @
f7bf6d7d
...
@@ -84,9 +84,27 @@ let output = {
...
@@ -84,9 +84,27 @@ let output = {
},
},
password
:
function
(
rule
,
value
,
callback
)
{
password
:
function
(
rule
,
value
,
callback
)
{
let
funcRegExp
=
new
RegExp
(
/
[
0-9a-z
]
+/
,
'ig'
)
let
funcRegulation
if
(
!
funcRegExp
.
test
(
value
))
{
let
funcComplexity
=
0
funcRegulation
=
/
[
0-9
]
+/ig
if
(
funcRegulation
.
test
(
value
))
{
funcComplexity
=
funcComplexity
+
1
}
funcRegulation
=
/
[
a-z
]
+/ig
if
(
funcRegulation
.
test
(
value
))
{
funcComplexity
=
funcComplexity
+
1
}
funcRegulation
=
/
((?=[\x
21-
\x
7e
]
+
)[^
A-Za-z0-9
])
/ig
if
(
funcRegulation
.
test
(
value
))
{
funcComplexity
=
funcComplexity
+
1
}
if
(
funcComplexity
<
2
)
{
callback
(
new
Error
(
rule
.
message
))
callback
(
new
Error
(
rule
.
message
))
return
}
}
callback
()
callback
()
},
},
...
...
src/components/currency-footer.vue
View file @
f7bf6d7d
...
@@ -8,22 +8,22 @@
...
@@ -8,22 +8,22 @@
<img
src=
"../assets/logo@2x.png"
alt=
""
>
<img
src=
"../assets/logo@2x.png"
alt=
""
>
</div>
</div>
<div>
<div>
<p>
地址:厦门市思明区
吕岭路1733号创想中心
1801单元
</p>
<p>
地址:厦门市思明区
创想中心A座
1801单元
</p>
<p>
联系电话:0592-5859311
</p>
<p>
联系电话:0592-5859311
</p>
</div>
</div>
</div>
</div>
<div
class=
"other-link row"
>
<div
class=
"other-link row"
>
<div
class=
"other-link-item"
>
<div
class=
"other-link-item"
>
<span>
采购服务
</span>
<span>
采购服务
</span>
<span>
发布招标
</span>
<span>
发布招标
采购信息
</span>
<span>
网上竞价
</span>
<span>
网上竞价
</span>
<span>
政策法规招标
</span>
<span>
其他采购服务
</span>
</div>
</div>
<div
class=
"other-link-item"
>
<div
class=
"other-link-item"
>
<span>
供应商服务
</span>
<span>
供应商服务
</span>
<span>
供应商入驻
</span>
<span>
供应商入驻
</span>
<span>
招标
公告
</span>
<span>
招标
采购信息推送
</span>
<span>
竞价
招标
</span>
<span>
竞价
采购
</span>
</div>
</div>
<div
class=
"other-link-item"
>
<div
class=
"other-link-item"
>
<span>
招标资讯
</span>
<span>
招标资讯
</span>
...
...
src/view/about.vue
View file @
f7bf6d7d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"about-us-info"
>
<div
class=
"about-us-info"
>
<p><span>
厦门建发集团有限公司
</span>
系厦门市属国有企业,创立于1980年12月,经过三十多年的创新与变革,公司已发展成为注册资本65.5亿元、年营业收入超过2800亿元、资产总额超过2500亿元的大型实业投资企业集团,业务涵盖供应链运营、房地产开发、旅游酒店、会展业、医疗、投资等,排名2019年度《财富》"世界500强"第277位、2019中国企业500强第71位、中国服务业500强第39位。
</p>
<p><span>
厦门建发集团有限公司
</span>
系厦门市属国有企业,创立于1980年12月,经过三十多年的创新与变革,公司已发展成为注册资本65.5亿元、年营业收入超过2800亿元、资产总额超过2500亿元的大型实业投资企业集团,业务涵盖供应链运营、房地产开发、旅游酒店、会展业、医疗、投资等,排名2019年度《财富》"世界500强"第277位、2019中国企业500强第71位、中国服务业500强第39位。
</p>
<p>
今后集团将通过扩大现有核心产业的投资、适度增强现有新兴产业投资、积极对现有其他投资企业进行资本运作,并尝试一些新领域投资,将采取传统产业项目与高科技项目相结合、产业投资与战略投资、风险投资相结合、独立投资经营与合资合作相结合的策略,促进重点领域核心竞争力的形成与升级,实现投资收益的较大增长和核心产业品牌增值,促使集团稳步发展。
</p>
<p>
今后集团将通过扩大现有核心产业的投资、适度增强现有新兴产业投资、积极对现有其他投资企业进行资本运作,并尝试一些新领域投资,将采取传统产业项目与高科技项目相结合、产业投资与战略投资、风险投资相结合、独立投资经营与合资合作相结合的策略,促进重点领域核心竞争力的形成与升级,实现投资收益的较大增长和核心产业品牌增值,促使集团稳步发展。
</p>
<p><span>
地址:厦门市思明区
吕岭路1733号创想中心
1801单元
</span></p>
<p><span>
地址:厦门市思明区
创想中心A座
1801单元
</span></p>
<p><span>
电话:0592-5859311
</span></p>
<p><span>
电话:0592-5859311
</span></p>
</div>
</div>
<div
class=
"about-us-amp"
>
<div
class=
"about-us-amp"
>
...
...
src/view/register-specialist.vue
View file @
f7bf6d7d
...
@@ -220,10 +220,10 @@
...
@@ -220,10 +220,10 @@
<div
v-if=
"state === 7"
class=
"register-info row"
>
<div
v-if=
"state === 7"
class=
"register-info row"
>
<el-form
ref=
"formPassword"
key=
"formPassword"
:model=
"formRegister"
:rules=
"rule"
label-width=
"160px"
>
<el-form
ref=
"formPassword"
key=
"formPassword"
:model=
"formRegister"
:rules=
"rule"
label-width=
"160px"
>
<el-form-item
label=
"登录密码:"
prop=
"password"
>
<el-form-item
label=
"登录密码:"
prop=
"password"
>
<el-input
v-model=
"formRegister.password"
show-password
m
axlength=
"20"
placeholder=
"6
-20个字符,数字、英文字母及标点符号至少2种"
></el-input>
<el-input
v-model=
"formRegister.password"
show-password
m
inlength=
"8"
maxlength=
"20"
placeholder=
"8
-20个字符,数字、英文字母及标点符号至少2种"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"确认密码:"
prop=
"passwordRepeat"
>
<el-form-item
label=
"确认密码:"
prop=
"passwordRepeat"
>
<el-input
v-model=
"formRegister.passwordRepeat"
show-password
maxlength=
"20"
placeholder=
"再次输入登录密码"
></el-input>
<el-input
v-model=
"formRegister.passwordRepeat"
show-password
m
inlength=
"8"
m
axlength=
"20"
placeholder=
"再次输入登录密码"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系人手机号:"
prop=
"phone"
>
<el-form-item
label=
"联系人手机号:"
prop=
"phone"
>
<el-input
v-model=
"formRegister.phone"
maxlength=
"11"
placeholder=
"请输入联系人手机号"
></el-input>
<el-input
v-model=
"formRegister.phone"
maxlength=
"11"
placeholder=
"请输入联系人手机号"
></el-input>
...
@@ -390,11 +390,11 @@
...
@@ -390,11 +390,11 @@
],
],
password
:
[
password
:
[
{
required
:
true
,
message
:
'请设置登录密码'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请设置登录密码'
,
trigger
:
'blur'
},
{
min
:
6
,
max
:
20
,
message
:
'6
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
},
{
min
:
8
,
max
:
20
,
message
:
'8
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unSpace
,
message
:
'不能包含空格'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unSpace
,
message
:
'不能包含空格'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unEmoji
,
message
:
'不能包含 emoji 表情'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unEmoji
,
message
:
'不能包含 emoji 表情'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unChinese
,
message
:
'不能包含中文'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unChinese
,
message
:
'不能包含中文'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
password
,
message
:
'
6
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
}
{
validator
:
iRule
.
password
,
message
:
'
8
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
}
],
],
passwordRepeat
:
[
passwordRepeat
:
[
{
required
:
true
,
message
:
'请再次输入登录密码'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请再次输入登录密码'
,
trigger
:
'blur'
},
...
@@ -680,7 +680,6 @@
...
@@ -680,7 +680,6 @@
for
(
let
i
=
0
,
l
=
funcKeys
.
length
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
,
l
=
funcKeys
.
length
;
i
<
l
;
i
++
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
formRegister
[
funcKeys
[
i
]])
===
'[object String]'
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
formRegister
[
funcKeys
[
i
]])
===
'[object String]'
)
{
let
funcValue
=
this
.
formRegister
[
funcKeys
[
i
]].
replace
(
funcRegular
,
''
)
let
funcValue
=
this
.
formRegister
[
funcKeys
[
i
]].
replace
(
funcRegular
,
''
)
console
.
log
(
funcValue
)
this
.
formRegister
[
funcKeys
[
i
]]
=
funcValue
this
.
formRegister
[
funcKeys
[
i
]]
=
funcValue
}
}
}
}
...
...
src/view/register-supplier.vue
View file @
f7bf6d7d
...
@@ -161,10 +161,10 @@
...
@@ -161,10 +161,10 @@
<div
v-if=
"state === 9"
class=
"register-info row"
>
<div
v-if=
"state === 9"
class=
"register-info row"
>
<el-form
ref=
"formPassword"
key=
"formPassword"
:model=
"formRegister"
:rules=
"rule"
label-width=
"160px"
>
<el-form
ref=
"formPassword"
key=
"formPassword"
:model=
"formRegister"
:rules=
"rule"
label-width=
"160px"
>
<el-form-item
label=
"登录密码:"
prop=
"password"
>
<el-form-item
label=
"登录密码:"
prop=
"password"
>
<el-input
v-model=
"formRegister.password"
show-password
m
axlength=
"20"
placeholder=
"6
-20个字符,数字、英文字母及标点符号至少2种"
></el-input>
<el-input
v-model=
"formRegister.password"
show-password
m
inlength=
"8"
maxlength=
"20"
placeholder=
"8
-20个字符,数字、英文字母及标点符号至少2种"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"确认密码:"
prop=
"passwordRepeat"
>
<el-form-item
label=
"确认密码:"
prop=
"passwordRepeat"
>
<el-input
v-model=
"formRegister.passwordRepeat"
show-password
maxlength=
"20"
placeholder=
"再次输入登录密码"
></el-input>
<el-input
v-model=
"formRegister.passwordRepeat"
show-password
m
inlength=
"8"
m
axlength=
"20"
placeholder=
"再次输入登录密码"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
"register-info-button row con-c"
>
<el-form-item
class=
"register-info-button row con-c"
>
<el-button
type=
"primary"
@
click
.
prevent=
"onPrevious()"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click
.
prevent=
"onPrevious()"
>
上一步
</el-button>
...
@@ -344,11 +344,11 @@
...
@@ -344,11 +344,11 @@
],
],
password
:
[
password
:
[
{
required
:
true
,
message
:
'请设置登录密码'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请设置登录密码'
,
trigger
:
'blur'
},
{
min
:
6
,
max
:
20
,
message
:
'6
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
},
{
min
:
8
,
max
:
20
,
message
:
'8
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unSpace
,
message
:
'不能包含空格'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unSpace
,
message
:
'不能包含空格'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unEmoji
,
message
:
'不能包含 emoji 表情'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unEmoji
,
message
:
'不能包含 emoji 表情'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unChinese
,
message
:
'不能包含中文'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
unChinese
,
message
:
'不能包含中文'
,
trigger
:
'blur'
},
{
validator
:
iRule
.
password
,
message
:
'
6
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
}
{
validator
:
iRule
.
password
,
message
:
'
8
-20个字符,数字、英文字母及标点符号至少2种(除空格)'
,
trigger
:
'blur'
}
],
],
passwordRepeat
:
[
passwordRepeat
:
[
{
required
:
true
,
message
:
'请再次输入登录密码'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请再次输入登录密码'
,
trigger
:
'blur'
},
...
@@ -739,7 +739,6 @@
...
@@ -739,7 +739,6 @@
for
(
let
i
=
0
,
l
=
funcKeys
.
length
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
,
l
=
funcKeys
.
length
;
i
<
l
;
i
++
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
formRegister
[
funcKeys
[
i
]])
===
'[object String]'
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
formRegister
[
funcKeys
[
i
]])
===
'[object String]'
)
{
let
funcValue
=
this
.
formRegister
[
funcKeys
[
i
]].
replace
(
funcRegular
,
''
)
let
funcValue
=
this
.
formRegister
[
funcKeys
[
i
]].
replace
(
funcRegular
,
''
)
console
.
log
(
funcValue
)
this
.
formRegister
[
funcKeys
[
i
]]
=
funcValue
this
.
formRegister
[
funcKeys
[
i
]]
=
funcValue
}
}
}
}
...
...
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