Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 9b5e4ec6
authored
Feb 13, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置权限屏蔽员工注册&订单管理
1 parent
f5adb8da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
32 deletions
src/views/productGroup/components/crowdFundingShareDialog.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/productGroup/components/crowdFundingShareDialog.vue
View file @
9b5e4ec
<!-- 众筹分享弹窗 -->
<!-- 众筹分享弹窗 -->
<
template
>
<
template
>
<GLDialog
title=
"分享"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShareVisible"
:before-close=
"handleShareClose"
:hasFooter=
"false"
>
<GLDialog
title=
"分享"
mode=
"mid"
okText=
"关闭"
:visible
.
sync=
"isShareVisible"
:before-close=
"handleShareClose"
:hasFooter=
"false"
>
<div
class=
"share-dialog"
>
<div
class=
"share-dialog"
>
<div>
<div>
<img
style=
"width: 220px; height: 310px;"
:src=
"shareForm.posterUrl"
/>
<img
<el-button
style=
"display: block;margin-top: 12px;margin-left: 65px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.posterUrl)"
>
下载海报
</el-button>
style=
"width: 220px; height: 310px;"
:src=
"shareForm.posterUrl"
/>
<el-button
style=
"display: block;margin-top: 12px;margin-left: 65px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.posterUrl)"
>
下载海报
</el-button>
</div>
</div>
<div>
<div>
<div
class=
"code"
>
<div
class=
"code"
>
<div
class=
"activity-code"
>
<div
class=
"activity-code"
>
<div
class=
"code-img"
>
<div
class=
"code-img"
>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.qrCodeUrl"
/>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.qrCodeUrl"
/>
</div>
</div>
<div>
<div>
<p
class=
"code-text"
>
活动二维码
</p>
<p
class=
"code-text"
>
活动二维码
</p>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.qrCodeUrl, '活动二维码')"
>
下载二维码
</el-button>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.qrCodeUrl, '活动二维码')"
>
下载二维码
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"activity-code"
style=
"margin-top: 14px;"
>
<div
class=
"activity-code"
style=
"margin-top: 14px;"
v-if=
"!hideStatus"
>
<div
class=
"code-img"
>
<div
class=
"code-img"
>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.staffLoginQrCodeUrl"
/>
<img
style=
"width: 146px; height: 146px;"
:src=
"shareForm.staffLoginQrCodeUrl"
/>
</div>
</div>
<div>
<div>
<p
class=
"code-text"
>
员工注册码
</p>
<p
class=
"code-text"
>
员工注册码
</p>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')"
>
下载注册码
</el-button>
<el-button
style=
"margin-top: 17px;"
:size=
"size"
type=
"primary"
@
click=
"handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')"
>
下载注册码
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -32,18 +67,39 @@
...
@@ -32,18 +67,39 @@
<div
class=
"page-route"
>
<div
class=
"page-route"
>
<div>
<div>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制群发链接
</span>
class=
"copy"
@
click=
"handleSaveTxt(shareForm.linkUrl)"
>
复制
</span>
<span
class=
"copy"
style=
"margin-left: 10px;width: 75px;"
@
click=
"handleSaveTxt(shareForm.originallinkUrl)"
>
复制群发链接
</span>
</div>
</div>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
linkUrl
}}
</p>
<p
<div>
class=
"link"
<span
class=
"share-txt"
>
员工注册码链接:
</span>
style=
"margin-bottom: 16px;"
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.staffLoginLinkUrl)"
>
复制
</span>
>
{{
shareForm
.
linkUrl
}}
</p>
</div>
<template
v-if=
"!hideStatus"
>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
staffLoginLinkUrl
}}
</p>
<div>
<span
class=
"share-txt"
>
员工注册码链接:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.staffLoginLinkUrl)"
>
复制
</span>
</div>
<p
class=
"link"
style=
"margin-bottom: 16px;"
>
{{
shareForm
.
staffLoginLinkUrl
}}
</p>
</
template
>
<div>
<div>
<span
class=
"share-txt"
>
活动ID:
</span>
<span
class=
"share-txt"
>
活动ID:
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.id)"
>
复制
</span>
<span
class=
"copy"
@
click=
"handleSaveTxt(shareForm.id)"
>
复制
</span>
</div>
</div>
<p
class=
"link"
>
{{ shareForm.id }}
</p>
<p
class=
"link"
>
{{ shareForm.id }}
</p>
</div>
</div>
...
@@ -53,7 +109,7 @@
...
@@ -53,7 +109,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'crowdFundingShare'
,
name
:
'crowdFundingShare'
,
data
()
{
data
()
{
return
{}
return
{}
},
},
...
@@ -64,14 +120,15 @@ export default {
...
@@ -64,14 +120,15 @@ export default {
},
},
shareForm
:
{
shareForm
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
},
hideStatus
:
Boolean
},
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
handleSaveImg
(
url
,
downloadTxt
=
'海报'
)
{
handleSaveImg
(
url
,
downloadTxt
=
'海报'
)
{
var
alink
=
document
.
createElement
(
'a'
)
var
alink
=
document
.
createElement
(
'a'
)
alink
.
href
=
url
alink
.
href
=
url
alink
.
setAttribute
(
'target'
,
'_blank'
)
alink
.
setAttribute
(
'target'
,
'_blank'
)
...
@@ -79,7 +136,7 @@ export default {
...
@@ -79,7 +136,7 @@ export default {
alink
.
click
()
alink
.
click
()
alink
.
remove
()
alink
.
remove
()
},
},
handleSaveTxt
(
txt
)
{
handleSaveTxt
(
txt
)
{
this
.
$message
({
this
.
$message
({
message
:
'复制成功'
,
message
:
'复制成功'
,
type
:
'success'
,
type
:
'success'
,
...
@@ -92,7 +149,7 @@ export default {
...
@@ -92,7 +149,7 @@ export default {
document
.
execCommand
(
'Copy'
)
document
.
execCommand
(
'Copy'
)
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
},
},
handleShareClose
()
{
handleShareClose
()
{
this
.
$emit
(
'handleShareClose'
)
this
.
$emit
(
'handleShareClose'
)
}
}
}
}
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
9b5e4ec
...
@@ -10,12 +10,14 @@
...
@@ -10,12 +10,14 @@
fn=
"新增众筹"
fn=
"新增众筹"
mode=
"el-button"
mode=
"el-button"
>
新建众筹
</GLButton>
>
新建众筹
</GLButton>
<el-button
<template
v-if=
"!hideStatus"
>
:size=
"size"
<el-button
type=
"default"
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleJump"
class=
"default-blue-btn"
>
订单管理
</el-button>
@
click=
"handleJump"
>
订单管理
</el-button>
</
template
>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
<GLCombiForm
...
@@ -103,6 +105,7 @@
...
@@ -103,6 +105,7 @@
:isShareVisible=
"isShareVisible"
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
@
handleShareClose=
"handleShareClose"
:hideStatus=
"hideStatus"
></crowdFundingShare>
></crowdFundingShare>
</div>
</div>
</template>
</template>
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
9b5e4ec
...
@@ -2112,8 +2112,11 @@ export default {
...
@@ -2112,8 +2112,11 @@ export default {
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentModel'
).
isHide
=
res
==
1
filterList
=
[
'paymentModel'
,
'employeeRegistrationLinkFlag'
]
this
.
configEditFormData
.
map
(
e
=>
{
if
(
filterList
.
includes
(
e
.
name
))
e
.
isHide
=
res
==
1
})
},
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
labelList
.
forEach
(
item
=>
{
...
...
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