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 66c50589
authored
Dec 02, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复详情
1 parent
5a5c90d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
50 deletions
components/HomeFrame/components/LeftSide.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/evaluationFormMap.js
pages/evaluationForm/index.vue
components/HomeFrame/components/LeftSide.vue
View file @
66c5058
...
...
@@ -61,7 +61,7 @@ export default {
userInfo
:
Object
},
name
:
''
,
data
()
{
data
()
{
return
{
messageData
:
{
classCountList
:
[],
...
...
@@ -76,11 +76,11 @@ export default {
hasPerson
:
false
,
messageType
:
'study'
,
sopCount
:
0
,
activityTabVisible
:
true
activityTabVisible
:
true
}
},
watch
:
{
userInfo
(
n
)
{
userInfo
(
n
)
{
console
.
log
(
'userInfo'
,
n
)
if
(
n
.
shopMerchantId
)
this
.
haveCustomerAccess
(
n
)
},
...
...
@@ -92,10 +92,10 @@ export default {
// }
},
computed
:
{
perRecordNumber
()
{
perRecordNumber
()
{
return
this
.
$store
.
state
.
audio
.
perRecordNumber
},
sceneTypeList
()
{
sceneTypeList
()
{
const
sceneTypeObject
=
{
1
:
{
title
:
'轻改'
,
...
...
@@ -131,7 +131,8 @@ export default {
}
return
result
},
tabs
()
{
// 这个tabs进来的值更新触发顺序是 getStudyCenterPermission的方法变更 => 计算属性的变更 => userInfo的监听变更 => haveCustomerAccess的变更。 计算属性的变更后的更新值是不会重新触发渲染的
tabs
()
{
const
tabs
=
[
{
label
:
"首页"
,
...
...
@@ -161,26 +162,26 @@ export default {
{
label
:
"活动中心"
,
icon
:
"activity"
,
isTrack
:
true
,
isTrack
:
true
,
name
:
'ActivityCenter'
,
eventCode
:
'app_activeity_center'
,
hidden
:
!
this
.
activityTabVisibl
e
hidden
:
fals
e
}
]
let
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
if
(
sceneType
==
7
)
tabs
[
1
].
hidden
=
true
if
(
sceneType
==
7
)
tabs
[
1
].
hidden
=
true
console
.
log
(
'tabs'
,
tabs
)
return
tabs
}
},
created
()
{
created
()
{
// 监听自定义事件
uni
.
$on
(
'pageBack'
,
()
=>
{
console
.
log
(
'pageBack'
)
this
.
getMessageInfo
();
});
uni
.
$on
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
uni
.
$on
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
// uni.$on('ActivityCenter', () => {
// console.log('ActivityCenter')
// let { tabs } = this,
...
...
@@ -200,7 +201,7 @@ export default {
},
inject
:
[
'showPage'
],
methods
:
{
getUnreadCount
()
{
getUnreadCount
()
{
let
_this
=
this
uni
.
$api
.
commonApi
.
getUnreadCount
({}).
then
(
res
=>
{
this
.
readCount
=
res
.
data
...
...
@@ -236,15 +237,15 @@ export default {
// this.leaveTrack()
// }, 5000)
// },
clickHome
()
{
clickHome
()
{
if
(
this
.
tabs
[
this
.
tabIndex
].
isTrack
)
this
.
changeIndex
(
0
,
this
.
tabs
[
0
])
},
handleSetting
()
{
handleSetting
()
{
this
.
$refs
.
settingRef
.
open
()
this
.
clickHome
()
},
findBeiSenSSOToken
()
{
findBeiSenSSOToken
()
{
return
new
Promise
(
resolve
=>
{
const
url
=
'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
...
...
@@ -254,15 +255,15 @@ export default {
})
})
},
handleActivityCenter
()
{
console
.
log
(
'ActivityCenter triggered'
);
// 添加日志查看触发次数
let
{
tabs
}
=
this
;
let
index
=
tabs
.
findIndex
(
e
=>
e
.
name
==
'ActivityCenter'
);
if
(
index
!==
-
1
)
{
this
.
changeIndex
(
index
,
this
.
tabs
[
index
]);
}
},
async
changeIndex
(
index
,
item
)
{
handleActivityCenter
()
{
console
.
log
(
'ActivityCenter triggered'
);
// 添加日志查看触发次数
let
{
tabs
}
=
this
;
let
index
=
tabs
.
findIndex
(
e
=>
e
.
name
==
'ActivityCenter'
);
if
(
index
!==
-
1
)
{
this
.
changeIndex
(
index
,
this
.
tabs
[
index
]);
}
},
async
changeIndex
(
index
,
item
)
{
if
(
item
.
eventCode
)
uni
.
$track
.
add
({
eventCode
:
item
.
eventCode
})
...
...
@@ -298,7 +299,7 @@ export default {
this
.
findBeiSenSSOToken
()
}
},
async
haveCustomerAccess
(
val
)
{
async
haveCustomerAccess
(
val
)
{
const
{
shopMerchantId
,
sceneType
:
scene
}
=
val
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
...
...
@@ -314,17 +315,42 @@ export default {
merchantId
:
shopMerchantId
,
scene
}).
then
(
result
=>
{
console
.
log
(
'haveCustomerAccess'
,
result
)
// uni.$storage.set('isSaleOpen', result)
if
(
result
)
{
this
.
hasPerson
=
true
this
.
activityTabVisible
=
scene
!==
7
}
else
{
this
.
activityTabVisible
=
false
// this.activityTabVisible = scene !== 7
// this.tabs[this.tabs.length-1].hidden = scene !== 7
this
.
$nextTick
(()
=>
{
const
activityTabIcon
=
document
.
querySelector
(
'.sprite-icon.icon-activity'
)
if
(
activityTabIcon
)
{
const
activityTab
=
activityTabIcon
.
closest
(
'.tab-item'
)
if
(
activityTab
)
{
if
(
scene
===
7
)
{
activityTab
.
style
.
display
=
'none'
}
else
{
activityTab
.
style
.
display
=
'block'
}
}
}
})
}
else
{
// this.tabs[this.tabs.length-1].hidden = false
// this.activityTabVisible = false
this
.
$nextTick
(()
=>
{
const
activityTabIcon
=
document
.
querySelector
(
'.sprite-icon.icon-activity'
)
if
(
activityTabIcon
)
{
const
activityTab
=
activityTabIcon
.
closest
(
'.tab-item'
)
if
(
activityTab
)
{
activityTab
.
style
.
display
=
'none'
}
}
})
}
})
},
// 获取话术未读列表
async
getMessage
()
{
async
getMessage
()
{
const
{
sceneType
,
uuid
}
=
uni
.
$storage
.
get
(
"userInfo"
)
let
businessTypeList
=
[]
if
(
sceneType
==
0
)
{
...
...
@@ -353,7 +379,7 @@ export default {
// this.messageTotal = res
// },
// 学习中心消息弹窗,优先级高于有修改话术弹窗
async
getMessagePop
()
{
async
getMessagePop
()
{
const
res
=
await
uni
.
$api
.
commonApi
.
getMessagePop
({})
if
(
res
.
ids
&&
res
.
ids
.
length
>
0
)
{
if
(
Array
.
isArray
(
res
.
moduleTypeList
)
&&
(
res
.
moduleTypeList
.
includes
(
3
)
||
res
.
moduleTypeList
.
includes
(
4
))
...
...
@@ -377,19 +403,19 @@ export default {
await
this
.
getMessage
()
}
},
openPop
()
{
openPop
()
{
// this.messageType = 'system'
// this.$refs.kfRef.open()
uni
.
navigateTo
({
url
:
`/pages/common/messageList`
})
},
getMessageInfo
()
{
getMessageInfo
()
{
// this.getMessage()
// this.getMessageCount()
this
.
getMessagePop
()
},
jumpPersonCenter
()
{
jumpPersonCenter
()
{
if
(
this
.
hasPerson
)
{
uni
.
$track
.
add
({
eventCode
:
'app_personal_center'
...
...
@@ -398,7 +424,7 @@ export default {
this
.
$emit
(
'update:tabIndex'
,
99
)
}
},
chooseSceneType
(
index
)
{
chooseSceneType
(
index
)
{
let
{
userInfo
,
sceneTypeList
}
=
this
,
sceneType
=
sceneTypeList
[
index
].
id
if
(
sceneType
==
userInfo
.
sceneType
)
return
...
...
@@ -417,14 +443,14 @@ export default {
url
})
},
openScenePopup
()
{
openScenePopup
()
{
this
.
$refs
.
sceneTypeRef
.
open
()
uni
.
$track
.
add
({
eventCode
:
'app_scene_change'
})
},
// 学习中心权限获取,场景集市权限
getStudyCenterPermission
()
{
getStudyCenterPermission
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
userInfo
.
subLoginUser
.
channelType
==
9
)
{
this
.
tabs
[
2
].
hidden
=
true
...
...
@@ -432,6 +458,7 @@ export default {
return
}
else
{
const
res
=
uni
.
$storage
.
get
(
'studyCenterPermission'
)
console
.
log
(
'getStudyCenterPermission'
,
res
)
const
{
directSaleAuth
,
hmzxAuth
,
authorizedBusinessList
}
=
res
// 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
const
isYb
=
authorizedBusinessList
&&
authorizedBusinessList
.
includes
(
1
)
// 1.延保 2.轻改 3.权益
if
(
directSaleAuth
||
(
hmzxAuth
&&
isYb
))
{
...
...
@@ -440,12 +467,12 @@ export default {
}
}
},
beforeCreate
()
{
beforeCreate
()
{
// clearInterval(this.trackInterval)
// this.trackInterval = null
},
beforeDestroy
()
{
uni
.
$off
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
beforeDestroy
()
{
uni
.
$off
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
// clearInterval(this.trackInterval)
// this.trackInterval = null
},
...
...
@@ -461,6 +488,7 @@ export default {
flex-shrink
:
0
;
background-image
:
url('@/assets/images/home/left-bg.png')
;
background-size
:
100%
100%
;
.left-tabs
{
width
:
100%
;
height
:
toRpx
(
1080
);
...
...
@@ -516,6 +544,7 @@ export default {
align-items
:
center
;
border-radius
:
100%
;
}
.tip-box
{
position
:
absolute
;
left
:
toRpx
(
90
);
...
...
@@ -558,9 +587,11 @@ export default {
padding-bottom
:
toRpx
(
64
);
}
}
.user-box
{
padding-top
:
toRpx
(
92
);
}
.user-info
{
width
:
toRpx
(
184
);
box-sizing
:
border-box
;
...
...
@@ -587,6 +618,7 @@ export default {
border
:
toRpx
(
2
)
solid
#ffffff
;
box-shadow
:
0
toRpx
(
4
)
toRpx
(
8
)
0
#0000001
a
;
border-radius
:
100%
;
&.user-active
{
border
:
toRpx
(
2
)
solid
rgb
(
55
,
115
,
248
);
}
...
...
@@ -600,6 +632,7 @@ export default {
color
:
#292d33
;
margin-top
:
toRpx
(
16
);
padding
:
0
toRpx
(
12
);
&-text
{
width
:
toRpx
(
112
);
overflow
:
hidden
;
...
...
@@ -626,9 +659,11 @@ export default {
margin
:
toRpx
(
48
)
auto
0
;
box-sizing
:
border-box
;
padding-left
:
toRpx
(
60
);
.icon-scene-change
{
zoom
:
2
;
}
.message-number
{
position
:
absolute
;
display
:
flex
;
...
...
pages/evaluationForm/evaluationFormDetails.vue
View file @
66c5058
...
...
@@ -307,7 +307,7 @@
<view
v-if=
"formatValue(item, detailsInfo)"
:key=
"index"
:class=
"['flex align-start',
{ 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
==
'自定义字段名称'
?
detailsInfo
.
carHandoverInfo
.
otherText
||
'自定义字段名称'
:
item
.
label
}}
</view>
<view
v-if=
"item.type == 'image'"
>
<template
v-if=
"item.key === 'carHandoverInfo.motorBookUrl'"
>
<template
v-if=
"item.key === 'carHandoverInfo.motorBookUrl'
|| item.key === 'carHandoverInfo.motorRegistrationCertificateUrl'
"
>
<image
@
click
.
stop=
"previewMedia(url, 1)"
v-for=
"(url, idx) in splitMediaUrls(formatValue(item, detailsInfo))"
:key=
"idx"
:src=
"url"
mode=
"aspectFill"
style=
"margin-right: 10px"
></image>
</
template
>
<
template
v-else
>
...
...
@@ -593,7 +593,7 @@ export default {
],
documentationItems
:
[
{
label
:
'交强险'
,
key
:
'carHandoverInfo.trafficInsuranceUrl'
,
type
:
'image'
},
{
label
:
'机动车行驶证'
,
key
:
'carHandoverInfo.motor
BookUrl1
'
,
type
:
'image'
},
{
label
:
'机动车行驶证'
,
key
:
'carHandoverInfo.motor
RegistrationCertificateUrl
'
,
type
:
'image'
},
{
label
:
'交管12123截图'
,
key
:
'carHandoverInfo.trafficScreenshotUrl'
,
type
:
'image'
},
{
label
:
'机动车登记本'
,
key
:
'carHandoverInfo.motorBookUrl'
,
type
:
'image'
},
{
label
:
'购置税证及收据'
,
key
:
'carHandoverInfo.purchaseReceiptUrl'
,
type
:
'image'
},
...
...
@@ -778,7 +778,7 @@ export default {
if
(
item
.
map
&&
this
[
item
.
map
])
{
return
this
[
item
.
map
][
rawValue
]
||
rawValue
}
console
.
log
(
'rawValue:'
,
rawValue
,
item
.
key
,
item
)
console
.
log
(
'rawValue:'
,
rawValue
===
0
?
0
:
item
.
type
===
'image'
||
item
.
accept
===
'video'
?
rawValue
:
rawValue
||
'-'
,
item
.
key
,
item
)
return
rawValue
===
0
?
0
:
item
.
type
===
'image'
||
item
.
accept
===
'video'
?
rawValue
:
rawValue
||
'-'
},
getImageBySubtype
(
subtype
)
{
...
...
pages/evaluationForm/evaluationFormMap.js
View file @
66c5058
...
...
@@ -141,12 +141,12 @@ export const emissionStandardMap = {
6
:
'国6'
}
export
const
buyNewCarMap
=
{
0
:
'是'
,
1
:
'否'
1
:
'是'
,
0
:
'否'
}
export
const
hasAccidentMap
=
{
0
:
'是'
,
1
:
'否'
1
:
'是'
,
0
:
'否'
}
export
const
overallRatingMap
=
{
1
:
'优'
,
...
...
pages/evaluationForm/index.vue
View file @
66c5058
...
...
@@ -107,12 +107,12 @@
<
template
#
content
>
<view
class=
"amount-requested-content"
>
<view
class=
"amount-box flex align-center"
>
<text
class=
"amount-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
'定金'
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'尾款'
:
'全
款'
}}
金额
</text>
<text
class=
"amount-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
finalPrice
:
payPopupObj
.
ev
alPrice
}}
元
</text>
<text
class=
"amount-title"
>
{{
payPopupObj
.
paymentType
==
2
?
'全款'
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
30
?
'定金'
:
'尾
款'
}}
金额
</text>
<text
class=
"amount-value"
>
{{
payPopupObj
.
paymentType
==
2
?
payPopupObj
.
evalPrice
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
30
?
payPopupObj
.
depositPrice
:
payPopupObj
.
fin
alPrice
}}
元
</text>
</view>
<view
class=
"flex align-center mt-28 mb-16"
v-if=
"payPopupObj.paymentType == 1"
>
<text
class=
"popup-cell-title light-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'已支付定金'
:
'待支付尾款
'
}}
</text>
<text
class=
"popup-cell-value light-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
final
Price
}}
元
</text>
<text
class=
"popup-cell-title light-title"
>
{{
payPopupObj
.
status
==
30
?
'待支付尾款'
:
'已支付定金
'
}}
</text>
<text
class=
"popup-cell-value light-value"
>
{{
payPopupObj
.
status
==
30
?
payPopupObj
.
finalPrice
:
payPopupObj
.
deposit
Price
}}
元
</text>
</view>
<view
class=
"flex align-center mb-40"
:class=
"payPopupObj.paymentType == 2 ? 'mt-28' : ''"
>
<text
class=
"popup-cell-title"
>
评估价
</text>
...
...
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