liveh5-nuxt/app/stores/auth/index.js
xingyy 43b1afb8f0 feat(collect-code): 实现线下扫码支付功能
- 新增 offlineQrcode 和 createOrder 接口
- 实现个人资讯页面的数据获取和处理
- 添加支付页面,支持全款和部分款项支付
- 优化签名协议页面,使用新接口获取数据
- 新增支付结果页面,展示支付状态和金额
2025-02-20 11:35:23 +08:00

22 lines
653 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 payment=useLocalStorage('payment',{
leftPrice:'',
leftCurrency:'',
buyUid:''
})
return{
payment,
checkoutSessionUrl,
userInfo,
RefreshToken,
token,
fingerprint
}
})