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