|
@@ -23,7 +23,10 @@
|
|
|
</template>
|
|
|
<view class="item" @click="handle({type:'detail',item})">
|
|
|
<view class="title">
|
|
|
- <view class="name">{{item.dlName}}</view>
|
|
|
+ <view class="name">{{item.dlName}}</view>
|
|
|
+ <view class="camera" @click.stop="showCamera">
|
|
|
+ <uni-icons v-if='item.cameraNum>0' type="videocam-filled" size="20" color="#007aff" ></uni-icons>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="item-row space-between">
|
|
|
<uni-tag :text="item.disasterLevelTitle" custom-style="background-color: #ecf5ff; border-color: #d9ecff; color: #409eff;"></uni-tag>
|
|
@@ -60,7 +63,10 @@
|
|
|
</template>
|
|
|
<view class="item" @click="handle({type:'detail',item})">
|
|
|
<view class="title">
|
|
|
- <view class="name">{{item.rdName}}</view>
|
|
|
+ <view class="name">{{item.rdName}}</view>
|
|
|
+ <view class="camera" @click.stop="showCamera">
|
|
|
+ <uni-icons v-if='item.cameraNum>0' type="videocam-filled" size="20" color="#007aff" ></uni-icons>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="item-row space-between">
|
|
|
<view class="icon-item">
|
|
@@ -144,6 +150,9 @@
|
|
|
this.items=res.data
|
|
|
})
|
|
|
},
|
|
|
+ showCamera(item){
|
|
|
+
|
|
|
+ },
|
|
|
handle({type,item}){
|
|
|
if(type==='detail'){
|
|
|
this.$refs.detail.show(item)
|
|
@@ -259,11 +268,25 @@
|
|
|
}
|
|
|
.item{
|
|
|
color: #666;
|
|
|
- .name{
|
|
|
- font-size: 32rpx;
|
|
|
- color: #222222;
|
|
|
- line-height: 1;
|
|
|
- padding-bottom: 10rpx;
|
|
|
+ .title{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ .name{
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #222222;
|
|
|
+ line-height: 1;
|
|
|
+ padding-bottom: 10rpx;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .camera{
|
|
|
+ width: 100rpx;
|
|
|
+ text-align: right;
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
}
|
|
|
image{
|
|
|
&.icon{
|