记录添加查看图片

This commit is contained in:
老叶
2021-08-10 11:51:29 +08:00
parent 13505e68f3
commit 1ae2ee3d7e
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@
.img-90x90{width:90rpx;height:90rpx;box-sizing:border-box;}
.img-100x100{width:100rpx;height:100rpx;box-sizing:border-box;}
.img-120x120{width:120rpx;height:120rpx;box-sizing:border-box;}
.img-125x75{width:125rpx;height:75rpx;box-sizing:border-box;}
.img-135x135{width:135rpx;height:135rpx;box-sizing:border-box;}
.img-140x140{width:140rpx;height:140rpx;box-sizing:border-box;}
.img-160x160{width:160rpx;height:160rpx;box-sizing:border-box;}
+8
View File
@@ -475,6 +475,14 @@ Page({
}
},
//查看图片
previewImage(e){
wx.previewImage({
current:e.currentTarget.dataset.current,
urls:this.data.logslist[e.currentTarget.dataset.index].imgs,
})
},
/*************************** 编辑 **********************************/
//获取车型库
getAppSeriesCars(){
+6 -1
View File
@@ -134,7 +134,7 @@
<text>用户跟踪</text>
</view>
<view class="orderDtail-log mt40 relative" wx:if="{{logslist.length>0}}">
<block wx:for="{{logslist}}" wx:key="index">
<block wx:for="{{logslist}}" wx:for-index="index" wx:key="index">
<view class="orderDtail-log-item pl40 relative">
<view class="orderDtail-log-content">
<view class="font-22 color-999">{{item.c_time}}</view>
@@ -145,6 +145,11 @@
{{play?'播放中':'已暂停'}}
</view>
</view>
<view wx:if="{{item.imgs.length>0}}">
<block wx:for="{{item.imgs}}" wx:for-item="img" wx:for-index="j" wx:key="j">
<image bindtap="previewImage" data-current="{{img}}" data-index="{{index}}" class='img-125x75 mr10 bds-1-eb ulib-r5' src='{{img}}' mode='aspectFill'></image>
</block>
</view>
</view>
<i class="absolute box-middle mt15 bg-fff line-height-11 font-22 color-999 iconfont icon-jiantou-up z-index-1" wx:if="{{index+1 != logslist.length}}"></i>
<text class="absolute orderDtail-log-line2 z-index-0" wx:if="{{index != logslist.length-1}}"></text>