Commit 4e95058d authored by malin's avatar malin

t

parent 67188bfc
......@@ -111,16 +111,10 @@
换一批
</div>
</div>
<div class="fc-9 fs-28">
一共有200个起名推荐,请翻页查看{{ orderId }}
</div>
<div class="fc-9 fs-28">一共有200个起名推荐,请翻页查看</div>
</div>
</div>
</div>
<div>{{ testInfo }}</div>
<div>testSuccess:{{ testSuccess }}</div>
<div>testUnSuccess:{{ testUnSuccess }}</div>
</div>
</div>
</template>
......@@ -155,10 +149,7 @@ export default {
words: 3,
page: 1,
counter: 1,
orderId: "",
testInfo: "",
testSuccess: "",
testUnSuccess: "",
countdown: 0,
};
},
......@@ -211,7 +202,6 @@ export default {
// 网络请求,当支付失败时,跳转到支付页面
_queryOrder() {
let orderId = utils.getCookie("orderId");
this.orderId = orderId;
let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
let params = {
outTradeNo: orderId,
......@@ -224,13 +214,18 @@ export default {
this.testInfo = JSON.stringify(params);
API.API_gatewayQueryOrder(params).then((res) => {
let status = res.result.data.status;
if (status != 200) {
// 支付不成功
// this.$router.push({ path: "/pay", query: this.babyInfo });
this.testUnSuccess = status;
} else {
this.testSuccess = status;
}
let timer = setInterval(() => {
this.countdown += 1;
if (status == 200) {
clearInterval(timer);
} else {
// 支付不成功
if (this.countdown < 4) {
this._queryOrder();
}
this.$router.push({ path: "/pay", query: this.babyInfo });
}
}, 1000);
});
},
......
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