优化代码

This commit is contained in:
wuxw 2024-07-20 04:05:28 +08:00
parent c60b8a2759
commit dbbf82daf2
2 changed files with 3 additions and 2 deletions

View File

@ -21,10 +21,11 @@
<view class="undo-title">
<text class="text-bold">监控相机</text>
</view>
<view class="cu-list grid margin-top" :class="'col-2'">
<view class="cu-list grid " :class="'col-2'">
<view class="cu-item" @click="_toPlayVideo(item);" v-for="(item,index) in machines" :key="index">
<view>
<image src="/static/image/barrier.png" style="width: 80upx;height: 80upx;"></image>
<image :src="item.photoUrl" v-if="item.photoUrl" class="radius-sm" style="width: 90%;height: 200upx;"></image>
<image src="/static/image/noPhoto.jpg" class="radius-sm" v-else style="width: 90%;height: 200upx;"></image>
</view>
<view>
<text>{{item.machineName}}</text>

BIN
static/image/noPhoto.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB