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
827a236d
Commit
827a236d
authored
Jan 15, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复商城链接id
parent
d85f3e84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
4 deletions
+38
-4
linktools.vue
linktools.vue
+4
-2
linktoolspage.vue
linktoolspage.vue
+34
-2
No files found.
linktools.vue
View file @
827a236d
...
@@ -787,6 +787,7 @@ export default {
...
@@ -787,6 +787,7 @@ export default {
// twoLevelValueChange (二级选择,保存选择类型)
// twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange
(
e
)
{
twoLevelValueChange
(
e
)
{
if
(
e
==
'product_category_link'
)
{
// 商品链接
if
(
e
==
'product_category_link'
)
{
// 商品链接
this
.
middleGoodId
=
e
;
this
.
goodType
=
10
;
this
.
goodType
=
10
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
false
;
this
.
threeLeveloneVisible
=
false
;
...
@@ -794,6 +795,7 @@ export default {
...
@@ -794,6 +795,7 @@ export default {
this
.
cardUrl
=
null
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
goodType
=
11
;
this
.
middleGoodId
=
e
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
...
@@ -1641,7 +1643,7 @@ export default {
...
@@ -1641,7 +1643,7 @@ export default {
if
(
this
.
goodType
==
10
)
{
if
(
this
.
goodType
==
10
)
{
// 商品分类链接
// 商品分类链接
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
id
=
this
.
link
Id
;
this
.
selectLinkObj
.
id
=
this
.
middleGood
Id
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
mallProTagId
:
this
.
cardUrl
,
mallProTagId
:
this
.
cardUrl
,
name
:
this
.
tagName
name
:
this
.
tagName
...
@@ -1657,7 +1659,7 @@ export default {
...
@@ -1657,7 +1659,7 @@ export default {
return
false
;
return
false
;
}
else
if
(
this
.
goodType
==
11
)
{
}
else
if
(
this
.
goodType
==
11
)
{
this
.
selectLinkObj
.
name
=
'商城自定义页面/'
+
this
.
pageName
;
this
.
selectLinkObj
.
name
=
'商城自定义页面/'
+
this
.
pageName
;
this
.
selectLinkObj
.
id
=
this
.
link
Id
;
this
.
selectLinkObj
.
id
=
this
.
middleGood
Id
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
name
:
this
.
pageName
name
:
this
.
pageName
...
...
linktoolspage.vue
View file @
827a236d
<!--
/**
* 链接小工具组件(弹窗) 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
>
<!-- 链接小工具 -->
<!-- 链接小工具 -->
...
@@ -757,6 +787,7 @@ export default {
...
@@ -757,6 +787,7 @@ export default {
// twoLevelValueChange (二级选择,保存选择类型)
// twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange
(
e
)
{
twoLevelValueChange
(
e
)
{
if
(
e
==
'product_category_link'
)
{
// 商品链接
if
(
e
==
'product_category_link'
)
{
// 商品链接
this
.
middleGoodId
=
e
;
this
.
goodType
=
10
;
this
.
goodType
=
10
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
false
;
this
.
threeLeveloneVisible
=
false
;
...
@@ -764,6 +795,7 @@ export default {
...
@@ -764,6 +795,7 @@ export default {
this
.
cardUrl
=
null
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
goodType
=
11
;
this
.
middleGoodId
=
e
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
...
@@ -1611,7 +1643,7 @@ export default {
...
@@ -1611,7 +1643,7 @@ export default {
if
(
this
.
goodType
==
10
)
{
if
(
this
.
goodType
==
10
)
{
// 商品分类链接
// 商品分类链接
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
name
=
'商品分类链接/'
+
this
.
tagName
;
this
.
selectLinkObj
.
id
=
this
.
link
Id
;
this
.
selectLinkObj
.
id
=
this
.
middleGood
Id
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
mallProTagId
:
this
.
cardUrl
,
mallProTagId
:
this
.
cardUrl
,
name
:
this
.
tagName
name
:
this
.
tagName
...
@@ -1627,7 +1659,7 @@ export default {
...
@@ -1627,7 +1659,7 @@ export default {
return
false
;
return
false
;
}
else
if
(
this
.
goodType
==
11
)
{
}
else
if
(
this
.
goodType
==
11
)
{
this
.
selectLinkObj
.
name
=
'商城自定义页面/'
+
this
.
pageName
;
this
.
selectLinkObj
.
name
=
'商城自定义页面/'
+
this
.
pageName
;
this
.
selectLinkObj
.
id
=
this
.
link
Id
;
this
.
selectLinkObj
.
id
=
this
.
middleGood
Id
;
this
.
selectLinkObj
.
params
=
{
this
.
selectLinkObj
.
params
=
{
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
name
:
this
.
pageName
name
:
this
.
pageName
...
...
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