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 9c56e6f1
authored
Sep 02, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
799127fe
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
17 deletions
components/CustomerTags.vue
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/RecordList.vue
components/HomeFrame/index.vue
pages/common/caseDetail.vue
pages/common/customerDetail.vue
components/CustomerTags.vue
View file @
9c56e6f
...
@@ -7,9 +7,7 @@
...
@@ -7,9 +7,7 @@
:maxHeight=
"1000"
:maxHeight=
"1000"
@
close=
"$emit('close')"
@
close=
"$emit('close')"
>
>
<view
<view
class=
"select-views"
>
class=
"select-views"
>
<template
v-for=
"(i,index) in list"
>
<template
v-for=
"(i,index) in list"
>
<view
<view
class=
"select-group"
class=
"select-group"
...
@@ -31,7 +29,8 @@
...
@@ -31,7 +29,8 @@
</view>
</view>
</
template
>
</
template
>
<view
class=
"footer-btns flex"
>
</view>
<view
class=
"footer-btns"
>
<view
<view
class=
"btn cancel"
class=
"btn cancel"
@
click=
"close"
@
click=
"close"
...
@@ -41,8 +40,6 @@
...
@@ -41,8 +40,6 @@
@
click=
"choose"
@
click=
"choose"
>
确定
</view>
>
确定
</view>
</view>
</view>
</view>
</MessageBox>
</MessageBox>
</template>
</template>
...
@@ -118,8 +115,9 @@ export default {
...
@@ -118,8 +115,9 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.select-views
{
.select-views
{
overflow-y
:
scroll
;
overflow-y
:
scroll
;
max-height
:
6
0vh
;
max-height
:
5
0vh
;
position
:
relative
;
position
:
relative
;
padding-bottom
:
128
rpx
;
.select-group
{
.select-group
{
margin
:
32
rpx
0
;
margin
:
32
rpx
0
;
.select-title
{
.select-title
{
...
@@ -159,8 +157,9 @@ export default {
...
@@ -159,8 +157,9 @@ export default {
}
}
}
}
}
}
.footer-btns
{
}
position
:
sticky
;
.footer-btns
{
position
:
absolute
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
...
@@ -168,6 +167,7 @@ export default {
...
@@ -168,6 +167,7 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
32
rpx
;
padding-top
:
32
rpx
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
gap
:
0
34
rpx
;
gap
:
0
34
rpx
;
.btn
{
.btn
{
...
@@ -186,6 +186,5 @@ export default {
...
@@ -186,6 +186,5 @@ export default {
background
:
#dae9ff
;
background
:
#dae9ff
;
color
:
#2c66f7
;
color
:
#2c66f7
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
components/HomeFrame/components/CustomerFile.vue
View file @
9c56e6f
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
>
{{
>
{{
{
{
1
:
"成交"
,
1
:
"成交"
,
2
:
"战败"
,
0
:
"战败"
,
}
[
item
.
receptionResult
]
}
[
item
.
receptionResult
]
}}
<
/view
>
}}
<
/view
>
<
view
class
=
"name"
>
<
view
class
=
"name"
>
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
view
<
view
class
=
"info flex"
class
=
"info flex"
:
key
=
"
ind
"
:
key
=
"
`${item.id
}
-${ind
}
`
"
v-if="
showItem
(
k
.
key
)
"
v-if="
showItem
(
k
.
key
)
"
>
>
<view class="
label
"
>
{{
k
.
label
}}
<
/view
>
<view class="
label
"
>
{{
k
.
label
}}
<
/view
>
...
...
components/HomeFrame/components/RecordList.vue
View file @
9c56e6f
...
@@ -412,6 +412,17 @@ export default {
...
@@ -412,6 +412,17 @@ export default {
.
record
-
box
{
.
record
-
box
{
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
height
:
100
%
;
height
:
100
%
;
opacity
:
1
;
position
:
relative
;
animation
:
show
-
box
0.15
s
forwards
;
@
keyframes
show
-
box
{
0
%
{
left
:
100
%
;
}
100
%
{
left
:
0
;
}
}
.
record
-
content
{
.
record
-
content
{
padding
:
96
rpx
0
;
padding
:
96
rpx
0
;
.
data
-
container
{
.
data
-
container
{
...
...
components/HomeFrame/index.vue
View file @
9c56e6f
...
@@ -5,7 +5,12 @@
...
@@ -5,7 +5,12 @@
>
>
<view
:class=
"['home',
{ show: !id }]">
<view
:class=
"['home',
{ show: !id }]">
<home-animation></home-animation>
<home-animation></home-animation>
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<template
v-if=
"tabIndex == 0"
>
<template
v-if=
"tabIndex == 0"
>
<view
class=
"right-content"
>
<view
class=
"right-content"
>
...
@@ -181,6 +186,16 @@ export default {
...
@@ -181,6 +186,16 @@ export default {
padding-top
:
92
rpx
;
padding-top
:
92
rpx
;
height
:
100vh
;
height
:
100vh
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
animation
:
show-box
0.15s
forwards
;
}
@keyframes
show-box
{
0
%
{
left
:
100%
;
}
100
%
{
left
:
0
;
}
}
}
.start
{
.start
{
&-btn
{
&-btn
{
...
...
pages/common/caseDetail.vue
View file @
9c56e6f
...
@@ -179,7 +179,7 @@ export default {
...
@@ -179,7 +179,7 @@ export default {
const
query
=
uni
.
createSelectorQuery
()
const
query
=
uni
.
createSelectorQuery
()
query
.
select
(
`#menu-
${
n
}
`
).
boundingClientRect
((
data
)
=>
{
query
.
select
(
`#menu-
${
n
}
`
).
boundingClientRect
((
data
)
=>
{
let
top
=
data
.
top
-
(
view_padding_top
+
menuHeight
)
+
this
.
menuScrollTop
let
top
=
data
.
top
-
(
view_padding_top
+
menuHeight
)
+
this
.
menuScrollTop
this
.
blockTop
=
`t
op:
${
top
}
px
`
this
.
blockTop
=
`t
ransform:translateY(
${
top
}
px);
`
}).
exec
()
}).
exec
()
}
}
},
},
...
@@ -189,24 +189,35 @@ export default {
...
@@ -189,24 +189,35 @@ export default {
},
},
methods
:
{
methods
:
{
async
getMaterialDetail
(
id
)
{
async
getMaterialDetail
(
id
)
{
try
{
uni
.
showLoading
({
mask
:
true
})
const
res
=
await
uni
.
$api
.
customerApi
.
getMaterialDetail
({
const
res
=
await
uni
.
$api
.
customerApi
.
getMaterialDetail
({
id
id
})
})
let
detailInfo
=
[]
let
detailInfo
=
[]
this
.
caseObject
=
res
this
.
caseObject
=
res
res
.
richTextInfoList
?.
map
(
e
=>
{
res
.
richTextInfoList
?.
map
(
e
=>
{
e
.
content
=
this
.
highlightText
(
e
.
content
)
if
(
e
.
content
)
e
.
content
=
this
.
highlightText
(
e
.
content
)
if
(
e
.
level
==
1
)
detailInfo
.
push
({
if
(
e
.
level
==
1
)
detailInfo
.
push
({
...
e
,
...
e
,
children
:
[]
children
:
[]
})
})
})
res
.
richTextInfoList
?.
map
(
e
=>
{
if
(
e
.
level
==
2
)
{
if
(
e
.
level
==
2
)
{
let
index
=
detailInfo
.
findIndex
(
item
=>
item
.
id
==
e
.
parentId
)
let
index
=
detailInfo
.
findIndex
(
item
=>
item
.
id
==
e
.
parentId
)
detailInfo
[
index
].
children
.
push
(
e
)
if
(
index
>
-
1
)
detailInfo
[
index
].
children
.
push
(
e
)
}
}
})
})
this
.
detailInfo
=
detailInfo
this
.
detailInfo
=
detailInfo
this
.
$nextTick
(()
=>
this
.
initScrollListTop
())
this
.
$nextTick
(()
=>
this
.
initScrollListTop
())
uni
.
hideLoading
()
}
catch
(
error
)
{
uni
.
hideLoading
()
console
.
log
(
error
)
}
},
},
highlightText
(
text
)
{
highlightText
(
text
)
{
text
=
text
.
replace
(
/<
\/?
br
\s
*
\/?
>|
\n
/g
,
'<div></div>'
)
text
=
text
.
replace
(
/<
\/?
br
\s
*
\/?
>|
\n
/g
,
'<div></div>'
)
...
...
pages/common/customerDetail.vue
View file @
9c56e6f
...
@@ -259,7 +259,6 @@ export default {
...
@@ -259,7 +259,6 @@ export default {
})
})
},
},
jumpDetail
(
item
)
{
jumpDetail
(
item
)
{
console
.
log
(
item
.
type
)
// 类型:0-图片;1-视频;2-pdf;3-富文本
// 类型:0-图片;1-视频;2-pdf;3-富文本
let
url
=
`/pages/common/caseDetail?id=
${
item
.
id
}
`
let
url
=
`/pages/common/caseDetail?id=
${
item
.
id
}
`
if
(
item
.
type
!=
3
)
{
if
(
item
.
type
!=
3
)
{
...
@@ -395,6 +394,9 @@ export default {
...
@@ -395,6 +394,9 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0
8
rpx
24
rpx
0
#2c66f71
a
;
box-shadow
:
0
8
rpx
24
rpx
0
#2c66f71
a
;
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
display
:
flex
;
flex-direction
:
column
;
overflow
:
hidden
;
.img
{
.img
{
width
:
100%
;
width
:
100%
;
height
:
324
rpx
;
height
:
324
rpx
;
...
...
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