61 lines
2.4 KiB
Plaintext
61 lines
2.4 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 asp-action="myaccounts" asp-controller="user">IP账号管理<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">我的优惠券 <span style="background-color: red;font-size:25px;" class="badge" id="coupon_num"></span><img src="~/m/img/arrow.png"></a></li>
|
|
<li><img src="~/m/img/p4.png"></span><a asp-action="cashout" asp-controller="user">提现管理<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: 'http://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>
|