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
40a2f3ee
Commit
40a2f3ee
authored
Jan 31, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接小工具修复错误提示
parent
a79f4a9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
linktools.vue
linktools.vue
+7
-4
linktoolspage.vue
linktoolspage.vue
+7
-5
No files found.
linktools.vue
View file @
40a2f3ee
...
@@ -412,6 +412,7 @@ import GoodsTree from './goods-tree';
...
@@ -412,6 +412,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios'
// import axios from 'axios'
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
{
setTimeout
}
from
'timers'
;
export
default
{
export
default
{
name
:
'links-tool'
,
name
:
'links-tool'
,
...
@@ -1505,7 +1506,9 @@ export default {
...
@@ -1505,7 +1506,9 @@ export default {
// 确认操作
// 确认操作
confirmLinkSelect
()
{
confirmLinkSelect
()
{
var
that
=
this
setTimeout
(
_
=>
{
var
that
=
this
;
// 如果选择 h5 判断选择的链接
// 如果选择 h5 判断选择的链接
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
that
.
oneLevelTypeValue
==
5
)
{
...
@@ -1653,6 +1656,7 @@ export default {
...
@@ -1653,6 +1656,7 @@ export default {
tagid
:
this
.
cardUrl
,
tagid
:
this
.
cardUrl
,
title
:
this
.
tagName
title
:
this
.
tagName
};
};
console
.
log
(
this
.
cardUrl
);
if
(
this
.
cardUrl
)
{
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
}
else
{
}
else
{
...
@@ -1719,7 +1723,7 @@ export default {
...
@@ -1719,7 +1723,7 @@ export default {
message
:
"请选择链接"
message
:
"请选择链接"
})
})
}
}
});
},
},
getMallId
(
item
)
{
getMallId
(
item
)
{
...
@@ -1799,10 +1803,9 @@ export default {
...
@@ -1799,10 +1803,9 @@ export default {
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
transData
()
{
transData
()
{
console
.
log
(
this
.
selectLinkObj
);
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'update:linkVisible'
,
false
);
this
.
$emit
(
'update:linkVisible'
,
false
);
//
this.resetAll();
this
.
resetAll
();
},
},
// 获取一级列表
// 获取一级列表
...
...
linktoolspage.vue
View file @
40a2f3ee
<
template
>
<
template
>
<!-- 链接小工具 -->
<!-- 链接小工具 -->
<div
class=
"link-tools-contain"
>
<div
class=
"link-tools-contain"
>
...
@@ -383,6 +382,7 @@ import GoodsTree from './goods-tree';
...
@@ -383,6 +382,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios'
// import axios from 'axios'
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
{
setTimeout
}
from
'timers'
;
export
default
{
export
default
{
name
:
'links-tool'
,
name
:
'links-tool'
,
...
@@ -1476,7 +1476,9 @@ export default {
...
@@ -1476,7 +1476,9 @@ export default {
// 确认操作
// 确认操作
confirmLinkSelect
()
{
confirmLinkSelect
()
{
var
that
=
this
setTimeout
(
_
=>
{
var
that
=
this
;
// 如果选择 h5 判断选择的链接
// 如果选择 h5 判断选择的链接
if
(
that
.
oneLevelTypeValue
==
5
)
{
if
(
that
.
oneLevelTypeValue
==
5
)
{
...
@@ -1624,6 +1626,7 @@ export default {
...
@@ -1624,6 +1626,7 @@ export default {
tagid
:
this
.
cardUrl
,
tagid
:
this
.
cardUrl
,
title
:
this
.
tagName
title
:
this
.
tagName
};
};
console
.
log
(
this
.
cardUrl
);
if
(
this
.
cardUrl
)
{
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
}
else
{
}
else
{
...
@@ -1690,7 +1693,7 @@ export default {
...
@@ -1690,7 +1693,7 @@ export default {
message
:
"请选择链接"
message
:
"请选择链接"
})
})
}
}
});
},
},
getMallId
(
item
)
{
getMallId
(
item
)
{
...
@@ -1770,10 +1773,9 @@ export default {
...
@@ -1770,10 +1773,9 @@ export default {
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
transData
()
{
transData
()
{
console
.
log
(
this
.
selectLinkObj
);
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'linkSelect'
,
this
.
selectLinkObj
);
this
.
$emit
(
'update:linkVisible'
,
false
);
this
.
$emit
(
'update:linkVisible'
,
false
);
//
this.resetAll();
this
.
resetAll
();
},
},
// 获取一级列表
// 获取一级列表
...
...
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