Commit 902d8df1 authored by malin's avatar malin

test

parent a901cd95
......@@ -269,9 +269,11 @@ export default {
utils.setCookie("orderId", params.result.data.orderId, 0); // 将orderId添加到cookie中
// this._queryOrder();
// 上报 --> 信息收集
API.API_h5Logs({
outTradeNo: params.orderId,
outTradeNo: params.result.data.orderId,
link: link,
clickId: h5LogsObj.clickid,
source: h5LogsObj.source,
......@@ -298,6 +300,32 @@ export default {
});
},
_queryOrder() {
let orderId = utils.getCookie("orderId");
let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
let params = {
outTradeNo: orderId,
payPlatform: 1,
payType: 2,
wxType: "H5Page",
// pkg: h5LogsObj.pkg
pkg: "com.h5game.bbqm",
};
API.API_gatewayQueryOrder(params).then((res) => {
let status = res.result.data.status;
if (status == 200) {
// 支付成功
return;
} else if (status == 500) {
// 支付不成功
this.$router.push({
path: "/pay",
query: this.babyInfo,
});
}
});
},
// 倒计时
showtime(endTime) {
let nowTime = new Date().getTime();
......
......@@ -212,15 +212,9 @@ export default {
};
API.API_gatewayQueryOrder(params).then((res) => {
let status = res.result.data.status;
if (status == 200) {
// 支付成功
return;
} else if (status == 500) {
if (status != 200) {
// 支付不成功
this.$router.push({
path: "/pay",
query: this.babyInfo,
});
this.$router.push({ path: "/pay", query: this.babyInfo });
}
});
},
......
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