|
@@ -97,42 +97,14 @@ function showInsufficientBalanceDialog() {
|
|
|
))
|
|
|
}
|
|
|
|
|
|
-// 显示支付成功对话框
|
|
|
-function showPaymentSuccessDialog() {
|
|
|
- Object.assign(dialogConfig.value, DialogUtils.success(
|
|
|
- t('checkout.dialog.paymentSuccess'),
|
|
|
- {
|
|
|
- confirmText: t('checkout.dialog.viewOrder'),
|
|
|
- showConfirm: true,
|
|
|
- },
|
|
|
- ))
|
|
|
-}
|
|
|
-
|
|
|
-// 显示支付失败对话框
|
|
|
-function showPaymentFailedDialog() {
|
|
|
- Object.assign(dialogConfig.value, DialogUtils.error(
|
|
|
- t('checkout.dialog.paymentFailed'),
|
|
|
- {
|
|
|
- confirmText: t('checkout.dialog.retryPayment'),
|
|
|
- },
|
|
|
- ))
|
|
|
-}
|
|
|
-
|
|
|
-// 显示网络错误对话框
|
|
|
-function showNetworkErrorDialog() {
|
|
|
- Object.assign(dialogConfig.value, DialogUtils.error(
|
|
|
- t('checkout.dialog.networkError'),
|
|
|
- {
|
|
|
- confirmText: t('checkout.dialog.retry'),
|
|
|
- iconSize: '100rpx',
|
|
|
- },
|
|
|
- ))
|
|
|
-}
|
|
|
-
|
|
|
// 下单处理
|
|
|
async function handlePlaceOrder() {
|
|
|
const params = {
|
|
|
preOrderNo: queryParams.value.preOrderId,
|
|
|
+ type: queryParams.value.groupType,
|
|
|
+ pinkId: queryParams.value.pinkId,
|
|
|
+ cid: queryParams.value.cid,
|
|
|
+ groupType: queryParams.value.groupType,
|
|
|
}
|
|
|
const orderRes = await createOrder(params)
|
|
|
console.log(orderRes)
|
|
@@ -140,9 +112,6 @@ async function handlePlaceOrder() {
|
|
|
const payRes = await payOrder({
|
|
|
orderId: orderRes?.data?.columns?.orderNo,
|
|
|
type: queryParams.value.groupType,
|
|
|
- pinkId: queryParams.value.pinkId,
|
|
|
- cid: queryParams.value.cid,
|
|
|
- groupType: queryParams.value.groupType,
|
|
|
})
|
|
|
console.log(payRes)
|
|
|
if (payRes.code === '8000') {
|