Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
link-tools
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
vue-plugins
link-tools
Commits
6913aa63
Commit
6913aa63
authored
Dec 28, 2018
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改第三方程序的文案
parent
62535a6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
linktools.vue
linktools.vue
+10
-10
linktoolspage.vue
linktoolspage.vue
+10
-10
No files found.
linktools.vue
View file @
6913aa63
...
...
@@ -222,8 +222,8 @@ components: {linkId
</div>
-->
<div
class=
"h5link-row"
>
<label
class=
"h5link-title"
>
网址
</label>
<el-input
v-model=
"thirdObj.pagePath"
placeholder=
"
请输入网址
"
></el-input>
<label
class=
"h5link-title"
>
跳转路径(非必填)
</label>
<el-input
v-model=
"thirdObj.pagePath"
placeholder=
"
输入跳转路径
"
></el-input>
</div>
<!--
<div class="h5link-row">
...
...
@@ -1483,14 +1483,14 @@ export default {
message
:
"请选择第三方小程序"
})
}
const
reg
=
/^
(
http|https|www
)(
:
\/\/)?
.
[
A-Za-z
]
+.
[
A-Za-z
]
+.*/
;
if
(
!
reg
.
test
(
this
.
thirdObj
.
pagePath
))
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"输入的网址不合法!"
})
return
;
}
//
const reg = /^(http|https|www)(:\/\/)?.[A-Za-z]+.[A-Za-z]+.*/;
//
if (!reg.test(this.thirdObj.pagePath)) {
//
this.$message.error({
//
duration: 1000,
//
message: "输入的网址不合法!"
//
})
//
return;
//
}
this
.
twoLevelOptions
.
forEach
(
v
=>
{
if
(
v
.
value
===
this
.
twoLevelValue
)
{
that
.
selectLinkObj
.
name
=
v
.
label
;
...
...
linktoolspage.vue
View file @
6913aa63
...
...
@@ -192,8 +192,8 @@
</div>
-->
<div
class=
"h5link-row"
>
<label
class=
"h5link-title"
>
网址
</label>
<el-input
v-model=
"thirdObj.pagePath"
placeholder=
"
请输入网址
"
></el-input>
<label
class=
"h5link-title"
>
跳转路径(非必填)
</label>
<el-input
v-model=
"thirdObj.pagePath"
placeholder=
"
输入跳转路径
"
></el-input>
</div>
<!--
<div class="h5link-row">
...
...
@@ -1453,14 +1453,14 @@ export default {
message
:
"请选择第三方小程序"
})
}
const
reg
=
/^
(
http|https|www
)(
:
\/\/)?
.
[
A-Za-z
]
+.
[
A-Za-z
]
+.*/
;
if
(
!
reg
.
test
(
this
.
thirdObj
.
pagePath
))
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"输入的网址不合法!"
})
return
;
}
//
const reg = /^(http|https|www)(:\/\/)?.[A-Za-z]+.[A-Za-z]+.*/;
//
if (!reg.test(this.thirdObj.pagePath)) {
//
this.$message.error({
//
duration: 1000,
//
message: "输入的网址不合法!"
//
})
//
return;
//
}
this
.
twoLevelOptions
.
forEach
(
v
=>
{
if
(
v
.
value
===
this
.
twoLevelValue
)
{
that
.
selectLinkObj
.
name
=
v
.
label
;
...
...
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