This commit is contained in:
nyoung 2024-12-23 12:30:58 +08:00
parent 7e5a0ded48
commit 98bc0d4c8c
3 changed files with 194 additions and 18 deletions

View File

@ -71,12 +71,7 @@
<image src="../../static/images/htai.png" mode=""></image>
</view>
<view class="ja-you">{{item.rescuePosition || ''}}</view>
<view class="anniua" @click="GOdetails(item.id)" v-if="rescueStatus == 5">
<view class="shiwuimg">
<image src="../../static/images/cldd.png" mode=""></image>
</view>
<text>详情</text>
</view>
</view>
<view class="dix" style="margin: 10px auto;">
<view class="htzit">
@ -143,6 +138,18 @@
<text>查看详情</text>
</view>
</view>
<view class="dis-tt" v-if="rescueStatus == 5">
<view class="caanniu" @click="GOrepair(item)" v-if="item.isWeiXiu!=='1'">
<uni-icons type="wallet" color="#e43d33" size="20"></uni-icons>
<text>转维修</text>
</view>
<view class="anniua" @click="GOdetails(item.id)" >
<view class="shiwuimg">
<image src="../../static/images/cldd.png" mode=""></image>
</view>
<text>查看详情</text>
</view>
</view>
</view>
</view>
<view style="width: 100%; height: 50px;"></view>
@ -328,6 +335,24 @@
tabBar,
},
methods: {
GOrepair(item){
let data ={
id: item.id
}
request({
url: '/app/rescueInfo/toRepair',
method: 'post',
params: data
}).then((res) => {
if (res.code == 200) {
uni.showToast({
title: '操作成功'
})
this.singleList = []
this.driverRescuePage()
}
})
},
jyPushStart() {
//
jyJPush.registerSDKCallBack(sdkCallBack => {
@ -1174,7 +1199,7 @@
}
.ja-you {
width: 60%;
width: 80%;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;

View File

@ -152,6 +152,18 @@
<text class="huiy">救援类型:</text>
<text>{{detailsData.rescueTypeStr || ''}}</text>
</view>
<view class="dix">
<text class="huiy">是否扣车:</text>
<text>{{detailsData.isKouChe=='1'?'是' : '否'}}</text>
</view>
<view class="dix">
<text class="huiy">是否维修:</text>
<text>{{detailsData.isWeiXiu=='1'?'是' : '否'}}</text>
</view>
<view style="position: absolute;bottom: 25px; right: 25px;text-align: center; "
@click="getrescueDetail(id)">
@ -189,7 +201,41 @@
<view class="dis-bb">
<view class="ja-you" style="margin: 0px;">救援进程</view>
</view>
<view class="lan-ga" v-for="(item,index) in detailList" :key="index">
<view v-if="detailList && detailList.length > 0" class="c-box">
<view class="lan-ga" v-for="(item,index) in detailList" :key="index">
<view class="ga-top-box">
<view v-if="index === detailList.length - 1" class="gain">
<image class="gainIcon" src="@/static/icons/currentDetails.png" mode="aspectFit"></image>
</view>
<view v-else class="gain"></view>
<view class="ga-content">
<view class="ga-content-top">
<view class="ga-content-title">{{item.title}}</view>
<view class="xhui">
{{item.createTime}}
</view>
</view>
<view class="beizh">
{{item.remark}}
</view>
<view class="wrap-box" v-if="item.images">
<view class="img-box" v-for="(items,index) in item.images.split(',') " :key="index"
@click="lookimg(index,item.images.split(','))">
<image :src="baseImageUrl + items " mode=""></image>
</view>
</view>
</view>
</view>
<view v-if="index < detailList.length - 1" class="lan-ga-line"></view>
</view>
</view>
<!-- <view class="lan-ga" v-for="(item,index) in detailList" :key="index">
<view class="ga-top">
<view class="gain">{{index + 1}}</view>
<view class="">{{item.title}}</view>
@ -208,7 +254,7 @@
</view>
</view>
</view>
</view> -->
</view>
@ -606,13 +652,13 @@
}
.lan-ga {
width: 100%;
margin: 10px auto;
box-sizing: border-box;
padding-bottom: 15px;
border-bottom: 1px solid #EEEEEE;
}
// .lan-ga {
// width: 100%;
// margin: 10px auto;
// box-sizing: border-box;
// padding-bottom: 15px;
// border-bottom: 1px solid #EEEEEE;
// }
.ga-top {
display: flex;
@ -1063,4 +1109,109 @@
background: #0D2E8D !important;
color: white;
}
.lan-ga {
width: 100%;
margin: 20rpx auto;
box-sizing: border-box;
padding-bottom: 40rpx;
position: relative;
.lan-ga-line {
position: absolute;
width: 2rpx;
height: calc(100% - 56rpx);
background-color: #979797;
left: calc(56rpx / 2 - 2rpx);
transform: translate(-50%, 0);
top: calc(56rpx + 10rpx);
}
}
.ga-top-box {
display: flex;
justify-content: space-between;
}
.ga-content {
flex: 1;
width: 0;
.ga-content-top {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 8rpx;
padding-bottom: 14rpx;
}
.ga-content-title {
font-weight: bold;
flex: 1;
width: 0;
word-break: break-all
}
.xhui {
font-size: 22rpx;
color: #929292;
flex-shrink: 0;
}
.beizh {
font-size: 28rpx;
color: #000000;
}
}
.ga-top {
display: flex;
align-items: center;
color: #000;
font-weight: bold;
font-size: 16px;
}
.img-box {
width: 70px;
height: 70px;
border-radius: 6px;
overflow: hidden;
margin-top: 10px;
margin-right: 10px;
image {
width: 100%;
height: 100%;
}
}
.wrap-box {
width: 100%;
display: flex;
flex-wrap: wrap;
}
.gain {
box-sizing: border-box;
width: 52rpx;
height: 52rpx;
font-size: 34rpx;
color: #327DFB;
margin-right: 20rpx;
border: 2rpx solid #327DFB;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
font-weight: bold;
.gainIcon {
width: 100%;
height: 100%;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B