This commit is contained in:
许允枞 2025-03-26 14:17:29 +08:00
parent f49a277258
commit 0dac4c27c7
2 changed files with 10 additions and 11 deletions

View File

@ -297,6 +297,7 @@
couponId: null, couponId: null,
coupontitle: null, coupontitle: null,
discount: null, discount: null,
baseImageUrl: this.$baseImageUrl,
couponType: null, couponType: null,
idCardImage: null, idCardImage: null,
zjData: '', zjData: '',
@ -322,7 +323,6 @@
pickCarId: null, pickCarId: null,
zjShow: null, zjShow: null,
telShow: null, telShow: null,
zjData: '',
carShow: null, carShow: null,
dateStr: '' dateStr: ''
@ -336,15 +336,13 @@
this.pickCarId = data this.pickCarId = data
}) })
uni.$off('imgUrl'); //
uni.$on('imgUrl', (data) => { uni.$on('imgUrl', (data) => {
console.log(data, '1111');
this.dataObj.driverLicenesImg = data this.dataObj.driverLicenesImg = data
this.getimg(data) this.getimg(data)
}) })
uni.$on('userCouponDiscount', (data) => { uni.$on('userCouponDiscount', (data) => {
console.log('jianting', data);
//西 //西
this.couponId = data.couponId this.couponId = data.couponId
this.coupontitle = data.title this.coupontitle = data.title
@ -450,6 +448,8 @@
carNature: this.zjData.UseCharacter, carNature: this.zjData.UseCharacter,
carIdNo: this.zjData.Vin, carIdNo: this.zjData.Vin,
carNo: this.zjData.PlateNo, carNo: this.zjData.PlateNo,
carRegisterDate: this.zjData.RegisterDate,
address: this.zjData.Address,
pickCarId: this.pickCarId pickCarId: this.pickCarId
} }
@ -479,6 +479,8 @@
carNature: this.zjData.UseCharacter, carNature: this.zjData.UseCharacter,
carIdNo: this.zjData.Vin, carIdNo: this.zjData.Vin,
carNo: this.zjData.PlateNo, carNo: this.zjData.PlateNo,
carRegisterDate: this.zjData.RegisterDate,
address: this.zjData.Address,
couponId: this.couponId, couponId: this.couponId,
pickCarId: this.pickCarId, pickCarId: this.pickCarId,
appointmentId: restime.data, appointmentId: restime.data,
@ -603,18 +605,17 @@
async getimg(url) { async getimg(url) {
let data = { let data = {
// licenseImage :this.licenseImage, imagePath: this.baseImageUrl +'/' + url,
imagePath: url,
} }
const res = await request({ const res = await request({
url: '/system/userCar/appVehicleLicenseOCR2', url: '/partnerOwn/partner/vehicleLicenseOCR',
method: 'post', method: 'post',
params: data params: data
}) })
if (res.code == 200) { if (res.code == 200) {
console.log('识别成功'); console.log('识别成功');
this.zjData = res.data this.zjData = res.data.FrontInfo
} else { } else {
uni.showToast({ uni.showToast({

View File

@ -32,7 +32,6 @@
</view> </view>
<view style="width: 100%; height: 10px;"></view> <view style="width: 100%; height: 10px;"></view>
</view> </view>
</view>
</template> </template>
<script> <script>
@ -137,8 +136,7 @@
}) })
}, },
wancheng() { wancheng() {
uni.$emit('imgUrl', this.idCardImage)
uni.$emit('imgUrl', this.baseImageUrl + '/' + this.idCardImage)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })