Commit 7d6edd26 by Jony.L

新支付功能测试2.0

parent c24e2a5c
......@@ -269,6 +269,7 @@
></iframe>
</div>
</el-dialog>
</div>
</template>
......@@ -309,10 +310,11 @@ const pdfUrl = ref(import.meta.env.VITE_APP_BASE_API+'/infra/file/preview?url=ht
const qrCode = ref({
url: '',
title: '请使用微信”扫一扫“扫码支付',
title: '请使用微信或支付宝扫码支付',
visible: false
})
function getTypeData() {
categoryMenuNew().then(res => {
productTypes.value = res.data
......@@ -417,6 +419,7 @@ function create() {
// 创建订单(使用旺铺聚合支付)
createOrderSubmitWpgj(createData).then(res => {
console.log('WPGJ支付响应数据:', res.data);
if (res.data.payOrderId) {
// 弹出确认对话框
ElMessageBox.confirm(
......@@ -429,11 +432,14 @@ function create() {
}
)
.then(() => {
// WPGJ支付不需要再调用createPay,直接生成二维码
// WPGJ聚合支付处理 - 后端现在直接返回AppPayOrderSubmitRespVO
if (res.data.displayContent) {
getCode(res.data.displayContent, res.data.payOrderId)
// 使用displayContent字段生成二维码
getCode(res.data.displayContent, null); // WPGJ接口不需要payOrderId
} else {
ElMessage.error('获取支付信息失败');
}
// showDrawer.value = false;
showDrawer.value = false;
})
.catch(() => {
ElMessageBox.confirm(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment