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 d40993ca
authored
Dec 11, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
c81f1f03
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
66 additions
and
41 deletions
package.json
src/App.vue
src/assets/guestCustom/applet-logo.png
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/detaiCustomeGroup.vue
src/views/customerTransform/detailCustomer.vue
src/views/home/components/barChart.vue
src/views/home/components/pieChart.vue
src/views/home/index.vue
package.json
View file @
d40993c
...
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.2.
4
"
,
"glsx-components"
:
"^1.2.
5
"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/App.vue
View file @
d40993c
...
...
@@ -25,7 +25,7 @@
<el-button
class=
"right"
type=
"primary"
size=
"medium"
@
click=
"callParentChange('default')"
>
通知父应用收到
</el-button>
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
</div>
-->
<router-view
/>
</div>
...
...
@@ -58,7 +58,7 @@ export default {
}
#app
{
padding
:
0px
20px
20px
40px
;
overflow-y
:
auto
;
//
overflow-y
:
auto
;
height
:
100%
;
}
</
style
>
...
...
src/assets/guestCustom/applet-logo.png
View file @
d40993c
1.23 KB
|
W:
|
H:
3.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/customerTransform/addCustomer.vue
View file @
d40993c
...
...
@@ -71,6 +71,7 @@
v-model=
"basicForm.condition.chatId"
@
change=
"valueChange"
@
focus=
"groupFocus"
:size=
"size"
multiple
collapse-tags
placeholder=
"请选择"
...
...
@@ -91,7 +92,8 @@
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
:size=
"size"
style=
"width: 320px;"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"标签筛选"
>
...
...
@@ -112,7 +114,7 @@
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx)"
>
{{
tag
.
name
}}
</el-tag>
<
el-input
size=
"small"
style=
"outline: none; border: none"
></el-input
>
<
!--
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
--
>
</div>
<!--
<span
class=
"label-text"
>
已选择
...
...
@@ -148,7 +150,7 @@
<!-- 编辑入群欢迎语 -->
<div
class=
"title"
>
编辑群发内容
</div>
<div>
<el-form
:model=
"basicForm"
:rules=
"basicRules"
ref=
"groupForm"
label-width=
"1
2
0px"
>
<el-form
:model=
"basicForm"
:rules=
"basicRules"
ref=
"groupForm"
label-width=
"1
0
0px"
>
<el-form-item
prop=
"attachmentList"
>
<label
slot=
"label"
class=
"required"
>
群发内容
</label>
<WelcomeWords
ref=
"welcome"
:form=
"'customer'"
:eventBus=
"eventBus"
></WelcomeWords>
...
...
@@ -522,7 +524,6 @@ export default {
<
style
lang=
"scss"
scoped
>
.container
{
margin-top
:
26px
;
margin-bottom
:
84px
;
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
...
@@ -531,6 +532,7 @@ export default {
padding
:
20px
0
17px
20px
;
font-size
:
16px
;
color
:
#333
;
font-weight
:
600
;
border-bottom
:
1px
solid
#d8d8d8
;
}
.info-box
{
...
...
@@ -543,6 +545,7 @@ export default {
width
:
calc
(
100%
-
360px
);
.filter-box
{
margin-left
:
120px
;
min-width
:
656px
;
background-color
:
#f7f7f7
;
.filter-memeber
{
padding
:
20px
0
;
...
...
@@ -573,7 +576,7 @@ export default {
}
.el-form
{
padding
:
32px
0
20px
66
px
;
padding
:
32px
0
20px
20
px
;
/deep/.el-input
{
width
:
320px
;
}
...
...
@@ -584,6 +587,7 @@ export default {
}
.preview
{
margin-right
:
24px
;
margin-bottom
:
100px
;
}
}
.footer-panel
{
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
d40993c
...
...
@@ -312,7 +312,6 @@ export default {
<
style
lang=
"scss"
scoped
>
.container
{
margin-top
:
26px
;
margin-bottom
:
84px
;
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
...
@@ -320,6 +319,7 @@ export default {
.title
{
padding
:
20px
0
17px
20px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#333
;
border-bottom
:
1px
solid
#d8d8d8
;
}
...
...
@@ -347,6 +347,7 @@ export default {
}
.preview
{
margin-right
:
24px
;
margin-bottom
:
100px
;
}
}
.footer-panel
{
...
...
src/views/customerTransform/components/activityModel.vue
View file @
d40993c
...
...
@@ -5,10 +5,10 @@
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tab-pane
label=
"精品券"
name=
"1"
></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-tab-pane
label=
"商城券"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"秒杀活动"
name=
"5"
></el-tab-pane>
</el-tabs>
</div>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
...
...
@@ -21,9 +21,9 @@
>
<div
class=
"model-item-title"
:title=
"item.
cardClass
Name"
:title=
"item.
equity
Name"
v-show=
"activeName == 3"
>
{{
item
.
cardClass
Name
}}
</div>
>
{{
item
.
equity
Name
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
...
...
@@ -31,7 +31,7 @@
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.c
ardClass
Name"
:title=
"item.c
oupon
Name"
v-show=
"activeName == 1"
>
{{
item
.
couponName
}}
</div>
<div
...
...
@@ -39,11 +39,18 @@
:title=
"item.packageName"
v-show=
"activeName == 4"
>
{{
item
.
packageName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.activityName"
v-show=
"activeName == 5"
>
{{
item
.
activityName
}}
</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
.
p
rice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
价格:
{{
item
.
goodP
rice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
价格:
{{
item
.
packagePrice
}}
元
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 5"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 5"
></div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 1"
...
...
@@ -56,21 +63,11 @@
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3 && item.effectiveType == 3"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3 && item.effectiveType == 1"
>
有效期:无限制
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveNum
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
有效期:
{{
item
.
effectivedDay
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2"
>
类型:
<span>
{{
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'兑换券'
:
''
}}
</span>
<span>
{{
item
.
discountType
==
2
?
'折扣券'
:
item
.
discountType
==
3
?
'代金券'
:
item
.
discountType
==
4
?
'兑换券'
:
''
}}
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 1"
>
类型:
...
...
@@ -84,6 +81,10 @@
类型:
<span>
权益套餐
</span>
</div>
<div
class=
"model-item-content"
v-if=
"activeName == 5"
>
活动时间:
{{
item
.
startTime
.
split
(
' '
)[
0
]
}}
-
{{
item
.
endTime
.
split
(
' '
)[
0
]
}}
</div>
</div>
</div>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
...
...
@@ -91,6 +92,7 @@
<div
class=
"empty-item"
>
暂无数据
</div>
</div>
<el-pagination
v-if=
"activeName != 3"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
...
...
@@ -115,7 +117,7 @@ export default {
return
{
dialogVisible
:
false
,
loading
:
false
,
activeName
:
'
1
'
,
activeName
:
'
3
'
,
modelList
:
[],
pageNum
:
1
,
pageSize
:
12
,
...
...
@@ -136,7 +138,7 @@ export default {
return
}
this
.
dialogVisible
=
false
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
})
this
.
$emit
(
'selectActivity'
,
{
marketingId
:
this
.
selectItem
.
id
,
marketingType
:
this
.
activeName
,
marketingName
:
this
.
activeName
==
3
?
this
.
selectItem
.
equityName
:
this
.
activeName
==
4
?
this
.
selectItem
.
packageName
:
this
.
activeName
==
5
?
this
.
selectItem
.
activity
Name
:
this
.
selectItem
.
couponName
})
},
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
...
...
@@ -163,6 +165,9 @@ export default {
case
'4'
:
market
=
'getPackage'
break
case
'5'
:
market
=
'getActivity'
break
}
let
params
=
{
pageSize
:
this
.
pageSize
,
...
...
@@ -174,12 +179,25 @@ export default {
}
if
(
this
.
activeName
==
2
)
{
params
.
discountTypes
=
[
2
,
3
,
4
]
params
.
validType
=
'valid'
}
if
(
this
.
activeName
==
5
)
{
params
.
currentPage
=
this
.
pageNum
params
.
activityStatus
=
2
}
this
.
$apis
.
customerTransform
[
market
](
params
).
then
(
res
=>
{
this
.
modelList
=
res
.
list
?
res
.
list
:
res
.
data
this
.
tableTotal
=
res
.
total
this
.
loading
=
false
})
this
.
$apis
.
customerTransform
[
market
](
params
)
.
then
(
res
=>
{
if
(
this
.
activeName
==
3
)
{
this
.
modelList
=
res
}
else
{
this
.
modelList
=
res
.
list
?
res
.
list
:
res
.
data
this
.
tableTotal
=
res
.
total
}
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
init
()
{
this
.
dialogVisible
=
true
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
d40993c
...
...
@@ -149,6 +149,7 @@ export default {
.title
{
padding
:
20px
0
17px
20px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#333
;
border-bottom
:
1px
solid
#d8d8d8
;
}
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
d40993c
...
...
@@ -330,7 +330,8 @@ export default {
.content
{
display
:
inline-block
;
vertical-align
:
text-top
;
width
:
calc
(
100%
-
103px
);
min-width
:
656px
;
width
:
calc
(
100%
-
15px
);
margin-left
:
12px
;
.welcome-file
{
display
:
flex
;
...
...
src/views/customerTransform/detaiCustomeGroup.vue
View file @
d40993c
<
template
>
<div
style=
"margin-top: 26px;"
>
<div>
<BasicInof
:form=
"'customerGroup'"
:eventBus=
"eventBus"
:id=
"$route.params.id"
></BasicInof>
<div
class=
"group-detail-container"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
...
...
@@ -192,7 +192,6 @@ export default {
</
script
>
<
style
lang=
"scss"
scope
>
.group-detail-container
{
margin-top
:
26px
;
margin-bottom
:
84px
;
padding
:
20px
;
background-color
:
#ffffff
;
...
...
src/views/customerTransform/detailCustomer.vue
View file @
d40993c
<
template
>
<div
style=
"margin-top: 26px;"
>
<div>
<BasicInof
:eventBus=
"eventBus"
:id=
"$route.params.id"
:form=
"'customer'"
></BasicInof>
<div
class=
"detail-container"
>
<div
class=
"detail-modular"
>
...
...
@@ -229,6 +229,7 @@ export default {
.title
{
padding
:
20px
0
17px
20px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#333
;
border-bottom
:
1px
solid
#d8d8d8
;
}
...
...
src/views/home/components/barChart.vue
View file @
d40993c
...
...
@@ -33,7 +33,7 @@ export default {
grid
:
{
x
:
120
,
y
:
0
,
x2
:
5
0
,
x2
:
2
0
,
y2
:
0
},
series
:
[
...
...
src/views/home/components/pieChart.vue
View file @
d40993c
...
...
@@ -29,7 +29,7 @@ export default {
{
name
:
'券类营销'
,
type
:
'pie'
,
radius
:
'
5
0%'
,
radius
:
'
7
0%'
,
label
:
{
formatter
:
'{b}\n \n{c} 张'
},
...
...
src/views/home/index.vue
View file @
d40993c
This diff is collapsed.
Click to expand it.
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