浏览代码

检测单

twt 1 月之前
父节点
当前提交
bab8bdd3bc
共有 1 个文件被更改,包括 39 次插入3 次删除
  1. 39 3
      pages/index/reportUni.vue

+ 39 - 3
pages/index/reportUni.vue

@@ -155,6 +155,7 @@
 											<view class="leftT">说明:</view>
 											<view v-if="item.Describe" class="contentStr">{{item.Describe}}</view>
 										</view>
+										<view class="seeImg2" v-if="item.value[0].photoAllPath" @click="seeImg(item.value[0].photoAllPath)">查看图片</view>
 									</view>
 									<view class="warning-lamp" v-if="item.SectionType===2">
 
@@ -163,8 +164,11 @@
 											:class="[{'check':item2.IsSelect},{'img4':(index+1)%4==0}]"
 											v-bind:style="{'background-image':'url('+item2.ItemIcon+')'}"></span>
 
-
+                                      
 									</view>
+									
+										
+								
 									<view v-if="item.SectionType===1">
 										<view class="car-report-rv">
 											<img v-if="item.SectionPic" :src="item.SectionPic" style="width: 100%; height: 100%;" alt="图片加载失败">
@@ -172,6 +176,9 @@
 										</view>
 										<view class="car-report-rv-buttom"></view>
 									</view>
+									<view v-if="item.SectionType===2||item.SectionType===1">
+										<view class="seeImg" v-if="item.photoPath.length" @click="seeImg2(item.photoPath)">查看图片</view>
+									</view>
 									<view class="video-button carjcvideo-button" v-if="item.VideoName&&!item.showVideo">
 										<view class="video-play" @click="ckVideo(item)"></view>
 										{{item.VideoName}}
@@ -187,8 +194,6 @@
 												<view class="videoLineZz"></view>
 												<img src="http://dmsphoto.66km.com.cn/thFiles/C8C06AA1-7775-4C23-9454-38C64E004DA8.png" alt="" style="width: 160rpx;height: 160rpx;">
 											</view>
-											
-											
 										</view>
 									</view>
 									<!-- <view class="video-button carjcvideo-button" v-if="item.VideoPath&&!item.showVideo2">
@@ -295,6 +300,19 @@
 				this.videoUrl=url
 				this.videoUrlShow=true
 			},
+			seeImg2(arr){
+				uni.previewImage({
+					urls: arr,
+					//current: index,
+					longPressActions: {
+						itemList: ['发送给朋友', '保存图片', ],
+						success: function(data) {
+						},
+						fail: function(err) {
+						}
+					}
+				});
+			},
 			seeImg(img){
 				console.log(img)
 				var arr=img.split(',')
@@ -420,6 +438,20 @@
 							this.$set(item2, 'Describe', item2.value[0].Describe)
 							this.$set(item2, 'SectionType', item2.value[0].SectionType)
 							this.$set(item2, 'SectionPic', item2.value[0].SectionPic)
+							this.$set(item2, 'photoAllPath', item2.value[0].photoAllPath)
+							
+							/* var imglist=[]
+							item2.value && item2.value.forEach((item3, index3) => {
+								if(item3.SectionType==0){
+									if(item3.photoPath){
+										var imgArr=item3.photoPath.split(',')
+										imglist=imglist.concat(imgArr)
+									}
+								}
+								
+							}) */
+							//this.$set(item2, 'imglist', imglist)
+							
 						})
 					})
 					console.log(data)
@@ -1307,4 +1339,8 @@
 		padding-left: 20rpx;font-size: 26rpx;
 		color: #1677FF;line-height: 40rpx;
 	}
+	.seeImg2{
+		font-size: 26rpx;
+		color: #1677FF;line-height: 40rpx;
+	}
 </style>