Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 6b3fc4d8
authored
Dec 09, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改群发样式
1 parent
e71ac74f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
149 additions
and
43 deletions
src/api/modules/customerTransform.js
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/selectMembers.vue
src/views/customerTransform/detaiCustomeGroup.vue
src/views/home/components/barChart.vue
src/views/home/components/lineChart.vue
src/views/home/index.vue
src/api/modules/customerTransform.js
View file @
6b3fc4d
...
@@ -182,6 +182,24 @@ const getCard = params => {
...
@@ -182,6 +182,24 @@ const getCard = params => {
sign
:
true
sign
:
true
})
})
}
}
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getPackage
=
params
=>
{
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
customerList
,
customerList
,
customerGroupList
,
customerGroupList
,
...
@@ -200,5 +218,7 @@ export default {
...
@@ -200,5 +218,7 @@ export default {
customerDetailList
,
customerDetailList
,
groupDetailList
,
groupDetailList
,
getMerchant
,
getMerchant
,
getCard
getCard
,
getCoupon
,
getPackage
}
}
src/views/customerTransform/addCustomerGroup.vue
View file @
6b3fc4d
...
@@ -181,7 +181,9 @@ export default {
...
@@ -181,7 +181,9 @@ export default {
},
},
timeOptions
:
{
timeOptions
:
{
selectableRange
:
'00:00:00 - 23:59:59'
selectableRange
:
'00:00:00 - 23:59:59'
}
},
footerLeft
:
0
,
footerWidth
:
0
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/customerTransform/components/activityModel.vue
View file @
6b3fc4d
...
@@ -5,8 +5,10 @@
...
@@ -5,8 +5,10 @@
<div
class=
"model-panel-tab"
>
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
<label>
活动类型:
</label>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tab-pane
label=
"券营销"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"精品券"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"权益卡"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"商城券"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"权益卡试用"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"权益套餐"
name=
"4"
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
...
@@ -17,36 +19,71 @@
...
@@ -17,36 +19,71 @@
:key="index"
:key="index"
@click="handleSelectItem(item)"
@click="handleSelectItem(item)"
>
>
<div
class=
"model-item-title"
v-show=
"activeName == 2"
>
{{
item
.
cardClassName
}}
</div>
<div
class=
"model-item-title"
v-show=
"activeName == 1"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
数量:
{{
item
.
residueAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
价格:
{{
item
.
price
}}
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-title"
v-show=
"activeName == 2 && item.effectiveType == 2"
:title=
"item.cardClassName"
>
有效期:
{{
item
.
effectiveNum
}}
天
</div>
v-show=
"activeName == 3"
>
{{
item
.
cardClassName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 2"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.cardClassName"
v-show=
"activeName == 1"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.packageName"
v-show=
"activeName == 4"
>
{{
item
.
packageName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1 || activeName == 4"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
剩余数量:
{{
item
.
residueAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
剩余数量:
{{
item
.
remainAmount
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
价格:
{{
item
.
price
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
价格:
{{
item
.
packagePrice
}}
元
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 1"
v-show=
"activeName == 2 && item.effectiveType == 1"
>
有效期:
{{
item
.
effectiveDays
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 3"
>
有效期:无限制
</div>
>
有效期:无限制
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-content"
v-show=
"activeName ==
1
&& item.effectiveType == 2"
v-show=
"activeName ==
2
&& item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
}}
~
{{
item
.
effectiveEndTime
}}
</div>
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-content"
v-show=
"activeName ==
1 && item.effectiveType == 1
"
v-show=
"activeName ==
3 && item.effectiveType == 3
"
>
有效期:
{{
item
.
effective
Days
}}
天
</div>
>
有效期:
{{
item
.
effective
StartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-content"
v-show=
"activeName ==
1 && item.effectiveType == 3
"
v-show=
"activeName ==
3 && item.effectiveType == 1
"
>
有效期:无限制
</div>
>
有效期:无限制
</div>
<div
<div
class=
"model-item-content"
class=
"model-item-content"
v-show=
"activeName == 1"
v-show=
"activeName == 3 && item.effectiveType == 2"
>
类型:
{{
item
.
discountType
==
1
?
'满减劵'
:
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'实物券'
:
item
.
discountType
==
5
?
'购车代金券'
:
item
.
discountType
==
6
?
'商品折扣券'
:
item
.
discountType
==
7
?
'会员服务'
:
''
}}
</div>
>
有效期:
{{
item
.
effectiveNum
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型:权益卡
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型:
<span>
{{
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'兑换券'
:
''
}}
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
类型:
<span>
精品券
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
类型:
<span>
权益卡
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
类型:
<span>
权益套餐
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
...
@@ -57,7 +94,7 @@
...
@@ -57,7 +94,7 @@
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
:current-page=
"pageNum"
:page-sizes=
"[1
0, 20, 30, 40
]"
:page-sizes=
"[1
2, 24, 36, 48
]"
:page-size=
"pageSize"
:page-size=
"pageSize"
:total=
"tableTotal"
:total=
"tableTotal"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
...
@@ -81,7 +118,7 @@ export default {
...
@@ -81,7 +118,7 @@ export default {
activeName
:
'1'
,
activeName
:
'1'
,
modelList
:
[],
modelList
:
[],
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1
0
,
pageSize
:
1
2
,
tableTotal
:
0
,
tableTotal
:
0
,
selectItem
:
{}
selectItem
:
{}
}
}
...
@@ -99,7 +136,7 @@ export default {
...
@@ -99,7 +136,7 @@ export default {
return
return
}
}
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$emit
(
'selectActivity'
,
{
marketingId
:
this
.
selectItem
.
id
,
marketingType
:
this
.
activeName
==
1
?
2
:
3
,
marketingName
:
this
.
activeName
==
2
?
this
.
selectItem
.
cardClass
Name
:
this
.
selectItem
.
couponName
})
this
.
$emit
(
'selectActivity'
,
{
marketingId
:
this
.
selectItem
.
id
,
marketingType
:
this
.
activeName
,
marketingName
:
this
.
activeName
==
3
?
this
.
selectItem
.
cardClassName
:
this
.
activeName
==
4
?
this
.
selectItem
.
package
Name
:
this
.
selectItem
.
couponName
})
},
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
this
.
pageSize
=
val
...
@@ -115,16 +152,29 @@ export default {
...
@@ -115,16 +152,29 @@ export default {
let
market
=
''
let
market
=
''
switch
(
this
.
activeName
)
{
switch
(
this
.
activeName
)
{
case
'1'
:
case
'1'
:
market
=
'get
Merchant
'
market
=
'get
Coupon
'
break
break
case
'2'
:
case
'2'
:
market
=
'getMerchant'
break
case
'3'
:
market
=
'getCard'
market
=
'getCard'
break
break
case
'4'
:
market
=
'getPackage'
break
}
}
let
params
=
{
let
params
=
{
pageSize
:
this
.
pageSize
,
pageSize
:
this
.
pageSize
,
pageNum
:
this
.
pageNum
pageNum
:
this
.
pageNum
}
}
if
(
this
.
activeName
==
3
)
{
params
.
tryAble
=
1
params
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
if
(
this
.
activeName
==
2
)
{
params
.
discountTypes
=
[
2
,
3
,
4
]
}
this
.
$apis
.
customerTransform
[
market
](
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
[
market
](
params
).
then
(
res
=>
{
this
.
modelList
=
res
.
list
?
res
.
list
:
res
.
data
this
.
modelList
=
res
.
list
?
res
.
list
:
res
.
data
this
.
tableTotal
=
res
.
total
this
.
tableTotal
=
res
.
total
...
@@ -178,6 +228,7 @@ export default {
...
@@ -178,6 +228,7 @@ export default {
.el-tabs__item.is-active
{
.el-tabs__item.is-active
{
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
font-weight
:
600
;
}
}
}
}
}
}
...
@@ -201,8 +252,10 @@ export default {
...
@@ -201,8 +252,10 @@ export default {
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
25%
);
grid-template-columns
:
repeat
(
4
,
25%
);
grid-row-gap
:
10px
;
grid-row-gap
:
10px
;
height
:
40vh
;
height
:
38vh
;
padding
:
10px
;
overflow
:
auto
;
overflow
:
auto
;
text-align
:
center
;
.model-item
{
.model-item
{
position
:
relative
;
position
:
relative
;
height
:
128px
;
height
:
128px
;
...
@@ -245,6 +298,9 @@ export default {
...
@@ -245,6 +298,9 @@ export default {
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
span
{
color
:
#5850ff
;
}
}
}
}
}
}
}
...
...
src/views/customerTransform/components/selectMembers.vue
View file @
6b3fc4d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<el-form-item
label=
"请选择成员"
>
<el-form-item
label=
"请选择成员"
>
<div
class=
"sale-select"
>
<div
class=
"sale-select"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<div
class=
"tag-box"
>
<el-tag
<el-tag
v-for=
"(tag, idx) in innerTags"
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
:key=
"idx"
...
@@ -11,6 +12,8 @@
...
@@ -11,6 +12,8 @@
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"remove(tag)"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
>
{{
tag
.
staffName
}}
</el-tag>
</div>
<el-input
<el-input
size=
"small"
size=
"small"
v-model
.
trim=
"newTag"
v-model
.
trim=
"newTag"
...
@@ -158,6 +161,10 @@ export default {
...
@@ -158,6 +161,10 @@ export default {
}
}
}
}
}
}
.tag-box
{
max-height
:
66px
;
overflow
:
auto
;
}
.input-tag-wrapper
{
.input-tag-wrapper
{
position
:
relative
;
position
:
relative
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -169,7 +176,7 @@ export default {
...
@@ -169,7 +176,7 @@ export default {
color
:
#606266
;
color
:
#606266
;
display
:
inline-block
;
display
:
inline-block
;
outline
:
none
;
outline
:
none
;
padding
:
0
10px
0
5px
;
padding
:
0
0
0
5px
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
line-height
:
32px
;
line-height
:
32px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
...
@@ -214,4 +221,15 @@ export default {
...
@@ -214,4 +221,15 @@ export default {
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
}
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
</
style
>
</
style
>
src/views/customerTransform/detaiCustomeGroup.vue
View file @
6b3fc4d
...
@@ -145,7 +145,9 @@ export default {
...
@@ -145,7 +145,9 @@ export default {
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
getListApi
:
this
.
$apis
.
customerTransform
.
groupDetailList
getListApi
:
this
.
$apis
.
customerTransform
.
groupDetailList
,
footerLeft
:
0
,
footerWidth
:
0
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/home/components/barChart.vue
View file @
6b3fc4d
...
@@ -14,12 +14,18 @@ export default {
...
@@ -14,12 +14,18 @@ export default {
myChart
:
{},
myChart
:
{},
option
:
{
option
:
{
xAxis
:
{
xAxis
:
{
max
:
'dataMax'
max
:
'dataMax'
,
splitLine
:
{
show
:
false
}
},
},
yAxis
:
{
yAxis
:
{
type
:
'category'
,
type
:
'category'
,
data
:
[],
data
:
[],
inverse
:
true
,
inverse
:
true
,
splitLine
:
{
show
:
false
},
animationDuration
:
300
,
animationDuration
:
300
,
animationDurationUpdate
:
300
,
animationDurationUpdate
:
300
,
max
:
4
// only the largest 3 bars will be displayed
max
:
4
// only the largest 3 bars will be displayed
...
@@ -98,9 +104,9 @@ export default {
...
@@ -98,9 +104,9 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.chart-box
{
.chart-box
{
width
:
100%
;
width
:
100%
;
height
:
2
07
px
;
height
:
2
40
px
;
}
}
.chart-bar
{
.chart-bar
{
height
:
2
07
px
;
height
:
2
40
px
;
}
}
</
style
>
</
style
>
src/views/home/components/lineChart.vue
View file @
6b3fc4d
...
@@ -44,9 +44,9 @@ export default {
...
@@ -44,9 +44,9 @@ export default {
// },
// },
grid
:
{
grid
:
{
x
:
80
,
x
:
80
,
y
:
5
0
,
y
:
2
0
,
x2
:
5
0
,
x2
:
3
0
,
y2
:
5
0
y2
:
4
0
},
},
series
:
[
series
:
[
{
{
...
@@ -87,10 +87,10 @@ export default {
...
@@ -87,10 +87,10 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.chart-box
{
.chart-box
{
height
:
260
px
;
height
:
196
px
;
width
:
100%
;
width
:
100%
;
}
}
.chart-line
{
.chart-line
{
height
:
260
px
;
height
:
196
px
;
}
}
</
style
>
</
style
>
src/views/home/index.vue
View file @
6b3fc4d
...
@@ -440,6 +440,9 @@ export default {
...
@@ -440,6 +440,9 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.orange
{
color
:
#fe9c1c
;
}
.data
{
.data
{
&-item
{
&-item
{
display
:
flex
;
display
:
flex
;
...
@@ -525,9 +528,6 @@ export default {
...
@@ -525,9 +528,6 @@ export default {
border-style
:
solid
dashed
dashed
dashed
;
border-style
:
solid
dashed
dashed
dashed
;
border-color
:
#2cca74
transparent
transparent
transparent
;
border-color
:
#2cca74
transparent
transparent
transparent
;
}
}
.orange
{
color
:
#fe9c1c
;
}
}
}
.marketing-home
{
.marketing-home
{
.title
{
.title
{
...
@@ -645,8 +645,8 @@ export default {
...
@@ -645,8 +645,8 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666
;
color
:
#666
;
margin-top
:
2
7
px
;
margin-top
:
2
0
px
;
margin-bottom
:
0
;
margin-bottom
:
18px
;
.sold-num
{
.sold-num
{
font-size
:
22px
;
font-size
:
22px
;
color
:
#333
;
color
:
#333
;
...
@@ -678,12 +678,14 @@ export default {
...
@@ -678,12 +678,14 @@ export default {
display
:
flex
;
display
:
flex
;
}
}
&
-right
{
&
-right
{
margin-top
:
10px
;
width
:
240px
;
width
:
240px
;
&-item
{
&-item
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#333
;
color
:
#333
;
margin-bottom
:
21px
;
margin-bottom
:
21px
;
&:last-child
{
&:last-child
{
margin-top
:
50px
;
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.item-content
{
.item-content
{
...
@@ -741,13 +743,13 @@ export default {
...
@@ -741,13 +743,13 @@ export default {
}
}
.line-box
{
.line-box
{
position
:
relative
;
position
:
relative
;
height
:
260
px
;
height
:
196
px
;
width
:
77%
;
width
:
7
6.
7%
;
}
}
.bar-box
{
.bar-box
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
2
07
px
;
height
:
2
40
px
;
}
}
.pie-box
{
.pie-box
{
position
:
relative
;
position
:
relative
;
...
...
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