parent
3b649ae9cc
commit
996a13153e
|
@ -6,23 +6,23 @@
|
|||
</cu-custom>
|
||||
<scroll-view scroll-y>
|
||||
<view class="spot-list">
|
||||
<view class="spot-item" v-for="(item,index) in list" :key="item.CHECKTYPE_ID" @click="$noMultipleClicks(goToList,{
|
||||
'CHECKTYPE_ID':item.CHECKTYPE_ID,
|
||||
'CHECKTYPE_NAME':item.CHECKTYPE_NAME,
|
||||
'WAYBILLREGISTRATION_ID':WAYBILLREGISTRATION_ID,index})">
|
||||
<view class="spot-img">
|
||||
<image v-if="item.CHECKTYPE_NAME == '出车前'" src="../../../static/driving_before.png" class="cu-tag " mode=""></image>
|
||||
<image v-else-if="item.CHECKTYPE_NAME == '行车中'" src="../../../static/driving.png" mode=""></image>
|
||||
<image v-else src="../../../static/driving_affter.png" mode=""></image>
|
||||
</view>
|
||||
<view v-for="(item, index) in list" :key="item.CHECKTYPE_ID"
|
||||
:class="['spot-item', { 'active': (pd.WAYBILLSTATUS == '0' && item.CHECKTYPE_NAME == '出车前') || (pd.WAYBILLSTATUS == '1' && item.CHECKTYPE_NAME == '行车中') || (pd.WAYBILLSTATUS == '2' && item.CHECKTYPE_NAME == '收车后') }]"
|
||||
@click="$noMultipleClicks(goToList,{
|
||||
'CHECKTYPE_ID':item.CHECKTYPE_ID,
|
||||
'CHECKTYPE_NAME':item.CHECKTYPE_NAME,
|
||||
'WAYBILLREGISTRATION_ID':WAYBILLREGISTRATION_ID,index})">
|
||||
<view class="spot-img">
|
||||
<image v-if="item.CHECKTYPE_NAME == '出车前'" src="../../../static/driving_before.png" mode=""></image>
|
||||
<image v-if="item.CHECKTYPE_NAME == '行车中'" src="../../../static/driving.png" mode=""></image>
|
||||
<image v-if="item.CHECKTYPE_NAME == '收车后'" src="../../../static/driving_affter.png" mode=""></image>
|
||||
</view>
|
||||
<view class="spot-cont">
|
||||
<view class="text f30">
|
||||
{{item.CHECKTYPE_NAME}}
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="cu-tabbar-height"></view>
|
||||
</scroll-view>
|
||||
|
@ -87,7 +87,6 @@
|
|||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
console.log(res.data,'1111111111111111111111111')
|
||||
uni.hideLoading();
|
||||
_this.list = res.data.varList;
|
||||
_this.pd = res.data.pd;
|
||||
|
@ -102,7 +101,6 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
|
||||
//跳转事件
|
||||
goToList(e) {
|
||||
const index = e.index
|
||||
|
@ -157,8 +155,8 @@
|
|||
}
|
||||
|
||||
.spot-img {
|
||||
width: 100upx;
|
||||
height: 100upx;
|
||||
width: 50upx;
|
||||
height: 50upx;
|
||||
}
|
||||
|
||||
.spot-img image {
|
||||
|
@ -174,4 +172,9 @@
|
|||
margin: 20upx;
|
||||
padding: 20upx;
|
||||
}
|
||||
|
||||
.spot-list .spot-item.active{
|
||||
box-shadow: 0 0 10px #dcf7dc;
|
||||
border: 1px solid #65da99;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -43,13 +43,11 @@
|
|||
<view class="news-list">
|
||||
<view class="news-item" v-for="item in pclist" :key="item.NOTIFICATION_ID" @click="$noMultipleClicks(goToPcDetail, item.NOTIFICATION_ID)">
|
||||
<view class="news-media-list">
|
||||
<!-- <image src="https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg" mode="aspectFill" class="news-media-logo"></image>-->
|
||||
<view class="news-media-body">
|
||||
<view class="news-media-title">
|
||||
{{item.SYNOPSIS}}
|
||||
</view>
|
||||
<view class="news-media-text">
|
||||
<!-- <text>双控平台</text>-->
|
||||
<text>{{item.CREATTIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -75,12 +73,19 @@
|
|||
<view class="news-item" v-for="item in pclist" :key="item.NOTICECORP_ID" >
|
||||
<view class="news-media-list">
|
||||
<view class="news-media-body">
|
||||
<view class="news-media-title" @click="$noMultipleClicks(goToPcDetail,item.NOTIFICATION_ID)">
|
||||
{{item.LEVEL}}
|
||||
<text style="float:right;">
|
||||
<template v-if="item.TYPE=='0'">未读</template>
|
||||
<template v-else-if="item.TYPE=='1'">已读</template>
|
||||
</text>
|
||||
<view @click="$noMultipleClicks(goToPcDetail,item.NOTIFICATION_ID)">
|
||||
<view class="dy-title-flex">
|
||||
<text>通知标题:</text>
|
||||
<text class="bg-red light cu-tag radius">{{item.LEVEL}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>{{item.TITLE}}</text>
|
||||
<text class="bg-red light cu-tag bg-green radius" style="float:right; height:40upx;">
|
||||
<template v-if="item.TYPE=='0'">未读</template>
|
||||
<template v-else-if="item.TYPE=='1'">已读</template>
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="news-media-text">
|
||||
<text>{{item.CREATETIME}}</text>
|
||||
|
|
Loading…
Reference in New Issue