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,
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({

View File

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