12312
This commit is contained in:
parent
6f14e869ea
commit
8eb2681435
@ -4,10 +4,13 @@ const props=defineProps({
|
||||
type:Function,
|
||||
}
|
||||
})
|
||||
const route = useRoute()
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<van-floating-bubble
|
||||
v-if="route.path!=='/'"
|
||||
axis="xy"
|
||||
magnetic="x"
|
||||
:offset="{ x: 300, y: 50 }"
|
||||
|
@ -184,6 +184,7 @@ const goPay = () => {
|
||||
payment.value.leftCurrency=auctionData.value.needPayBuys?.[0]?.leftCurrency
|
||||
payment.value.leftPrice=auctionData.value.needPayBuys?.[0]?.leftPrice
|
||||
payment.value.buyUid=auctionData.value.needPayBuys?.[0]?.uuid
|
||||
payment.value.auctionArtworkUuid=auctionData.value.needPayBuys?.[0]?.auctionArtworkUuid
|
||||
handleCapture()
|
||||
router.push('/signature/protocol')
|
||||
}
|
||||
|
@ -3,10 +3,12 @@ import {showToast} from 'vant';
|
||||
import {onMounted, onUnmounted, ref} from 'vue';
|
||||
import {signOffline, signOnline} from "~/api/goods/index.js";
|
||||
import {VueSignaturePad} from "vue-signature-pad";
|
||||
import {authStore} from "~/stores/auth/index.js";
|
||||
const router = useRouter();
|
||||
definePageMeta({
|
||||
layout: ''
|
||||
})
|
||||
const { userInfo ,payment} = authStore()
|
||||
const signaturePad = ref(null);
|
||||
const isLandscapeMode = ref(false);
|
||||
|
||||
@ -58,7 +60,7 @@ const submitSignature = () => {
|
||||
};
|
||||
const confirm = async () => {
|
||||
const res = await signOnline({
|
||||
auctionArtworkUuid:'',
|
||||
auctionArtworkUuid:payment.value.auctionArtworkUuid,
|
||||
signImgFileData: imgUrl.value
|
||||
})
|
||||
if (res.status===0){
|
||||
|
@ -8,7 +8,8 @@ export const authStore = createGlobalState(() => {
|
||||
const payment=useLocalStorage('payment',{
|
||||
leftPrice:'',
|
||||
leftCurrency:'',
|
||||
buyUid:''
|
||||
buyUid:'',
|
||||
auctionArtworkUuid:''
|
||||
})
|
||||
|
||||
return{
|
||||
|
Loading…
Reference in New Issue
Block a user