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
7c9dbd47
Commit
7c9dbd47
authored
Dec 24, 2018
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接小工具修改类型
parent
374d5925
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
18 deletions
+28
-18
linktools.vue
linktools.vue
+14
-9
linktoolspage.vue
linktoolspage.vue
+14
-9
No files found.
linktools.vue
View file @
7c9dbd47
...
...
@@ -1036,7 +1036,9 @@ export default {
// threeSingleValueChange
threeSingleValueChange
(
e
)
{
// 是那个类型的
console
.
log
(
this
.
threeLevelOptions
);
this
.
giftType
=
e
;
this
.
visibleType
=
this
.
giftType
==
'coup'
?
8
:
9
;
var
that
=
this
var
selThreeItem
=
''
;
that
.
threeLevelOptions
.
forEach
(
function
(
ele
,
index
){
...
...
@@ -1050,10 +1052,10 @@ export default {
that
.
selectLinkObj
.
name
=
selThreeItem
.
name
;
// #sy 三级下拉
// 卡券
if
(
e
===
'coup'
)
{
if
(
this
.
visibleType
==
8
)
{
this
.
cardLinksVisible
=
true
;
this
.
cardType
=
true
;
}
else
if
(
e
===
'gift'
)
{
}
else
if
(
this
.
visibleType
==
9
)
{
// 礼品
this
.
cardLinksVisible
=
true
;
this
.
cardType
=
false
;
...
...
@@ -1510,12 +1512,14 @@ export default {
// 确定是会员功能 然后看是那个类型的
if
(
this
.
linkId
==
27
)
{
if
(
this
.
giftType
==
'coup'
)
{
if
(
this
.
visibleType
==
8
)
{
// 优惠券
if
(
this
.
chooseFlag
)
{
this
.
selectLinkObj
.
name
=
'积分商城/'
+
this
.
cardName
;
this
.
selectLinkObj
.
id
=
this
.
cardUrl
;
this
.
selectLinkObj
.
url
+=
`?integralMallProId=
${
this
.
cardUrl
}
`
;
this
.
selectLinkObj
.
id
=
this
.
giftType
;
this
.
selectLinkObj
.
params
=
{
integralMallProId
:
this
.
cardUrl
};
this
.
transData
();
return
;
}
else
{
...
...
@@ -1525,12 +1529,14 @@ export default {
})
return
false
;
}
}
else
if
(
this
.
giftType
==
'gift'
)
{
}
else
if
(
this
.
visibleType
==
9
)
{
// 礼品
if
(
this
.
giftFlag
)
{
this
.
selectLinkObj
.
name
=
this
.
giftName
;
this
.
selectLinkObj
.
id
=
this
.
giftUrl
;
this
.
selectLinkObj
.
url
+=
`?integralMallProId=
${
this
.
giftUrl
}
`
;
this
.
selectLinkObj
.
id
=
this
.
giftType
;
this
.
selectLinkObj
.
params
=
{
integralMallProId
:
this
.
cardUrl
};
this
.
transData
();
return
;
}
else
{
...
...
@@ -3090,4 +3096,3 @@ export default {
}
}
</
style
>
linktoolspage.vue
View file @
7c9dbd47
...
...
@@ -1005,7 +1005,9 @@ export default {
// threeSingleValueChange
threeSingleValueChange
(
e
)
{
// 是那个类型的
console
.
log
(
this
.
threeLevelOptions
);
this
.
giftType
=
e
;
this
.
visibleType
=
this
.
giftType
==
'coup'
?
8
:
9
;
var
that
=
this
var
selThreeItem
=
''
;
that
.
threeLevelOptions
.
forEach
(
function
(
ele
,
index
){
...
...
@@ -1019,10 +1021,10 @@ export default {
that
.
selectLinkObj
.
name
=
selThreeItem
.
name
;
// #sy 三级下拉
// 卡券
if
(
e
===
'coup'
)
{
if
(
this
.
visibleType
==
8
)
{
this
.
cardLinksVisible
=
true
;
this
.
cardType
=
true
;
}
else
if
(
e
===
'gift'
)
{
}
else
if
(
this
.
visibleType
==
9
)
{
// 礼品
this
.
cardLinksVisible
=
true
;
this
.
cardType
=
false
;
...
...
@@ -1479,12 +1481,14 @@ export default {
// 确定是会员功能 然后看是那个类型的
if
(
this
.
linkId
==
27
)
{
if
(
this
.
giftType
==
'coup'
)
{
if
(
this
.
visibleType
==
8
)
{
// 优惠券
if
(
this
.
chooseFlag
)
{
this
.
selectLinkObj
.
name
=
'积分商城/'
+
this
.
cardName
;
this
.
selectLinkObj
.
id
=
this
.
cardUrl
;
this
.
selectLinkObj
.
url
+=
`?integralMallProId=
${
this
.
cardUrl
}
`
;
this
.
selectLinkObj
.
id
=
this
.
giftType
;
this
.
selectLinkObj
.
params
=
{
integralMallProId
:
this
.
cardUrl
};
this
.
transData
();
return
;
}
else
{
...
...
@@ -1494,12 +1498,14 @@ export default {
})
return
false
;
}
}
else
if
(
this
.
giftType
==
'gift'
)
{
}
else
if
(
this
.
visibleType
==
9
)
{
// 礼品
if
(
this
.
giftFlag
)
{
this
.
selectLinkObj
.
name
=
this
.
giftName
;
this
.
selectLinkObj
.
id
=
this
.
giftUrl
;
this
.
selectLinkObj
.
url
+=
`?integralMallProId=
${
this
.
giftUrl
}
`
;
this
.
selectLinkObj
.
id
=
this
.
giftType
;
this
.
selectLinkObj
.
params
=
{
integralMallProId
:
this
.
cardUrl
};
this
.
transData
();
return
;
}
else
{
...
...
@@ -3059,4 +3065,3 @@ export default {
}
}
</
style
>
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