@dongkboy 1 жил өмнө
parent
commit
78b3e4ea8a

+ 2 - 2
manifest.json

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

+ 12 - 69
pages/carInsure1/quoteDetail1.vue

@@ -1499,61 +1499,29 @@
 					let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
 						companyId: this.companyId,
 						riskCode: "0507",
-						type: '2', //2:保单
 					});
 					if (res.code == '200') {
+						this.policyList = [];
+						this.policyList1 = [];
 						this.policyList.push({
 							fileTitle: "交强电子保单",
 							filename: this.orderInfo.jqpolicyno,
-							fileurl: res.data,
+							fileurl: res.data.jqxPolicyUrl,
 						})
-					}
-					let res1 = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
-						companyId: this.companyId,
-						riskCode: "0507",
-						type: '1', //1:标志
-					});
-					if (res1.code == '200') {
 						this.policyList1.push({
 							fileTitle: "交强电子标志",
 							filename: this.orderInfo.jqpolicyno,
-							fileurl: res1.data,
+							fileurl: res.data.jqxFlagUrl,
 						})
-					}
-				}
-				if (this.orderInfo.sypolicyno) {
-					let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
-						companyId: this.companyId,
-						riskCode: "0510",
-						type: '2', //2:标志
-					});
-					if (res.code == '200') {
-						this.policyList.push({
-							fileTitle: "商业电子保单",
-							filename: this.orderInfo.sypolicyno,
-							fileurl: res.data,
-						})
-					}
-				}
-				if (this.orderInfo.crossInsurance.length > 0) {
-					this.orderInfo.crossInsurance.map(async ele => {
-						let res = await this.$http.post(
-							'/order/huaTaiApi/getPolicyPrint', {
-								companyId: this.companyId,
-								policyNumber: ele.policyNumber,
-								riskCode: "0513",
-								type: '2', //2:保单
-							});
-						if (res.code == '200') {
+						if (res.data.syxPolicyUrl) {
 							this.policyList.push({
-								fileTitle: "驾意险保单",
-								filename: ele.policyNumber,
-								fileurl: res.data,
-							})
+								fileTitle: "商业电子保单",
+								filename: this.orderInfo.sypolicyno,
+								fileurl: res.data.syxPolicyUrl,
+							});
 						}
-					})
+					}
 				}
-
 			},
 			async guoRengetPolicyPrint() {
 				this.policyList = [];
@@ -1623,9 +1591,9 @@
 					title: '文件下载中'
 				});
 				let index = file.lastIndexOf("\/")
-				let name = file.substring(index + 1, file.length)
+				let licensename = file.substring(index + 1, file.length)
 				let dtask = plus.downloader.createDownload(file, {
-					filename: "_downloads/" + name
+					filename: "_downloads/" + this.name + '-' + this.insuredPersonInfo.name + '-' + licensename
 				}, function(d, status) {
 					if (status == 200) {
 						uni.hideLoading()
@@ -1640,31 +1608,6 @@
 				})
 
 				dtask.start();
-				// uni.downloadFile({
-				// 	url: file,
-				// 	success(val) {
-				// 		uni.saveFile({
-				// 			tempFilePath: val.tempFilePath, //临时路径
-				// 			success: function(res) {
-				// 				uni.hideLoading();
-				// 				uni.showToast({
-				// 					icon: 'none',
-				// 					mask: true,
-				// 					title: '文件已保存到:' + res.savedFilePath +
-				// 						',正在打开文件', //保存路径
-				// 					duration: 3000,
-				// 				});
-				// 				setTimeout(() => {
-				// 					//打开文档查看
-				// 					uni.openDocument({
-				// 						filePath: res.savedFilePath,
-				// 						success: function(res) {}
-				// 					});
-				// 				}, 1500)
-				// 			}
-				// 		});
-				// 	}
-				// });
 				//#endif
 				//#ifdef H5
 				var win = window.open();

+ 6 - 3
pages/caragent/confirmorder.vue

@@ -159,6 +159,7 @@
 		height: 90rpx;
 		font-weight: bold;
 	}
+
 	.flexd_btn>view:nth-child(1) {
 		width: 70%;
 		padding-left: 20rpx;
@@ -171,6 +172,7 @@
 		background-color: #007BFF;
 		color: #FFFFFF;
 	}
+
 	.wab1 {
 		margin-top: 20rpx;
 	}
@@ -250,13 +252,14 @@
 		display: flex;
 		flex-direction: column;
 		justify-content: space-between;
-		
+
 	}
+
 	.shu1 {
 		display: flex;
 		flex-direction: column;
 		justify-content: space-between;
 		align-items: center;
-		
+
 	}
-</style>
+</style>