Ver Fonte

交强电子标志问题、影响识别增加大小限制

@dongkboy há 1 ano atrás
pai
commit
7141a6ca64
3 ficheiros alterados com 38 adições e 5 exclusões
  1. 2 2
      manifest.json
  2. 33 0
      pages/carInsure1/carInfo1.vue
  3. 3 3
      pages/carInsure1/quoteDetail1.vue

+ 2 - 2
manifest.json

@@ -7,8 +7,8 @@
 		"sizes": "分辨率,192x192",
 		"src": "图片路径"
 	}],
-	"versionName": "1.0.175",
-	"versionCode": 175,
+	"versionName": "1.0.176",
+	"versionCode": 176,
 	"app-plus": {
 		"error": {
 			"url": "hybrid/html/error.html"

+ 33 - 0
pages/carInsure1/carInfo1.vue

@@ -466,6 +466,7 @@
 			</view>
 		</u-popup>
 		<previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
+		<u-toast ref="uToast" />
 	</view>
 </template>
 
@@ -1010,6 +1011,14 @@
 						count: 1,
 						sizeType: ['compressed']
 					});
+					let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+					if (!size) {
+						this.$refs.uToast.show({
+							title: '上传图片大小不能超过 5MB!',
+							type: 'error',
+						})
+						return false
+					}
 					if (chooseImageRes) {
 						this.lodingshow = true;
 						this.carfrontImg = chooseImageRes.tempFilePaths[0];
@@ -1107,6 +1116,14 @@
 						count: 1,
 						sizeType: ['compressed']
 					});
+					let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+					if (!size) {
+						this.$refs.uToast.show({
+							title: '上传图片大小不能超过 5MB!',
+							type: 'error',
+						})
+						return false
+					}
 					if (chooseImageRes) {
 						this.lodingshow = true;
 						this.carbackImg = chooseImageRes.tempFilePaths[0];
@@ -1178,6 +1195,14 @@
 						count: 1,
 						sizeType: ['compressed']
 					});
+					let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+					if (!size) {
+						this.$refs.uToast.show({
+							title: '上传图片大小不能超过 5MB!',
+							type: 'error',
+						})
+						return false
+					}
 					if (chooseImageRes) {
 						this.lodingshow = true;
 						this.userfrontImg = chooseImageRes.tempFilePaths[0];
@@ -1250,6 +1275,14 @@
 						count: 1,
 						sizeType: ['compressed']
 					});
+					let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+					if (!size) {
+						this.$refs.uToast.show({
+							title: '上传图片大小不能超过 5MB!',
+							type: 'error',
+						})
+						return false
+					}
 					if (chooseImageRes) {
 						this.lodingshow = true;
 						this.userbackImg = chooseImageRes.tempFilePaths[0];

+ 3 - 3
pages/carInsure1/quoteDetail1.vue

@@ -1299,7 +1299,7 @@
 						this.policyList1.push({
 							fileTitle: "交强电子标志",
 							filename: this.orderInfo.jqpolicyno,
-							fileurl: res.data[0],
+							fileurl: res1.data[0],
 						})
 					}
 				}
@@ -1375,14 +1375,14 @@
 						filename: this.orderInfo.jqpolicyno,
 						fileurl: res1.data.jqxFlagUrl,
 					})
-					if (res.data.syxPolicyUrl) {
+					if (res1.data.syxPolicyUrl) {
 						this.policyList.push({
 							fileTitle: "商业电子保单",
 							filename: this.orderInfo.sypolicyno,
 							fileurl: res1.data.syxPolicyUrl,
 						});
 					}
-					if (res.data.jyxPolicyUrl) {
+					if (res1.data.jyxPolicyUrl) {
 						this.policyList.push({
 							fileTitle: "驾意险保单",
 							filename: 'xxxxxxxxxxxxxxxxxxxxxx',