|
|
@@ -2836,7 +2836,7 @@ const handleGetPayCode = () => {
|
|
|
quoteData.value[underwritingIndex.value]?.quoteResult.ordersNo
|
|
|
).then((res: any) => {
|
|
|
if(res.code == 200) {
|
|
|
- payCodeSrc.value = res.data?.qrcode
|
|
|
+ srcChange(res.data?.qrcode)
|
|
|
payCodeShow.value = true
|
|
|
} else {
|
|
|
payCodeSrc.value = ''
|
|
|
@@ -2847,6 +2847,12 @@ const handleGetPayCode = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+const srcChange = async (url) => {
|
|
|
+ payCodeSrc.value = await QRCode.toDataURL(url, {
|
|
|
+ width: 150,
|
|
|
+ margin: 2
|
|
|
+ });
|
|
|
+}
|
|
|
const handlePayCodeClose = () => {
|
|
|
payCodeSrc.value = ''
|
|
|
payCodeShow.value = false
|