zhnghongrui 1 ano atrás
pai
commit
48c3969cd5

+ 2 - 2
pages/TopPipeWork/TopPipeWork.vue

@@ -78,7 +78,7 @@
 						<view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
 
 							<view
-								v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-3)=='jpeg' ">
+								v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 								<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
 									style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 									@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
@@ -674,7 +674,7 @@
 						this.fileArr.forEach((list, index) => {
 							if (list.picUrl.substring(list.picUrl.length - 3) == 'png' || list.picUrl
 								.substring(list.picUrl.length - 3) == 'jpg' || list.picUrl.substring(list
-									.picUrl.length - 3) == 'jpeg') {
+									.picUrl.length - 4) == 'jpeg') {
 								this.fileImageArr.push(list.picUrl)
 							}
 						

+ 2 - 2
pages/enginproject/enginproject.vue

@@ -116,7 +116,7 @@
 							<view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
 
 								<view
-									v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-3)=='jpeg' ">
+									v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 									<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
 										style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
@@ -694,7 +694,7 @@
 							this.fileArr.forEach((list, index) => {
 								if (list.picUrl.substring(list.picUrl.length - 3) == 'png' || list.picUrl
 									.substring(list.picUrl.length - 3) == 'jpg' || list.picUrl.substring(list
-										.picUrl.length - 3) == 'jpeg') {
+										.picUrl.length - 4) == 'jpeg') {
 									this.fileImageArr.push(list.picUrl)
 								}
 

+ 2 - 2
pages/infrastructure/infrastructure.vue

@@ -81,7 +81,7 @@
 						<view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
 
 							<view
-								v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-3)=='jpeg' ">
+								v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 								<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
 									style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 									@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
@@ -685,7 +685,7 @@
 						this.fileArr.forEach((list, index) => {
 							if (list.picUrl.substring(list.picUrl.length - 3) == 'png' || list.picUrl
 								.substring(list.picUrl.length - 3) == 'jpg' || list.picUrl.substring(list
-									.picUrl.length - 3) == 'jpeg') {
+									.picUrl.length - 4) == 'jpeg') {
 								this.fileImageArr.push(list.picUrl)
 							}
 

+ 2 - 2
pages/municipal/municipal.vue

@@ -116,7 +116,7 @@
 							<view v-for="(item,index) in fileArr" :key="index" style="position: relative;">
 
 								<view
-									v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-3)=='jpeg' ">
+									v-if="item.picUrl.substring(item.picUrl.length - 3) == 'png' || item.picUrl.substring(item.picUrl.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 									<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
 										style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
@@ -692,7 +692,7 @@
 							this.fileArr.forEach((list, index) => {
 								if (list.picUrl.substring(list.picUrl.length - 3) == 'png' || list.picUrl
 									.substring(list.picUrl.length - 3) == 'jpg' || list.picUrl.substring(list
-										.picUrl.length - 3) == 'jpeg') {
+										.picUrl.length - 4) == 'jpeg') {
 									this.fileImageArr.push(list.picUrl)
 								}