From 0dac4c27c78aae9bfbe6e2043f34fa2351536a92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com>
Date: Wed, 26 Mar 2025 14:17:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/detection/Merchantproducts.vue | 17 +++++++++--------
pages/detection/my-user.vue | 4 +---
2 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/pages/detection/Merchantproducts.vue b/pages/detection/Merchantproducts.vue
index e6287f3..e8f3c11 100644
--- a/pages/detection/Merchantproducts.vue
+++ b/pages/detection/Merchantproducts.vue
@@ -297,6 +297,7 @@
couponId: null,
coupontitle: null,
discount: null,
+ baseImageUrl: this.$baseImageUrl,
couponType: null,
idCardImage: null,
zjData: '',
@@ -322,7 +323,6 @@
pickCarId: null,
zjShow: null,
telShow: null,
- zjData: '',
carShow: null,
dateStr: ''
@@ -336,15 +336,13 @@
this.pickCarId = data
})
+ uni.$off('imgUrl'); // 先移除之前的监听,防止重复注册
uni.$on('imgUrl', (data) => {
- console.log(data, '1111');
this.dataObj.driverLicenesImg = data
-
this.getimg(data)
})
uni.$on('userCouponDiscount', (data) => {
- console.log('jianting', data);
//优惠券页面返回的东西
this.couponId = data.couponId
this.coupontitle = data.title
@@ -450,6 +448,8 @@
carNature: this.zjData.UseCharacter,
carIdNo: this.zjData.Vin,
carNo: this.zjData.PlateNo,
+ carRegisterDate: this.zjData.RegisterDate,
+ address: this.zjData.Address,
pickCarId: this.pickCarId
}
@@ -479,6 +479,8 @@
carNature: this.zjData.UseCharacter,
carIdNo: this.zjData.Vin,
carNo: this.zjData.PlateNo,
+ carRegisterDate: this.zjData.RegisterDate,
+ address: this.zjData.Address,
couponId: this.couponId,
pickCarId: this.pickCarId,
appointmentId: restime.data,
@@ -603,18 +605,17 @@
async getimg(url) {
let data = {
- // licenseImage :this.licenseImage,
- imagePath: url,
+ imagePath: this.baseImageUrl +'/' + url,
}
const res = await request({
- url: '/system/userCar/appVehicleLicenseOCR2',
+ url: '/partnerOwn/partner/vehicleLicenseOCR',
method: 'post',
params: data
})
if (res.code == 200) {
console.log('识别成功');
- this.zjData = res.data
+ this.zjData = res.data.FrontInfo
} else {
uni.showToast({
diff --git a/pages/detection/my-user.vue b/pages/detection/my-user.vue
index 86750de..a58d320 100644
--- a/pages/detection/my-user.vue
+++ b/pages/detection/my-user.vue
@@ -32,7 +32,6 @@
-