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 7aa39fd7
authored
Nov 20, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
04a7e22a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
218 additions
and
11 deletions
src/components/glsx-combi-form/index.vue
src/main.js
src/setup/qiankun.js
src/views/productGroup/components/crowdFundingShareDialog.vue
src/views/seckillActivity/components/ChannelTipsDialog.vue
src/views/seckillActivity/components/ChannelVideo.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/components/glsx-combi-form/index.vue
View file @
7aa39fd
...
@@ -11,6 +11,11 @@
...
@@ -11,6 +11,11 @@
</el-popover>
</el-popover>
:
:
</span>
</span>
<span
v-else-if=
"!item.isHide && item.tipsClick"
class=
"tips-block"
slot=
"label"
@
click=
"item.tipsClick"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<img
slot=
"reference"
class=
"tips-icon"
src=
"./images/icon-tip.png"
/>
:
</span>
<span
v-else-if=
"!item.isHide && item.label && !item.tips"
slot=
"label"
>
<span
v-else-if=
"!item.isHide && item.label && !item.tips"
slot=
"label"
>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth || labelWidth }">
{{
item
.
label
}}
:
</span>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth || labelWidth }">
{{
item
.
label
}}
:
</span>
</span>
</span>
...
...
src/main.js
View file @
7aa39fd
...
@@ -25,3 +25,5 @@ start()
...
@@ -25,3 +25,5 @@ start()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
src/setup/qiankun.js
View file @
7aa39fd
...
@@ -12,7 +12,7 @@ let instance = null
...
@@ -12,7 +12,7 @@ let instance = null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
,
saasOrder
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
merchantId
,
saasOrder
,
request_merchant
,
channelVideoList
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$merchantId
=
merchantId
Vue
.
prototype
.
$merchantId
=
merchantId
Vue
.
prototype
.
$saasOrder
=
saasOrder
Vue
.
prototype
.
$saasOrder
=
saasOrder
...
@@ -24,6 +24,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -24,6 +24,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$channelVideoList
=
channelVideoList
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// routes = getRoutes(routesData)
// routes = getRoutes(routesData)
// subscribe({ messenger })
// subscribe({ messenger })
...
...
src/views/productGroup/components/crowdFundingShareDialog.vue
View file @
7aa39fd
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-route"
>
<div
class=
"page-route"
v-if=
"shareForm.marketingType != 6"
>
<div>
<div>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
class=
"share-txt"
>
H5短链接:
</span>
<span
<span
...
...
src/views/seckillActivity/components/ChannelTipsDialog.vue
0 → 100644
View file @
7aa39fd
<
template
>
<GLDialog
title=
"提示"
mode=
"mid"
:visible
.
sync=
"dialogVisible"
:hasFooter=
"false"
>
<template
v-if=
"dialogVisible"
>
<div
class=
"tips-box"
>
<img
class=
"pic"
:src=
"typeList[type].pic"
:style=
"typeList[type].picStyle"
>
<div
class=
"info"
>
<div
class=
"info-title"
>
{{
typeList
[
type
].
title
}}
</div>
<template
v-for=
"(i,index) in typeList[type].desc"
>
<div
:key=
"index"
class=
"info-desc"
>
{{
i
}}
</div>
</
template
>
</div>
</div>
</template>
</GLDialog>
</template>
<
script
>
export
default
{
name
:
'ChannelTipsDialog'
,
props
:
{
type
:
Number
},
data
()
{
return
{
typeList
:
{
1
:
{
pic
:
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png'
,
title
:
'卡片名称'
,
desc
:
[
'转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'
],
picStyle
:
'width: 251px;height: 447px;'
},
2
:
{
pic
:
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png'
,
title
:
'卡片缩略图'
,
desc
:
[
'转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'
],
picStyle
:
'width: 251px;height: 447px;'
},
3
:
{
pic
:
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-2.png'
,
title
:
'视频Toke'
,
desc
:
[
'当微信号变成小程序的开发者,进入视频号点击转发按钮时可获取对应的视频Token'
],
picStyle
:
'width: 202px;height: 437.77px;'
},
4
:
{
pic
:
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-3.png'
,
title
:
'授权手机号'
,
desc
:
[
'授权手机号配置为开,则用户点击播放按钮后会弹出授权手机号控件!'
,
'授权手机号配置为关,则用户点击播放按钮直接进入视频号页面!'
],
picStyle
:
'width: 202px;height: 436.76px;'
}
},
dialogVisible
:
false
}
},
mounted
()
{
},
methods
:
{
open
()
{
this
.
dialogVisible
=
true
},
handleClose
()
{
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.tips-box
{
display
:
flex
;
padding-bottom
:
20px
;
.pic
{
flex-shrink
:
0
;
margin
:
0
20px
0
64px
;
}
.info
{
&-title
{
font-weight
:
500
;
font-size
:
17px
;
color
:
#333333
;
margin-bottom
:
16px
;
}
&
-desc
{
max-width
:
294px
;
font-size
:
14px
;
color
:
#666666
;
line-height
:
20px
;
margin-bottom
:
16px
;
}
}
}
</
style
>
src/views/seckillActivity/components/ChannelVideo.vue
0 → 100644
View file @
7aa39fd
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/crowdFundList.vue
View file @
7aa39fd
...
@@ -238,7 +238,8 @@ export default {
...
@@ -238,7 +238,8 @@ export default {
searchForm
:
{
searchForm
:
{
activityNames
:
[],
activityNames
:
[],
activityStatus
:
''
,
activityStatus
:
''
,
merchantNames
:
[]
merchantNames
:
[],
marketingType
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -280,6 +281,16 @@ export default {
...
@@ -280,6 +281,16 @@ export default {
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
optionLabel
:
'confName'
},
{
label
:
'活动分类'
,
name
:
'marketingType'
,
type
:
'select'
,
width
:
'215px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingTypeList'
}
}
],
],
// 表格按钮
// 表格按钮
...
@@ -311,6 +322,28 @@ export default {
...
@@ -311,6 +322,28 @@ export default {
}
}
},
},
{
{
type
:
'el-button'
,
name
:
'查看'
,
attrs
:
{
type
:
'text'
,
},
condition
:
row
=>
{
return
row
.
marketingType
==
6
},
listeners
:
{
click
:
row
=>
{
this
.
$router
.
push
({
path
:
'/seckillActivity/editCrowdFund'
,
query
:
{
id
:
row
.
id
,
addOrEdit
:
'edit'
,
activeName
:
'2'
}
})
}
}
},
{
type
:
'GLButton'
,
type
:
'GLButton'
,
name
:
'编辑'
,
name
:
'编辑'
,
attrs
:
{
attrs
:
{
...
@@ -319,7 +352,8 @@ export default {
...
@@ -319,7 +352,8 @@ export default {
},
},
condition
:
row
=>
{
condition
:
row
=>
{
// 结束的直播不能再开
// 结束的直播不能再开
return
[
1
,
2
,
3
].
includes
(
+
row
.
activityStatus
)
//
return
[
1
,
2
,
3
].
includes
(
+
row
.
activityStatus
)
&&
row
.
marketingType
!=
6
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -376,6 +410,9 @@ export default {
...
@@ -376,6 +410,9 @@ export default {
attrs
:
{
attrs
:
{
type
:
'text'
type
:
'text'
},
},
condition
:
row
=>
{
return
row
.
marketingType
!=
6
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
this
.
handleEdit
(
'copy'
,
row
)
this
.
handleEdit
(
'copy'
,
row
)
...
@@ -424,6 +461,16 @@ export default {
...
@@ -424,6 +461,16 @@ export default {
confId
:
'3'
,
confId
:
'3'
,
confName
:
'已结束'
confName
:
'已结束'
}
}
],
marketingTypeList
:
[
{
confName
:
'众筹活动'
,
confId
:
'3'
},
{
confName
:
'营销素材'
,
confId
:
'6'
},
]
]
},
},
hideStatus
:
true
,
hideStatus
:
true
,
...
@@ -495,6 +542,17 @@ export default {
...
@@ -495,6 +542,17 @@ export default {
fixed
:
'left'
fixed
:
'left'
},
},
{
{
label
:
'活动分类'
,
width
:
100
,
fixed
:
'left'
,
formatter
:
cellValue
=>
{
return
{
3
:
'众筹活动'
,
6
:
'营销素材'
,
}[
cellValue
.
marketingType
]
}
},
{
label
:
'门店'
,
label
:
'门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
220
,
width
:
220
,
...
@@ -742,6 +800,7 @@ export default {
...
@@ -742,6 +800,7 @@ export default {
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
res
.
marketingType
=
row
.
marketingType
this
.
shareForm
=
res
this
.
shareForm
=
res
this
.
handleShareClose
()
this
.
handleShareClose
()
})
})
...
@@ -782,11 +841,7 @@ export default {
...
@@ -782,11 +841,7 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
activityNames
:
[],
activityStatus
:
''
,
merchantNames
:
[]
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
7aa39fd
...
@@ -4,6 +4,14 @@
...
@@ -4,6 +4,14 @@
v-loading=
"loading"
v-loading=
"loading"
class=
"edit-activity"
class=
"edit-activity"
>
>
<GLTabs
v-model=
"activeName"
:tabPaneList=
"tabPaneList"
@
tab-click=
"handleClick"
class=
"tabs"
v-if=
"routeInfo.addOrEdit != 'edit'"
></GLTabs>
<template
v-if=
"activeName == 1"
>
<!-- 导航 -->
<!-- 导航 -->
<el-tabs
<el-tabs
:tab-position=
"tabPosition"
:tab-position=
"tabPosition"
...
@@ -1149,6 +1157,10 @@
...
@@ -1149,6 +1157,10 @@
</el-row> -->
</el-row> -->
</select-store>
</select-store>
</div>
</div>
</template>
<
template
v-else
>
<channel-video
:channelDetail=
"channelDetail"
/>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -1157,11 +1169,13 @@ import { limitPrice, businessType } from '@/common/constant'
...
@@ -1157,11 +1169,13 @@ import { limitPrice, businessType } from '@/common/constant'
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
import
crowdEditWechat
from
'./crowdEditWechat.vue'
import
crowdEditWechat
from
'./crowdEditWechat.vue'
import
selectStore
from
'./components/selectStore'
import
selectStore
from
'./components/selectStore'
import
ChannelVideo
from
'./components/ChannelVideo.vue'
export
default
{
export
default
{
name
:
'editActivity'
,
name
:
'editActivity'
,
components
:
{
components
:
{
crowdEditWechat
,
crowdEditWechat
,
selectStore
selectStore
,
ChannelVideo
},
},
data
()
{
data
()
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
...
@@ -2221,7 +2235,19 @@ export default {
...
@@ -2221,7 +2235,19 @@ export default {
baseData
:
{
baseData
:
{
payList
:
[],
payList
:
[],
payMerchatList
:
[]
payMerchatList
:
[]
}
},
tabPaneList
:
[
{
label
:
'众筹活动'
,
name
:
'1'
},
{
label
:
'营销素材'
,
name
:
'2'
},
],
activeName
:
'1'
,
//活动类型
channelDetail
:{}
//视频号详情
}
}
},
},
filters
:
{
filters
:
{
...
@@ -2236,6 +2262,7 @@ export default {
...
@@ -2236,6 +2262,7 @@ export default {
this
.
getLiveList
()
this
.
getLiveList
()
this
.
setMinHeight
(
'.crowd-config'
)
this
.
setMinHeight
(
'.crowd-config'
)
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
if
(
this
.
routeInfo
.
activeName
)
this
.
activeName
=
this
.
routeInfo
.
activeName
this
.
routeInfo
.
addOrEdit
!=
'add'
?
this
.
getInfo
()
:
this
.
getPayList
()
this
.
routeInfo
.
addOrEdit
!=
'add'
?
this
.
getInfo
()
:
this
.
getPayList
()
var
id
=
this
.
routeInfo
.
id
var
id
=
this
.
routeInfo
.
id
if
(
id
)
{
if
(
id
)
{
...
@@ -2795,6 +2822,10 @@ export default {
...
@@ -2795,6 +2822,10 @@ export default {
this
.
$apis
.
seckillActivity
this
.
$apis
.
seckillActivity
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
})
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
this
.
activeName
!=
1
)
{
this
.
channelDetail
=
res
return
}
var
info
=
res
,
var
info
=
res
,
selectedProInfo
=
[],
selectedProInfo
=
[],
goodsList
=
[]
goodsList
=
[]
...
@@ -3824,4 +3855,8 @@ export default {
...
@@ -3824,4 +3855,8 @@ export default {
display
:
block
;
display
:
block
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.tabs
{
transform
:
translateY
(
-16px
);
padding
:
6px
0
2px
;
}
</
style
>
</
style
>
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