Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ce26168c
authored
Jul 18, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fe9fd311
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/MarketingGift.vue
View file @
ce26168
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<div
class=
"service-tab"
>
<div
class=
"service-tab"
>
<div
class=
"tab-item"
:class=
"{ active: serviceIndex == item.type }"
v-for=
"(item, index) in serviceTabList"
:key=
"index"
@
click=
"serviceIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-item"
:class=
"{ active: serviceIndex == item.type }"
v-for=
"(item, index) in serviceTabList"
:key=
"index"
@
click=
"serviceIndex = item.type"
>
{{ item.label }}
</div>
<div
class=
"tab-border"
:style=
"{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"
></div>
<div
class=
"tab-border"
:style=
"{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"
></div>
<div
class=
"service-tip"
>
(仅支持引用无限库存
卷
)
</div>
<div
class=
"service-tip"
>
(仅支持引用无限库存
券
)
</div>
<div
class=
"tab-right"
>
<div
class=
"tab-right"
>
<div
class=
"refresh-btn"
@
click=
"getList"
>
<div
class=
"refresh-btn"
@
click=
"getList"
>
<i
class=
"el-icon-refresh-right"
></i>
<i
class=
"el-icon-refresh-right"
></i>
...
@@ -129,7 +129,6 @@ export default {
...
@@ -129,7 +129,6 @@ export default {
},
},
watch
:
{
watch
:
{
subscribe
(
val
)
{
subscribe
(
val
)
{
console
.
log
(
val
,
999999
)
if
(
val
)
this
.
getGiftList
(
val
)
if
(
val
)
this
.
getGiftList
(
val
)
},
},
// 'editForm.activityPrice'(newValue, oldValue) {
// 'editForm.activityPrice'(newValue, oldValue) {
...
@@ -174,7 +173,7 @@ export default {
...
@@ -174,7 +173,7 @@ export default {
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
handleSaveGift
()
this
.
handleSaveGift
()
}
}
},
100
0
)
},
0
)
this
.
getList
()
this
.
getList
()
})
})
...
@@ -581,6 +580,7 @@ export default {
...
@@ -581,6 +580,7 @@ export default {
this
.
setProcess
({
this
.
setProcess
({
1
:
false
1
:
false
})
})
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
this
.
SET_STEP
(
3
)
}
}
}
}
</
script
>
</
script
>
...
...
src/views/activityLink/components/Process.vue
View file @
ce26168
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<phoneView
ref=
"viewForm"
></phoneView>
<phoneView
ref=
"viewForm"
></phoneView>
</div>
</div>
<GLDialog
class=
"qr-dialog"
title=
"活动链接"
mode=
"mid"
:hasFooter=
"false"
:before-close=
"handleClose"
:visible
.
sync=
"isQrcodeVisible"
@
onOk=
"handleCancelConfirm"
>
<GLDialog
class=
"qr-dialog"
title=
"活动链接"
mode=
"mid"
:hasFooter=
"false"
:before-close=
"handleClose"
:visible
.
sync=
"isQrcodeVisible"
@
onOk=
"handleCancelConfirm"
>
<div
class=
"qrcode-body-link"
>
<div
class=
"qrcode-body-link"
v-loading=
"loadingCode"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"link-item"
v-for=
"(item, index) in linkCode"
:key=
"index"
>
<div
class=
"link-item"
v-for=
"(item, index) in linkCode"
:key=
"index"
>
<div
class=
"link-item-l"
>
<div
class=
"link-item-l"
>
...
@@ -40,7 +40,7 @@ import { mapState, mapMutations } from 'vuex'
...
@@ -40,7 +40,7 @@ import { mapState, mapMutations } from 'vuex'
import
phoneView
from
'./PhoneView'
import
phoneView
from
'./PhoneView'
import
draw
from
'@/mixins/draw'
import
draw
from
'@/mixins/draw'
import
marketing
from
'@/mixins/marketing'
import
marketing
from
'@/mixins/marketing'
import
{
downloadIamge
}
from
'@/common/constant'
export
default
{
export
default
{
mixins
:
[
draw
,
marketing
],
mixins
:
[
draw
,
marketing
],
components
:
{
components
:
{
...
@@ -49,6 +49,7 @@ export default {
...
@@ -49,6 +49,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
isQrcodeVisible
:
false
,
isQrcodeVisible
:
false
,
loadingCode
:
false
,
linkCode
:
[
linkCode
:
[
{
title
:
'活动二维码'
,
name
:
'qrCodeUrl'
},
{
title
:
'活动二维码'
,
name
:
'qrCodeUrl'
},
{
title
:
'注册二维码'
,
name
:
'staffLoginQrCodeUrl'
}
{
title
:
'注册二维码'
,
name
:
'staffLoginQrCodeUrl'
}
...
@@ -98,12 +99,30 @@ export default {
...
@@ -98,12 +99,30 @@ export default {
init
()
{
init
()
{
this
.
SET_INIT
(
true
)
this
.
SET_INIT
(
true
)
},
},
downloadIamge
(
url
)
{
downloadIamge
(
url
)
},
handleSaveTxt
(
txt
)
{
this
.
$message
({
message
:
'复制成功'
,
type
:
'success'
,
customClass
:
'message-Z-zinde'
})
const
input
=
document
.
createElement
(
'input'
)
document
.
body
.
appendChild
(
input
)
input
.
setAttribute
(
'value'
,
txt
)
input
.
select
()
document
.
execCommand
(
'Copy'
)
document
.
body
.
removeChild
(
input
)
},
getDetail
(
id
)
{
getDetail
(
id
)
{
this
.
isQrcodeVisible
=
true
this
.
isQrcodeVisible
=
true
this
.
loadingCode
=
true
this
.
$apis
.
activity
.
getShared
({
id
}).
then
(
res
=>
{
this
.
$apis
.
activity
.
getShared
({
id
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
linkInfo
=
res
this
.
linkInfo
=
res
}
}
this
.
loadingCode
=
false
})
})
},
},
handleClose
()
{
handleClose
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment