Commit d184d179 authored by malin's avatar malin

t

parent 902d8df1
...@@ -111,7 +111,10 @@ ...@@ -111,7 +111,10 @@
换一批 换一批
</div> </div>
</div> </div>
<div class="fc-9 fs-28">一共有200个起名推荐,请翻页查看</div> <div class="fc-9 fs-28">
一共有200个起名推荐,请翻页查看{{ orderId }}
</div>
<div>{{ testInfo }}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -149,6 +152,8 @@ export default { ...@@ -149,6 +152,8 @@ export default {
words: 3, words: 3,
page: 1, page: 1,
counter: 1, counter: 1,
orderId: "",
testInfo: "",
}; };
}, },
...@@ -201,6 +206,7 @@ export default { ...@@ -201,6 +206,7 @@ export default {
// 网络请求,当支付失败时,跳转到支付页面 // 网络请求,当支付失败时,跳转到支付页面
_queryOrder() { _queryOrder() {
let orderId = utils.getCookie("orderId"); let orderId = utils.getCookie("orderId");
this.orderId = orderId;
let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj"))); let h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
let params = { let params = {
outTradeNo: orderId, outTradeNo: orderId,
...@@ -210,11 +216,12 @@ export default { ...@@ -210,11 +216,12 @@ export default {
// pkg: h5LogsObj.pkg // pkg: h5LogsObj.pkg
pkg: "com.h5game.bbqm", pkg: "com.h5game.bbqm",
}; };
this.testInfo = JSON.stringify(params);
API.API_gatewayQueryOrder(params).then((res) => { API.API_gatewayQueryOrder(params).then((res) => {
let status = res.result.data.status; let status = res.result.data.status;
if (status != 200) { 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