Browse Source

bug 修复

lilei 4 years ago
parent
commit
574dd15204

+ 1 - 0
hybrid/html/css/styles.css

@@ -114,6 +114,7 @@ body {
 }
 .storeCheck .checkWork .checkWork-body .checkWork-body-tabCons .tabCons-items .remarks {
   padding: 5px;
+  word-break: break-all;
 }
 .storeCheck .checkWork .checkWork-body .checkWork-body-tabCons .tabCons-items .photos {
   display: block;

+ 5 - 1
hybrid/html/ddvideo.html

@@ -84,7 +84,7 @@
 							<!-- 拍照图片 -->
 							<div class="photos">
 								<div v-for="(photo,pindex) in zb.taskTargetPhotoList" :key="photo.id">
-									<a-avatar :size="40" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_40,w_40,color_000000'" />
+									<a-avatar @click="previewImg(photo.photoPath)" :size="60" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_60,w_60,color_ffffff'" />
 								</div>
 							</div>
 							<!-- 评论 -->
@@ -415,6 +415,10 @@
 						let photoList = this.curZbItem.taskTargetPhotoList
 						photoList[this.activeZbPhoto].photoPath = path
 					},
+					// 查看大图
+					previewImg(path){
+						this.sendMsg('previewImg', path)
+					},
 					// 评分,0 不适用,1 不合格,2 合格
 					selZbResult(type, zb, zbIndex) {
 						let result = ['NOT_WORK', 'NOT_PASS', 'PASS']

+ 6 - 2
hybrid/html/video.html

@@ -113,7 +113,7 @@
 							<!-- 拍照图片 -->
 							<div class="photos">
 								<div v-for="(photo,pindex) in zb.taskTargetPhotoList" :key="photo.id">
-									<a-avatar :size="40" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_40,w_40,color_000000'" />
+									<a-avatar @click="previewImg(photo.photoPath)" :size="60" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_60,w_60,color_ffffff'" />
 								</div>
 							</div>
 							<!-- 评论 -->
@@ -165,7 +165,7 @@
 					<!-- 图片列表 -->
 					<div class="imglist">
 						<div v-for="(photo,pindex) in curZbItem.taskTargetPhotoList" :key="pindex">
-							<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_50,w_50,color_000000'">
+							<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_60,w_60,color_ffffff'">
 							<a-icon @click.stop="delImgs(pindex)" class="aicon" type="close" />
 						</div>
 					</div>
@@ -472,6 +472,10 @@
 						let photoList = this.curZbItem.taskTargetPhotoList
 						photoList[this.activeZbPhoto].photoPath = path
 					},
+					// 查看大图
+					previewImg(path){
+						this.sendMsg('previewImg', path)
+					},
 					// 更新已完成考评数
 					updateKpFinish() {
 						let kpItem = this.kpItem[this.activeIndex]

+ 10 - 0
pages/shopTour/shopTour.vue

@@ -63,6 +63,10 @@ export default {
 			if (data.action == 'delImgs') {
 				this.delImgs(data.msg);
 			}
+			// 预览图片
+			if (data.action == 'previewImg') {
+				this.previewImg(data.msg)
+			}
 			// 删除考评项
 			if (data.action == 'delKpItem') {
 				this.delKpItem(data.msg);
@@ -125,6 +129,12 @@ export default {
 				});
 			});
 		},
+		// 预览图片
+		previewImg(path){
+			uni.previewImage({
+				urls:[path]
+			})
+		},
 		// 拍照截图,data.type 1 是列表按钮触发的,2 是弹框里触发的
 		takePhotos(data) {
 			if (data.videoPlayerStatus == 'playing') {

+ 10 - 0
pages/spotCheck/spotCheck.vue

@@ -54,6 +54,10 @@
 				if(data.action == 'delImgs'){
 					this.delImgs(data.msg)
 				}
+				// 预览图片
+				if (data.action == 'previewImg') {
+					this.previewImg(data.msg)
+				}
 				// 提交巡店
 				if(data.action == 'submitTask'){
 					this.submitTask(JSON.parse(data.msg))
@@ -72,6 +76,12 @@
 					}
 				});
 			},
+			// 预览图片
+			previewImg(path){
+				uni.previewImage({
+					urls:[path]
+				})
+			},
 			// 拍照截图,data.type 1 是列表按钮触发的,2 是弹框里触发的
 			takePhotos(data){
 				if(data.videoPlayerStatus == 'playing'){

File diff suppressed because it is too large
+ 3 - 3
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 14 - 16
unpackage/dist/dev/app-plus/app-view.js


+ 6 - 2
unpackage/dist/dev/app-plus/hybrid/html/video.html

@@ -113,7 +113,7 @@
 							<!-- 拍照图片 -->
 							<div class="photos">
 								<div v-for="(photo,pindex) in zb.taskTargetPhotoList" :key="photo.id">
-									<a-avatar :size="40" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_40,w_40,color_000000'" />
+									<a-avatar @click="previewImg(photo.photoPath)" :size="60" shape="square" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_60,w_60,color_ffffff'" />
 								</div>
 							</div>
 							<!-- 评论 -->
@@ -165,7 +165,7 @@
 					<!-- 图片列表 -->
 					<div class="imglist">
 						<div v-for="(photo,pindex) in curZbItem.taskTargetPhotoList" :key="pindex">
-							<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_50,w_50,color_000000'">
+							<img @click="editImgs(photo.photoPath,activeZbIndex,pindex)" :src="photo.photoPath+'?x-oss-process=image/resize,m_pad,h_60,w_60,color_ffffff'">
 							<a-icon @click.stop="delImgs(pindex)" class="aicon" type="close" />
 						</div>
 					</div>
@@ -472,6 +472,10 @@
 						let photoList = this.curZbItem.taskTargetPhotoList
 						photoList[this.activeZbPhoto].photoPath = path
 					},
+					// 查看大图
+					previewImg(path){
+						this.sendMsg('previewImg', path)
+					},
 					// 更新已完成考评数
 					updateKpFinish() {
 						let kpItem = this.kpItem[this.activeIndex]

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/manifest.json


Some files were not shown because too many files changed in this diff