优惠券

This commit is contained in:
“wanyongkang”
2021-03-30 21:54:29 +08:00
parent 99e6255230
commit a9d94db472
3 changed files with 23 additions and 4 deletions

View File

@@ -199,7 +199,7 @@
<img src="~/img/p4.png"><a href="/user/myaccounts">IP账号管理</a>
</div>
<div class="item @(currentPath=="/user/mycoupons"?"active_b":"")">
<img src="~/img/p5.png"><a href="/user/mycoupons">我的优惠券</a>
<img src="~/img/p5.png"><a href="/user/mycoupons">我的优惠券&nbsp;<span style="background-color: red;" class="badge" id="coupon_num"></span></a>
</div>
<div class="item @(currentPath=="/user/cashout"?"active_b":"")">
<span class="glyphicon glyphicon-jpy" style="padding: 10px;"></span><a href="/user/cashout">提现管理</a>
@@ -211,7 +211,16 @@
</div>
</div>
<script id="qd28521381485d6faa97edf5ad07d7e159f6cb902af0" src="https://wp.qiye.qq.com/qidian/2852138148/5d6faa97edf5ad07d7e159f6cb902af0" charset="utf-8" async defer></script>
<script>
var url = '/api/sells/v1/coupon/GetAvailableCoupon';
$.ajax({
type: 'GET',
url: url,
success: function (res) {
$("#coupon_num").text(res.Data.length);
}
})
</script>
@RenderSection("Scripts", required: false)
</body>
</html>