|
|
@@ -19,7 +19,7 @@ |
|
|
|
<image v-if="!state.form.posImgUrl" class="icon" :src="`${$imgUrl}applyCard/zhizhao.png`" |
|
|
|
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"> |
|
|
|
</image> |
|
|
|
<image v-else class="icon" :src="strReplace(state.form.posImgUrl)" |
|
|
|
<image v-else class="icon" :src="strReplace(state.form.posImgName)" |
|
|
|
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -55,7 +55,7 @@ |
|
|
|
:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="picture-wrapper" @click="cardFileImageUpdate()"> |
|
|
|
<view class="picture-wrapper" @click="cardFileImageUpdate(99)"> |
|
|
|
<view class="bg"> |
|
|
|
<view class=""> |
|
|
|
<view class="name"> 委托书 </view> |
|
|
@@ -288,15 +288,19 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
state.form.tel = state.form.agentTel |
|
|
|
registerRequest().then((result : any) => { |
|
|
|
console.log("result", result) |
|
|
|
if (!getItem('openId')) { |
|
|
|
setItem('token', result.accessToken) |
|
|
|
setItem('openId', result.openId) |
|
|
|
setItem('mobile', state.form.tel) |
|
|
|
state.form.opId = getItem('openId') ? getItem('openId') : ''; |
|
|
|
} |
|
|
|
var data = state.form; |
|
|
|
// registerRequest().then((result : any) => { |
|
|
|
// console.log("result", result) |
|
|
|
// if (!getItem('openId')) { |
|
|
|
// setItem('token', result.accessToken) |
|
|
|
// setItem('openId', result.openId) |
|
|
|
// setItem('mobile', state.form.tel) |
|
|
|
// state.form.opId = getItem('openId') ? getItem('openId') : ''; |
|
|
|
// } |
|
|
|
var data = { |
|
|
|
...state.form, |
|
|
|
orderNo: state.orderId, |
|
|
|
userPosImgUrl: state.form.posImgUrl |
|
|
|
}; |
|
|
|
const options = { |
|
|
|
type: 2, |
|
|
|
data: data, |
|
|
@@ -309,7 +313,7 @@ |
|
|
|
`/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&vanType=${state.vanType}&vehicleId=${state.vehicleId}`, |
|
|
|
); |
|
|
|
}); |
|
|
|
}) |
|
|
|
// }) |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@@ -375,7 +379,10 @@ |
|
|
|
state.form.userName = data.unitName; |
|
|
|
state.form.userIdNum = data.screditCode; |
|
|
|
state.form.userAddress = data.adress |
|
|
|
debugger |
|
|
|
state.form.posImgUrl = data.imageUrl; |
|
|
|
state.form.posImgName = data.imageName; |
|
|
|
// state.form.userPosImgUrl = data.imageUrl; |
|
|
|
// uploadFile(res.tempFilePaths[0], "", "").then((data: any) => { |
|
|
|
// state.form.posImgUrl = data; pos |
|
|
|
// state.form.userNegImgUrl = data; |
|
|
@@ -389,15 +396,17 @@ |
|
|
|
const camera = () => { |
|
|
|
state.phoneType = 0 |
|
|
|
} |
|
|
|
const cardFileImageUpdate = () => { |
|
|
|
const cardFileImageUpdate = (val) => { |
|
|
|
uni.chooseImage({ |
|
|
|
count: 1, //只能选取一张照片 |
|
|
|
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有 |
|
|
|
sourceType: ["camera", "album"], //从相册选择 |
|
|
|
success: function (res) { |
|
|
|
state.form.proxyUrlName = res.tempFilePaths[0]; |
|
|
|
uploadFile(res.tempFilePaths[0], "").then((data) => { |
|
|
|
state.form.proxyUrl = data; |
|
|
|
uploadFile(res.tempFilePaths[0], val).then((data) => { |
|
|
|
// state.form.proxyUrl = data; |
|
|
|
state.form.proxyUrl = data.imageUrl; |
|
|
|
// state.form.proxyUrlName = data.imageUrl; |
|
|
|
}) |
|
|
|
}, |
|
|
|
}); |