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 542dc46f
authored
Aug 30, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
b04dc71a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
338 additions
and
116 deletions
api/module/customerApi.js
assets/css/sprite.scss
assets/images/common/nothing.webp
assets/images/sprite.png
components/CustomerAutocomplete.vue
components/HomeFrame/components/CustomerInfo.vue
components/Insurance/Insurance.vue
pages/common/caseDetail.vue
pages/common/components/AudioComponent.vue
pages/common/customerDetail.vue
pages/common/webview.vue
api/module/customerApi.js
View file @
542dc46
...
@@ -90,4 +90,12 @@ module.exports = {
...
@@ -90,4 +90,12 @@ module.exports = {
...
data
,
...
data
,
});
});
},
},
/**素材详情 查询素材详情 */
getMaterialDetail
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customervisits.getMaterialById'
,
projectName
:
"boutique"
,
...
data
,
});
},
}
}
\ No newline at end of file
\ No newline at end of file
assets/css/sprite.scss
View file @
542dc46
...
@@ -39,8 +39,10 @@
...
@@ -39,8 +39,10 @@
.icon-mask-del
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-95rpx
-964rpx
;}
.icon-mask-del
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-95rpx
-964rpx
;}
.icon-mask-edit
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-190rpx
-964rpx
;}
.icon-mask-edit
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-190rpx
-964rpx
;}
.icon-no-insurance-data
{
width
:
488rpx
;
height
:
296rpx
;
background-position
:
0rpx
-415rpx
;}
.icon-no-insurance-data
{
width
:
488rpx
;
height
:
296rpx
;
background-position
:
0rpx
-415rpx
;}
.icon-pause
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-940rpx
-668rpx
;}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-646rpx
-415rpx
;}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-646rpx
-415rpx
;}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-503rpx
-558rpx
;}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-503rpx
-558rpx
;}
.icon-play
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-995rpx
-668rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-1190rpx
-726rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-1190rpx
-726rpx
;}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-765rpx
-558rpx
;}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-765rpx
-558rpx
;}
.icon-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-381rpx
-726rpx
;}
.icon-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-381rpx
-726rpx
;}
...
@@ -48,7 +50,7 @@
...
@@ -48,7 +50,7 @@
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-617rpx
-853rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-617rpx
-853rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-853rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-853rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-853rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-853rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-
94
0rpx
-668rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-
105
0rpx
-668rpx
;}
.icon-second-nav
{
width
:
480rpx
;
height
:
176rpx
;
background-position
:
-830rpx
0rpx
;}
.icon-second-nav
{
width
:
480rpx
;
height
:
176rpx
;
background-position
:
-830rpx
0rpx
;}
.icon-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-372rpx
-964rpx
;}
.icon-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-372rpx
-964rpx
;}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-853rpx
;}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-853rpx
;}
...
@@ -57,6 +59,4 @@
...
@@ -57,6 +59,4 @@
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-526rpx
-964rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-526rpx
-964rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-601rpx
-964rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-601rpx
-964rpx
;}
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-664rpx
-853rpx
;}
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-664rpx
-853rpx
;}
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-995rpx
-668rpx
;}
.icon-play
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1050rpx
-668rpx
;}
.icon-pause
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1105rpx
-668rpx
;}
\ No newline at end of file
\ No newline at end of file
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1105rpx
-668rpx
;}
\ No newline at end of file
\ No newline at end of file
assets/images/common/nothing.webp
0 → 100644
View file @
542dc46
No preview for this file type
assets/images/sprite.png
View file @
542dc46
1.19 MB
|
W:
|
H:
1.19 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/CustomerAutocomplete.vue
View file @
542dc46
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
<
/template
>
<
/template
>
<
/template
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
<
view
class
=
"loading flex"
>
<
view
class
=
"nothing flex"
>
暂无
<
view
class
=
"icon"
><
/view
>
未匹配到客户信息
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
/template
>
<
/template
>
...
@@ -98,13 +99,13 @@ export default {
...
@@ -98,13 +99,13 @@ export default {
left
:
0
;
left
:
0
;
top
:
88
rpx
;
top
:
88
rpx
;
width
:
100
%
;
width
:
100
%
;
height
:
236
rpx
;
height
:
352
rpx
;
background
:
#
ffffff
;
background
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
opacity
:
0
;
z
-
index
:
-
1
;
z
-
index
:
-
1
;
opacity
:
0
;
.
customer
-
title
{
.
customer
-
title
{
font
-
size
:
2
8
rpx
;
font
-
size
:
2
4
rpx
;
color
:
#
999999
;
color
:
#
999999
;
line
-
height
:
40
rpx
;
line
-
height
:
40
rpx
;
padding
:
16
rpx
24
rpx
8
rpx
;
padding
:
16
rpx
24
rpx
8
rpx
;
...
@@ -115,11 +116,25 @@ export default {
...
@@ -115,11 +116,25 @@ export default {
width
:
100
%
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
justify
-
content
:
center
;
justify
-
content
:
center
;
color
:
#
999999
;
.
icon
{
.
icon
{
animation
:
rotate
-
loading
1
s
linear
infinite
;
animation
:
rotate
-
loading
1
s
linear
infinite
;
}
}
}
}
.
nothing
{
width
:
100
%
;
height
:
100
%
;
font
-
size
:
24
rpx
;
color
:
#
c7ccd7
;
flex
-
direction
:
column
;
.
icon
{
margin
-
top
:
52
rpx
;
width
:
96
rpx
;
height
:
96
rpx
;
background
-
image
:
url
(
'@/assets/images/common/nothing.webp'
);
background
-
size
:
100
%
;
}
}
.
item
{
.
item
{
width
:
100
%
;
width
:
100
%
;
height
:
48
rpx
;
height
:
48
rpx
;
...
@@ -143,7 +158,7 @@ export default {
...
@@ -143,7 +158,7 @@ export default {
}
}
}
}
.
is
-
show
{
.
is
-
show
{
z
-
index
:
1
;
opacity
:
1
;
opacity
:
1
;
z
-
index
:
2
;
}
}
<
/style>
<
/style>
\ No newline at end of file
\ No newline at end of file
components/HomeFrame/components/CustomerInfo.vue
View file @
542dc46
...
@@ -290,11 +290,11 @@ export default {
...
@@ -290,11 +290,11 @@ export default {
e
.
error
=
false
e
.
error
=
false
})
})
let
{
customerInfo
,
customerForm
,
customerTag
}
=
this
,
let
{
customerInfo
,
customerForm
,
customerTag
}
=
this
,
{
shopMerchantId
,
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
,
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
),
targetApi
=
customerInfo
.
id
?
'updateVisitsInfo'
:
'saveVisitsInfo'
,
targetApi
=
customerInfo
.
id
?
'updateVisitsInfo'
:
'saveVisitsInfo'
,
params
=
{
params
=
{
customerTag
,
customerTag
,
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
bussinessScene
:
sceneType
==
0
?
1
:
2
// 1.延保 2.轻改
bussinessScene
:
sceneType
==
0
?
1
:
2
// 1.延保 2.轻改
}
}
if
(
!
phoneRex
.
test
(
customerInfo
.
ownerPhone
))
throw
'ownerPhone'
if
(
!
phoneRex
.
test
(
customerInfo
.
ownerPhone
))
throw
'ownerPhone'
...
@@ -303,14 +303,29 @@ export default {
...
@@ -303,14 +303,29 @@ export default {
})
})
if
(
customerInfo
.
id
)
params
.
id
=
customerInfo
.
id
if
(
customerInfo
.
id
)
params
.
id
=
customerInfo
.
id
params
.
customerTagName
=
params
.
customerTagName
.
replace
(
/|/g
,
','
)
params
.
customerTagName
=
params
.
customerTagName
.
replace
(
/|/g
,
','
)
const
res
=
await
uni
.
$api
.
customerApi
[
targetApi
](
params
)
const
res
=
await
uni
.
$api
.
customerApi
[
targetApi
](
params
),
_this
=
this
if
(
res
)
{
if
(
res
)
{
this
.
$refs
.
successRef
.
open
()
if
(
res
==
'1'
)
{
setTimeout
(()
=>
{
this
.
$refs
.
successRef
.
open
()
this
.
back
()
setTimeout
(()
=>
{
this
.
$emit
(
'refresh'
)
this
.
back
()
},
1
e3
)
this
.
$emit
(
'refresh'
)
},
1
e3
)
}
else
uni
.
showModal
({
content
:
'存在与该手机号相同的接待记录,系统将自动归类到已接待'
,
showCancel
:
false
,
confirmText
:
'确认'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
_this
.
back
()
_this
.
$emit
(
'refresh'
)
}
}
})
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
let
index
=
this
.
customerForm
.
findIndex
(
e
=>
e
.
key
==
error
)
let
index
=
this
.
customerForm
.
findIndex
(
e
=>
e
.
key
==
error
)
this
.
customerForm
[
index
].
error
=
true
this
.
customerForm
[
index
].
error
=
true
...
...
components/Insurance/Insurance.vue
View file @
542dc46
...
@@ -35,6 +35,12 @@
...
@@ -35,6 +35,12 @@
@
blur=
"resetFocusIndex"
@
blur=
"resetFocusIndex"
:data-key=
"i.key"
:data-key=
"i.key"
/>
/>
<customer-autocomplete
:showType=
"i.inputType"
:searchValue=
"customerInfo[i.key]"
:show=
"focusIndex == index"
@
choose=
"chooseCustomer"
/>
<template
v-if=
"i.unit"
>
<template
v-if=
"i.unit"
>
<view
class=
"unit"
>
{{
i
.
unit
}}
</view>
<view
class=
"unit"
>
{{
i
.
unit
}}
</view>
</
template
>
</
template
>
...
@@ -75,8 +81,9 @@
...
@@ -75,8 +81,9 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
CarBrands
from
'@/components/CarBrands.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
InsuranceTable
from
'./components/InsuranceTable.vue'
import
InsuranceTable
from
'./components/InsuranceTable.vue'
import
CustomerAutocomplete
from
'@/components/CustomerAutocomplete.vue'
export
default
{
export
default
{
components
:
{
CarBrands
,
InsuranceTable
},
components
:
{
CarBrands
,
InsuranceTable
,
CustomerAutocomplete
},
props
:
{
props
:
{
penSwitch
:
Boolean
,
penSwitch
:
Boolean
,
show
:
Boolean
,
show
:
Boolean
,
...
@@ -178,6 +185,15 @@ export default {
...
@@ -178,6 +185,15 @@ export default {
}
}
}
}
},
},
chooseCustomer
(
e
)
{
this
.
customerInfo
=
{
...
this
.
customerInfo
,
phoneNumber
:
e
.
ownerPhone
,
customerName
:
e
.
ownerName
,
carModel
:
e
.
brandModel
}
this
.
inputCustomer
()
}
}
}
}
}
</
script
>
</
script
>
...
...
pages/common/caseDetail.vue
View file @
542dc46
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
color=
"#000"
color=
"#000"
></uni-icons>
></uni-icons>
</view>
</view>
家庭车主的延保套餐营销案
{{
caseObject
.
title
}}
</view>
</view>
<view
class=
"case-content"
>
<view
class=
"case-content"
>
<view
class=
"left-menu"
>
<view
class=
"left-menu"
>
...
@@ -87,7 +87,11 @@
...
@@ -87,7 +87,11 @@
:id=
"`case-$
{item.id}`"
:id=
"`case-$
{item.id}`"
>
{{
item
.
headings
}}
</view>
>
{{
item
.
headings
}}
</view>
<template
v-if=
"item.audio"
>
<template
v-if=
"item.audio"
>
<audio-component
:src=
"item.audio"
/>
<audio-component
:src=
"item.audio"
@
onPlay=
"onPlay(item.id)"
:ref=
"`audio-$
{item.id}`"
/>
</
template
>
</
template
>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<rich-text
:nodes=
"item.content"
></rich-text>
<rich-text
:nodes=
"item.content"
></rich-text>
...
@@ -97,7 +101,8 @@
...
@@ -97,7 +101,8 @@
:key=
"`img-$
{index}-${ind}`"
:key=
"`img-$
{index}-${ind}`"
:src="i"
:src="i"
class="item-img"
class="item-img"
mode="aspectFit"
mode="widthFix"
@load="imgLoad"
>
</image>
>
</image>
</
template
>
</
template
>
<
template
v-if=
"item.children && item.children.length"
>
<
template
v-if=
"item.children && item.children.length"
>
...
@@ -111,7 +116,11 @@
...
@@ -111,7 +116,11 @@
:id=
"`case-$
{i.id}`"
:id=
"`case-$
{i.id}`"
>
{{
i
.
headings
}}
</view>
>
{{
i
.
headings
}}
</view>
<template
v-if=
"i.audio"
>
<template
v-if=
"i.audio"
>
<audio-component
:src=
"i.audio"
/>
<audio-component
:src=
"i.audio"
@
onPlay=
"onPlay(i.id)"
:ref=
"`audio-$
{i.id}`"
/>
</
template
>
</
template
>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<rich-text
:nodes=
"i.content"
></rich-text>
<rich-text
:nodes=
"i.content"
></rich-text>
...
@@ -121,7 +130,8 @@
...
@@ -121,7 +130,8 @@
:key=
"k"
:key=
"k"
:src=
"c"
:src=
"c"
class=
"item-img"
class=
"item-img"
mode=
"aspectFit"
mode=
"widthFix"
@
load=
"imgLoad"
></image>
></image>
</
template
>
</
template
>
</view>
</view>
...
@@ -154,31 +164,34 @@ export default {
...
@@ -154,31 +164,34 @@ export default {
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17248148280491724813557101.mp3'
,
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17248148280491724813557101.mp3'
,
pictureList
:
[
pictureList
:
[
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
,
'https://img01.glsx.com.cn/group1/M00/3B/E6/wKgFDWbDXvWARW83AAB7oRJhZUc138.jpg'
],
],
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
2C66F7
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
FF8D1A;font-weight:500
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
children
:
[{
children
:
[{
headings
:
'子方案一'
,
headings
:
'子方案一'
,
id
:
'1-1'
,
id
:
'1-1'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
2C66F7
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
FF8D1A;font-weight:500
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
},
{
},
{
headings
:
'子方案二'
,
headings
:
'子方案二'
,
id
:
'1-2'
,
id
:
'1-2'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
2C66F7
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
FF8D1A;font-weight:500
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
},
{
},
{
headings
:
'子方案三'
,
headings
:
'子方案三'
,
id
:
'1-3'
,
id
:
'1-3'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
2C66F7
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
content
:
'在佳士得纽约拍场,今年81岁的<span style="color:#
FF8D1A;font-weight:500
;">英国艺术家大卫·霍克尼</span>作品《艺术家肖像(泳池及两个人像)》以9031万美元成交,大卫·霍克尼也摘取“最贵在世艺术家”桂冠,刷新此前由美国人杰夫·昆斯于2013年创造的5840.5万美元最高纪录。'
,
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17248124922141724811525712.mp3'
,
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17248124922141724811525712.mp3'
,
pictureList
:
[
pictureList
:
[
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
,
'https://pic4.zhimg.com/80/v2-2a6bb9b3a75656ff434088c068dabd7d_720w.webp'
],
],
}]
}]
},
{
},
{
headings
:
'方案二'
,
headings
:
'方案二'
,
id
:
'2'
,
id
:
'2'
,
pictureList
:
[
pictureList
:
[
'//scpic.chinaz.net/files/pic/pic9/201812/zzpic15923.jpg'
,
'https://img01.glsx.com.cn/group1/M00/06/EC/wKgFDWSIBjOASwLVAABQyCJjFQk535.png'
,
'https://img01.glsx.com.cn/group1/M00/06/EC/wKgFDWSIBjOASwLVAABQyCJjFQk535.png'
,
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
'https://img01.glsx.com.cn/group1/M00/38/47/wKgFDWaNTJuATZlWAABQMoxXsQU219.jpg'
],
],
...
@@ -188,7 +201,8 @@ export default {
...
@@ -188,7 +201,8 @@ export default {
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172474678798417247418500824.mp3'
,
audio
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172474678798417247418500824.mp3'
,
pictureList
:
[
pictureList
:
[
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/3C/3A/wKgFDWbNdg6AEPfBAAYdDoM6Ysw343.jpg'
,
'https://img01.glsx.com.cn/group1/M00/3B/E6/wKgFDWbDXomAadw2AAB-pGTMW-A904.jpg'
'https://img01.glsx.com.cn/group1/M00/3B/E6/wKgFDWbDXomAadw2AAB-pGTMW-A904.jpg'
,
'https://pic4.zhimg.com/80/v2-2ea62b9f9a222efac64e71514da7c395_720w.webp'
],
],
},
{
},
{
headings
:
'方案四'
,
headings
:
'方案四'
,
...
@@ -259,15 +273,14 @@ export default {
...
@@ -259,15 +273,14 @@ export default {
menuScrollTop
:
0
,
menuScrollTop
:
0
,
topList
:
[],
topList
:
[],
itemList
:
[],
itemList
:
[],
contentId
:
''
contentId
:
''
,
caseObject
:{
}
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
const
query
=
uni
.
createSelectorQuery
()
this
.
getMaterialDetail
(
options
.
id
)
console
.
log
(
options
)
setTimeout
(()
=>
{
this
.
initScrollListTop
()
},
1
e3
)
},
},
watch
:
{
watch
:
{
currentId
(
n
)
{
currentId
(
n
)
{
...
@@ -284,6 +297,20 @@ export default {
...
@@ -284,6 +297,20 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
async
getMaterialDetail
(
id
)
{
const
res
=
await
uni
.
$api
.
customerApi
.
getMaterialDetail
({
id
})
this
.
caseObject
=
res
console
.
log
(
res
)
},
back
()
{
uni
.
navigateBack
({
delta
:
1
,
animationType
:
'pop-out'
,
animationDuration
:
100
})
},
initScrollListTop
()
{
initScrollListTop
()
{
let
{
detailInfo
}
=
this
,
let
{
detailInfo
}
=
this
,
topList
=
[],
topList
=
[],
...
@@ -308,7 +335,7 @@ export default {
...
@@ -308,7 +335,7 @@ export default {
})
})
this
.
topList
=
topList
this
.
topList
=
topList
this
.
itemList
=
itemList
this
.
itemList
=
itemList
this
.
currentId
=
detailInfo
[
0
].
id
if
(
!
this
.
currentId
)
this
.
currentId
=
detailInfo
[
0
].
id
},
},
isLast
(
index
,
ind
,
children
)
{
isLast
(
index
,
ind
,
children
)
{
let
result
=
false
let
result
=
false
...
@@ -339,6 +366,16 @@ export default {
...
@@ -339,6 +366,16 @@ export default {
menuClick
(
item
)
{
menuClick
(
item
)
{
this
.
currentId
=
item
.
id
this
.
currentId
=
item
.
id
this
.
contentId
=
item
.
id
this
.
contentId
=
item
.
id
},
onPlay
(
id
)
{
console
.
log
(
id
)
Object
.
keys
(
this
.
$refs
).
map
(
key
=>
{
this
.
$refs
[
key
][
0
]?.
innerAudioContext
?.
pause
()
})
this
.
$refs
[
`audio-
${
id
}
`
][
0
]?.
innerAudioContext
?.
play
()
},
imgLoad
()
{
this
.
initScrollListTop
()
}
}
}
}
}
}
...
@@ -496,6 +533,7 @@ export default {
...
@@ -496,6 +533,7 @@ export default {
font-size
:
28
rpx
;
font-size
:
28
rpx
;
line-height
:
44
rpx
;
line-height
:
44
rpx
;
margin-bottom
:
24
rpx
;
margin-bottom
:
24
rpx
;
word-wrap
:
break-word
;
}
}
.item-img
{
.item-img
{
display
:
block
;
display
:
block
;
...
...
pages/common/components/AudioComponent.vue
View file @
542dc46
...
@@ -4,7 +4,28 @@
...
@@ -4,7 +4,28 @@
:class=
"['sprite-icon',`$
{paused? 'icon-play' : 'icon-pause'}`]"
:class=
"['sprite-icon',`$
{paused? 'icon-play' : 'icon-pause'}`]"
@click="play"
@click="play"
>
</view>
>
</view>
<view
class=
"line"
></view>
<slider
@
change=
"sliderChange"
backgroundColor=
"#D8D8D8"
block-color=
"#2C66F7"
block-size=
"5"
class=
"progress-box"
:max=
"innerAudioContext.duration||10"
:value=
"innerAudioContext.currentTime||0"
/>
<!--
<view
class=
"progress-box"
@
click=
"seek"
>
<view
class=
"progress-line"
:style=
"`width:$
{progress}%`"
>
</view>
<view
class=
"progress-btn"
:style=
"`left:$
{progress}%`"
>
</view>
</view>
-->
<view
class=
"duration"
>
{{
currentTime
}}
/
{{
duration
}}
</view>
<view
class=
"duration"
>
{{
currentTime
}}
/
{{
duration
}}
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -13,13 +34,16 @@
...
@@ -13,13 +34,16 @@
export
default
{
export
default
{
name
:
'AudioComponent'
,
name
:
'AudioComponent'
,
props
:
{
props
:
{
src
:
String
src
:
String
,
auto
:
Boolean
},
},
data
()
{
data
()
{
return
{
return
{
innerAudioContext
:
null
,
innerAudioContext
:
null
,
currentTime
:
'00:00'
,
currentTime
:
'00:00'
,
duration
:
'00:00'
duration
:
'00:00'
,
paused
:
true
,
progress
:
''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -31,9 +55,6 @@ export default {
...
@@ -31,9 +55,6 @@ export default {
},
},
},
},
computed
:
{
computed
:
{
paused
()
{
return
this
.
innerAudioContext
?.
paused
// 当前是是否暂停或停止状态,true 表示暂停或停止,false 表示正在播放
}
},
},
mounted
()
{
mounted
()
{
},
},
...
@@ -41,13 +62,26 @@ export default {
...
@@ -41,13 +62,26 @@ export default {
init
(
src
)
{
init
(
src
)
{
const
innerAudioContext
=
uni
.
createInnerAudioContext
();
const
innerAudioContext
=
uni
.
createInnerAudioContext
();
innerAudioContext
.
src
=
src
innerAudioContext
.
src
=
src
innerAudioContext
.
sessionCategory
=
'soloAmbient'
innerAudioContext
.
onCanplay
(
this
.
onCanplay
)
innerAudioContext
.
onCanplay
(
this
.
onCanplay
)
innerAudioContext
.
onPlay
(()
=>
this
.
paused
=
false
)
innerAudioContext
.
onPause
(()
=>
this
.
paused
=
true
)
innerAudioContext
.
onTimeUpdate
(
this
.
onTimeUpdate
)
this
.
innerAudioContext
=
innerAudioContext
this
.
innerAudioContext
=
innerAudioContext
},
},
onCanplay
()
{
onCanplay
()
{
this
.
duration
=
this
.
formatTime
(
this
.
innerAudioContext
.
duration
)
this
.
duration
=
this
.
formatTime
(
this
.
innerAudioContext
.
duration
)
},
},
onTimeUpdate
()
{
const
{
duration
,
currentTime
}
=
this
.
innerAudioContext
,
mergedOffset
=
Math
.
ceil
(
currentTime
)
this
.
progress
=
mergedOffset
/
duration
*
100
this
.
currentTime
=
this
.
formatTime
(
currentTime
)
},
formatTime
(
num
)
{
formatTime
(
num
)
{
num
=
Math
.
floor
(
num
);
num
=
Math
.
floor
(
num
);
let
minutes
=
Math
.
floor
(
num
/
60
)
||
'0'
,
let
minutes
=
Math
.
floor
(
num
/
60
)
||
'0'
,
...
@@ -56,10 +90,22 @@ export default {
...
@@ -56,10 +90,22 @@ export default {
return
`
${
minutes
}
:
${
seconds
}
`
return
`
${
minutes
}
:
${
seconds
}
`
},
},
play
()
{
play
()
{
const
{
if
(
this
.
paused
)
{
paused
if
(
this
.
auto
)
this
.
innerAudioContext
.
play
()
}
=
this
this
.
$emit
(
'onPlay'
)
if
(
paused
)
this
.
innerAudioContext
.
play
()
}
else
this
.
innerAudioContext
.
pause
()
},
seek
(
e
)
{
let
query
=
uni
.
createSelectorQuery
()
query
.
select
(
'.progress-box'
).
boundingClientRect
(
data
=>
{
const
seconds
=
(
e
.
changedTouches
[
0
].
clientX
-
data
.
left
)
/
data
.
width
*
this
.
innerAudioContext
.
duration
this
.
innerAudioContext
.
seek
(
seconds
)
}).
exec
()
},
sliderChange
(
e
)
{
this
.
innerAudioContext
.
seek
(
e
.
detail
.
value
)
}
}
}
}
}
}
...
@@ -79,12 +125,50 @@ export default {
...
@@ -79,12 +125,50 @@ export default {
.sprite-icon
{
.sprite-icon
{
margin-right
:
16
rpx
;
margin-right
:
16
rpx
;
}
}
.
line
{
.
progress-box
{
width
:
796
rpx
;
width
:
796
rpx
;
height
:
6
rpx
;
margin
:
0
!important
;
background
:
#d8d8d8
;
//
height
:
6
rpx
;
border-radius
:
4
rpx
;
//
background
:
#d8d8d8
;
position
:
relative
;
//
border-radius
:
4
rpx
;
//
position
:
relative
;
//
.progress-line
{
//
position
:
absolute
;
//
top
:
0
;
//
left
:
0
;
//
height
:
100%
;
//
background-image
:
linear-gradient
(
90deg
,
#2c66f7
0%
,
#75bcff
100%
);
//
border-radius
:
4
rpx
;
//
}
//
.progress-btn
{
//
position
:
absolute
;
//
top
:
50%
;
//
left
:
0
;
//
width
:
14
rpx
;
//
height
:
14
rpx
;
//
background
:
#2c66f7
;
//
border
:
2
rpx
solid
#f4f4f4
;
//
transform
:
translateY
(
-50%
);
//
border-radius
:
100%
;
//
}
/
deep
/
.uni-slider-track
{
background-image
:
linear-gradient
(
90deg
,
#2c66f7
0%
,
#75bcff
100%
);
}
/
deep
/
.uni-slider-thumb
{
&::after
{
width
:
14
rpx
;
height
:
14
rpx
;
border
:
2
rpx
solid
#f4f4f4
;
content
:
''
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
border-radius
:
100%
;
box-sizing
:
border-box
;
}
//
border
:
2rpx
solid
#fff
;
}
}
}
.duration
{
.duration
{
margin-left
:
auto
;
margin-left
:
auto
;
...
...
pages/common/customerDetail.vue
View file @
542dc46
...
@@ -30,52 +30,65 @@
...
@@ -30,52 +30,65 @@
</view>
</view>
<view
class=
"case-box box"
>
<view
class=
"case-box box"
>
<view
class=
"title flex"
>
<view
class=
"title flex"
>
营销话术方案
推荐套餐
</view>
</view>
<view
class=
"case-list"
>
<scroll-view
<
template
v-if=
"flag"
>
class=
"case-scroll-box"
<template
v-if=
"list.length && list[0] && list[0].length"
>
scroll-y
<template
v-for=
"i in list"
>
@
scrolltolower=
"pageonReachBottom"
<template
v-for=
"(item,cindex) in i"
>
>
<view
<view
class=
"case-list"
>
class=
"case-item"
<
template
v-if=
"flag"
>
:key=
"cindex"
<template
v-if=
"list.length && list[0] && list[0].length"
>
@
click=
"jumpDetail(item)"
<template
v-for=
"i in list"
>
>
<template
v-for=
"item in i"
>
<image
<view
class=
"img"
class=
"case-item"
src=
"http://192.168.3.233:8090/uploads/user/avatar/25/avatar.png"
:key=
"item.id"
></image>
@
click=
"jumpDetail(item)"
<view
class=
"case-info"
>
>
<view
class=
"case-name text-hide"
>
家庭车主的延保套餐营销案
</view>
<image
<template
v-for=
"(j,ind) in caseInfo"
>
class=
"img"
<view
:src=
"item.cover || ''"
class=
"case-text flex"
></image>
:key=
"ind"
<view
class=
"case-info"
>
>
<view
class=
"case-name text-hide"
>
{{
item
.
title
}}
</view>
<view
class=
"case-label"
>
{{
j
.
label
}}
:
</view>
<template
v-for=
"(j,ind) in caseInfo"
>
<view
:class=
"['case-value',j.class]"
>
M5原厂延保MAX套餐(4年)、M7原厂延保MAX套餐(4年)
</view>
<view
</view>
class=
"case-text flex"
</
template
>
: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>
</
view
>
</
template
>
</template>
</template>
</template>
</template>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"@/assets/images/home/nothing.webp"
/>
暂无推荐套餐
</view>
</
template
>
</template>
</template>
<
template
v-else
>
<
template
v-if=
"nothing"
>
<view
class=
"nothing flex"
>
<view
class=
"end-text"
>
到底了!
</view>
<image
class=
"icon"
src=
"@/assets/images/home/nothing.webp"
/>
暂无营销话术方案
</view>
</
template
>
</
template
>
</template>
</view>
<
template
v-if=
"nothing"
>
</scroll-view>
<view
class=
"end-text"
>
到底了!
</view>
</
template
>
</view>
</view>
</view>
<!-- <package-popup
<!-- <package-popup
...
@@ -122,17 +135,26 @@ export default {
...
@@ -122,17 +135,26 @@ export default {
caseInfo
:
[
caseInfo
:
[
{
{
label
:
'业务场景'
,
label
:
'业务场景'
,
key
:
'ownerPhone'
,
class
:
'text-hide'
,
class
:
'text-hide'
format
:
(
val
)
=>
{
// 业务场景:0-会员权益/升级;1-精品升级;2-次新车转化;3-售后众筹;4-积分商城
return
val
?
{
0
:
'会员权益/升级'
,
1
:
'精品升级'
,
2
:
'次新车转化'
,
3
:
'售后众筹'
,
4
:
'积分商城'
}[
val
.
scene
]
:
'--'
}
},
},
{
{
label
:
'客户
类型
'
,
label
:
'客户
标签
'
,
key
:
'
brandModel
'
,
key
:
'
tags
'
,
class
:
'text-hide'
class
:
'text-hide'
},
},
{
{
label
:
'适用套餐'
,
label
:
'适用套餐'
,
key
:
'
receptionSceneName
'
,
key
:
'
goods
'
,
class
:
'text-two-line'
class
:
'text-two-line'
},
},
],
],
...
@@ -206,9 +228,22 @@ export default {
...
@@ -206,9 +228,22 @@ export default {
console
.
log
(
params
)
console
.
log
(
params
)
const
{
list
,
total
}
=
await
uni
.
$api
.
customerApi
.
getMaterialResponsePage
(
params
)
const
{
list
,
total
}
=
await
uni
.
$api
.
customerApi
.
getMaterialResponsePage
(
params
)
uni
.
hideLoading
()
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
(
'、'
)
})
this
.
list
[
currentPage
-
1
]
=
list
this
.
list
[
currentPage
-
1
]
=
list
this
.
flag
=
true
this
.
flag
=
true
this
.
total
=
total
this
.
total
=
total
this
.
$forceUpdate
()
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
error
)
console
.
log
(
error
)
...
@@ -223,8 +258,16 @@ export default {
...
@@ -223,8 +258,16 @@ export default {
})
})
},
},
jumpDetail
(
item
)
{
jumpDetail
(
item
)
{
console
.
log
(
item
.
type
)
// 类型:0-图片;1-视频;2-pdf;3-富文本
let
url
=
`/pages/common/caseDetail?id=
${
item
.
id
}
`
if
(
item
.
type
!=
3
)
{
let
fileUrl
=
item
?.
detailInfos
[
0
]?.
image
if
(
item
.
type
==
2
)
url
=
`/pages/common/webview?url=
${
fileUrl
}
&title=
${
item
.
title
}
`
if
(
item
.
type
==
1
||
item
.
type
==
0
)
url
=
`/pages/boutique/preview?tabName=
${
item
.
title
}
&sourceType=
${
item
.
type
==
1
?
2
:
1
}
&detailUrl=
${
fileUrl
}
`
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`
/pages/common/caseDetail?
`
url
:
`
${
url
}
`
})
})
},
},
pageonReachBottom
()
{
pageonReachBottom
()
{
...
@@ -337,12 +380,13 @@ export default {
...
@@ -337,12 +380,13 @@ export default {
.case-box
{
.case-box
{
height
:
1004
rpx
;
height
:
1004
rpx
;
padding
:
0
!important
;
padding
:
0
!important
;
.case-scroll-box
{
height
:
calc
(
100%
-
104
rpx
);
}
.case-list
{
.case-list
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
32
rpx
46
rpx
;
gap
:
32
rpx
46
rpx
;
height
:
calc
(
100%
-
104
rpx
);
overflow-y
:
auto
;
padding
:
0
48
rpx
;
padding
:
0
48
rpx
;
.case-item
{
.case-item
{
width
:
496
rpx
;
width
:
496
rpx
;
...
...
pages/common/webview.vue
View file @
542dc46
...
@@ -3,23 +3,25 @@
...
@@ -3,23 +3,25 @@
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
url
:
''
url
:
''
}
},
onLoad
(
options
){
this
.
url
=
options
.
url
},
mounted
()
{
},
methods
:
{
}
}
},
onLoad
(
options
)
{
this
.
url
=
options
.
url
if
(
options
.
title
)
uni
.
setNavigationBarTitle
({
title
:
options
.
title
})
},
mounted
()
{
},
methods
:
{
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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