@@ -249,7 +249,7 @@ | |||
:src="`${$imgUrl}issuance/chetou.png`" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"> | |||
</image> | |||
<image v-else class="icon" :src="imgPathMontage(state.form.roadTransportPermitPicUrl)" | |||
<image v-else class="icon" :src="imgPathMontage(state.form.roadTransportPermitPicUrlName)" | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image> | |||
</view> | |||
</view> | |||
@@ -309,7 +309,7 @@ | |||
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"></image> | |||
</view> | |||
</view> | |||
<view class="picture-wrapper" @click="cardFileImageUpdate(99)"> | |||
<view class="picture-wrapper" @click="cardFileImageUpdate(10)"> | |||
<view class="bg"> | |||
<view class=""> | |||
<view class="name"> 委托书 </view> | |||
@@ -817,7 +817,7 @@ | |||
if (val == 1) { | |||
state.form.vehBodyUrl = data.imageUrl; | |||
state.form.vehBodyUrlName = data.imageName; | |||
} else if (val == 99) { | |||
} else if (val == 10) { | |||
state.form.proxyUrl = data.imageUrl; | |||
state.form.proxyUrlName = data.imageName; | |||
} else { |
@@ -520,7 +520,7 @@ function formatNumber(n : any) { | |||
return n[1] ? n : `0${n}` | |||
} | |||
export const uploadFile = (tempImagePath, imageType) => { | |||
console.log("tempImagePath", tempImagePath, tempImagePath.size) | |||
console.log("tempImagePath", tempImagePath, tempImagePath.size,imageType) | |||
return new Promise((resolve, reject) => { | |||
uni.uploadFile({ | |||
url: 'https://qtzl.etcjz.cn/newProd/prod/minIo/upload', //仅为示例,非真实的接口地址 | |||
@@ -569,12 +569,12 @@ export const uploadFile = (tempImagePath, imageType) => { | |||
resolve({ imageUrl: JSON.parse(uploadFileRes.data).data.ossFilePath }) | |||
return | |||
} | |||
const magType = imageType == 10?1:imageType; | |||
const options = { | |||
type: 2, | |||
data: { | |||
type: imageType, | |||
type: magType, | |||
imagePath: JSON.parse(uploadFileRes.data).data.ossFilePath, | |||
}, | |||
method: "POST", |