添加后台代理代码
This commit is contained in:
94
codes/agent/game/dlweb/api/web2/notify_a.html
Normal file
94
codes/agent/game/dlweb/api/web2/notify_a.html
Normal file
@@ -0,0 +1,94 @@
|
||||
<!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 v-if="billInfo.playername || billInfo.salesname"><th class="col-xs-3">昵称</th><td>{{billInfo.playername || billInfo.salesname}}</td></tr>
|
||||
<tr v-if="billInfo.playerid || billInfo.salesid"><th>ID</th><td>{{billInfo.playerid || billInfo.salesid}}</td></tr>
|
||||
<tr><th>数量</th><td>{{billInfo.amount}}</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 () {
|
||||
window.location.href = './your_purchase.html?agentid='+this.params.agentid+'&channelid='+this.params.channelid;
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
this.params = $.getQueryObj();
|
||||
var that = this;
|
||||
|
||||
//$.getWxInfo(function (wxInfo) {
|
||||
$.apiv2(
|
||||
'agent.order.isPay',
|
||||
{
|
||||
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 == 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>
|
||||
Reference in New Issue
Block a user