Files
juipnet/Host/Views.Mobile/User/Index.cshtml
2024-04-16 18:05:27 +08:00

71 lines
3.5 KiB
Plaintext

@using Home.Models
@using Hncore.Pass.BaseInfo.Response
@model UserHomeModel
@{
Layout = "_Layout";
}
<vc:redirecct-login></vc:redirecct-login>
<div class="ptop">
<a class="pname">@Model.UserModel.LoginCode</a>
</div>
<ul class="plist">
<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>IP/软路由 <span style="float:right;padding-right: 1em;" class="glyphicon glyphicon-chevron-down"></span></a></li>
<li><a style="margin-left:2em;" asp-action="myaccounts" asp-controller="user">IP账号管理<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" asp-action="mymoney" asp-controller="user">资金明细<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" href="/user/rosorder">软路由订单<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" asp-action="myorders" asp-controller="user">我的订单<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" asp-action="myrefundorders" asp-controller="user">退货订单<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" 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>
<li><a style="margin-left:2em;" asp-action="cashout" asp-controller="user">提现管理<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p3.png"><a>HTTP管理 <span style="float:right;padding-right: 1em;" class="glyphicon glyphicon-chevron-down"></span></a></li>
<li><a style="margin-left:2em;" href="/user/httprecharge">HTTP充值记录<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" href="/user/httppackageList">短效套餐<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" href="/user/httplongterm">长效管理<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" href="/user/httpusehistory">使用记录<img src="~/m/img/arrow.png"></a></li>
<li><a style="margin-left:2em;" href="/user/httpwhiteip">白名单设置<img src="~/m/img/arrow.png"></a></li>
<li><img src="~/m/img/p3.png"></span><a href="/user/jinqiao">金桥投屏<img src="~/m/img/arrow.png"></a></li>
</ul>
<script>
var url = '/api/sells/v1/coupon/GetAvailableCoupon';
$.ajax({
type: 'GET',
url: url,
success: function (res) {
$("#coupon_num").text(res.Data.length);
}
})
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
var is_realname = getQueryString('realname');
if(is_realname){
let data = {
cookie:document.cookie
}
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/api/test/aliGetResult',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
}
});
}
</script>