更新
This commit is contained in:
parent
f49a277258
commit
0dac4c27c7
@ -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({
|
||||
|
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user