ros phone

This commit is contained in:
“wanyongkang”
2022-05-21 16:19:16 +08:00
parent 839f1af151
commit c286ded801
8 changed files with 471 additions and 5 deletions

View File

@@ -13,6 +13,7 @@
<li><img src="~/m/img/p1.png"><a asp-action="indexInfo" asp-controller="user">个人信息<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p3.png"><a asp-action="myaccounts" asp-controller="user">IP账号管理<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p3.png"><a asp-action="mymoney" asp-controller="user">资金明细<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p3.png"><a href="/user/rosorder">软路由订单<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p1.png"><a asp-action="myorders" asp-controller="user">我的订单<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p2.png"><a asp-action="myrefundorders" asp-controller="user">退货订单<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p4.png"><a asp-action="mycoupons" asp-controller="user">我的优惠券&nbsp;<span style="background-color: red;font-size:25px;" class="badge" id="coupon_num"></span><img src="~/m/img/arrow.png"></a></li>

View File

@@ -0,0 +1,63 @@
@{
Layout = "_UserLayout";
}
<div id="app" style="padding-top: 5em;">
<table class="table">
<caption>软路由订单列表</caption>
<thead>
<tr>
<th>软路由</th>
<th>实付</th>
<th>收货人姓名</th>
<th>收货人电话</th>
<th>收货人地址</th>
</tr>
</thead>
<tbody>
<tr v-for="info in tableData">
<td>{{info.product_name}}</td>
<td>{{info.real_price}}</td>
<td>{{info.user}}</td>
<td>{{info.phone}}</td>
<td>{{info.address}}</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/ros/order/getList',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(cashOutData),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
param = res.data;
console.log(res)
}
});
this.tableData = param;
}
}
});
</script>