liveh5-nuxt/app/stores/auth/index.js
xingyy d1579247e1 feat(payment): 集成 Stripe 支付功能
- 新增 Stripe 支付相关的组件和页面
- 实现了支付流程的初始化、表单提交和结果处理
- 优化了支付页面的样式和交互
- 更新了部分 API 接口以支持新的支付功能
2025-02-28 15:08:48 +08:00

26 lines
821 B
JavaScript

import { createGlobalState,useLocalStorage } from '@vueuse/core'
export const authStore = createGlobalState(() => {
const token=useLocalStorage('token','')
const RefreshToken=useLocalStorage('RefreshToken','')
const userInfo=useLocalStorage('userInfo',{})
const fingerprint=useLocalStorage('fingerprint','')
const checkoutSessionUrl=useLocalStorage('checkoutSessionUrl','')
const selectedZone=useLocalStorage('selectedZone','')
const payment=useLocalStorage('payment',{
leftPrice:'',
leftCurrency:'',
buyUid:'',
auctionArtworkUuid:''
})
const payUid=useLocalStorage('payUid','')
return{
payUid,
selectedZone,
payment,
checkoutSessionUrl,
userInfo,
RefreshToken,
token,
fingerprint
}
})