Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
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
zhanglw
sensorConsult
Commits
e04c538a
Commit
e04c538a
authored
Oct 19, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
85580398
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
6 deletions
+69
-6
floatInquiryView.vue
src/views/homepage/components/floatInquiryView.vue
+15
-0
inquiryView.vue
src/views/homepage/components/inquiryView.vue
+11
-1
registerInfo.vue
src/views/homepage/console/registerInfo.vue
+10
-2
cooperate.vue
src/views/homepage/footer/cooperate.vue
+11
-1
opinion.vue
src/views/homepage/footer/opinion.vue
+11
-1
otherInfo.vue
src/views/homepage/publish/otherInfo.vue
+11
-1
No files found.
src/views/homepage/components/floatInquiryView.vue
View file @
e04c538a
...
...
@@ -104,6 +104,21 @@ export default {
type
:
'
warning
'
,
duration
:
5000
})
}
else
{
const
newValue
=
this
.
formData
.
phone
.
replace
(
/
[^
0-9
]
/gi
,
''
)
if
(
this
.
formData
.
phone
!==
newValue
)
{
return
this
.
$notify
({
message
:
'
请输入正确的手机号
'
,
type
:
'
warning
'
,
duration
:
5000
})
}
else
if
(
newValue
.
length
!==
11
)
{
return
this
.
$notify
({
message
:
'
请输入正确的手机号
'
,
type
:
'
warning
'
,
duration
:
5000
})
}
}
if
(
!
this
.
formData
.
content
)
{
return
this
.
$notify
({
...
...
src/views/homepage/components/inquiryView.vue
View file @
e04c538a
...
...
@@ -30,6 +30,16 @@ import { HttpReq } from '@/api/common'
export
default
{
data
()
{
const
validateMobile
=
(
rule
,
value
,
callback
)
=>
{
const
newValue
=
value
.
replace
(
/
[^
0-9
]
/gi
,
''
)
if
(
value
!==
newValue
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
if
(
newValue
.
length
!==
11
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
{
callback
()
}
}
return
{
typeDict
:
{
'
product
'
:
'
询 价
'
,
...
...
@@ -49,7 +59,7 @@ export default {
consultType
:
null
,
rules
:
{
name
:
{
required
:
true
,
message
:
'
请填写姓名
'
,
trigger
:
'
blur
'
},
phone
:
{
required
:
true
,
message
:
'
请填写联系电话
'
,
trigger
:
'
blur
'
}
,
phone
:
[{
required
:
true
,
trigger
:
'
blur
'
,
message
:
'
请填写联系电话
'
},
{
validator
:
validateMobile
,
trigger
:
'
blur
'
}]
,
content
:
{
required
:
true
,
message
:
'
请填写咨询内容
'
,
trigger
:
'
blur
'
}
}
}
...
...
src/views/homepage/console/registerInfo.vue
View file @
e04c538a
<
template
>
<div
class=
"page-body"
>
<div
class=
"head-box"
style=
"pointer-events: none;
"
>
<div
class=
"head-box-top"
>
<div
class=
"head-box"
@
click=
"openTip
"
>
<div
class=
"head-box-top"
style=
"pointer-events: none;"
>
<div
class=
"top-call"
/>
<div
class=
"top-call"
><img
src=
"@/assets/home_images/cisnet_logo_b.png"
class=
"touch"
@
click=
"$router.push('/home')"
></div>
<div
class=
"top-call"
><title-menus
ref=
"titleMenus"
menu-index=
"99"
style=
"padding-top: 15px"
/></div>
...
...
@@ -131,6 +131,14 @@ export default {
})
},
methods
:
{
openTip
()
{
this
.
$alert
(
'
当前操作需要您填写完成注册信息后才能进行。
'
,
'
友情提示
'
,
{
confirmButtonText
:
'
确定
'
,
showClose
:
false
,
center
:
true
,
callback
:
action
=>
{}
})
},
cancelView
()
{
this
.
$router
.
go
(
-
1
)
},
...
...
src/views/homepage/footer/cooperate.vue
View file @
e04c538a
...
...
@@ -104,6 +104,16 @@ export default {
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
},
dicts
:
[],
data
()
{
const
validateMobile
=
(
rule
,
value
,
callback
)
=>
{
const
newValue
=
value
.
replace
(
/
[^
0-9
]
/gi
,
''
)
if
(
value
!==
newValue
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
if
(
newValue
.
length
!==
11
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
{
callback
()
}
}
return
{
title
:
''
,
uploadHeaders
:
{
'
Authorization
'
:
getToken
()
},
...
...
@@ -133,7 +143,7 @@ export default {
title
:
{
required
:
true
,
message
:
'
请填写标题
'
,
trigger
:
'
blur
'
},
consultationContent
:
{
required
:
true
,
message
:
'
请填写留言内容
'
,
trigger
:
'
blur
'
},
contactPerson
:
{
required
:
true
,
message
:
'
请留下姓名
'
,
trigger
:
'
blur
'
},
contactPersonPhone
:
{
required
:
true
,
message
:
'
请留下联系电话
'
,
trigger
:
'
blur
'
}
contactPersonPhone
:
[{
required
:
true
,
trigger
:
'
blur
'
,
message
:
'
请填写联系电话
'
},
{
validator
:
validateMobile
,
trigger
:
'
blur
'
}]
}
}
},
...
...
src/views/homepage/footer/opinion.vue
View file @
e04c538a
...
...
@@ -101,6 +101,16 @@ export default {
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
},
dicts
:
[],
data
()
{
const
validateMobile
=
(
rule
,
value
,
callback
)
=>
{
const
newValue
=
value
.
replace
(
/
[^
0-9
]
/gi
,
''
)
if
(
value
!==
newValue
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
if
(
newValue
.
length
!==
11
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
{
callback
()
}
}
return
{
title
:
''
,
uploadHeaders
:
{
'
Authorization
'
:
getToken
()
},
...
...
@@ -129,7 +139,7 @@ export default {
title
:
{
required
:
true
,
message
:
'
请选择建议类别
'
,
trigger
:
'
blur
'
},
consultationContent
:
{
required
:
true
,
message
:
'
请填写留言内容
'
,
trigger
:
'
blur
'
},
contactPerson
:
{
required
:
true
,
message
:
'
请留下姓名
'
,
trigger
:
'
blur
'
},
contactPersonPhone
:
{
required
:
true
,
message
:
'
请留下联系电话
'
,
trigger
:
'
blur
'
}
contactPersonPhone
:
[{
required
:
true
,
trigger
:
'
blur
'
,
message
:
'
请填写联系电话
'
},
{
validator
:
validateMobile
,
trigger
:
'
blur
'
}]
}
}
},
...
...
src/views/homepage/publish/otherInfo.vue
View file @
e04c538a
...
...
@@ -104,6 +104,16 @@ export default {
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
},
dicts
:
[],
data
()
{
const
validateMobile
=
(
rule
,
value
,
callback
)
=>
{
const
newValue
=
value
.
replace
(
/
[^
0-9
]
/gi
,
''
)
if
(
value
!==
newValue
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
if
(
newValue
.
length
!==
11
)
{
callback
(
new
Error
(
'
请输入正确的手机号
'
))
}
else
{
callback
()
}
}
return
{
title
:
''
,
uploadHeaders
:
{
'
Authorization
'
:
getToken
()
},
...
...
@@ -132,7 +142,7 @@ export default {
title
:
{
required
:
true
,
message
:
'
请填写标题
'
,
trigger
:
'
blur
'
},
consultationContent
:
{
required
:
true
,
message
:
'
请填写留言内容
'
,
trigger
:
'
blur
'
},
contactPerson
:
{
required
:
true
,
message
:
'
请留下姓名
'
,
trigger
:
'
blur
'
},
contactPersonPhone
:
{
required
:
true
,
message
:
'
请留下联系电话
'
,
trigger
:
'
blur
'
}
contactPersonPhone
:
[{
required
:
true
,
trigger
:
'
blur
'
,
message
:
'
请填写联系电话
'
},
{
validator
:
validateMobile
,
trigger
:
'
blur
'
}]
}
}
},
...
...
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