订单

parent de5cfde9
...@@ -79,3 +79,11 @@ export function applyForARefundApi(data) { ...@@ -79,3 +79,11 @@ export function applyForARefundApi(data) {
data, data,
}); });
} }
export function afterSale(data) {
return request({
url: '/sgyrdd/sgyOrder/afterSales/getInfo',
method: 'GET',
data,
});
}
...@@ -279,18 +279,17 @@ function submitOrder() { ...@@ -279,18 +279,17 @@ function submitOrder() {
let timeout = null; let timeout = null;
const start = new Date().getTime(); const start = new Date().getTime();
const { paymentUrl, outTradeNo } = res.data.result; const { paymentUrl, outTradeNo } = res.data.result;
console.log('merchantNo', outTradeNo);
outTradeNos.value = outTradeNo; outTradeNos.value = outTradeNo;
window.location.href = paymentUrl; window.location.href = paymentUrl;
timeout = setTimeout(function () { timeout = setTimeout(function () {
const end = new Date().getTime(); const end = new Date().getTime();
// 如果超时未打开应用,则假设未安装 // 如果超时未打开应用,则假设未安装
if (end - start < 1000) { if (end - start < 1000) {
xma.showToast({ xma.showToast({
title: '未安装App', title: '未安装App',
icon: 'none', icon: 'error',
}); });
groupBuyConfirmFn(prodIds.value, skuIds.value);
} }
}, 1500); }, 1500);
......
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 to comment