新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
22
hooks/usePay.js
Normal file
22
hooks/usePay.js
Normal file
@ -0,0 +1,22 @@
|
||||
import { ref, unref} from "vue";
|
||||
import {useRouter} from "@/hooks/useRouter";
|
||||
|
||||
export function usePay() {
|
||||
const payPopupRef = ref()
|
||||
const { push } = useRouter()
|
||||
|
||||
function openPay(orderId) {
|
||||
unref(payPopupRef).show(orderId)
|
||||
}
|
||||
|
||||
|
||||
function paySuccess() {
|
||||
push({url: '/pages/payStatus/index?type=1'})
|
||||
}
|
||||
|
||||
return {
|
||||
payPopupRef,
|
||||
openPay,
|
||||
paySuccess
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user