60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
|
|
@{
|
|
Layout = "_Layout";
|
|
}
|
|
<div id="app" style="margin-top: 10%;">
|
|
<table class="table">
|
|
<caption>提现管理</caption>
|
|
<thead>
|
|
<tr>
|
|
<th>提现金额</th>
|
|
<th>支付宝账号</th>
|
|
<th>状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="info in tableData">
|
|
<td>{{info.money}}</td>
|
|
<td>{{info.alipay_account}}</td>
|
|
<td>{{info.status}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
var vm = new Vue({
|
|
el:'#app',
|
|
data:{
|
|
tableData: [],
|
|
},
|
|
created:function(){
|
|
this.post();
|
|
},
|
|
methods:{
|
|
post:function(){
|
|
var param = [];
|
|
let cashOutData = {
|
|
cookie:document.cookie
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
async:false,
|
|
url: 'http://php-api.juip.com/order/CashOutIndex/getData',
|
|
dataType: "json",
|
|
contentType: "application/json",
|
|
data: JSON.stringify(cashOutData),
|
|
beforeSend: function(xhr) {
|
|
xhr.withCredentials = true;
|
|
},
|
|
crossDomain: true,
|
|
success: function (res) {
|
|
if (res.Code == 10000) {
|
|
param = res.data;
|
|
}
|
|
}
|
|
});
|
|
this.tableData = param;
|
|
}
|
|
}
|
|
});
|
|
</script> |