1
This commit is contained in:
1 parent
8bff006f5a
commit
0cd9c1f936
2 files changed
+5
-5
No files matched your search
@@ -130,6 +130,7 @@ const handleDelete = () => {
|
||||
|
||||
// 点击支付
|
||||
const handlePay = async () => {
|
||||
if (!scanData.value.id || !scanData.value.name) return uni.showToast({ title: "扫码信息不存在", icon: "none" })
|
||||
if (!amount.value) {
|
||||
uni.showToast({ title: "请输入金额", icon: "none" })
|
||||
return
|
||||
@@ -141,7 +142,7 @@ const handlePay = async () => {
|
||||
try {
|
||||
uni.showLoading({ title: "支付中...", mask: true })
|
||||
const res = await payApi.createQrCodeOrder({
|
||||
id: scanData.value.id,
|
||||
merchantId: scanData.value.id,
|
||||
customPrice: storePrice(Number(amount.value)),
|
||||
})
|
||||
if (res.code === 0) {
|
||||
|
||||
Reference in new issue
Block a user