pc官网-充值页面修改

master
“用lww 5 years ago
parent 8076110f31
commit 97543cebb8

@ -12,6 +12,12 @@
<script type="text/javascript" src="__JS__/pay/common.js"></script>
<script type="text/javascript" src="__JS__/pay/yeepay.js"></script>
<link rel="stylesheet" href="__CSS__/dialog_base.css" />
<script src="__JS__/rem.js"></script>
<script src="__JS__/recharge.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/heard.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/foot.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/recharge.css" />
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<if condition="I('error') eq '账号不存在'">
<script type="text/javascript">
@ -79,333 +85,117 @@
</script>
<!-- 主体内容 -->
<div class="paywrap">
<div class="pay_box">
<div class="pay_l fl">
<div class="pay_l_t">选择充值方式</div>
<ul id="paytypes">
<if condition="get_tool_status('alipay') eq 1">
<li class="li_h" data-type="alipay"><span class="p2 g" id="p2">支付宝</span></li>
</if>
<if condition="get_tool_status('weixin') eq 1 or get_tool_status('wei_xin') eq 1 or get_tool_status('weixin_gf') eq 1">
<li data-type="wechat" class=""><span class="p26 g" id="p26">微信支付(余额)</span></li>
</if>
<if condition="get_tool_status('jft') eq 1">
<li class="" data-type="jft"><span class="p1_1 g" id="p1">竣付通</span></li>
</if>
<if condition="get_tool_status('goldpig') eq 2">
<li class="" data-type="goldpig"><span class="p1_2 g" id="p1">金猪支付</span></li>
</if>
</ul>
<div class="recharge_swiper">
<img src="__IMG__/inner_banner1.png" alt="">
</div>
<div class="recharge_contain">
<div class="recharge_title">
<div class="title">账户充值</div>
</div>
<div class="pay_r fl">
<div id="change_box">
<ul>
<if condition="get_tool_status('alipay') eq 1">
<li class="bb" id="alipay">
<h3 class="pay_tit">您当前选择的是<font> 支付宝</font> <a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题?</a></h3>
<form id="form_alipay" action="{:U('beginPay')}" method="post">
<ul class="cz_ul">
<li style="position:relative;"> <span> <span class="label_name">充值到:</span>
<input type="checkbox" checked="checked" class="ptbcheckbox" disabled="disabled">
<label class="ptb">平台币</label>
</span>
<div class="ptbtips pa" id="ptbtips">平台币是{:C(APP_NAME)}手机游戏平台统一支付的虚拟货币。玩家可以使用平台币兑换{:C(APP_NAME)}手机游戏平台旗下绝大部分游戏的游戏币。 <a href="javascript:;" class="ptbtipsclose db pa"></a> </div>
</li>
<li> <span> <span class="label_name">充值帐号:</span>
<input type="text" id="toaccount2" name="uname1" class="zh_input" value="">
</span> </li>
<li> <span id="main_user_input"> <span class="label_name">确认帐号:</span>
<input type="text" id="retoaccount2" name="uname2" class="zh_input" value="">
</span> </li>
<li class="clearfix"> <span class="label_name fl">选择金额:</span>
<div class="pay_money_box"> <span>
<input type="radio" name="money" value="10">
<font>10元</font> </span> <span>
<input type="radio" name="money" value="30">
<font>30元</font> </span> <span>
<input type="radio" name="money" value="50">
<font>50元</font> </span> <span class="money_checked">
<input type="radio" name="money" checked="" value="100">
<font>100元</font> </span> <span>
<input type="radio" name="money" value="300">
<font>300元</font> </span> <span>
<input type="radio" name="money" value="500">
<font>500元</font> </span> <span>
<input type="radio" name="money" value="1000">
<font>1000元</font> </span>
<span class="last_money"> <font>其他
<input type="text" maxlength="10" size="10" name="money2" id="money3" class="money2" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin2();" style="display: inline-block">
</font> </span>
<input type="hidden" id="alipay_amount" name="amount" value="">
<input type="hidden" name="apitype" value="alipay">
</div>
<div class="clear"></div>
</li>
<li class="clearfix"><!-- <span class="label_name">返利券:</span>
<div class="flq_div" id="flq_div2">没有可用的返利券</div> -->
</li>
<li class="clearfix"><span class="label_name"></span>
<div class="flqtips_div">
<p class="flqtips_l">*兑换比例1元=1平台币</p>
<p class="flqtips_r">本次充值获得平台币:<span id="game_coin2">100</span><!-- <br />获得赠宝奖励99999999 --></p>
</div>
</li>
<li> <a class="pay_submit" href="javascript:;" id="alipay_action">立即充值</a></li>
</ul>
</form>
</li>
</if>
<if condition="get_tool_status('weixin') eq 1 or get_tool_status('wei_xin') eq 1 or get_tool_status('weixin_gf') eq 1">
<li class="bb" id="wechat" style="display: none;">
<h3 class="pay_tit">您当前选择的是<font> 微信支付(余额)</font> <a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题?</a></h3>
<form id="form_wxpay" action="{:U('beginPay')}" method="post">
<ul class="cz_ul">
<li style="position:relative;"> <span> <span class="label_name">充值到:</span>
<input type="checkbox" checked="checked" class="ptbcheckbox" disabled="disabled">
<label class="ptb2">平台币</label>
</span>
<div class="ptbtips pa" id="ptbtips2">平台币是{:C(APP_NAME)}手机游戏平台统一支付的虚拟货币。玩家可以使用平台币兑换{:C(APP_NAME)}手机游戏平台旗下绝大部分游戏的游戏币。 <a href="javascript:;" class="ptbtipsclose db pa"></a> </div>
</li>
<li> <span> <span class="label_name">充值帐号:</span>
<input type="text" id="toaccount3" name="uname1" class="zh_input" value="">
</span> </li>
<li> <span id="main_user_input"> <span class="label_name">确认帐号:</span>
<input type="text" id="retoaccount3" name="uname2" class="zh_input" value="">
</span> </li>
<li class="clearfix"> <span class="label_name fl">选择金额:</span>
<div class="pay_money_box"> <span>
<input type="radio" name="money" value="10">
<font>10元</font> </span> <span>
<input type="radio" name="money" value="30">
<font>30元</font> </span> <span>
<input type="radio" name="money" value="50">
<font>50元</font> </span> <span class="money_checked">
<input type="radio" name="money" checked="" value="100">
<font>100元</font> </span> <span>
<input type="radio" name="money" value="300">
<font>300元</font> </span> <span>
<input type="radio" name="money" value="500">
<font>500元</font> </span> <span>
<input type="radio" name="money" value="1000">
<font>1000元</font> </span> <span class="last_money"> <font>其他
<input type="text" maxlength="10" size="10" name="money2" id="money4" class="money2" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin3();" style="display: inline-block">
</font> </span>
<input type="hidden" id="wxpay_amount" name="amount" value="">
<input type="hidden" name="apitype" value="weixin">
</div>
<div class="clear"></div>
</li>
<li class="clearfix"><!-- <span class="label_name">返利券:</span>
<div class="flq_div" id="flq_div3">没有可用的返利券</div> -->
</li>
<li class="clearfix"><span class="label_name"></span>
<div class="flqtips_div">
<p class="flqtips_l">*兑换比例1元=1平台币</p>
<p class="flqtips_r">本次充值获得平台币:<span id="game_coin3">100</span><!-- <br />获得赠宝奖励99999999 --></p>
</div>
</li>
<li> <a class="pay_submit" href="javascript:;" id="wechat_action">立即充值</a></li>
</ul>
</form>
</li>
</if>
<if condition="get_tool_status('jft') eq 1">
<li class="bb" id="jft" style="display: none;">
<h3 class="pay_tit">您当前选择的是<font> 竣付通 </font> <a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题?</a></h3>
<form id="form_jft" action="{:U('juhe_pay',array('ttype'=>2))}" method="post">
<ul class="cz_ul">
<li style="position:relative;"> <span> <span class="label_name">充值到:</span>
<input type="checkbox" checked="checked" class="ptbcheckbox" disabled="disabled">
<label class="ptb3">平台币</label>
</span>
<div class="ptbtips pa" id="ptbtips3">
平台币是{:C(APP_NAME)}手机游戏平台统一支付的虚拟货币。玩家可以使用平台币兑换{:C(APP_NAME)}手机游戏平台旗下绝大部分游戏的游戏币。
<a href="javascript:;" class="ptbtipsclose db pa"></a>
</div>
</li>
<li> <span> <span class="label_name">充值帐号:</span>
<input type="text" id="toaccount11" name="uname1" class="zh_input" value="">
</span> </li>
<li> <span id="main_user_input"> <span class="label_name">确认帐号:</span>
<input type="text" id="retoaccount11" name="uname2" class="zh_input" value="">
</span> </li>
<li class="clearfix"> <span class="label_name fl">选择金额:</span>
<div class="pay_money_box"> <span>
<input type="radio" name="money" value="10">
<font>10元</font> </span> <span>
<input type="radio" name="money" value="30">
<font>30元</font> </span> <span>
<input type="radio" name="money" value="50">
<font>50元</font> </span> <span class="money_checked">
<input type="radio" name="money" checked="" value="100">
<font>100元</font> </span> <span>
<input type="radio" name="money" value="300">
<font>300元</font> </span> <span>
<input type="radio" name="money" value="500">
<font>500元</font> </span> <span>
<input type="radio" name="money" value="1000">
<font>1000元</font> </span> <span class="last_money"> <font>其他
<input type="text" maxlength="10" size="10" name="money" id="money11" class="money2" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin();" style="display: inline-block">
</font> </span>
<input type="hidden" id="jft_amount" name="amount" value="">
<input type="hidden" name="apitype" value="jft">
</div>
<div class="clear"></div>
</li>
<li class="clearfix"><!-- <span class="label_name">返利券:</span>
<div class="flq_div" id="flq_div3">没有可用的返利券</div> -->
</li>
<li class="clearfix"><span class="label_name"></span>
<div class="flqtips_div">
<p class="flqtips_l">*兑换比例1元=1平台币</p>
<p class="flqtips_r">本次充值获得平台币:<span id="game_coin">100</span><!-- <br />获得赠宝奖励99999999 --></p>
</div>
</li>
<li> <a class="pay_submit" href="javascript:;" id="jft_action">立即充值</a></li>
</ul>
</form>
</li>
</if>
<if condition="get_tool_status('goldpig') eq 2">
<li class="bb" id="goldpig" style="display: none;">
<h3 class="pay_tit">您当前选择的是<font> 金猪支付 </font> <a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题?</a></h3>
<form id="form_goldpig" action="{:U('goldpig')}" method="post" target="_blank">
<ul class="cz_ul">
<li style="position:relative;"> <span> <span class="label_name">充值到:</span>
<input type="checkbox" checked="checked" class="ptbcheckbox" disabled="disabled">
<label class="ptb4">平台币</label>
</span>
<div class="ptbtips pa" id="ptbtips4">
平台币是{:C(APP_NAME)}手机游戏平台统一支付的虚拟货币。玩家可以使用平台币兑换{:C(APP_NAME)}手机游戏平台旗下绝大部分游戏的游戏币。
<a href="javascript:;" class="ptbtipsclose db pa"></a>
</div>
</li>
<li> <span> <span class="label_name">充值帐号:</span>
<input type="text" id="toaccount12" name="uname1" class="zh_input" value="">
</span> </li>
<li> <span id="main_user_input"> <span class="label_name">确认帐号:</span>
<input type="text" id="retoaccount12" name="uname2" class="zh_input" value="">
</span> </li>
<li class="clearfix"> <span class="label_name fl">选择金额:</span>
<div class="pay_money_box"> <span>
<input type="radio" name="money" value="10">
<font>10元</font> </span> <span>
<input type="radio" name="money" value="30">
<font>30元</font> </span> <span>
<input type="radio" name="money" value="50">
<font>50元</font> </span> <span class="money_checked">
<input type="radio" name="money" checked="" value="100">
<font>100元</font> </span> <span>
<input type="radio" name="money" value="300">
<font>300元</font> </span> <span>
<input type="radio" name="money" value="500">
<font>500元</font> </span> <span>
<input type="radio" name="money" value="1000">
<font>1000元</font> </span> <span class="last_money"> <font>其他
<input type="text" maxlength="10" size="10" name="money" id="money12" class="money2" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin4();" style="display: inline-block">
</font> </span>
<input type="hidden" id="goldpig_amount" name="amount" value="">
<input type="hidden" name="apitype" value="goldpig">
</div>
<div class="clear"></div>
</li>
<li class="clearfix"><!-- <span class="label_name">返利券:</span>
<div class="flq_div" id="flq_div3">没有可用的返利券</div> -->
</li>
<li class="clearfix"><span class="label_name"></span>
<div class="flqtips_div">
<p class="flqtips_l">*兑换比例1元=1平台币</p>
<p class="flqtips_r">本次充值获得平台币:<span id="game_coin4">100</span><!-- <br />获得赠宝奖励99999999 --></p>
</div>
</li>
<li> <a class="pay_submit" href="javascript:;" id="goldpig_action">立即充值</a></li>
</ul>
</form>
</li>
</if>
<if condition="get_tool_status('jubaobar') eq 1">
<li class="bb" id="jubaobar" style="display: none;">
<h3 class="pay_tit">您当前选择的是<font> 聚宝云 </font> <a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题?</a></h3>
<form id="form_jubaobar" action="{:U('juhe_pay',array('ttype'=>1))}" method="post">
<ul class="cz_ul">
<li style="position:relative;"> <span> <span class="label_name">充值到:</span>
<input type="checkbox" checked="checked" class="ptbcheckbox" disabled="disabled">
<label class="ptb">平台币</label>
</span>
<div class="ptbtips pa" id="ptbtips5">
平台币是{:C(APP_NAME)}手机游戏平台统一支付的虚拟货币。玩家可以使用平台币兑换{:C(APP_NAME)}手机游戏平台旗下绝大部分游戏的游戏币。
<a href="javascript:;" class="ptbtipsclose db pa"></a>
</div>
</li>
<li> <span> <span class="label_name">充值帐号:</span>
<input type="text" id="toaccount1" name="uname1" class="zh_input" value="">
</span> </li>
<li> <span id="main_user_input"> <span class="label_name">确认帐号:</span>
<input type="text" id="retoaccount1" name="uname2" class="zh_input" value="">
</span> </li>
<li class="clearfix"> <span class="label_name fl">选择金额:</span>
<div class="pay_money_box"> <span>
<input type="radio" name="money" value="10">
<font>10元</font> </span> <span>
<input type="radio" name="money" value="30">
<font>30元</font> </span> <span>
<input type="radio" name="money" value="50">
<font>50元</font> </span> <span class="money_checked">
<input type="radio" name="money" checked="" value="100">
<font>100元</font> </span> <span>
<input type="radio" name="money" value="300">
<font>300元</font> </span> <span>
<input type="radio" name="money" value="500">
<font>500元</font> </span> <span>
<input type="radio" name="money" value="1000">
<font>1000元</font> </span> <span class="last_money"> <font>其他
<input type="text" maxlength="10" size="10" name="money2" id="money1" class="money2" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin();" style="display: inline-block">
</font> </span>
<input type="hidden" id="jubaobar_amount" name="amount" value="">
<input type="hidden" name="apitype" value="Jubaobar">
</div>
<div class="clear"></div>
</li>
<li class="clearfix"><!-- <span class="label_name">返利券:</span>
<div class="flq_div" id="flq_div3">没有可用的返利券</div> -->
</li>
<li class="clearfix"><span class="label_name"></span>
<div class="flqtips_div">
<p class="flqtips_l">*兑换比例1元=1平台币</p>
<p class="flqtips_r">本次充值获得平台币:<span id="game_coin">100</span><!-- <br />获得赠宝奖励99999999 --></p>
</div>
</li>
<li> <a class="pay_submit" href="javascript:;" id="jubaobar_action">立即充值</a></li>
</ul>
</form>
</li>
</if>
<div class="recharge_select">
<form action="{:U('beginPay')}" method="post" id="recharge_form">
<div class="recharge_input">
<div>充值账号:</div>
<input type="text" name="uname1" id="toaccount2" value="">
</div>
<div class="recharge_input">
<div>确认账号:</div>
<input type="text" name="uname2" id="retoaccount2" value="">
</div>
<div class="select_input">
<div class="title">选择金额:</div>
<div class="select-box">
<div class="select-box-soon">
<div class="selectBg">10元</div>
<div>30元</div>
<div>50元</div>
<div>100元</div>
<div>300元</div>
<div>500元</div>
<div>1000元</div>
<input type="hidden" name="amount" value="10" id="amount">
<input type="hidden" name="apitype" value="alipay" id="apitype">
<div class="price-input">其他
<input type="number" onkeyup="this.value = this.value.replace(/[^0-9]/g, &#39;&#39;); get_game_coin2();">
</div>
</div>
<div class="price-show">
<div>*兑换比例1元=1平台币</div>
<div>本次充值获得平台币:<span>10</span></div>
</div>
</div>
</div>
</form>
<div class="way-price">
<div class="title">充值方式:</div>
<div class="way-box">
<div class="way-select">
<if condition="get_tool_status('alipay') eq 1">
<div class="wayBg" data-type="alipay">
<img src="__IMG__/zhifubaozhifu.png" alt="">
支付宝
</div>
</if>
<if condition="get_tool_status('weixin') eq 1 or get_tool_status('wei_xin') eq 1 or get_tool_status('weixin_gf') eq 1">
<div class="" data-type="weixin">
<img src="__IMG__/weixin.png" alt="">
微信支付
</div>
</if>
<if condition="get_tool_status('jft') eq 1">
<div class="" data-type="jft"><span class="p1_1 g" id="p1">竣付通</span></div>
</if>
<if condition="get_tool_status('goldpig') eq 2">
<div class="" data-type="goldpig"><span class="p1_2 g" id="p1">金猪支付</span></div>
</if>
</div>
<div class="way-show">
<div>您当前选择的是:<span>支付宝</span></div>
<div><a href="{:U('Service/detail',['kefu'=>'pay'])}">充值遇到问题</a> </div>
</div>
<div class="recharge-btn">账户充值</div>
</div>
</div>
</div>
</ul>
</div>
<!-- foot -->
<div class="foot">
<div class="foot_box">
<div class="foot_top">
<img src="__IMG__/foot_logo.png" alt="">
<div class="foot_top_ri">
<div class="foot_link">
<a>家长监护</a>
<a>客服帮助</a>
<a href="#">国浩律所</a>
</div>
<div class="foot_serial">
<span>备案号琼ICP备19000556号-1</span>
<span>网络文化经营许可证编号琼网文20192354-200号</span>
</div>
<div class="foot_code">copyright2019</div>
<div class="foot_approve"> <img src="__IMG__/foot_slide.png" alt=""></div>
</div>
</div>
<div class="foot_bom">抵制不良网页游戏拒绝盗版游戏。注意自我保护谨防受骗上当。适度游戏益脑沉迷游戏伤身。合理安排时间享受健康生活。适龄提示适合12周岁以上使用。</div>
</div>
</div>
<!-- 侧导航 -->
<div class="side_tabbar">
<img src="__IMG__/index_about/qrcode.png" alt="">
</div>
</block>

