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
f3c8c32d
Commit
f3c8c32d
authored
Jan 25, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feture: 新增分享有赏链接
parent
2badabe4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
linktools.vue
linktools.vue
+15
-3
linktoolspage.vue
linktoolspage.vue
+17
-3
No files found.
linktools.vue
View file @
f3c8c32d
...
@@ -49,6 +49,7 @@ components: {linkId
...
@@ -49,6 +49,7 @@ components: {linkId
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
<!-- 二级下拉 -->
<!-- 二级下拉 -->
<el-select
v-model=
"twoLevelValue"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-select
v-model=
"twoLevelValue"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-option
<el-option
...
@@ -58,6 +59,7 @@ components: {linkId
...
@@ -58,6 +59,7 @@ components: {linkId
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
<!-- 三级下拉 -->
<!-- 三级下拉 -->
<div
class=
"three-level-wrap w200"
v-if=
"threeLevelVisible"
>
<div
class=
"three-level-wrap w200"
v-if=
"threeLevelVisible"
>
<!-- 三级单选 -->
<!-- 三级单选 -->
...
@@ -736,7 +738,9 @@ export default {
...
@@ -736,7 +738,9 @@ export default {
// 如果是 h5,二级,三级隐藏,
// 如果是 h5,二级,三级隐藏,
var
type
=
selectOneItem
.
type
==
5
?
true
:
false
;
var
type
=
selectOneItem
.
type
==
5
?
true
:
false
;
that
.
setOneLevelVisible
(
type
,
selectOneItem
)
if
(
this
.
linkId
!==
'yueshi'
)
{
that
.
setOneLevelVisible
(
type
,
selectOneItem
);
}
},
},
// set onelevel visible
// set onelevel visible
...
@@ -1168,9 +1172,7 @@ export default {
...
@@ -1168,9 +1172,7 @@ export default {
this
.
cardType
=
false
;
this
.
cardType
=
false
;
}
}
},
},
// 卡券列表
// 卡券列表
// 礼品列表
// 礼品列表
// 获取自定义列表
// 获取自定义列表
...
@@ -1499,6 +1501,7 @@ export default {
...
@@ -1499,6 +1501,7 @@ export default {
// 确认操作
// 确认操作
confirmLinkSelect
()
{
confirmLinkSelect
()
{
var
that
=
this
var
that
=
this
console
.
log
(
this
.
selectLinkObj
);
// 如果选择 h5 判断选择的链接
// 如果选择 h5 判断选择的链接
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
!
that
.
h5linkObj
.
name
.
trim
()
||
!
that
.
h5linkObj
.
url
.
trim
())
{
if
(
!
that
.
h5linkObj
.
name
.
trim
()
||
!
that
.
h5linkObj
.
url
.
trim
())
{
...
@@ -1692,6 +1695,15 @@ export default {
...
@@ -1692,6 +1695,15 @@ export default {
}
}
return
false
;
return
false
;
}
}
// 分享有赏
if
(
this
.
linkId
===
'yueshi'
)
{
this
.
selectLinkObj
.
id
=
this
.
linkId
;
this
.
selectLinkObj
.
name
=
'分享有赏'
;
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'update:linkVisible'
,
false
);
this
.
resetAll
();
return
;
}
if
(
!!
this
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
if
(
!!
this
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
...
...
linktoolspage.vue
View file @
f3c8c32d
<
template
>
<
template
>
<!-- 链接小工具 -->
<!-- 链接小工具 -->
<div
class=
"link-tools-contain"
>
<div
class=
"link-tools-contain"
>
...
@@ -18,6 +20,7 @@
...
@@ -18,6 +20,7 @@
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
<!-- 二级下拉 -->
<!-- 二级下拉 -->
<el-select
v-model=
"twoLevelValue"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-select
v-model=
"twoLevelValue"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-option
<el-option
...
@@ -27,6 +30,7 @@
...
@@ -27,6 +30,7 @@
:value=
"item.value"
>
:value=
"item.value"
>
</el-option>
</el-option>
</el-select>
</el-select>
<!-- 三级下拉 -->
<!-- 三级下拉 -->
<div
class=
"three-level-wrap w200"
v-if=
"threeLevelVisible"
>
<div
class=
"three-level-wrap w200"
v-if=
"threeLevelVisible"
>
<!-- 三级单选 -->
<!-- 三级单选 -->
...
@@ -705,7 +709,9 @@ export default {
...
@@ -705,7 +709,9 @@ export default {
// 如果是 h5,二级,三级隐藏,
// 如果是 h5,二级,三级隐藏,
var
type
=
selectOneItem
.
type
==
5
?
true
:
false
;
var
type
=
selectOneItem
.
type
==
5
?
true
:
false
;
that
.
setOneLevelVisible
(
type
,
selectOneItem
)
if
(
this
.
linkId
!==
'yueshi'
)
{
that
.
setOneLevelVisible
(
type
,
selectOneItem
);
}
},
},
// set onelevel visible
// set onelevel visible
...
@@ -1137,9 +1143,7 @@ export default {
...
@@ -1137,9 +1143,7 @@ export default {
this
.
cardType
=
false
;
this
.
cardType
=
false
;
}
}
},
},
// 卡券列表
// 卡券列表
// 礼品列表
// 礼品列表
// 获取自定义列表
// 获取自定义列表
...
@@ -1468,6 +1472,7 @@ export default {
...
@@ -1468,6 +1472,7 @@ export default {
// 确认操作
// 确认操作
confirmLinkSelect
()
{
confirmLinkSelect
()
{
var
that
=
this
var
that
=
this
console
.
log
(
this
.
selectLinkObj
);
// 如果选择 h5 判断选择的链接
// 如果选择 h5 判断选择的链接
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
!
that
.
h5linkObj
.
name
.
trim
()
||
!
that
.
h5linkObj
.
url
.
trim
())
{
if
(
!
that
.
h5linkObj
.
name
.
trim
()
||
!
that
.
h5linkObj
.
url
.
trim
())
{
...
@@ -1661,6 +1666,15 @@ export default {
...
@@ -1661,6 +1666,15 @@ export default {
}
}
return
false
;
return
false
;
}
}
// 分享有赏
if
(
this
.
linkId
===
'yueshi'
)
{
this
.
selectLinkObj
.
id
=
this
.
linkId
;
this
.
selectLinkObj
.
name
=
'分享有赏'
;
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'update:linkVisible'
,
false
);
this
.
resetAll
();
return
;
}
if
(
!!
this
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
if
(
!!
this
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
...
...
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