cetc 1 周之前
父節點
當前提交
1e99e3df65
共有 2 個檔案被更改,包括 6 行新增6 行删除
  1. 3
    3
      subpackage/orders/car-release.vue
  2. 3
    3
      utils/utils.ts

+ 3
- 3
subpackage/orders/car-release.vue 查看文件

:src="`${$imgUrl}issuance/chetou.png`" :src="`${$imgUrl}issuance/chetou.png`"
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"> :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
</image> </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> :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
</view> </view>
</view> </view>
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"></image> :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png`}"></image>
</view> </view>
</view> </view>
<view class="picture-wrapper" @click="cardFileImageUpdate(99)">
<view class="picture-wrapper" @click="cardFileImageUpdate(10)">
<view class="bg"> <view class="bg">
<view class=""> <view class="">
<view class="name"> 委托书 </view> <view class="name"> 委托书 </view>
if (val == 1) { if (val == 1) {
state.form.vehBodyUrl = data.imageUrl; state.form.vehBodyUrl = data.imageUrl;
state.form.vehBodyUrlName = data.imageName; state.form.vehBodyUrlName = data.imageName;
} else if (val == 99) {
} else if (val == 10) {
state.form.proxyUrl = data.imageUrl; state.form.proxyUrl = data.imageUrl;
state.form.proxyUrlName = data.imageName; state.form.proxyUrlName = data.imageName;
} else { } else {

+ 3
- 3
utils/utils.ts 查看文件

return n[1] ? n : `0${n}` return n[1] ? n : `0${n}`
} }
export const uploadFile = (tempImagePath, imageType) => { export const uploadFile = (tempImagePath, imageType) => {
console.log("tempImagePath", tempImagePath, tempImagePath.size)
console.log("tempImagePath", tempImagePath, tempImagePath.size,imageType)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.uploadFile({ uni.uploadFile({
url: 'https://qtzl.etcjz.cn/newProd/prod/minIo/upload', //仅为示例,非真实的接口地址 url: 'https://qtzl.etcjz.cn/newProd/prod/minIo/upload', //仅为示例,非真实的接口地址
resolve({ imageUrl: JSON.parse(uploadFileRes.data).data.ossFilePath }) resolve({ imageUrl: JSON.parse(uploadFileRes.data).data.ossFilePath })
return return
} }
const magType = imageType == 10?1:imageType;


const options = { const options = {
type: 2, type: 2,
data: { data: {
type: imageType,
type: magType,
imagePath: JSON.parse(uploadFileRes.data).data.ossFilePath, imagePath: JSON.parse(uploadFileRes.data).data.ossFilePath,
}, },
method: "POST", method: "POST",

Loading…
取消
儲存