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 75842c7e
authored
Dec 29, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 详情新加三方
1 parent
b4d36a96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
5 deletions
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/evaluationFormDetails.vue
View file @
75842c7
...
...
@@ -104,7 +104,7 @@
<view
class=
"upload-images-wrapper"
v-if=
"getImageBySubtype(field.key)"
>
<view
class=
"uploaded-media-container"
>
<view
class=
"video-container"
>
<image
:src=
"get
ImageBySubtype(field.key).fileUrl + videoProcess
"
mode=
"aspectFill"
class=
"uploaded-media"
@
click
.
stop=
"previewMedia(getImageBySubtype(field.key).fileUrl, 2)"
></image>
<image
:src=
"get
VideoThumbnail(getImageBySubtype(field.key).fileUrl)
"
mode=
"aspectFill"
class=
"uploaded-media"
@
click
.
stop=
"previewMedia(getImageBySubtype(field.key).fileUrl, 2)"
></image>
<!-- <video :src="getImageBySubtype(field.key).fileUrl" mode="aspectFill" controls class="uploaded-media"></video> -->
<view
class=
"video-play-icon"
>
<view
class=
"sprite-icon icon-upload-play"
></view>
...
...
@@ -176,7 +176,16 @@
<view
v-if=
"!detailsInfo.signingInfo.saleContract.depositPrice ? item.key !== 'signingInfo.saleContract.depositPrice' && item.key !== 'signingInfo.saleContract.finalPrice' : item.key !== 'signingInfo.saleContract.fullPrice'"
:key=
"index"
:class=
"['flex align-start',
{ 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<view
v-if=
"item.type == 'image'"
>
<image
:src=
"formatValue(item, detailsInfo)"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 1)"
></image>
<!-- 三方/委托交易凭证可能是视频 -->
<view
v-if=
"item.key === 'signingInfo.saleContract.thirdPartyTransactionVoucher' && isVideoUrl(formatValue(item, detailsInfo))"
class=
"uploaded-media-container"
>
<view
class=
"video-container"
>
<image
:src=
"getVideoThumbnail(formatValue(item, detailsInfo))"
mode=
"aspectFill"
class=
"uploaded-media"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 2)"
></image>
<view
class=
"video-play-icon"
>
<view
class=
"sprite-icon icon-upload-play"
></view>
</view>
</view>
</view>
<image
v-else
:src=
"formatValue(item, detailsInfo)"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 1)"
></image>
</view>
<view
v-else-if=
"item.type == 'link'"
class=
"flex-1"
@
click
.
stop=
"pdfPreview(detailsInfo.signingInfo.saleContract.contractNo)"
>
<view
class=
"pdf-box flex align-center justify-between"
>
...
...
@@ -311,7 +320,15 @@
<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
>
<image
v-if=
"formatValue(item, detailsInfo).includes('mp4')"
:src=
"formatValue(item, detailsInfo) + videoProcess"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 2)"
></image>
<!-- 过户授权委托书可能是视频 -->
<view
v-if=
"item.key === 'carHandoverInfo.transferPhotoUrl' && isVideoUrl(formatValue(item, detailsInfo))"
class=
"uploaded-media-container"
>
<view
class=
"video-container"
>
<image
:src=
"getVideoThumbnail(formatValue(item, detailsInfo))"
mode=
"aspectFill"
class=
"uploaded-media"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 2)"
></image>
<view
class=
"video-play-icon"
>
<view
class=
"sprite-icon icon-upload-play"
></view>
</view>
</view>
</view>
<image
v-else
:src=
"formatValue(item, detailsInfo)"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 1)"
></image>
</
template
>
</view>
...
...
@@ -393,7 +410,7 @@
</
template
>
</view>
<view
v-else-if=
"item.fieldType == 'video'"
>
<image
@
click
.
stop=
"previewMedia(url, 2)"
v-for=
"(url, idx) in splitMediaUrls(item.fieldBeforeValue)"
:key=
"idx"
:src=
"
url + videoProcess
"
mode=
"aspectFill"
style=
"margin-right: 10px; width: 80px; height: 80px"
></image>
<image
@
click
.
stop=
"previewMedia(url, 2)"
v-for=
"(url, idx) in splitMediaUrls(item.fieldBeforeValue)"
:key=
"idx"
:src=
"
getVideoThumbnail(url)
"
mode=
"aspectFill"
style=
"margin-right: 10px; width: 80px; height: 80px"
></image>
</view>
</template>
</view>
...
...
@@ -409,7 +426,7 @@
</
template
>
</view>
<view
v-else-if=
"item.fieldType == 'video'"
>
<image
@
click
.
stop=
"previewMedia(url, 2)"
v-for=
"(url, idx) in splitMediaUrls(item.fieldAfterValue)"
:key=
"idx"
:src=
"
url + videoProcess
"
mode=
"aspectFill"
style=
"margin-right: 10px; width: 80px; height: 80px"
></image>
<image
@
click
.
stop=
"previewMedia(url, 2)"
v-for=
"(url, idx) in splitMediaUrls(item.fieldAfterValue)"
:key=
"idx"
:src=
"
getVideoThumbnail(url)
"
mode=
"aspectFill"
style=
"margin-right: 10px; width: 80px; height: 80px"
></image>
</view>
</template>
</view>
...
...
@@ -553,6 +570,7 @@ export default {
{
label
:
'交车地点'
,
key
:
'signingInfo.saleContract.handoverAddress'
},
{
label
:
'身份证国徽面'
,
key
:
'signingInfo.saleContract.idCardFrontUrl'
,
type
:
'image'
},
{
label
:
'身份证人像面'
,
key
:
'signingInfo.saleContract.idCardBackUrl'
,
type
:
'image'
},
{
label
:
'三方/委托交易凭证'
,
key
:
'signingInfo.saleContract.thirdPartyTransactionVoucher'
,
type
:
'image'
},
{
label
:
'查阅合同'
,
key
:
'signingInfo.saleContract.contractUrl'
,
type
:
'link'
}
],
payeeItems
:
[
...
...
@@ -708,6 +726,45 @@ export default {
.
map
(
url
=>
url
.
trim
())
.
filter
(
url
=>
url
)
},
// 判断URL是否是视频
isVideoUrl
(
url
)
{
if
(
!
url
)
return
false
// 1. 检查是否包含阿里云视频处理参数
if
(
url
.
includes
(
this
.
videoProcess
))
{
return
true
}
// 2. 检查文件扩展名(视频格式)
const
videoExtensions
=
[
'.mp4'
,
'.mov'
,
'.avi'
,
'.wmv'
,
'.flv'
,
'.m4v'
,
'.3gp'
,
'.mkv'
,
'.webm'
]
const
urlLower
=
url
.
toLowerCase
()
const
hasVideoExtension
=
videoExtensions
.
some
(
ext
=>
{
// 检查扩展名,需要排除查询参数
const
urlWithoutQuery
=
urlLower
.
split
(
'?'
)[
0
].
split
(
'#'
)[
0
]
return
urlWithoutQuery
.
endsWith
(
ext
)
})
return
hasVideoExtension
},
// 获取视频缩略图URL
getVideoThumbnail
(
url
)
{
if
(
!
url
)
return
''
// 如果已经是阿里云链接且包含videoProcess,直接返回
if
(
url
.
includes
(
this
.
videoProcess
))
{
return
url
}
// 如果是阿里云OSS链接,添加videoProcess参数
if
(
url
.
includes
(
'aliyuncs.com'
)
||
url
.
includes
(
'oss-'
))
{
// 如果URL已经有查询参数,用&连接;否则用?连接
const
separator
=
url
.
includes
(
'?'
)
?
'&'
:
'?'
return
url
+
separator
+
this
.
videoProcess
.
replace
(
'?'
,
''
)
}
// 如果不是阿里云链接(如小程序上传),返回默认视频图片
return
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/usedCar/video_default.png'
},
statusClass
(
status
)
{
return
status
>
0
?
`status-
${
status
}
`
:
'status-0'
},
...
...
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