Files
juipnet/Host/Views.Mobile/User/CashOut.cshtml
“wanyongkang” b562aba2b1 忽略dll文件git
2023-07-29 10:19:42 +08:00

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>