Files
juipnet/Host/Views.Mobile/User/IndexInfo.cshtml
“wanyongkang” 327a6a80d6 上传协议
2024-04-16 16:01:58 +08:00

870 lines
33 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@using Home.Models
@using Hncore.Pass.BaseInfo.Response
@model UserHomeModel
@{
Layout = "_Layout";
}
<style type="text/css">
body {
background: #f5f5f5;
}
.msg {
margin-top: 1.466666rem;
}
.lineBar {
background: #3c5eb5;
width: 5px;
height: 30px;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
}
.accout_tit {
height: 1.2rem;
line-height: 1.2rem;
border-bottom: 1px solid #eee;
font-size: 30px;
}
.model {
display: flex;
flex-direction: row;
width: 100%;
height: 0.933333rem;
line-height: 0.933333rem;
background: #fff;
flex-wrap: wrap;
height: auto;
}
.cash-out-before {
position: fixed;
width: 90%;
left: 30%;
top: 39%;
margin-left: -200px;
margin-top: -160px;
z-index: 3;
background: #fff;
border-radius: 10px;
box-shadow: 0px 6px 8px 6px #ccc;
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding: 30px;
display: none;
}
.model .item {
border-bottom: 1px solid #f5f5f5;
height: 0.933333rem;
line-height: 0.933333rem;
}
.model .item:nth-child(odd) {
width: 30%;
text-align: right;
}
.model .item:nth-child(even) {
width: 70%;
text-align: center;
color: #ccc;
}
.red {
color: red;
}
.inputBox {
width: 330px;
}
</style>
<vc:redirecct-login></vc:redirecct-login>
<div class="container msg">
<!-- 账户信息 -->
<div class="accout_tit"><span class="lineBar"></span>账户信息 <button class="btnXq" onclick="$('#infoBox').show()">完善信息</button>
<button class="btnXq" onclick="$('#pwdBox').show()">修改密码</button>
@if (Model.UserModel.is_verify == 1) {
<button class="btnXq" style="width: auto;background:green;padding:0 10px;">已实名认证</button>
} else {
<button class="btnXq" id="real-name-confirm" onclick="$('#real-name').show()">实名认证</button>
}
</div>
<div class="model">
<div class="item">
用户名:
</div>
<div class="item">
@(Model.UserModel.Phone??Model.UserModel.LoginCode)
</div>
<div class="item">
密码:
</div>
<div class="item">
<span>********</span>
</div>
<div class="item">
QQ
</div>
<div class="item">
@(Model.UserModel.QQ??"--")
</div>
<div class="item">
微信号:
</div>
<div class="item">
@(Model.UserModel.Wx??"--")
</div>
<div class="item">
淘宝会员名:
</div>
<div class="item">
@(Model.UserModel.TaoBao??"--")
</div>
<div class="item">
邮箱:
</div>
<div class="item">
@(Model.UserModel.Email??"--")
</div>
</div>
<!-- 余额 -->
<div class="accout_tit">
<span class="lineBar"></span>余额
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
<button class="btnXq" id="cash_out_confirm" onclick="tixian()">提现</button>
@* <button class="btnXq" onclick="$('#money-change').show()">资金转移</button> *@
</div>
<div class="model">
<div class="item">
余额:
</div>
<div class="item">
@Model.UserModel.RestAmount
</div>
</div>
<!-- pptv账号 -->
<div class="accout_tit"><span class="lineBar"></span>PPTP账号
<button id="argument_up" style="width:auto;padding:5px;" class="btnXq" onclick="$('#upload').show()">上传手持解屏蔽</button>
<button id="argument_done" style="width:auto;padding:5px;" class="btnXq">已上传手持解屏蔽</button>
</div>
<div class="model">
<div class="item">
使用中:
</div>
<div class="item">
@(Model.AccountModel.TotalCount-Model.AccountModel.ExpriedCount)
</div>
<div class="item">
总个数:
</div>
<div class="item">
@Model.AccountModel.TotalCount
</div>
<div class="item">
已过期:
</div>
<div class="item">
@Model.AccountModel.ExpriedCount
</div>
</div>
<!-- 消费信息 -->
<div class="accout_tit"><span class="lineBar"></span>消费信息</div>
<div class="model">
<div class="item">
今日消费:
</div>
<div class="item">
@Model.Statistic.TodayExpend
</div>
<div class="item">
今日退款:
</div>
<div class="item">
@Model.Statistic.TodayRefund
</div>
<div class="item">
今日充值:
</div>
<div class="item">
@Model.Statistic.TodayCharege
</div>
<div class="item">
当月消费:
</div>
<div class="item">
@Model.Statistic.MonthExpend
</div>
<div class="item">
当月退款:
</div>
<div class="item">
@Model.Statistic.MonthRefund
</div>
<div class="item">
当月充值:
</div>
<div class="item">
@Model.Statistic.MonthCharege
</div>
<div class="item">
本年消费:
</div>
<div class="item">
@Model.Statistic.YearExpend
</div>
</div>
</div>
<!-- 修改个人详情 -->
<div class="layerTable" id="infoBox">
<form asp-action="UpdateInfo" asp-controller="User" method="post">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>QQ</td>
<td><input type="text" name="QQ" value="@(Model.UserModel.QQ)" /></td>
</tr>
<tr>
<td>微信号:</td>
<td><input type="text" name="Wx" value="@(Model.UserModel.Wx)" /></td>
</tr>
<tr>
<td>淘宝会员名:</td>
<td><input type="text" name="TaoBao" value="@(Model.UserModel.TaoBao)" /></td>
</tr>
<tr>
<td>邮箱:</td>
<td><input type="text" name="Email" value="@(Model.UserModel.Email)" /></td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#infoBox').hide()">返回</button>
<button type="submit" class="btnXq">确定</button>
</div>
</form>
</div>
<div class="layerTable" id="upload" style="overflow:auto;padding-bottom: 3rem;">
<h3>上传使用协议</h3>
<p>您可通过以下要求勾选同意网络安全协议书后联系客服审核然后解除微信QQ等屏蔽新增的账号不会自动解除记得联系客服哦</p>
<form enctype="multipart/form-data">
<div class="form-group">
<label for="name">描详细述业务用途<span class="glyphicon glyphicon-asterisk" style="color:red;"></span></label>
<input type="text" v-model="describe" class="form-control" id="name" placeholder="请描述业务用途">
</div>
<div class="form-group">
<label for="xieyi">上传手持身份证<span class="glyphicon glyphicon-asterisk" style="color:red;"></span></label>
<input type="file" id="xieyi" name="xieyi" accept="image/*">
<p class="help-block">手持身份证的半身照片 </p>
</div>
<div class="form-group">
<label for="name">网络安全协议书<span class="glyphicon glyphicon-asterisk" style="color:red;"></span></label>
<div style="background-color: white;padding: 0.5rem;">
<h1 class="text-center">网络信息安全承诺书</h1>
<p>本单位(包含个人)郑重承诺遵守本承诺书的有关条款,如有违反本承诺书有关条款的行为,本单位(包含个人)承担由此带来的一切民事、行政和刑事责任。</p>
<p>一、本单位(包含个人)承诺遵守《中华人民共和国计算机信息系统安全保护条例》和《计算机信息网络国际联网安全保护管理办法》及有关法律、法规和行政规章制度、文件规定。</p>
<p>二、本单位(包含个人)保证不利用网络危害国家安全、泄露国家秘密,不侵犯国家的、社会的、集体的利益和第三方的合法权益,不从事违法犯罪活动。</p>
<p>三、本单位(包含个人)承诺严格按照国家相关法律法规做好本单位(包含个人)网站的信息安全管理工作,按政府有关部门要求设立信息安全责任人和信息安全审查员,信息安全责任人和信息安全审查员应在通过公安机关的安全技术培训后,持证上岗。</p>
<p>四、本单位(包含个人)承诺健全各项网络安全管理制度和落实各项安全保护技术措施。</p>
<p>五、本单位(包含个人)承诺接受公安机关的监督和检查,如实主动提供有关安全保护的信息、资料及数据文件,积极协助查处通过国际联网的计算机信息网络违法犯罪行为。</p>
<p>六、本单位(包含个人)承诺不通过互联网制作、复制、查阅和传播下列信息:</p>
<p>1、反对宪法所确定的基本原则的。</p>
<p>2、危害国家安全泄露国家秘密颠覆国家政权破坏国家统一的。</p>
<p>3、损害国家荣誉和利益的。</p>
<p>4、煽动民族仇恨、民族歧视破坏民族团结的。</p>
<p>5、破坏国家宗教政策宣扬邪教和封建迷信的。</p>
<p>6、散布谣言扰乱社会秩序破坏社会稳定的。</p>
<p>7、散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的。</p>
<p>8、侮辱或者诽谤他人侵害他人合法权益的。</p>
<p>9、含有法律法规禁止的其他内容的。</p>
<p>七、本单位(包含个人)承诺不从事任何危害计算机信息网络安全的活动,包括但不限于:</p>
<p>1、未经允许进入计算机信息网络或者使用计算机信息网络资源的。</p>
<p>2、未经允许对计算机信息网络功能进行删除、修改或者增加的。</p>
<p>3、未经允许对计算机信息网络中存储或者传输的数据和应用程序进行删除、修改或者增加的。</p>
<p>4、故意制作、传播计算机病毒等破坏性程序的。</p>
<p>5、其他危害计算机信息网络安全的。</p>
<p>八、本单位(包含个人)承诺当计算机信息系统发生重大安全事故时立即采取应急措施保留有关原始记录并在24小时内向政府监管部门报告并书面知会贵单位(包含个人)。</p>
<p>九、本单位(包含个人)承诺,若本单位(包含个人)租用的拨号账号出现违规违法行为导致贵单位(指华连网络科技有限公司)被处罚的,造成的直接损失由本单位(包含个人)赔偿。</p>
<p>十、若违反本承诺书有关条款和国家相关法律法规的,本单位(包含个人)直接承担相应法律责任,造成财产损失的,由本单位(包含个人)直接赔偿。同时,贵单位(指华连网络科技有限公司)有权暂停直至解除双方合作合同。</p>
<p>十一、本承诺书自勾选确认之日起生效并遵行。</p>
</div>
</div>
<div class="form-group">
<input id="agree" v-model="status" type="checkbox">
<label for="agree">阅读、接受并同意签署以上网络信息安全承诺书</label>
</div>
</form>
<div class="row">
<div class="col-md-1">
<button v-on:click="upload_file()" class="btn btn-new ">提交</button>
</div>
</div>
</div>
<!-- 修改密码 -->
<div class="layerTable" id="pwdBox">
<form id="pwdForm">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>原密码:</td>
<td><input type="text" class="inputBox" name="OldPwd" /></td>
</tr>
<tr>
<td>新密码:</td>
<td><input type="text" class="inputBox" name="NewPwd" /></td>
</tr>
<tr>
<td>确认新密码:</td>
<td><input type="text" class="inputBox" name="ConfirmPwd" /></td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#pwdBox').hide()">返回</button>
<button type="button" class="btnXq" onclick="updatePwd()">确定</button>
</div>
</form>
</div>
<!-- 充值 -->
<div class="layerTable" id="chargeBox">
<form id="pwdForm">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>充值金额:</td>
<td><input type="number" class="inputBox" id="orderAmount" value="100" /></td>
</tr>
<tr>
<td>支付方式:</td>
<td>
<input type="radio" name="PayChannel" value="40" checked> <img src="~/img/zfb.png">支付宝支付<br />
<input type="radio" name="PayChannel" value="10"> <img src="~/img/wx.png">微信支付
</td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#chargeBox').hide()">返回</button>
<button type="button" class="btnXq" onclick="charge()">确定</button>
</div>
</form>
</div>
<!-- 提现 -->
<div class="layerTable" id="cash-out" style="margin-right:10em;">
<form id="cashForm">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>提现金额:</td>
<td><input type="number" id="cash-out-money" class="inputBox" placeholder="请输入提现金额"/></td>
</tr>
<tr>
<td>提现理由:</td>
<td><input type="text" id="cash-out-reason" class="inputBox" placeholder="请输入提现理由"/></td>
</tr>
<tr>
<td>提现支付宝账号:</td>
<td><input type="text" id="alipay-account" class="inputBox" placeholder="请输入支付宝账号"/></td>
</tr>
<tr>
<td>支付宝真实姓名</td>
<td><input type="text" id="real-name-out" class="inputBox" placeholder="请输入与支付宝关联的真实姓名"/></td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#cash-out').hide()">返回</button>
<button type="button" class="btnXq" onclick="cash_out()">确定</button>
</div>
</form>
</div>
<div class="cash-out-before">
<p>聚IP涵盖十余种全网知名旗舰产品总有一款适合您</p>
<p>联系客服帮您推荐合适的产品,我们将最大努力满足您的需求!</p>
<p class="text-center">
<button type="button" class="btn btn-primary" ><a style="color: white;" href="https://admin.qidian.qq.com/template/blue/mp/menu/qr-code-jump.html?linkType=0&env=ol&kfuin=2852138148&fid=299&key=f377ec024ca45115a03a7632c7bda230&cate=1&source=&isLBS=&isCustomEntry=&type=16&ftype=1&_type=wpa&qidian=true">联系客服</a></button>
<button type="button" class="btn btn-danger quxiao" style="margin-left:20px;" onclick="$('#cash-out').show();$('.cash-out-before').hide();">我不需要</button>
</p>
</div>
<div class="layerTable" id="real-name" style="margin-right:10em;">
<form id="id-cert">
<table border="0" cellspacing="0" cellpadding="0">
<div style="padding: 2em;">
<p>《中华人民共和国网络安全法》第二十四条规定:<br>
网络运营者为用户办理网络接入、域名注册服务,办理固定电话、移动电话等入网手续,或者为用户提供信息发布、即时通讯等服务,在与用户签订协议或者确认提供服务时,应当要求用户提供真实身份信息。用户不提供真实身份信息的,网络运营者不得为其提供相关服务。</p>
<p>1、为了你的帐号安全请勿使用他人手机号或身份信息</p>
<p>2、聚IP承诺用户的个人隐私数据仅与支付宝方面进行交互本公司不调用及储存用户的实人认证数据仅接收支付宝方面的实人认证结果</p>
<p>3、若您支付宝扫脸认证不成功请联系客服</p>
<p style="color: red;">4、若您支付宝扫脸认证已经成功请点击下方已扫脸按钮</p>
</div>
<tr>
<td>真实姓名:</td>
<td><input type="text" id="real-name-name" class="inputBox" placeholder="请输入真实姓名"/></td>
</tr>
<tr>
<td>身份证号:</td>
<td><input type="text" id="real-name-code" class="inputBox" placeholder="请输入身份证号码"/></td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#real-name').hide()">返回</button>
<button type="button" class="btnXq" onclick="realname()">确定</button><br>
</div>
</form>
<h1 id="verify-info" style="display:none;padding: 2em;font-size:30px">请截图此页面,进入支付宝扫码验证<br>请勿关闭此页面,扫脸验证完成后请返回此页面,<span style="color: red;">点击已扫脸按钮</span>,则认证成功<br>若扫脸后仍未认证成功,请联系客服</h1>
<div style="padding: 0 100px;text-align: center;"><div id="qrcode"></div></div>
<div style="margin-top: 10px;text-align: center;"><button onclick="get_verify_res()" type="button" class="btnXq" style="width: auto;padding: 0 10px;font-size:1.2em;">已扫脸请点击这里</button></div>
@* <div style="padding: 0 100px;text-align: center;"><button style="font-size:50px;" onclick="get_verify_res()" type="button" class="btn">我已扫脸点击这里</button></div> *@
</div>
<div class="layerTable" id="money-change" style="margin-right:10em;">
<form id="id-cert">
<table border="0" cellspacing="0" cellpadding="0">
<div style="margin: 0 3%;">
<p>功能介绍</p>
<p>1、此功能主要为资金无法及时到账用户使用通过不同账号之间类似支付宝转账的效果进行资金转移</p>
<p>2、输入要将资金转入的会员号以及金额点击确认即可进行资金转移</p>
</div>
<br>
<tr>
<td>转入会员号:</td>
<td><input type="text" style="width: 80%;" id="money-change-user" class="form-control" placeholder="请输入待转入会员号" ></td>
</tr>
<tr>
<td>转入资金:</td>
<td><input type="text" style="width: 80%;" id="money-change-money" class="form-control" placeholder="请输入待转入金额" ></td>
</tr>
</table>
<div class="" style="text-align:center;">
<button type="button" class="btnXq" onclick="$('#money-change').hide()">取消</button>
<button type="button" class="btnXq" onclick="moneychange()">确认</button>
</div>
</form>
<h1 id="verify-info" style="display:none;text-align: center;padding-top:100px;font-size:25px">请截图此页面,进入支付宝扫码验证,请勿关闭此页面,验证完成后请返回此页面</h1>
<div style="padding: 50px 100px;text-align: center;" id="qrcode"></div>
</div>
<!-- 支付弹窗 -->
<div id="aliPayBox" style="display:none"></div>
<script type="text/javascript" src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/qrcodejs/1.0.0/qrcode.min.js"></script>
<script>
$(function () {
if (@Model.UserModel.is_verify == 0) {
$('#real-name').show()
}
})
get_argument();
function get_argument() {
$("#argument_up").hide();
$("#argument_done").hide();
let data = {
cookie:document.cookie,
}
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/tencent/index/get_is_upload',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
if (res.code == 1) {
$("#argument_up").hide();
$("#argument_done").show();
} else {
$("#argument_up").show();
$("#argument_done").hide();
}
}
});
}
var vm = new Vue({
el:'#upload',
data:{
describe:'',
status:false,
},
created:function(){
},
methods:{
upload_file() {
var xieyi = document.getElementById("xieyi").files[0];
if(!this.status) {
alert("请勾选同意协议!");
return;
}
if (this.describe.length < 2) {
alert("业务描述必须填写!");
return;
}
if (!xieyi) {
alert("手持身份证必须上传!");
}
var form_data = new FormData();
form_data.append('cookie',document.cookie);
form_data.append('describe',this.describe);
form_data.append('id_code',this.id_code);
form_data.append('status',this.status);
form_data.append('xieyi',xieyi);
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/tencent/index/upload',
dataType: "json",
async:false,
contentType:false,//如果请求参数是FormData 必须设置 contentType请求头为false
processData:false,//如果请求参数是FormData 必须设置 processData请求头为false
data: form_data,
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
alert(res.msg);
}
});
}
}
});
var t1 = null;
/** 表单序列化成json字符串的方法 */
function form2JsonString(formId) {
var paramArray = $('#' + formId).serializeArray();
var jsonObj = {};
$(paramArray).each(function () {
jsonObj[this.name] = this.value;
});
console.log(jsonObj);
return JSON.stringify(jsonObj);
}
function updatePwd() {
var that = this;
$.ajax({
type: 'POST',
url: '/user/UpdatePwd',
dataType: "json",
contentType: "application/json",
data: form2JsonString("pwdForm"),
success: function (res) {
console.log(res);
if (res.Code == 10000) {
$("#pwdBox").hide();
} else {
alert(res.Message)
}
}
});
}
function h5WxPay(payData) {
window.location.href = payData;
}
function jsWxPay(payData) {
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
JSON.parse(payData),
function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") {
window.location.href = "/User/indexInfo";
} else if (res.err_msg == "get_brand_wcpay_request:cancel") {
} else {
alert("支付失败" + res.err_msg);
}
});
}
function aliPay(payData) {
$("#aliPayBox").html(payData);
}
function payCallback(data) {
var orderInfo = data.OrderInfo;
if (!data.PayData) { alert("下单失败"); return; }
var payChannel = orderInfo.PayChannel;
if (payChannel == 10) {
h5WxPay(data.PayData)
} else if (payChannel == 20) {
jsWxPay(data.PayData);
} else if (payChannel == 40) {
aliPay(data.PayData);
}
}
function charge() {
var chargeData = {
ChargeAmount: $('#orderAmount').val(),
PayChannel: $('input[name="PayChannel"]:checked').val()
}
if (isWeiXin()) {
chargeData.PayChannel = 20;
}
$.ajax({
type: 'POST',
url: '/user/CreateOrder',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(chargeData),
success: function (res) {
console.log(res);
if (res.Code == 10000) {
payCallback(res.Data)
} else {
alert(res.Message);
}
}
});
}
// function realname(){
// let id_code = $('#real-name-code').val(),
// name = $('#real-name-name').val();
// if(id_code.length <= 0){
// alert("抱歉!请重新输入身份证号!");
// return;
// }
// if(name.length <= 0){
// alert("抱歉!请重新输入姓名!");
// return;
// }
// let data = {
// cookie:document.cookie,
// id_code: id_code,
// name: name
// }
// $.ajax({
// type: 'POST',
// url: 'https://php-api.juip.com/api/Realname/index',
// dataType: "json",
// contentType: "application/json",
// data: JSON.stringify(data),
// beforeSend: function(xhr) {
// xhr.withCredentials = true;
// },
// crossDomain: true,
// success: function (res) {
// if (res.Code == 10000) {
// $('.real-name').hide();
// alert('实名认证成功。');
// } else {
// alert('请正确填写姓名和身份证号码。');
// }
// }
// });
// }
function realname(){
let id_code = $('#real-name-code').val(),
name = $('#real-name-name').val();
if(id_code.length <= 0){
alert("抱歉!请重新输入身份证号!");
return;
}
if(name.length <= 0){
alert("抱歉!请重新输入姓名!");
return;
}
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(reg.test(id_code) === false)
{
alert("身份证输入不合法");
return false;
}
let data = {
cookie:document.cookie,
id_code: id_code,
name: name
}
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/api/test/aliverify',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
if (res.Code == 20000) {
alert('已经认证成功');
window.location.href='/User/Index';
return ;
}
if (res.Code == 10000) {
$('#id-cert').hide();
$('#verify-info').show();
new QRCode(document.getElementById("qrcode"), {
text: res.url,
width : 500,
height : 500
});
} else {
alert('请正确填写姓名和身份证号码。');
}
}
});
// let data = {
// cookie:document.cookie,
// id_code: id_code,
// name: name
// }
// $.ajax({
// type: 'POST',
// url: 'https://php-api.juip.com/api/Realname/index',
// dataType: "json",
// contentType: "application/json",
// data: JSON.stringify(data),
// beforeSend: function(xhr) {
// xhr.withCredentials = true;
// },
// crossDomain: true,
// success: function (res) {
// if (res.Code == 10000) {
// $('.real-name').hide();
// alert('实名认证成功。');
// } else {
// alert('请正确填写姓名和身份证号码。');
// }
// }
// });
}
function moneychange(){
let user = $('#money-change-user').val(),
money = $('#money-change-money').val();
if (money<0) {
alert('转移金额必须大于0');
return;
}
if(money > @Model.UserModel.RestAmount){
alert("抱歉!您转移的额度大于余额,请重新输入金额!");
return;
}
let data = {
cookie:document.cookie,
luser:@Model.UserModel.LoginCode,
ruser:user,
money:money,
}
}
function get_verify_res(){
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) {
console.log(res);
if (res.Code == 10000) {
window.location.href='/User/Index';
}
}
});
}
function tixian(){
$('.cash-out-before').show();
}
function cash_out() {
let cash_out_money = $('#cash-out-money').val(),
reason = $('#cash-out-reason').val(),
real_name = $('#real-name-out').val(),
alipay_account = $('#alipay-account').val();
if(cash_out_money > @Model.UserModel.RestAmount){
alert("抱歉!您提现的额度大于余额,请重新输入提现金额!");
return;
}
if(cash_out_money <= 0){
alert("抱歉!请重新输入提现金额!");
return;
}
//
let reg = /^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/;
if(alipay_account.length <= 0 || alipay_account.match(reg) == null){
alert("抱歉!请重新输入支付宝账号!");
return;
}
$('#cash_out_confirm').addClass('disabled');
$('#cash_out_confirm').prop('disabled', true);
let cashOutData = {
cash_out_money: cash_out_money,
reason: reason,
alipay_account: alipay_account,
real_name: real_name,
cookie:document.cookie
}
$.ajax({
type: 'POST',
url: 'https://php-api.juip.com/order/CashOutIndex/index',
dataType: "json",
contentType: "application/json",
data: JSON.stringify(cashOutData),
beforeSend: function(xhr) {
xhr.withCredentials = true;
},
crossDomain: true,
success: function (res) {
console.log(res);
if (res.Code == 10000) {
$('.cash-out').hide();
alert('提现请求发送成功我们会在5到7个工作日进行处理请注意查看资金明细。');
} else {
alert('提现异常!请重试或联系客服。');
}
}
});
}
</script>