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 47080697
authored
Dec 31, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 修改样式
1 parent
f6e02a3a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
33 deletions
components/HomeFrame/components/CaseItem.vue
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/CustomerInfo.vue
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/RecordList.vue
components/HomeFrame/index.vue
pages/common/caseDetail.vue
components/HomeFrame/components/CaseItem.vue
View file @
4708069
<
template
>
<
template
>
<view
<view
class=
"case-item"
class=
"case-item
-component
"
@
click=
"jumpDetail(item)"
@
click=
"jumpDetail(item)"
>
>
<image
<image
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.case-item
{
.case-item
-component
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
#ffffff
;
background
:
#ffffff
;
...
...
components/HomeFrame/components/CustomerFile.vue
View file @
4708069
...
@@ -651,7 +651,8 @@ export default {
...
@@ -651,7 +651,8 @@ export default {
gap
:
toRpx
(
40
)
toRpx
(
44
);
gap
:
toRpx
(
40
)
toRpx
(
44
);
padding
:
toRpx
(
40
)
0
toRpx
(
20
)
toRpx
(
64
);
padding
:
toRpx
(
40
)
0
toRpx
(
20
)
toRpx
(
64
);
.
item
{
.
item
{
width
:
toRpx
(
608
);
width
:
30.8
%
;
// width: 608rpx;
background
:
#
ffffff
;
background
:
#
ffffff
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
padding
:
toRpx
(
24
)
toRpx
(
32
);
padding
:
toRpx
(
24
)
toRpx
(
32
);
...
@@ -764,13 +765,13 @@ export default {
...
@@ -764,13 +765,13 @@ export default {
}
}
}
}
.
case
-
item
{
.
case
-
item
{
width
:
toRpx
(
444
)
;
width
:
22.8
%
;
height
:
toRpx
(
552
);
height
:
toRpx
(
552
);
}
}
}
}
}
}
.
add
-
btn
{
.
add
-
btn
{
width
:
toRpx
(
2040
);
width
:
calc
(
100
%
-
#
{
toRpx
(
60
)
}
);
height
:
toRpx
(
200
);
height
:
toRpx
(
200
);
background
-
image
:
url
(
'@/assets/images/common/customer-btn.webp'
);
background
-
image
:
url
(
'@/assets/images/common/customer-btn.webp'
);
background
-
size
:
100
%
;
background
-
size
:
100
%
;
...
@@ -871,7 +872,6 @@ export default {
...
@@ -871,7 +872,6 @@ export default {
justify
-
content
:
center
;
justify
-
content
:
center
;
font
-
size
:
toRpx
(
28
);
font
-
size
:
toRpx
(
28
);
color
:
#
666666
;
color
:
#
666666
;
line
-
height
:
toRpx
(
44
);
transition
:
all
0.15
s
;
transition
:
all
0.15
s
;
}
}
.
active
{
.
active
{
...
...
components/HomeFrame/components/CustomerInfo.vue
View file @
4708069
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
toRpx
(
80
);
top
:
toRpx
(
80
);
left
:
toRpx
(
240
);
left
:
toRpx
(
240
);
width
:
toRpx
(
2042
)
;
width
:
87.04%
;
height
:
toRpx
(
1376
);
height
:
toRpx
(
1376
);
background
:
#ffffff59
;
background
:
#ffffff59
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
...
...
components/HomeFrame/components/LeftSide.vue
View file @
4708069
...
@@ -96,8 +96,10 @@ export default {
...
@@ -96,8 +96,10 @@ export default {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
position
:
relative
;
position
:
relative
;
.left-tabs
{
width
:
toRpx
(
240
);
width
:
toRpx
(
240
);
flex-shrink
:
0
;
.left-tabs
{
width
:
100%
;
height
:
toRpx
(
1080
);
height
:
toRpx
(
1080
);
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -169,13 +171,13 @@ export default {
...
@@ -169,13 +171,13 @@ export default {
}
}
}
}
.user-info
{
.user-info
{
width
:
toRpx
(
240
);
width
:
toRpx
(
184
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
toRpx
(
92
);
padding-top
:
toRpx
(
92
);
flex-direction
:
column
;
flex-direction
:
column
;
text-align
:
center
;
position
:
relative
;
position
:
relative
;
z-index
:
2
;
z-index
:
2
;
text-align
:
center
;
.account-change
{
.account-change
{
width
:
toRpx
(
136
);
width
:
toRpx
(
136
);
height
:
toRpx
(
32
);
height
:
toRpx
(
32
);
...
...
components/HomeFrame/components/RecordList.vue
View file @
4708069
<
template
>
<
template
>
<view
class=
"record-box"
>
<view
class=
"record-box"
>
<view
class=
"record-content"
v-if=
"showRecord"
>
<view
class=
"record-content"
v-if=
"showRecord"
>
<view
class=
"data-box"
>
<view
class=
"data-box"
>
<template
v-for=
"(i, index) in dataList"
>
<template
v-for=
"(i, index) in dataList"
>
<view
:class=
"['data-item', i.type]"
:key=
"index"
>
<view
<image
:src=
"i.icon"
class=
"data-item-bg"
/>
:class=
"['data-item', i.type]"
:key=
"index"
>
<image
:src=
"i.icon"
class=
"data-item-bg"
/>
<view
class=
"title"
>
{{
dateList
[
index
].
text
}}
</view>
<view
class=
"title"
>
{{
dateList
[
index
].
text
}}
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"total"
>
<view
class=
"total"
>
...
@@ -28,35 +37,74 @@
...
@@ -28,35 +37,74 @@
</view>
</view>
<view
class=
"data-container"
>
<view
class=
"data-container"
>
<view
:class=
"['type-box']"
>
<view
:class=
"['type-box']"
>
<view
class=
"tab-item"
v-for=
"(i, index) in typeList"
:key=
"index"
@
click=
"changeType(index, 'firstIndex')"
>
<view
<view
class=
"sprite-icon"
:class=
"[firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"
></view>
class=
"tab-item"
<view
class=
"text"
:class=
"[firstIndex == index ? `active` : '']"
>
v-for=
"(i, index) in typeList"
:key=
"index"
@
click=
"changeType(index, 'firstIndex')"
>
<view
class=
"sprite-icon"
:class=
"[firstIndex == index ? `icon-${firstClass[index]} active` : '', firstLeft[index]]"
></view>
<view
class=
"text"
:class=
"[firstIndex == index ? `active` : '']"
>
{{ i.tabName }}
{{ i.tabName }}
<
template
v-if=
"index == 1 && i.num && recordFailList.length > 0"
>
(
{{
recordFailList
.
length
}}
)
</
template
>
<
template
v-if=
"index == 1 && i.num && recordFailList.length > 0"
>
(
{{
recordFailList
.
length
}}
)
</
template
>
<
template
v-if=
"index == 2 && i.num && preRecordFailList.length > 0"
>
(
{{
preRecordFailList
.
length
}}
)
</
template
>
<
template
v-if=
"index == 2 && i.num && preRecordFailList.length > 0"
>
(
{{
preRecordFailList
.
length
}}
)
</
template
>
<div
class=
"dot"
v-if=
"index == 2 && i.num && preRecordFailList.length > 0"
></div>
<div
class=
"dot"
v-if=
"index == 2 && i.num && preRecordFailList.length > 0"
></div>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"tabs-bottom"
></view>
<view
class=
"tabs-bottom"
></view>
<view
v-if=
"firstIndex == 0"
class=
"data-tabs-box"
>
<view
v-if=
"firstIndex == 0"
class=
"data-tabs-box"
>
<view
class=
"data-tabs"
>
<view
class=
"data-tabs"
>
<
template
v-for=
"(i, index) in dateList"
>
<
template
v-for=
"(i, index) in dateList"
>
<view
:class=
"['tab flex',
{ active: dateIndex == index }]" :key="index" @click="changeIndex(index)">
{{
i
.
text
}}
</view>
<view
:class=
"['tab flex',
{ active: dateIndex == index }]"
:key="index"
@click="changeIndex(index)"
>
{{
i
.
text
}}
</view>
</
template
>
</
template
>
<view
:class=
"['active-btn', `active-btn-${dateIndex}`]"
></view>
<view
:class=
"['active-btn', `active-btn-${dateIndex}`]"
></view>
</view>
</view>
</view>
</view>
<scroll-view
:class=
"['record-list', { 'type-1': firstIndex == 1 }]"
scroll-y
@
scrolltolower=
"pageonReachBottom"
@
scroll=
"scroll"
>
<scroll-view
<div
class=
"record-tips"
v-if=
"firstIndex == 2 && list.length && list[0] && list[0].length"
>
以下非正常结束的接待记录,需要进行信息确认后才能提交到系统。
</div>
:class=
"['record-list', { 'type-1': firstIndex == 1 }]"
scroll-y
@
scrolltolower=
"pageonReachBottom"
@
scroll=
"scroll"
>
<div
class=
"record-tips"
v-if=
"firstIndex == 2 && list.length && list[0] && list[0].length"
>
以下非正常结束的接待记录,需要进行信息确认后才能提交到系统。
</div>
<view
class=
"list"
>
<view
class=
"list"
>
<
template
v-if=
"flag"
>
<
template
v-if=
"flag"
>
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-if=
"list.length && list[0] && list[0].length"
>
<template
v-for=
"i in list"
>
<template
v-for=
"i in list"
>
<template
v-for=
"item in i"
>
<template
v-for=
"item in i"
>
<view
class=
"item"
:key=
"item.id"
@
click=
"jumpDetail(item)"
>
<view
<view
class=
"status flex disabled"
v-if=
"item.receptionStatus === '' || item.receptionStatus === undefined"
>
未知
</view>
class=
"item"
<view
:class=
"['status flex',
{ deal: item.receptionStatus == 1 }]" v-else>
:key=
"item.id"
@
click=
"jumpDetail(item)"
>
<view
class=
"status flex disabled"
v-if=
"item.receptionStatus === '' || item.receptionStatus === undefined"
>
未知
</view>
<view
:class=
"['status flex',
{ deal: item.receptionStatus == 1 }]"
v-else
>
{{
{{
{
{
1
:
'成交'
,
1
:
'成交'
,
...
@@ -69,7 +117,10 @@
...
@@ -69,7 +117,10 @@
<
/view
>
<
/view
>
<
view
class
=
"goods-name"
>
{{
item
.
carModel
?
item
.
carModel
:
'未选择车型'
}}
<
/view
>
<
view
class
=
"goods-name"
>
{{
item
.
carModel
?
item
.
carModel
:
'未选择车型'
}}
<
/view
>
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
template
v
-
for
=
"(k, ind) in itemObject"
>
<
view
class
=
"info flex"
:
key
=
"ind"
>
<
view
class
=
"info flex"
:
key
=
"ind"
>
<
view
class
=
"label"
>
{{
k
.
label
}}
<
/view
>
<
view
class
=
"label"
>
{{
k
.
label
}}
<
/view
>
<
view
class
=
"value"
>
{{
formatValue
(
item
[
k
.
key
],
k
.
key
)
||
'-'
}}
<
/view
>
<
view
class
=
"value"
>
{{
formatValue
(
item
[
k
.
key
],
k
.
key
)
||
'-'
}}
<
/view
>
<
/view
>
<
/view
>
...
@@ -80,7 +131,10 @@
...
@@ -80,7 +131,10 @@
<
/template
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
<
view
class
=
"nothing flex"
>
<
view
class
=
"nothing flex"
>
<
image
class
=
"icon"
src
=
"../../../assets/images/home/nothing.webp"
/>
<
image
class
=
"icon"
src
=
"../../../assets/images/home/nothing.webp"
/>
暂无接待记录
暂无接待记录
<
/view
>
<
/view
>
<
/template
>
<
/template
>
...
@@ -92,7 +146,12 @@
...
@@ -92,7 +146,12 @@
<
/scroll-view
>
<
/scroll-view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
save
-
record
v
-
else
@
cancel
=
"handleCancel"
@
submit
=
"handleSubmit"
:
customerInfoVal
=
"customerInfo"
><
/save-record
>
<
save
-
record
v
-
else
@
cancel
=
"handleCancel"
@
submit
=
"handleSubmit"
:
customerInfoVal
=
"customerInfo"
><
/save-record
>
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
type
=
"text/ecmascript-6"
>
<
script
type
=
"text/ecmascript-6"
>
...
@@ -169,9 +228,9 @@ export default {
...
@@ -169,9 +228,9 @@ export default {
this
.
getPreRecordNum
()
this
.
getPreRecordNum
()
}
,
}
,
methods
:
{
methods
:
{
formatValue
(
val
,
k
)
{
formatValue
(
val
,
k
)
{
if
(
!
val
)
return
if
(
!
val
)
return
if
(
k
==
'phoneNumber'
)
{
if
(
k
==
'phoneNumber'
)
{
val
=
val
.
toString
()
val
=
val
.
toString
()
return
val
.
slice
(
0
,
3
)
+
" "
+
val
.
slice
(
3
,
7
)
+
" "
+
val
.
slice
(
7
)
return
val
.
slice
(
0
,
3
)
+
" "
+
val
.
slice
(
3
,
7
)
+
" "
+
val
.
slice
(
7
)
}
}
...
@@ -594,7 +653,8 @@ export default {
...
@@ -594,7 +653,8 @@ export default {
gap
:
0
toRpx
(
60
);
gap
:
0
toRpx
(
60
);
// justify-content: space-between;
// justify-content: space-between;
.
data
-
item
{
.
data
-
item
{
width
:
toRpx
(
640
);
// width: toRpx(640);
width
:
30.38
%
;
height
:
toRpx
(
200
);
height
:
toRpx
(
200
);
position
:
relative
;
position
:
relative
;
font
-
weight
:
500
;
font
-
weight
:
500
;
...
@@ -725,8 +785,11 @@ export default {
...
@@ -725,8 +785,11 @@ export default {
font
-
size
:
toRpx
(
32
);
font
-
size
:
toRpx
(
32
);
color
:
#
1
f2133
;
color
:
#
1
f2133
;
z
-
index
:
10
;
z
-
index
:
10
;
opacity
:
0.7
;
}
}
.
active
{
.
active
{
opacity
:
1
;
font
-
weight
:
500
;
}
}
.
active
-
btn
{
.
active
-
btn
{
position
:
absolute
;
position
:
absolute
;
...
...
components/HomeFrame/index.vue
View file @
4708069
...
@@ -181,6 +181,7 @@ export default {
...
@@ -181,6 +181,7 @@ export default {
.right-side
{
.right-side
{
flex
:
1
;
flex
:
1
;
position
:
relative
;
position
:
relative
;
width
:
calc
(
100vw
-
#{
toRpx
(
240
)}
);
.right-content
{
.right-content
{
padding-top
:
toRpx
(
92
);
padding-top
:
toRpx
(
92
);
height
:
100vh
;
height
:
100vh
;
...
...
pages/common/caseDetail.vue
View file @
4708069
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
AudioComponent
from
'./components/AudioComponent.vue'
import
AudioComponent
from
'./components/AudioComponent.vue'
import
report
from
"@/mixin/report.js"
;
import
report
from
"@/mixin/report.js"
;
cons
t
view_padding_top
=
88
,
le
t
view_padding_top
=
88
,
menuHeight
=
68
menuHeight
=
68
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -197,7 +197,9 @@ export default {
...
@@ -197,7 +197,9 @@ 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
=
`transform:translateY(
${
top
}
px);`
// this.blockTop = `transform:translateY(${top}px);`
this
.
blockTop
=
`transform:translateY(
${
top
*
2
}
rpx);`
}).
exec
()
}).
exec
()
}
}
},
},
...
@@ -338,6 +340,13 @@ export default {
...
@@ -338,6 +340,13 @@ export default {
this
.
topList
=
topList
this
.
topList
=
topList
this
.
itemList
=
itemList
this
.
itemList
=
itemList
this
.
detailInfo
=
detailInfo
this
.
detailInfo
=
detailInfo
const
query
=
uni
.
createSelectorQuery
()
query
.
select
(
'.title'
).
boundingClientRect
((
box
)
=>
{
menuHeight
=
box
.
height
})
query
.
select
(
'.case-content'
).
boundingClientRect
((
box
)
=>
{
view_padding_top
=
box
.
top
}).
exec
()
if
(
!
this
.
currentId
)
this
.
currentId
=
detailInfo
[
0
].
id
if
(
!
this
.
currentId
)
this
.
currentId
=
detailInfo
[
0
].
id
this
.
$forceUpdate
()
this
.
$forceUpdate
()
},
},
...
...
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