@ -1,9 +1,15 @@
<extend name="Public/base" />
<block name="body">
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/rem.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/heard.css" />
<link rel="stylesheet" href="__CSS__/service.css">
<link href="__STATIC__/icons_alibaba/iconfont.css?v=1.0" rel="stylesheet">
<script type="text/javascript" src="__JS__/event.js"></script>
<script type="text/javascript" src="__JS__/tween.js"></script>
<!--客服详情-->
<style>
.search-input-new {
@ -17,7 +23,7 @@
}
.search-icon {
font-size: 1.4rem;
font-size: 0.2rem;
line-height: 32px;
position: absolute;
right: 8px;

@ -0,0 +1,184 @@
.recharge_swiper{
margin-top: 0.02rem;
width: 100%;
height: 2.9rem;
}
.recharge_swiper>img{
width: 100%;
height: 100%;
}
.recharge_contain{
padding: 0 3.6rem;
font-family:PingFang SC;
margin-bottom: 0.7rem;
}
.recharge_title{
font-size: 0.36rem;
color: #292929;
font-weight: bold;
margin-top: 0.7rem;
padding-bottom: 0.33rem;
border-bottom: 1px solid #E5E5E5;
}
.recharge_title .title{
padding-left: 0.26rem;
border-left: 0.05rem solid #2BBDEE;
}
.recharge_select{
margin-top: 0.36rem;
font-size: 0.28rem;
color: #292929;
font-weight: 400;
}
.recharge_input{
display: flex;
align-items: center;
margin-bottom: 0.3rem;
}
.recharge_input>input{
width: 4rem;
height: 0.6rem;
outline: 0;
border: 1px solid #D3D3D3;
margin-left: 0.33rem;
font-size: 0.28rem;
}
.select_input{
display: flex;
align-items: flex-start;
}
.select_input .title{
margin-top: 0.15rem;
}
.select-box{
width: 8.5rem;
margin-left: 0.33rem;
}
.select-box .select-box-soon>div{
width: 1.5rem;
height: 0.6rem;
text-align: center;
line-height: 0.6rem;
font-size:0.2rem;
font-weight:400;
color:rgba(41,41,41,1);
border:1px solid #D3D3D3;
margin-bottom: 0.3rem;
float: left;
margin-right: 0.3rem;
}
.select-box .select-box-soon>div:nth-child(4n){
margin-right: 0;
}
.select-box .select-box-soon>div.selectBg{
background: url("../images/border-bg.png") no-repeat;
background-size: 100% 100%;
}
.select-box .select-box-soon>div:hover:not(.price-input){
border:1px solid rgba(3,180,245,1);
cursor: pointer;
}
.select-box .select-box-soon> .price-input{
width: 2rem;
display: flex;
justify-content: center;
align-items: center;
background:rgba(247,247,247,1);
}
.select-box .select-box-soon> .price-input>input{
outline: 0;
border: 1px solid #D3D3D3;
width: 1rem;
height: 0.4rem;
margin: 0 0.09rem;
font-size: 0.2rem;
}
.price-show{
width: 7.4rem;
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 0.2rem;
border-top: 1px solid #E5E5E5;
}
.price-show>div:first-child{
font-size:0.2rem;
font-weight:400;
color:rgba(3,180,245,1);
}
.price-show>div:last-child{
font-size:0.2rem;
font-weight:400;
color:rgba(41,41,41,1);
}
.price-show>div>span{
color: #03B4F5;
}
.way-price{
display: flex;
margin-top: 0.58rem;
}
.way-price .title{
margin-top: 0.15rem;
}
.way-box{
margin-left: 0.33rem;
}
.way-select{
display: flex;
align-items: center;
margin-bottom: 0.3rem;
}
.way-select>div{
width: 1.80rem;
height: 0.6rem;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #D3D3D3;
font-size:0.22rem;
font-weight:400;
color:rgba(41,41,41,1);
margin-right: 0.3rem;
}
.way-select>div.wayBg{
background: url("../images/border-bg.png") no-repeat;
background-size: 100% 100%;
}
.way-select>div:hover{
border: 1px solid #03B4F5;
cursor: pointer;
}
.way-select>div>img{
width: 0.4rem;
height: 0.4rem;
margin-right: 0.1rem;
}
.way-show{
width: 7.4rem;
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 0.2rem;
border-top: 1px solid #E5E5E5;
}
.way-show>div{
font-size:0.2rem;
font-weight:400;
}
.way-show>div>span{
color: #03B4F5;
}
.recharge-btn{
width: 3rem;
height: 0.7rem;
font-size:0.28rem;
font-weight:500;
color:rgba(255,255,255,1);
margin-top: 0.49rem;
background-color: #03B4F5;
text-align: center;
line-height: 0.7rem;
border-radius: 0.1rem;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,87 @@
$(function() {
//钱的数量选择
$(".select-box-soon>div:not(.price-input)").click(function(){
$(this).addClass("selectBg").siblings("div").removeClass("selectBg");
let price = $(this).text().replace("元","");
$('#amount').val(price);
$(".price-show div span").text(price);
$(".price-input input").val("");
});
//输入金额事件
$(".price-input input").bind("input propertychange",function(event){
$(".price-show div span").text($(".price-input input").val());
$('#amount').val($(".price-input input").val());
$(".select-box-soon>div:not(.price-input)").removeClass("selectBg");
});
//支付方式选择
$(".way-select>div").click(function(){
$(this).addClass("wayBg").siblings("div").removeClass("wayBg");
let way = $(this).text();
$(".way-show>div>span").text(way);
$("#apitype").val($(this).data('type'));
});
$(".recharge-btn").click(function () {
var that = $('#recharge_form');
if($.trim($("#toaccount2").val()).length == 0){
layer.msg("充值账号不能为空!");
return false;
}
if($.trim($("#retoaccount2").val()) != $.trim($("#toaccount2").val())){
layer.msg("两次账号不相同!");
return false;
}
if(parseFloat($("#amount").val()) <=0){
layer.msg("充值金额不正确");
return false;
}
var apitype = $("#apitype").val();
if (apitype == 'weixin') {
var loading = new Cute.ui.dialog().loading('加载中...',{mask:true});
Cute.api.post("/media.php/Recharge/beginPay",that.serialize(), function(json){
loading.close();
if(json.status > 0){
that.dialog = new Cute.ui.dialog().layer('微信扫码支付',{
content: json.html,
mask: true,
open:{
// callback: function(){
// that.timer = setInterval(function(){
// Cute.api.post('pay/wx_order_query',{'order_no':json.data.out_trade_no}, function(data){
// if(data.status > 0){
// pay_callback();
// clearInterval(that.timer);
// }
// });
// },4000);
// }
},
buttons: [{
title: '已完成支付',
type: 'main',
close: true,
// func: function(){
// location.href = "/account/order.html";
// }
}, {
title: '重新选择',
type: 'cancel',
close: true
}]
});
}else{
new Cute.ui.dialog().alert(json.info);
}
});
} else {
$("#recharge_form").submit();
}
});
});
Loading…
Cancel
Save