测试卡实名
This commit is contained in:
@@ -287,7 +287,7 @@
|
||||
<div class="nav" style="width:175px;">
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
@if( item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 5){
|
||||
@if( item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 14||item.Product.Id == 5){
|
||||
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">活动</span></div>
|
||||
}
|
||||
@* else if(item.Product.Id == 4 || item.Product.Id == 13) {
|
||||
|
||||
@@ -13,7 +13,29 @@
|
||||
randomAccount = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(4).ToLower();
|
||||
}
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,会员需要实名认证方可使用该产品,点击确定进入实名认证。');
|
||||
window.location.href="/User/Index";
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.tip {
|
||||
color: red;
|
||||
|
||||
Reference in New Issue
Block a user