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
7111cceb
Commit
7111cceb
authored
Jan 16, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 树形选择链接修改无法传值
parent
827a236d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
40 deletions
+10
-40
linktools.vue
linktools.vue
+5
-5
linktoolspage.vue
linktoolspage.vue
+5
-35
No files found.
linktools.vue
View file @
7111cceb
...
@@ -794,14 +794,14 @@ export default {
...
@@ -794,14 +794,14 @@ export default {
this
.
goodsTreeVisible
=
true
;
this
.
goodsTreeVisible
=
true
;
this
.
cardUrl
=
null
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
middleGoodId
=
e
;
this
.
middleGoodId
=
e
;
this
.
goodType
=
11
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
this
.
pageId
=
null
;
this
.
pageId
=
null
;
}
else
{
}
else
{
this
.
threeLevelVisible
=
tru
e
;
this
.
threeLevelVisible
=
fals
e
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
}
}
...
@@ -1645,8 +1645,8 @@ export default {
...
@@ -1645,8 +1645,8 @@ export default {
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
mallProTagI
d
:
this
.
cardUrl
,
tagi
d
:
this
.
cardUrl
,
nam
e
:
this
.
tagName
titl
e
:
this
.
tagName
};
};
if
(
this
.
cardUrl
)
{
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
...
@@ -1662,7 +1662,7 @@ export default {
...
@@ -1662,7 +1662,7 @@ export default {
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
nam
e
:
this
.
pageName
titl
e
:
this
.
pageName
};
};
if
(
this
.
pageId
)
{
if
(
this
.
pageId
)
{
this
.
transData
();
this
.
transData
();
...
...
linktoolspage.vue
View file @
7111cceb
<!--
/**
* 链接小工具组件(弹窗) by fairyly on 2018/06/15
* 组件调用
*/
<linktools :showType="showType" :linkToolsVisible="linkToolsVisible" @linkSelect="linkSelect"/>
import Linktools from 'components/linktools/linktools.vue'
// 链接小工具参数
linkToolsVisible: false, //显示参数
showType: 0, // 显示类型,插件默认0:显示全部 ,1: (底部导航);2: (公众号菜单:只有小程序的,没有h5)
// methods
// linktools
showLinkDialog() {
this.linkToolsVisible = true;
},
linkSelect(val) {
console.log(val)
// 关闭时隐藏
this.linkToolsVisible = false;
}
components: {linkId
Linktools
} coupCardId
-->
<
template
>
<
template
>
<!-- 链接小工具 -->
<!-- 链接小工具 -->
...
@@ -794,14 +764,14 @@ export default {
...
@@ -794,14 +764,14 @@ export default {
this
.
goodsTreeVisible
=
true
;
this
.
goodsTreeVisible
=
true
;
this
.
cardUrl
=
null
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
middleGoodId
=
e
;
this
.
middleGoodId
=
e
;
this
.
goodType
=
11
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
this
.
pageId
=
null
;
this
.
pageId
=
null
;
}
else
{
}
else
{
this
.
threeLevelVisible
=
tru
e
;
this
.
threeLevelVisible
=
fals
e
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
}
}
...
@@ -1645,8 +1615,8 @@ export default {
...
@@ -1645,8 +1615,8 @@ export default {
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
mallProTagI
d
:
this
.
cardUrl
,
tagi
d
:
this
.
cardUrl
,
nam
e
:
this
.
tagName
titl
e
:
this
.
tagName
};
};
if
(
this
.
cardUrl
)
{
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
...
@@ -1662,7 +1632,7 @@ export default {
...
@@ -1662,7 +1632,7 @@ export default {
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
id
=
this
.
middleGoodId
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
nam
e
:
this
.
pageName
titl
e
:
this
.
pageName
};
};
if
(
this
.
pageId
)
{
if
(
this
.
pageId
)
{
this
.
transData
();
this
.
transData
();
...
...
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