Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 61c12612
authored
Oct 17, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 客户案例广场
1 parent
526dcf0f
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
444 additions
and
143 deletions
components/CarBrands.vue
components/CustomerTags.vue
components/Employee.vue
components/HomeFrame/components/CaseItem.vue
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/CustomerInfo.vue
components/ReceptionSence.vue
env.js
mixin/report.js
pages/boutique/components/CouponPop.vue
pages/boutique/index.vue
pages/common/components/PackagePopup.vue
pages/common/customerDetail.vue
uni.scss
components/CarBrands.vue
View file @
61c1261
...
@@ -47,6 +47,21 @@
...
@@ -47,6 +47,21 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'CarBrands'
,
name
:
'CarBrands'
,
props
:
{
carBrandKey
:
{
//品牌key
type
:
String
,
default
:
'carBrand'
},
carModelKey
:
{
//车型key
type
:
String
,
default
:
'carModel'
},
echoData
:
{
type
:
Object
,
default
:
()
=>
({})
},
customBoolean
:
Boolean
},
data
()
{
data
()
{
return
{
return
{
carlist
:
[],
carlist
:
[],
...
@@ -68,13 +83,13 @@ export default {
...
@@ -68,13 +83,13 @@ export default {
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
carModel
()
{
carModel
()
{
return
this
.
$store
.
state
.
user
.
customerInfo
.
carModel
return
this
.
customBoolean
?
this
.
echoData
[
this
.
carModelKey
]
:
this
.
$store
.
state
.
user
.
customerInfo
.
carModel
},
},
carBrandList
()
{
carBrandList
()
{
return
this
.
$store
.
state
.
user
.
carBrands
||
[]
return
this
.
$store
.
state
.
user
.
carBrands
||
[]
},
},
carBrand
()
{
carBrand
()
{
return
this
.
$store
.
state
.
user
.
customerInfo
.
carBrand
return
this
.
customBoolean
?
this
.
echoData
[
this
.
carBrandKey
]
:
this
.
$store
.
state
.
user
.
customerInfo
.
carBrand
},
},
boutiqueDefaultCarBrandId
()
{
boutiqueDefaultCarBrandId
()
{
return
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
return
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
...
@@ -192,19 +207,19 @@ export default {
...
@@ -192,19 +207,19 @@ export default {
.select-box
{
.select-box
{
margin
:
40
rpx
0
;
margin
:
40
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
50vh
;
max-height
:
50vh
;
padding-bottom
:
60
rpx
;
padding-bottom
:
60
rpx
;
.select-item
{
.select-item
{
text-align
:
center
;
text-align
:
center
;
height
:
68
rpx
;
height
:
68
rpx
;
line-height
:
68
rpx
;
line-height
:
44
rpx
;
opacity
:
1
;
opacity
:
1
;
border
:
2
rpx
solid
#dce0e6
;
border
:
2
rpx
solid
#dce0e6
;
color
:
#
292d
33
;
color
:
#
3
33
;
font-size
:
28
rpx
;
font-size
:
32
rpx
;
border-radius
:
8
rpx
;
border-radius
:
8
rpx
;
&.checked
{
&.checked
{
border
:
2
rpx
solid
#292d33
;
border
:
2
rpx
solid
#292d33
;
...
...
components/CustomerTags.vue
View file @
61c1261
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ref=
"customerTagstVisible"
ref=
"customerTagstVisible"
position=
"bottom"
position=
"bottom"
:isFooter=
"false"
:isFooter=
"false"
title=
"请选择客户标签
"
:title=
"title
"
:maxHeight=
"10
0
0"
:maxHeight=
"10
4
0"
@
close=
"$emit('close')"
@
close=
"$emit('close')"
>
>
<view
class=
"select-views"
>
<view
class=
"select-views"
>
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
<view
class=
"footer-btns"
>
<view
class=
"footer-btns"
>
<view
<view
class=
"btn cancel"
class=
"btn cancel"
@
click=
"cl
ose
"
@
click=
"cl
earSwitch ? clear() : close()
"
>
取消
</view>
>
{{cancelText}}
</view>
<view
<view
:class=
"['btn',{disabled:
component_chooseList.length == 0
}]"
:class=
"['btn',{disabled:
disabled
}]"
@
click=
"choose"
@
click=
"choose"
>
确定
</view>
>
确定
</view>
</view>
</view>
...
@@ -47,7 +47,27 @@
...
@@ -47,7 +47,27 @@
export
default
{
export
default
{
name
:
'CustomerTags'
,
name
:
'CustomerTags'
,
props
:
{
props
:
{
chooseList
:
Array
chooseList
:
Array
,
title
:
{
type
:
String
,
default
:
'请选择客户标签'
},
disabledSwitch
:
{
type
:
Boolean
,
default
:
true
},
cancelText
:
{
type
:
String
,
default
:
'取消'
},
clearSwitch
:
{
type
:
Boolean
,
default
:
false
},
sceneNumber
:
{
type
:
[
Number
,
String
],
default
:
-
1
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -73,6 +93,9 @@ export default {
...
@@ -73,6 +93,9 @@ export default {
watchStatus
()
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
disabled
()
{
return
this
.
disabledSwitch
&&
this
.
component_chooseList
.
length
==
0
}
},
},
mounted
()
{
mounted
()
{
},
},
...
@@ -80,10 +103,11 @@ export default {
...
@@ -80,10 +103,11 @@ export default {
open
()
{
open
()
{
this
.
$refs
.
customerTagstVisible
.
open
()
this
.
$refs
.
customerTagstVisible
.
open
()
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
sceneType
}
=
userInfo
;
{
sceneType
}
=
userInfo
,
{
sceneNumber
}
=
this
uni
.
$api
.
customerApi
uni
.
$api
.
customerApi
.
findCustomerTags
({
.
findCustomerTags
({
scene
:
sceneType
,
scene
:
scene
Number
>
-
1
?
sceneNumber
:
scene
Type
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
list
=
res
||
[]
this
.
list
=
res
||
[]
...
@@ -105,9 +129,14 @@ export default {
...
@@ -105,9 +129,14 @@ export default {
return
component_chooseList
.
findIndex
(
e
=>
e
.
labelId
==
item
.
labelId
)
!=
-
1
return
component_chooseList
.
findIndex
(
e
=>
e
.
labelId
==
item
.
labelId
)
!=
-
1
},
},
choose
()
{
choose
()
{
if
(
this
.
component_chooseList
.
length
==
0
)
return
if
(
this
.
disabled
)
return
this
.
$emit
(
'select'
,
this
.
component_chooseList
)
this
.
$emit
(
'select'
,
this
.
component_chooseList
)
this
.
close
();
this
.
close
();
},
clear
()
{
console
.
log
(
123
)
this
.
component_chooseList
=
[]
this
.
$forceUpdate
()
}
}
}
}
}
}
...
@@ -116,7 +145,7 @@ export default {
...
@@ -116,7 +145,7 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.select-views
{
.select-views
{
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
5
0vh
;
max-height
:
6
0vh
;
position
:
relative
;
position
:
relative
;
padding-bottom
:
128
rpx
;
padding-bottom
:
128
rpx
;
.select-group
{
.select-group
{
...
@@ -129,20 +158,21 @@ export default {
...
@@ -129,20 +158,21 @@ export default {
.select-box
{
.select-box
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
.select-item
{
.select-item
{
text-align
:
center
;
text-align
:
center
;
justify-content
:
center
;
justify-content
:
center
;
opacity
:
1
;
opacity
:
1
;
border
:
2
rpx
solid
#dce0e6
;
border
:
2
rpx
solid
#dce0e6
;
color
:
#
292d
33
;
color
:
#
3
33
;
font-size
:
28
rpx
;
font-size
:
32
rpx
;
border-radius
:
8
rpx
;
border-radius
:
8
rpx
;
position
:
relative
;
position
:
relative
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
13
rpx
40
rpx
;
padding
:
13
rpx
40
rpx
;
word-break
:
break-all
;
word-break
:
break-all
;
line-height
:
44
rpx
;
.sprite-icon
{
.sprite-icon
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
...
components/Employee.vue
View file @
61c1261
...
@@ -85,19 +85,19 @@ export default {
...
@@ -85,19 +85,19 @@ export default {
.select-box
{
.select-box
{
margin
:
40
rpx
0
;
margin
:
40
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
50vh
;
max-height
:
50vh
;
padding-bottom
:
60
rpx
;
padding-bottom
:
60
rpx
;
.select-item
{
.select-item
{
text-align
:
center
;
text-align
:
center
;
height
:
68
rpx
;
height
:
68
rpx
;
line-height
:
68
rpx
;
line-height
:
44
rpx
;
opacity
:
1
;
opacity
:
1
;
border
:
2
rpx
solid
#dce0e6
;
border
:
2
rpx
solid
#dce0e6
;
color
:
#
292d
33
;
color
:
#
3
33
;
font-size
:
28
rpx
;
font-size
:
32
rpx
;
border-radius
:
8
rpx
;
border-radius
:
8
rpx
;
&.checked
{
&.checked
{
border
:
2
rpx
solid
#292d33
;
border
:
2
rpx
solid
#292d33
;
...
...
components/HomeFrame/components/CaseItem.vue
0 → 100644
View file @
61c1261
<
template
>
<view
class=
"case-item"
@
click=
"jumpDetail(item)"
>
<image
class=
"img"
:src=
"item.cover"
:style=
"imgStyle"
mode=
"aspectFill"
></image>
<view
class=
"case-info"
>
<view
class=
"case-name text-hide"
>
{{
item
.
title
}}
</view>
<template
v-for=
"(j, ind) in caseInfo"
>
<view
class=
"case-text flex"
:key=
"ind"
>
<view
class=
"case-label"
>
{{
j
.
label
}}
:
</view>
<view
:class=
"['case-value', j.class]"
>
<template
v-if=
"j.format"
>
{{
j
.
format
(
item
)
}}
</
template
>
<
template
v-else
>
{{
item
[
j
.
key
]
||
'--'
}}
</
template
>
</view>
</view>
</template>
</view>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'CaseItem'
,
props
:
{
item
:
Object
,
source
:
{
type
:
Number
,
default
:
1
},
visitsId
:
[
Number
,
String
],
imgStyle
:
String
},
data
()
{
return
{
caseInfo
:
[
{
label
:
'业务场景'
,
class
:
'text-hide'
,
format
:
(
val
)
=>
{
// 业务场景:0-会员权益/升级;1-精品升级;2-次新车转化;3-售后众筹;4-积分商城
return
val
?
{
0
:
'会员权益/升级'
,
1
:
'精品升级'
,
2
:
'次新车转化'
,
3
:
'售后众筹'
,
4
:
'积分商城'
}[
val
.
scene
]
:
'--'
}
},
{
label
:
'客户标签'
,
key
:
'tags'
,
class
:
'text-hide'
},
{
label
:
'适用套餐'
,
key
:
'goods'
,
class
:
'text-two-line'
},
],
}
},
mounted
()
{
},
methods
:
{
jumpDetail
(
item
)
{
const
{
source
,
visitsId
}
=
this
let
params
=
`id=
${
item
.
id
}
&source=
${
source
}
`
if
(
visitsId
)
params
+=
`&visitsId=
${
visitsId
}
`
// 类型:0-图片;1-视频;2-pdf;3-富文本
let
url
=
`/pages/common/caseDetail?
${
params
}
`
if
(
item
.
type
!=
3
)
{
let
fileUrl
=
item
?.
detailInfos
[
0
]?.
image
if
(
item
.
type
==
2
)
url
=
`/pages/common/webview?fileUrl=
${
fileUrl
}
&title=
${
item
.
title
}
&
${
params
}
`
if
(
item
.
type
==
1
||
item
.
type
==
0
)
url
=
`/pages/boutique/preview?tabName=
${
item
.
title
}
&sourceType=
${
item
.
type
==
1
?
2
:
1
}
&detailUrl=
${
fileUrl
}
&
${
params
}
`
}
uni
.
navigateTo
({
url
:
`
${
url
}
`
})
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.case-item
{
width
:
100%
;
height
:
100%
;
background
:
#ffffff
;
box-shadow
:
0
8
rpx
24
rpx
0
#2c66f71
a
;
border-radius
:
16
rpx
;
display
:
flex
;
flex-direction
:
column
;
overflow
:
hidden
;
.img
{
width
:
100%
;
height
:
324
rpx
;
}
.case-name
{
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#333333
;
line-height
:
48
rpx
;
padding
:
16
rpx
32
rpx
8
rpx
;
}
.case-text
{
align-items
:
flex-start
;
font-size
:
24
rpx
;
color
:
#666666
;
line-height
:
40
rpx
;
padding
:
0
32
rpx
;
margin-bottom
:
2
rpx
;
}
.case-label
{
width
:
120
rpx
;
flex-shrink
:
0
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
components/HomeFrame/components/CustomerFile.vue
View file @
61c1261
...
@@ -48,8 +48,27 @@
...
@@ -48,8 +48,27 @@
></view>
></view>
</view>
</view>
</view>
</view>
<view
class=
"scene-box flex"
v-if=
"firstIndex == 2"
>
<view
class=
"scene-tabs flex"
>
<
template
v-for=
"(i, index) in sceneList"
>
<view
:class=
"['tab flex',
{ active: caseParams.scene == i.id }]"
:key="index"
@click="changeScene(i.id)"
>
{{
i
.
text
}}
</view>
</
template
>
</view>
<view
class=
"search-btn flex"
@
click=
"$refs.customerTagstVisible.open()"
>
标签筛选
</view>
</view>
<scroll-view
<scroll-view
:class=
"['record-list',
{'type-1':firstIndex == 1}
]"
:class=
"['record-list',
recordClass
]"
scroll-y
scroll-y
@
scrolltolower=
"pageonReachBottom"
@
scrolltolower=
"pageonReachBottom"
>
>
...
@@ -58,6 +77,19 @@
...
@@ -58,6 +77,19 @@
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-for=
"(i,index) in list"
>
<template
v-for=
"(i,index) in list"
>
<template
v-for=
"(item,cindex) in i"
>
<template
v-for=
"(item,cindex) in i"
>
<template
v-if=
"firstIndex == 2"
>
<view
class=
"case-item"
:key=
"item.id"
>
<case-item
:item=
"item"
:source=
"2"
imgStyle=
"height:290rpx"
/>
</view>
</
template
>
<
template
v-else
>
<view
<view
class=
"item"
class=
"item"
:key=
"item.id"
:key=
"item.id"
...
@@ -142,13 +174,14 @@
...
@@ -142,13 +174,14 @@
</template>
</template>
</template>
</template>
</template>
</template>
</template>
<template v-else>
<template v-else>
<view class="
nothing
flex
">
<view class="
nothing
flex
">
<image
<image
class="
icon
"
class="
icon
"
src="
..
/
..
/
..
/
assets
/
images
/
home
/
nothing
.
webp
"
src="
..
/
..
/
..
/
assets
/
images
/
home
/
nothing
.
webp
"
/>
/>
暂无接待记录
{{
firstIndex
==
2
?
'暂无推荐话术'
:
'暂无接待记录'
}}
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
/template
>
<
/template
>
...
@@ -175,21 +208,37 @@
...
@@ -175,21 +208,37 @@
:
show
.
sync
=
"showInfo"
:
show
.
sync
=
"showInfo"
@
refresh
=
"refresh"
@
refresh
=
"refresh"
/>
/>
<
customer
-
tags
ref
=
"customerTagstVisible"
@
select
=
"handleSelect"
title
=
"筛选"
cancelText
=
"清除筛选"
:
chooseList
=
"tagsList"
:
disabledSwitch
=
"false"
clearSwitch
:
sceneNumber
=
"caseParams.scene"
><
/customer-tags
>
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
type
=
"text/ecmascript-6"
>
<
script
type
=
"text/ecmascript-6"
>
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
CustomerInfo
from
'./CustomerInfo.vue'
import
CustomerInfo
from
'./CustomerInfo.vue'
import
CaseItem
from
'./CaseItem.vue'
import
CustomerTags
from
'../../CustomerTags.vue'
export
default
{
export
default
{
components
:
{
components
:
{
CustomerInfo
CustomerInfo
,
CaseItem
,
CustomerTags
}
,
}
,
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
tagsList
:
[],
typeList
:
[
typeList
:
[
{
tabName
:
'未接待'
}
,
{
tabName
:
'未接待'
}
,
{
tabName
:
'已接待'
}
,
{
tabName
:
'已接待'
}
,
{
tabName
:
'客户案例广场'
}
,
],
],
firstIndex
:
0
,
firstIndex
:
0
,
firstLeft
:
[
'0rpx'
,
'352rpx'
,
'756rpx'
],
firstLeft
:
[
'0rpx'
,
'352rpx'
,
'756rpx'
],
...
@@ -200,6 +249,10 @@ export default {
...
@@ -200,6 +249,10 @@ export default {
{
text
:
'本月'
}
,
{
text
:
'本月'
}
,
{
text
:
'全部'
}
{
text
:
'全部'
}
],
],
sceneList
:
[
{
text
:
'会员权益/升级'
,
id
:
0
}
,
{
text
:
'轻改升级'
,
id
:
1
}
,
],
itemObject
:
[
itemObject
:
[
{
label
:
'车主电话'
,
key
:
'ownerPhone'
}
,
{
label
:
'车主电话'
,
key
:
'ownerPhone'
}
,
{
label
:
'品牌车型'
,
key
:
'brandModel'
}
,
{
label
:
'品牌车型'
,
key
:
'brandModel'
}
,
...
@@ -217,6 +270,12 @@ export default {
...
@@ -217,6 +270,12 @@ export default {
pageSize
:
18
,
pageSize
:
18
,
customerId
:
''
,
customerId
:
''
,
showInfo
:
false
,
showInfo
:
false
,
caseParams
:
{
scene
:
0
,
status
:
1
,
showChannel
:
2
,
}
,
}
}
}
,
}
,
computed
:
{
computed
:
{
...
@@ -225,6 +284,12 @@ export default {
...
@@ -225,6 +284,12 @@ export default {
return
{
return
{
transform
:
`translate(calc(${dateIndex * 184
}
rpx), -50%)`
transform
:
`translate(calc(${dateIndex * 184
}
rpx), -50%)`
}
}
}
,
recordClass
()
{
return
{
1
:
'type-1'
,
2
:
'type-2'
}
[
this
.
firstIndex
]
}
}
}
,
}
,
mounted
()
{
mounted
()
{
...
@@ -236,11 +301,13 @@ export default {
...
@@ -236,11 +301,13 @@ export default {
this
.
list
=
[]
this
.
list
=
[]
this
.
pageNum
=
1
;
this
.
pageNum
=
1
;
this
.
nothing
=
false
this
.
nothing
=
false
this
.
getReceptionList
()
if
(
this
.
firstIndex
==
2
)
this
.
getMaterialResponsePage
()
else
this
.
getReceptionList
()
}
,
}
,
changeType
(
index
)
{
changeType
(
index
)
{
if
(
this
.
firstIndex
==
index
)
return
// 点击同一个
if
(
this
.
firstIndex
==
index
)
return
// 点击同一个
this
.
firstIndex
=
index
this
.
firstIndex
=
index
this
.
tagsList
=
[]
this
.
refresh
()
this
.
refresh
()
}
,
}
,
init
()
{
init
()
{
...
@@ -302,17 +369,24 @@ export default {
...
@@ -302,17 +369,24 @@ export default {
seconds
seconds
}
}
}
,
}
,
changeIndex
(
index
,
isType
=
false
)
{
changeIndex
(
index
)
{
if
(
this
.
dateIndex
==
index
&&
!
isType
)
return
if
(
this
.
dateIndex
==
index
)
return
this
.
dateIndex
=
index
this
.
dateIndex
=
index
this
.
refresh
()
this
.
refresh
()
}
,
}
,
changeScene
(
id
)
{
if
(
this
.
caseParams
.
scene
==
id
)
return
this
.
tagsList
=
[]
this
.
caseParams
.
scene
=
id
this
.
refresh
()
}
,
pageonReachBottom
()
{
pageonReachBottom
()
{
let
{
pageNum
,
total
,
nothing
,
pageSize
}
=
this
let
{
pageNum
,
total
,
nothing
,
pageSize
}
=
this
if
(
!
nothing
)
nothing
=
'nothing'
if
(
!
nothing
)
nothing
=
'nothing'
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
this
.
pageNum
+=
1
this
.
pageNum
+=
1
this
.
getReceptionList
()
if
(
this
.
firstIndex
==
2
)
this
.
getMaterialResponsePage
()
else
this
.
getReceptionList
()
}
else
this
.
nothing
=
true
}
else
this
.
nothing
=
true
}
,
}
,
getDateRange
(
type
)
{
getDateRange
(
type
)
{
...
@@ -383,6 +457,53 @@ export default {
...
@@ -383,6 +457,53 @@ export default {
animationType
:
'pop-in'
,
animationType
:
'pop-in'
,
animationDuration
:
100
animationDuration
:
100
}
)
}
)
}
,
async
getMaterialResponsePage
()
{
try
{
uni
.
showLoading
({
mask
:
true
}
)
let
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
),
{
pageSize
,
pageNum
,
caseParams
,
tagsList
}
=
this
,
customerLabelList
=
[]
tagsList
.
map
(
e
=>
customerLabelList
.
push
({
labelId
:
e
.
labelId
}
))
let
params
=
{
currentPage
:
pageNum
,
pageSize
,
customerLabelList
,
// merchantId: shopMerchantId,
...
caseParams
}
const
{
list
,
total
}
=
await
uni
.
$api
.
customerApi
.
getMaterialResponsePage
(
params
)
uni
.
hideLoading
()
list
.
map
(
e
=>
{
let
tags
=
[],
goods
=
[]
e
.
customerLabelInfoList
?.
map
(
item
=>
{
tags
.
push
(
item
.
labelName
)
}
)
e
.
productPackageInfoList
?.
map
(
item
=>
{
goods
.
push
(
item
.
upgradeGoodsName
)
}
)
e
.
tags
=
tags
.
join
(
'、'
)
e
.
goods
=
goods
.
join
(
'、'
)
if
(
!
e
.
cover
)
e
.
cover
=
'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp'
}
)
this
.
list
[
pageNum
-
1
]
=
list
this
.
flag
=
true
this
.
total
=
total
this
.
$forceUpdate
()
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
this
.
flag
=
true
}
}
,
handleSelect
(
list
)
{
this
.
tagsList
=
list
this
.
refresh
()
}
}
}
}
}
}
...
@@ -481,6 +602,17 @@ export default {
...
@@ -481,6 +602,17 @@ export default {
}
}
}
}
}
}
.
type
-
2
{
height
:
calc
(
100
%
-
248
rpx
);
.
list
{
padding
-
top
:
48
rpx
;
.
item
{
.
name
{
max
-
width
:
416
rpx
;
}
}
}
}
.
list
{
.
list
{
display
:
flex
;
display
:
flex
;
flex
-
wrap
:
wrap
;
flex
-
wrap
:
wrap
;
...
@@ -599,6 +731,10 @@ export default {
...
@@ -599,6 +731,10 @@ export default {
opacity
:
1
;
opacity
:
1
;
}
}
}
}
.
case
-
item
{
width
:
444
rpx
;
height
:
552
rpx
;
}
}
}
}
}
.
add
-
btn
{
.
add
-
btn
{
...
@@ -675,6 +811,43 @@ export default {
...
@@ -675,6 +811,43 @@ export default {
}
}
}
}
}
}
.
scene
-
box
{
position
:
relative
;
top
:
0
;
z
-
index
:
3
;
margin
-
top
:
-
8
rpx
;
padding
:
0
64
rpx
;
.
scene
-
tabs
{
gap
:
0
24
rpx
;
.
tab
{
height
:
80
rpx
;
background
:
#
f2f2f2
;
border
-
radius
:
16
rpx
;
padding
:
0
32
rpx
;
justify
-
content
:
center
;
font
-
size
:
28
rpx
;
color
:
#
666666
;
line
-
height
:
44
rpx
;
transition
:
all
0.15
s
;
}
.
active
{
font
-
weight
:
500
;
color
:
#
2
d66f7
;
background
:
#
2
d66f71a
;
}
}
.
search
-
btn
{
margin
-
left
:
auto
;
&
::
after
{
content
:
''
;
border
:
12
rpx
solid
transparent
;
border
-
left
-
color
:
#
000
;
margin
-
left
:
12
rpx
;
transform
:
translateY
(
2
rpx
);
}
}
}
.
nothing
{
.
nothing
{
width
:
100
%
;
width
:
100
%
;
flex
-
direction
:
column
;
flex
-
direction
:
column
;
...
...
components/HomeFrame/components/CustomerInfo.vue
View file @
61c1261
...
@@ -89,6 +89,10 @@
...
@@ -89,6 +89,10 @@
<car-brands
<car-brands
ref=
"carBrandVisible"
ref=
"carBrandVisible"
@
select=
"handleSelect($event,'carBrandVisible')"
@
select=
"handleSelect($event,'carBrandVisible')"
:echoData=
"customerInfo"
carBrandKey=
"carBrand"
carModelKey=
"brandModel"
customBoolean
/>
/>
<customer-tags
<customer-tags
ref=
"customerTagstVisible"
ref=
"customerTagstVisible"
...
@@ -268,6 +272,7 @@ export default {
...
@@ -268,6 +272,7 @@ export default {
if
(
popkey
==
'carBrandVisible'
)
{
if
(
popkey
==
'carBrandVisible'
)
{
this
.
$refs
.
carBrandVisible
.
close
()
this
.
$refs
.
carBrandVisible
.
close
()
this
.
customerInfo
.
brandModel
=
item
.
name
this
.
customerInfo
.
brandModel
=
item
.
name
this
.
customerInfo
.
carBrand
=
item
.
carChildsBrandName
}
else
if
(
popkey
==
'customerTagstVisible'
)
{
}
else
if
(
popkey
==
'customerTagstVisible'
)
{
let
names
=
[],
let
names
=
[],
ids
=
[]
ids
=
[]
...
...
components/ReceptionSence.vue
View file @
61c1261
...
@@ -25,12 +25,12 @@
...
@@ -25,12 +25,12 @@
export
default
{
export
default
{
name
:
'ReceptionSence'
,
name
:
'ReceptionSence'
,
props
:
{
props
:
{
customerInfo
:
Object
customerInfo
:
Object
},
},
data
()
{
data
()
{
return
{
return
{
list
:[],
list
:
[],
id
:
''
id
:
''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
watchStatus
()
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
watchCustomerInfo
()
{
watchCustomerInfo
()
{
return
this
.
customerInfo
return
this
.
customerInfo
},
},
},
},
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
list
=
res
||
[]
this
.
list
=
res
||
[]
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
list
=
[]
this
.
list
=
[]
})
})
},
},
...
@@ -90,15 +90,15 @@ export default {
...
@@ -90,15 +90,15 @@ export default {
.select-box
{
.select-box
{
margin
:
40
rpx
0
;
margin
:
40
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
50vh
;
max-height
:
50vh
;
padding-bottom
:
60
rpx
;
padding-bottom
:
60
rpx
;
.select-item
{
.select-item
{
text-align
:
center
;
text-align
:
center
;
height
:
68
rpx
;
height
:
68
rpx
;
line-height
:
68
rpx
;
line-height
:
44
rpx
;
opacity
:
1
;
opacity
:
1
;
border
:
2
rpx
solid
#dce0e6
;
border
:
2
rpx
solid
#dce0e6
;
color
:
#292d33
;
color
:
#292d33
;
...
...
env.js
View file @
61c1261
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
2
;
const
index
=
1
;
/**
/**
*
*
0本地
0本地
...
...
mixin/report.js
View file @
61c1261
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
goodsId
:
''
,
goodsId
:
''
,
visitsId
:
''
visitsId
:
''
,
source
:
1
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
visitsId
=
options
.
visitsId
this
.
visitsId
=
options
.
visitsId
||
''
this
.
goodsId
=
options
.
id
this
.
goodsId
=
options
.
id
if
(
options
.
source
)
this
.
source
=
options
.
source
this
.
addRecord
()
this
.
addRecord
()
},
},
methods
:
{
methods
:
{
addRecord
()
{
addRecord
()
{
const
{
shopMerchantId
:
merchantId
,
shopMerchantName
:
merchantName
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
shopMerchantId
:
merchantId
,
shopMerchantName
:
merchantName
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
params
=
{
const
params
=
{
goodsId
:
this
.
goodsId
,
goodsId
:
this
.
goodsId
,
goodsType
:
0
,
goodsType
:
0
,
merchantId
,
merchantId
,
merchantName
,
merchantName
,
visitsId
:
this
.
visitsId
searchSource
:
this
.
source
}
}
if
(
this
.
visitsId
)
params
.
visitsId
=
this
.
visitsId
uni
.
$api
.
commonApi
.
addRecord
(
params
).
then
(
res
=>
{
uni
.
$api
.
commonApi
.
addRecord
(
params
).
then
(
res
=>
{
this
.
addId
=
res
this
.
addId
=
res
})
})
}
}
},
},
onUnload
()
{
onUnload
()
{
const
params
=
{
const
params
=
{
id
:
this
.
addId
,
id
:
this
.
addId
visitsId
:
this
.
visitsId
}
}
if
(
this
.
visitsId
)
params
.
visitsId
=
this
.
visitsId
uni
.
$api
.
commonApi
.
leaveRecord
(
params
).
then
(
res
=>
{
uni
.
$api
.
commonApi
.
leaveRecord
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
888
)
console
.
log
(
res
,
888
)
})
})
...
...
pages/boutique/components/CouponPop.vue
View file @
61c1261
...
@@ -94,11 +94,15 @@
...
@@ -94,11 +94,15 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<image
v-if=
"pageParams.QRURL"
<image
v-if=
"pageParams.QRURL"
class=
"qr-code-img"
class=
"qr-code-img"
:src=
"pageParams.QRURL"
:src=
"pageParams.QRURL"
/>
/>
<view
v-else
class=
"no-data"
>
<view
v-else
class=
"no-data"
>
<view
class=
"no-data-img"
></view>
<view
class=
"no-data-img"
></view>
<!--
<image
<!--
<image
src=
"@/assets/images/boutique/no-data.webp"
src=
"@/assets/images/boutique/no-data.webp"
...
@@ -231,7 +235,7 @@ export default {
...
@@ -231,7 +235,7 @@ export default {
watch
:
{
watch
:
{
watchCustomerInfo
:
{
watchCustomerInfo
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
customerInfo
=
Object
.
assign
(
this
.
customerInfo
,
newval
)
this
.
customerInfo
=
Object
.
assign
(
this
.
customerInfo
,
newval
)
try
{
try
{
// 监听完成接待修改数据,同步修改生成优惠券按钮状态
// 监听完成接待修改数据,同步修改生成优惠券按钮状态
...
@@ -246,7 +250,7 @@ export default {
...
@@ -246,7 +250,7 @@ export default {
},
},
watchStatus
:
{
watchStatus
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
close
()
this
.
close
()
this
.
closeAllPopup
()
this
.
closeAllPopup
()
this
.
pageParams
.
QRURL
=
''
this
.
pageParams
.
QRURL
=
''
...
@@ -260,7 +264,7 @@ export default {
...
@@ -260,7 +264,7 @@ export default {
}
}
}
}
},
},
show
()
{
show
()
{
this
.
closeAllPopup
()
this
.
closeAllPopup
()
}
}
},
},
...
@@ -332,7 +336,7 @@ export default {
...
@@ -332,7 +336,7 @@ export default {
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
const
{
customerName
,
phoneNumber
,
staffName
}
=
this
.
customerInfo
this
.
isCheck
=
customerName
&&
phoneNumber
&&
staffName
this
.
isCheck
=
customerName
&&
phoneNumber
&&
staffName
},
},
chooseCoupon
(
item
)
{
chooseCoupon
(
item
)
{
this
.
pageParams
.
couponId
=
item
.
id
this
.
pageParams
.
couponId
=
item
.
id
this
.
customerInfo
.
couponTypeName
=
item
.
couponTypeName
this
.
customerInfo
.
couponTypeName
=
item
.
couponTypeName
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
...
@@ -349,12 +353,12 @@ export default {
...
@@ -349,12 +353,12 @@ export default {
this
.
$refs
[
e
].
open
();
this
.
$refs
[
e
].
open
();
this
.
$emit
(
'hideTool'
)
this
.
$emit
(
'hideTool'
)
},
},
open
(
customerType
,
customerCouponId
)
{
open
(
customerType
,
customerCouponId
)
{
this
.
$refs
.
couponPopup
.
open
()
this
.
$refs
.
couponPopup
.
open
()
this
.
customerType
=
customerType
this
.
customerType
=
customerType
if
(
customerCouponId
)
{
if
(
customerCouponId
)
{
this
.
pageParams
.
customerCouponId
=
customerCouponId
this
.
pageParams
.
customerCouponId
=
customerCouponId
this
.
pageParams
.
customerQr
=
qrcode
.
createQrCodeImg
(
`couponId=
${
customerCouponId
}
`
,
{
size
:
200
})
this
.
pageParams
.
customerQr
=
qrcode
.
createQrCodeImg
(
`couponId=
${
customerCouponId
}
`
,
{
size
:
200
})
}
}
this
.
init
()
this
.
init
()
try
{
try
{
...
@@ -367,7 +371,7 @@ export default {
...
@@ -367,7 +371,7 @@ export default {
close
()
{
close
()
{
this
.
$refs
.
couponPopup
?.
close
()
this
.
$refs
.
couponPopup
?.
close
()
},
},
handleSelect
(
item
,
popkey
)
{
handleSelect
(
item
,
popkey
)
{
console
.
log
(
item
,
popkey
)
console
.
log
(
item
,
popkey
)
this
.
$refs
[
popkey
].
close
();
this
.
$refs
[
popkey
].
close
();
if
(
popkey
==
"employeeBoxVisible"
)
{
if
(
popkey
==
"employeeBoxVisible"
)
{
...
@@ -404,7 +408,7 @@ export default {
...
@@ -404,7 +408,7 @@ export default {
}
}
return
flag
return
flag
},
},
async
createCoupon
()
{
async
createCoupon
()
{
if
(
this
.
pageParams
.
received
)
return
if
(
this
.
pageParams
.
received
)
return
if
(
!
this
.
isCheck
)
return
// 按钮置灰的情况
if
(
!
this
.
isCheck
)
return
// 按钮置灰的情况
try
{
try
{
...
@@ -620,8 +624,8 @@ export default {
...
@@ -620,8 +624,8 @@ export default {
.select-box
{
.select-box
{
margin
:
40
rpx
0
;
margin
:
40
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
50vh
;
max-height
:
50vh
;
padding-bottom
:
60
rpx
;
padding-bottom
:
60
rpx
;
...
...
pages/boutique/index.vue
View file @
61c1261
...
@@ -268,6 +268,7 @@ export default {
...
@@ -268,6 +268,7 @@ export default {
e
.
optionals
?.
map
(
item
=>
{
e
.
optionals
?.
map
(
item
=>
{
item
.
checked
=
false
item
.
checked
=
false
item
.
warranty
=
item
.
warranty
?.
replace
(
/<
\/?
br
\s
*
\/?
>|
\n
/g
,
'<br>'
)
})
})
boutiqueMediaConfig
[
e
.
carModelName
].
optionals
=
e
.
optionals
boutiqueMediaConfig
[
e
.
carModelName
].
optionals
=
e
.
optionals
})
})
...
...
pages/common/components/PackagePopup.vue
View file @
61c1261
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
80
rpx
;
height
:
80
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border
:
3
rpx
solid
#
A8C1FF
;
;
border
:
3
rpx
solid
#
a8c1ff
;
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#333
;
color
:
#333
;
...
@@ -179,8 +179,8 @@ export default {
...
@@ -179,8 +179,8 @@ export default {
.select-box
{
.select-box
{
margin
:
32
rpx
0
;
margin
:
32
rpx
0
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
20
rpx
;
gap
:
32
rpx
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
50vh
;
max-height
:
50vh
;
padding-bottom
:
60
rpx
;
padding-bottom
:
60
rpx
;
...
...
pages/common/customerDetail.vue
View file @
61c1261
...
@@ -61,31 +61,11 @@
...
@@ -61,31 +61,11 @@
<view
<view
class=
"case-item"
class=
"case-item"
:key=
"item.id"
:key=
"item.id"
@
click=
"jumpDetail(item)"
>
>
<image
<case-item
class=
"img"
:item=
"item"
:src=
"item.cover"
:visitsId=
"visitsId"
></image>
/>
<view
class=
"case-info"
>
<view
class=
"case-name text-hide"
>
{{
item
.
title
}}
</view>
<template
v-for=
"(j, ind) in caseInfo"
>
<view
class=
"case-text flex"
:key=
"ind"
>
<view
class=
"case-label"
>
{{
j
.
label
}}
:
</view>
<view
:class=
"['case-value', j.class]"
>
<template
v-if=
"j.format"
>
{{
j
.
format
(
item
)
}}
</
template
>
<
template
v-else
>
{{
item
[
j
.
key
]
||
'--'
}}
</
template
>
</view>
</view>
</template>
</view>
</view>
</view>
</
template
>
</
template
>
</template>
</template>
...
@@ -115,9 +95,11 @@
...
@@ -115,9 +95,11 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
PackagePopup
from
'./components/PackagePopup.vue'
import
PackagePopup
from
'./components/PackagePopup.vue'
import
CaseItem
from
'@/components/HomeFrame/components/CaseItem.vue'
export
default
{
export
default
{
components
:
{
components
:
{
PackagePopup
PackagePopup
,
CaseItem
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -277,28 +259,6 @@ export default {
...
@@ -277,28 +259,6 @@ export default {
animationDuration
:
100
animationDuration
:
100
})
})
},
},
jumpDetail
(
item
)
{
// 类型:0-图片;1-视频;2-pdf;3-富文本
let
url
=
`/pages/common/caseDetail?id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
if
(
item
.
type
!=
3
)
{
let
fileUrl
=
item
?.
detailInfos
[
0
]?.
image
if
(
item
.
type
==
2
)
{
// uni.downloadFile({
// url: fileUrl,
// success (res) {
// var filePath = res.tempFilePath;
// }
// })
// return
url
=
`/pages/common/webview?fileUrl=
${
fileUrl
}
&title=
${
item
.
title
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
}
if
(
item
.
type
==
1
||
item
.
type
==
0
)
url
=
`/pages/boutique/preview?tabName=
${
item
.
title
}
&sourceType=
${
item
.
type
==
1
?
2
:
1
}
&detailUrl=
${
fileUrl
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
}
uni
.
navigateTo
({
url
:
`
${
url
}
`
})
},
pageonReachBottom
()
{
pageonReachBottom
()
{
let
{
currentPage
,
total
,
nothing
,
pageSize
}
=
this
let
{
currentPage
,
total
,
nothing
,
pageSize
}
=
this
if
(
!
nothing
)
nothing
=
'nothing'
if
(
!
nothing
)
nothing
=
'nothing'
...
@@ -463,35 +423,6 @@ export default {
...
@@ -463,35 +423,6 @@ export default {
.case-item
{
.case-item
{
width
:
496
rpx
;
width
:
496
rpx
;
height
:
588
rpx
;
height
:
588
rpx
;
background
:
#ffffff
;
box-shadow
:
0
8
rpx
24
rpx
0
#2c66f71
a
;
border-radius
:
16
rpx
;
display
:
flex
;
flex-direction
:
column
;
overflow
:
hidden
;
.img
{
width
:
100%
;
height
:
324
rpx
;
}
.case-name
{
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#333333
;
line-height
:
48
rpx
;
padding
:
16
rpx
32
rpx
8
rpx
;
}
.case-text
{
align-items
:
flex-start
;
font-size
:
24
rpx
;
color
:
#666666
;
line-height
:
40
rpx
;
padding
:
0
32
rpx
;
margin-bottom
:
2
rpx
;
}
.case-label
{
width
:
120
rpx
;
flex-shrink
:
0
;
}
}
}
}
}
}
}
...
...
uni.scss
View file @
61c1261
...
@@ -80,3 +80,10 @@
...
@@ -80,3 +80,10 @@
padding
:
20rpx
46rpx
!
important
;
padding
:
20rpx
46rpx
!
important
;
}
}
}
}
.select-box
{
.select-item
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
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