Selaa lähdekoodia

上传图片增加jpeg 格式

zhnghongrui 1 vuosi sitten
vanhempi
commit
36dd6ac503

+ 2 - 2
pages/TopPipeWork/TopPipeWork.vue

@@ -79,7 +79,7 @@
 
 							<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-4)=='jpeg' ">
-								<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
+								<image  :src="item.picUrl" mode=""
 									style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 									@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
 								</image>
@@ -198,7 +198,7 @@
 						style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 					<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 						<view
-							v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+							v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 							<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 								@click="showPhoto(index)">
 							</image>

+ 2 - 2
pages/enginproject/enginproject.vue

@@ -117,7 +117,7 @@
 
 								<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-4)=='jpeg' ">
-									<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
+									<image :src="item.picUrl" mode=""
 										style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
 									</image>
@@ -220,7 +220,7 @@
 								style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 							<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 								<view
-									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg'  ">
 									<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhoto(index)">
 									</image>

+ 2 - 2
pages/infrastructure/infrastructure.vue

@@ -82,7 +82,7 @@
 
 							<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-4)=='jpeg' ">
-								<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
+								<image :src="item.picUrl" mode=""
 									style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 									@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
 								</image>
@@ -206,7 +206,7 @@
 						style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 					<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 						<view
-							v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+							v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 							<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 								@click="showPhoto(index)">
 							</image>

+ 2 - 2
pages/municipal/municipal.vue

@@ -117,7 +117,7 @@
 
 								<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-4)=='jpeg' ">
-									<image v-if="fileImageArr.concat(item.picUrl)" :src="item.picUrl" mode=""
+									<image  :src="item.picUrl" mode=""
 										style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhotoFile(fileImageArr.indexOf(item.picUrl))">
 									</image>
@@ -217,7 +217,7 @@
 								style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 							<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 								<view
-									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
 									<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhoto(index)">
 									</image>

+ 1 - 1
pages/oldrenovation/courtyard/courtyard.vue

@@ -198,7 +198,7 @@
 								style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 							<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 								<view
-									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
 									<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhoto(index)">
 									</image>

+ 1 - 1
pages/oldrenovation/indoor/indoor.vue

@@ -455,7 +455,7 @@
 							style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 						<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
 								<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 									@click="showPhoto(index)">
 								</image>

+ 1 - 1
pages/oldrenovation/overhead/overhead.vue

@@ -215,7 +215,7 @@
 								style="width: 100rpx; height: 100rpx; margin: 0 12rpx;; " @click="choose()"></image>
 							<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
 								<view
-									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ">
+									v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
 									<image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
 										@click="showPhoto(index)">
 									</image>