105 lines
3.8 KiB
HTML
105 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<title>支付结果查询</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<link rel="stylesheet" href="./libs/bootstrap/bootstrap.min.css?__HTML_VERSION__=3">
|
|
<link rel="stylesheet" href="./libs/font-awesome.min.css?__HTML_VERSION__=3">
|
|
<link rel="stylesheet" href="./css/common.css?__HTML_VERSION__=7">
|
|
</head>
|
|
<body class="color-dark">
|
|
<div class="container" id="app" v-show="!isLoading" style="display: none">
|
|
<h3 class="text-center">{{billInfo.info}}</h3>
|
|
<div class="circle-box">
|
|
|
|
<table class="table table-bordered table-striped">
|
|
<caption class="text-center">订单信息</caption>
|
|
<tbody>
|
|
<tr><th class="col-xs-3">昵称</th><td>{{billInfo.nickname}}</td></tr>
|
|
<tr><th>支付金额</th><td>{{billInfo.paymoney}}</td></tr>
|
|
<tr><th>支付状态</th><td>{{billInfo.info}}</td></tr>
|
|
</tbody>
|
|
</table>
|
|
<p class="text-danger text-center">充值后预计几分钟后到账,请稍等一会查看</p>
|
|
</div>
|
|
|
|
<a href="javascript:window.location.reload();" class="btn btn-success center-block w60">刷新</a>
|
|
<br>
|
|
<button @click="jumpRouter" class="btn btn-primary center-block w60">返回</button>
|
|
|
|
</div>
|
|
|
|
<script src="./libs/jquery.min.js?__HTML_VERSION__=3"></script>
|
|
<script src="./libs/bootstrap/bootstrap.min.js?__HTML_VERSION__=3"></script>
|
|
<script src="./libs/layer_mobile/layer.js?__HTML_VERSION__=3"></script>
|
|
<script src="./libs/vue.min.js?__HTML_VERSION__=3"></script>
|
|
<script src="./js/function.js?__HTML_VERSION__=18"></script>
|
|
<script>
|
|
new Vue(
|
|
{
|
|
el: "#app",
|
|
data: {
|
|
isLoading: true,
|
|
billInfo: {
|
|
error: '查询中...'
|
|
},
|
|
params: {}
|
|
},
|
|
methods: {
|
|
jumpRouter: function () {
|
|
var state = this.params.state;
|
|
state = 'sales';
|
|
if(state === 'player')
|
|
window.location.href = './player_buy.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
|
else if(state === 'become' && parseInt(this.billInfo.state) === 0)
|
|
window.location.href = './manage_login.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
|
else if(state === 'become' && parseInt(this.billInfo.state) !== 0)
|
|
window.location.href = './become_sales.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
|
else if(state === 'sales')
|
|
window.location.href = './your_purchase_new.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
|
else
|
|
window.location.href = './index.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
|
}
|
|
},
|
|
created: function () {
|
|
this.params = $.getQueryObj();
|
|
var that = this;
|
|
|
|
//$.getWxInfo(function (wxInfo) {
|
|
$.apiv2(
|
|
'agent.order.isPayV2',
|
|
{
|
|
agentid: that.params.agentid,
|
|
channelid: that.params.channelid,
|
|
//openid: wxInfo.openid,
|
|
//unionid: wxInfo.unionid,
|
|
billcode: that.params.order_no,
|
|
type: that.params.type
|
|
},
|
|
function (res) {
|
|
if(!res.paystate)
|
|
res.info = '未查询到该订单';
|
|
else if(res.paystate == 1)
|
|
res.info = '支付成功';
|
|
else
|
|
res.info = '支付失败!可能网络有延迟,请刷新看看.';
|
|
|
|
that.billInfo = res;
|
|
that.isLoading = false;
|
|
},
|
|
function (code, info) {
|
|
that.billInfo.state = code;
|
|
that.billInfo.info = info;
|
|
that.isLoading = false;
|
|
|
|
}, true
|
|
)
|
|
//})
|
|
|
|
}
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |