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
d85f3e84
Commit
d85f3e84
authored
Jan 15, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改新增链接判断是否选中链接
parent
020b8e10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
26 deletions
+54
-26
linktools.vue
linktools.vue
+27
-13
linktoolspage.vue
linktoolspage.vue
+27
-13
No files found.
linktools.vue
View file @
d85f3e84
...
@@ -791,11 +791,13 @@ export default {
...
@@ -791,11 +791,13 @@ export default {
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
false
;
this
.
threeLeveloneVisible
=
false
;
this
.
goodsTreeVisible
=
true
;
this
.
goodsTreeVisible
=
true
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
goodType
=
11
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
this
.
pageId
=
null
;
}
else
{
}
else
{
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
...
@@ -1644,8 +1646,15 @@ export default {
...
@@ -1644,8 +1646,15 @@ export default {
mallProTagId
:
this
.
cardUrl
,
mallProTagId
:
this
.
cardUrl
,
name
:
this
.
tagName
name
:
this
.
tagName
};
};
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
return
;
}
else
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
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
.
linkId
;
this
.
selectLinkObj
.
id
=
this
.
linkId
;
...
@@ -1653,17 +1662,25 @@ export default {
...
@@ -1653,17 +1662,25 @@ export default {
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
name
:
this
.
pageName
name
:
this
.
pageName
};
};
if
(
this
.
pageId
)
{
this
.
transData
();
this
.
transData
();
return
;
}
else
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
return
false
;
}
if
(
!
this
.
twoLevelValue
)
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
}
}
}
// 如果门店签到
// 如果门店签到
console
.
log
(
"门店签到:"
,
that
.
twoLevelSelectValue
)
// console.log(that.checkTwoLevel(that.twoLevelSelectValue))
if
(
that
.
twoLevelSelectValue
==
'sign'
){
if
(
that
.
twoLevelSelectValue
==
'sign'
){
// console.log("///////",that.checkTwoLevel(that.twoLevelSelectValue))
if
(
!
that
.
checkTwoLevel
(
that
.
twoLevelSelectValue
)){
if
(
!
that
.
checkTwoLevel
(
that
.
twoLevelSelectValue
)){
return
false
;
return
false
;
}
}
...
@@ -1676,11 +1693,11 @@ export default {
...
@@ -1676,11 +1693,11 @@ export default {
}
}
return
false
;
return
false
;
}
}
if
(
!!
th
at
.
selectLinkObj
.
name
&&
!!
that
.
selectLinkObj
.
id
)
{
if
(
!!
th
is
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
th
at
.
transData
();
th
is
.
transData
();
}
else
{
}
else
{
th
at
.
$message
.
error
({
th
is
.
$message
.
error
({
duration
:
1000
,
duration
:
1000
,
message
:
"请选择链接"
message
:
"请选择链接"
})
})
...
@@ -1689,7 +1706,6 @@ export default {
...
@@ -1689,7 +1706,6 @@ export default {
},
},
getMallId
(
item
)
{
getMallId
(
item
)
{
console
.
log
(
item
);
this
.
tagName
=
item
.
tagName
;
this
.
tagName
=
item
.
tagName
;
this
.
cardUrl
=
item
.
mallProTagId
;
this
.
cardUrl
=
item
.
mallProTagId
;
},
},
...
@@ -1883,8 +1899,6 @@ export default {
...
@@ -1883,8 +1899,6 @@ export default {
})
})
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
// that.toLogin()
that
.
$message
.
error
({
that
.
$message
.
error
({
duration
:
1000
,
duration
:
1000
,
message
:
error
.
message
message
:
error
.
message
...
...
linktoolspage.vue
View file @
d85f3e84
...
@@ -761,11 +761,13 @@ export default {
...
@@ -761,11 +761,13 @@ export default {
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
false
;
this
.
threeLeveloneVisible
=
false
;
this
.
goodsTreeVisible
=
true
;
this
.
goodsTreeVisible
=
true
;
this
.
cardUrl
=
null
;
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
}
else
if
(
e
==
'mall_customize_page'
)
{
// 自定义页面
this
.
goodType
=
11
;
this
.
goodType
=
11
;
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
goodsTreeVisible
=
false
;
this
.
goodsTreeVisible
=
false
;
this
.
pageId
=
null
;
}
else
{
}
else
{
this
.
threeLevelVisible
=
true
;
this
.
threeLevelVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
this
.
threeLeveloneVisible
=
true
;
...
@@ -1614,8 +1616,15 @@ export default {
...
@@ -1614,8 +1616,15 @@ export default {
mallProTagId
:
this
.
cardUrl
,
mallProTagId
:
this
.
cardUrl
,
name
:
this
.
tagName
name
:
this
.
tagName
};
};
if
(
this
.
cardUrl
)
{
this
.
transData
();
this
.
transData
();
return
;
}
else
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
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
.
linkId
;
this
.
selectLinkObj
.
id
=
this
.
linkId
;
...
@@ -1623,17 +1632,25 @@ export default {
...
@@ -1623,17 +1632,25 @@ export default {
pageId
:
this
.
pageId
,
pageId
:
this
.
pageId
,
name
:
this
.
pageName
name
:
this
.
pageName
};
};
if
(
this
.
pageId
)
{
this
.
transData
();
this
.
transData
();
return
;
}
else
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
return
false
;
}
if
(
!
this
.
twoLevelValue
)
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
"请选择链接"
});
}
}
}
}
// 如果门店签到
// 如果门店签到
console
.
log
(
"门店签到:"
,
that
.
twoLevelSelectValue
)
// console.log(that.checkTwoLevel(that.twoLevelSelectValue))
if
(
that
.
twoLevelSelectValue
==
'sign'
){
if
(
that
.
twoLevelSelectValue
==
'sign'
){
// console.log("///////",that.checkTwoLevel(that.twoLevelSelectValue))
if
(
!
that
.
checkTwoLevel
(
that
.
twoLevelSelectValue
)){
if
(
!
that
.
checkTwoLevel
(
that
.
twoLevelSelectValue
)){
return
false
;
return
false
;
}
}
...
@@ -1646,11 +1663,11 @@ export default {
...
@@ -1646,11 +1663,11 @@ export default {
}
}
return
false
;
return
false
;
}
}
if
(
!!
th
at
.
selectLinkObj
.
name
&&
!!
that
.
selectLinkObj
.
id
)
{
if
(
!!
th
is
.
selectLinkObj
.
name
&&
!!
this
.
selectLinkObj
.
id
)
{
// 触发父组件方法,传递参数
// 触发父组件方法,传递参数
th
at
.
transData
();
th
is
.
transData
();
}
else
{
}
else
{
th
at
.
$message
.
error
({
th
is
.
$message
.
error
({
duration
:
1000
,
duration
:
1000
,
message
:
"请选择链接"
message
:
"请选择链接"
})
})
...
@@ -1659,7 +1676,6 @@ export default {
...
@@ -1659,7 +1676,6 @@ export default {
},
},
getMallId
(
item
)
{
getMallId
(
item
)
{
console
.
log
(
item
);
this
.
tagName
=
item
.
tagName
;
this
.
tagName
=
item
.
tagName
;
this
.
cardUrl
=
item
.
mallProTagId
;
this
.
cardUrl
=
item
.
mallProTagId
;
},
},
...
@@ -1853,8 +1869,6 @@ export default {
...
@@ -1853,8 +1869,6 @@ export default {
})
})
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
// that.toLogin()
that
.
$message
.
error
({
that
.
$message
.
error
({
duration
:
1000
,
duration
:
1000
,
message
:
error
.
message
message
:
error
.
message
...
...
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