|
@@ -241,37 +241,40 @@
|
|
|
filePath: tempFilePaths[0],
|
|
|
name: 'file',
|
|
|
formData: {
|
|
|
- 'test': 'test' // 上传附带参数
|
|
|
+ 'isUpload': 1 // 上传附带参数
|
|
|
},
|
|
|
success: (res) => {
|
|
|
+ console.log("res",res)
|
|
|
let resobj=eval("("+res.data+")");
|
|
|
uni.hideLoading();
|
|
|
if(resobj.code==200){
|
|
|
that.vehicleNo =resobj.data.vehicleNo;
|
|
|
// this.carImg = 'data:image/png;base64,' + ret.imageBase64;
|
|
|
- this.$u.api.tencentBase64Upload({
|
|
|
- base64: resobj.data.imageBase64,
|
|
|
+ that.$u.api.tencentBase64Upload({
|
|
|
+ base64: resobj.data.url,
|
|
|
suffix: 'png'
|
|
|
})
|
|
|
.then(res=>{
|
|
|
- that.carImg = res.data.url;
|
|
|
- that.vehicleImage = res.data.url;
|
|
|
- this.$u.route({
|
|
|
- type: 'redirectTo',
|
|
|
- url: 'pages/getin/getin',
|
|
|
- params: {
|
|
|
- spaceId: this.spaceId,
|
|
|
- spaceName:this.spaceName,
|
|
|
- roadNo:this.roadNo,
|
|
|
- vehicleNo:this.vehicleNo,
|
|
|
- carImg:that.carImg,
|
|
|
- vehicleImage:that.vehicleImage,
|
|
|
- inTime:this.inTime,
|
|
|
- placeStatus:this.placeStatus,
|
|
|
- currentVehicleNo:this.currentVehicleNo
|
|
|
- }
|
|
|
- });
|
|
|
- }).catch(err=>{});
|
|
|
+ that.carImg = res.data.url;
|
|
|
+ console.log("IMG",that.carImg)
|
|
|
+ that.vehicleImage = res.data.url;
|
|
|
+ that.$u.route({
|
|
|
+ type: 'redirectTo',
|
|
|
+ url: 'pages/getin/getin',
|
|
|
+ params: {
|
|
|
+ spaceId: that.spaceId,
|
|
|
+ spaceName:that.spaceName,
|
|
|
+ roadNo:that.roadNo,
|
|
|
+ vehicleNo:that.vehicleNo,
|
|
|
+ carImg:that.carImg,
|
|
|
+ vehicleImage:that.vehicleImage,
|
|
|
+ inTime:that.inTime,
|
|
|
+ placeStatus:that.placeStatus,
|
|
|
+ currentVehicleNo:that.currentVehicleNo
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }).catch(err=>{
|
|
|
+ });
|
|
|
}else{
|
|
|
that.$refs.uToast.show({
|
|
|
title: resobj.msg,
|