<!DOCTYPE HTML>
< html >
< head >
< meta charset = "UTF-8" >
< link href = "{:get_cover(C('PC_SET_ICO'),'path')}" type = "image/x-icon" rel = "shortcut icon" >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< meta charset = "utf-8" >
< meta name = "renderer" content = "webkit" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" >
< meta name = "applicable-device" content = "mobile" >
< meta content = "yes" name = "apple-mobile-web-app-capable" >
< meta content = "black" name = "apple-mobile-web-app-status-bar-style" >
< meta content = "telephone=no" name = "format-detection" >
< link href = "__CSS__/pig.css" rel = "stylesheet" >
< script src = "__JS__/jquery-1.11.1.min.js" > < / script >
< / head >
< body >
< div class = "pig-body" >
< header class = "header" >
< section class = "wrap" >
< a href = "javascript:history.go(-1);" class = "hbtn left arrow-left" > < span class = "table" > < span class = "table-cell" > < img src = "__IMG__/back_return.png" > < / span > < / span > < / a >
< div class = "caption" > < span class = "table" > < span class = "table-cell" > 充值< / span > < / span > < / div >
< / section >
< / header >
< section class = "trunker pig-page" >
< div class = "occupy" > < / div >
< section class = "inner" >
< section class = "contain" >
< form name = "form1" class = "pig-box" id = "goodsForm" action = "{:U('goldpig_pay')}" method = "post" >
< div class = "viewwrap" >
< div class = "selectPayType pig-recharge-money" > < span > 充值金额:< font id = "jinea" color = "red pig-recharge-money-number" > {$data['amount']}元< / font > < / span > < / div >
< div class = "pig-pay-way-title" > 支付方式:< / div >
< div class = "payContent pig-pay-way" >
< div title = "25" < if condition = "C('goldpig.zfb') neq '1'" > style='display:none'< / if > class="payContentSubed">< i class = "pig-pay-icon pig-pay-icon-alipay" > < / i > < p > 支付宝< / p > < / div >
< div title = "14" < if condition = "C('goldpig.cft') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-tenpay" > < / i > < p > 财付通< / p > < / div >
< div title = "16" < if condition = "C('goldpig.wx') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-wechatscan" > < / i > < p > 微信扫码< / p > < / div >
< div title = "29" < if condition = "C('goldpig.wx') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-wechat" > < / i > < p > 微信支付< / p > < / div >
< div title = "24" < if condition = "C('goldpig.szx') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-easyown" > < / i > < p > 神州行充值卡< / p > < / div >
< div title = "3" < if condition = "C('goldpig.lt') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-unicom" > < / i > < p > 联通充值卡< / p > < / div >
< div title = "4" < if condition = "C('goldpig.dx') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-telecom" > < / i > < p > 中国电信< / p > < / div >
< div title = "5" < if condition = "C('goldpig.jw') neq '1'" > style='display:none'< / if > class="payContentSub">< i class = "pig-pay-icon pig-pay-icon-junka" > < / i > < p > 骏网一卡通< / p > < / div >
< / div >
<!-- <div class="selectMony"> (提示:财付通支持网上银行。) </div> -->
< div class = "payMoneyTitle pig-pay-money-title" > 支付金额:< / div >
< div class = "payMoney pig-pay-money" >
< a title = "5" class = "moneySelect" href = "#" > < span > 5元< / span > < / a >
< a title = "10" class = "moneySelect" href = "#" > < span > 10元< / span > < / a >
< a title = "15" class = "moneySelect" href = "#" > < span > 15元< / span > < / a >
< a title = "20" class = "moneySelect" href = "#" > < span > 20元< / span > < / a >
< a title = "30" class = "moneySelect" href = "#" > < span > 30元< / span > < / a >
< a title = "50" class = "moneySelect" href = "#" > < span > 50元< / span > < / a >
< a title = "100" class = "moneySelected" href = "#" > < span > 100元< / span > < / a >
< a title = "200" class = "moneySelect" href = "#" > < span > 200元< / span > < / a >
< a title = "300" class = "moneySelect" href = "#" > < span > 300元< / span > < / a >
< a title = "350" class = "moneySelect" href = "#" > < span > 350元< / span > < / a >
< a title = "500" class = "moneySelect" href = "#" > < span > 500元< / span > < / a >
< a title = "1000" class = "moneySelect" href = "#" > < span > 1000元< / span > < / a >
< a title = "2000" class = "moneySelect" href = "#" > < span > 2000元< / span > < / a >
< / div >
< div id = "kalei" class = "viewwrapb pig-recharge-user" >
< div class = "userCard pig-recharge-account" >
< div class = "userCardSub" >
< i class = "bg_user" > < / i > < i class = "bg_split" > < / i > < input id = "cardNum" name = "mobile" type = "text" placeholder = "请输入充值卡的卡号" >
< / div >
< / div >
< div class = "userCard pig-recharge-password" >
< div class = "userCardSub" >
< i class = "bg_pass" > < / i > < i class = "bg_split" > < / i > < input id = "cardPass" name = "password" class = "passInput" type = "password" placeholder = "请输入充值卡的密码" >
< / div >
< / div >
< / div >
< input type = "hidden" name = "userid" value = "{$user['id']}" >
< input type = "hidden" name = "wooolID" value = "{:C('goldpig.wooolid')}" >
< input type = "hidden" name = "UserName" value = "{$user['account']}" >
< input type = "hidden" name = "jinzhua" value = "" >
< input type = "hidden" name = "jinzhub" value = "e95f880b45ffa8cb860fa553d777b21c" >
< input type = "hidden" name = "jinzhuc" value = "" >
<!-- <input type="hidden" name="gamename" value="骞冲彴甯佸厖鍊?jinzhua=PF_20180111102115GNs5"> -->
< input type = "hidden" name = "qudaoname" value = "{$user['promote_account']}" >
< input id = "zffs" type = "hidden" name = "PayID" value = "25" >
< input id = "paymoney" type = "hidden" name = "amount" value = "{$data['amount']}" >
< input id = "nameyc" type = "hidden" name = "nameyc" value = "" >
< input id = "qqyc" type = "hidden" name = "qqyc" value = "" >
< input id = "zhidu" type = "hidden" name = "zhidu" value = "" >
< input id = "ka_type" type = "hidden" name = "ka_type" value = "" >
< input id = "shouji" type = "hidden" name = "shouji" value = "123456" >
< div class = "submitButton pic-recharge-butn" >
< input id = "subBtn" type = "button" class = "moneySelectec" value = "确定充值" >
< / div >
< / div >
< / form >
< / section >
< / section >
< / section >
< / div >
< script >
var ht = $('html');
if (ht.width()< 640 )
ht.css({'font-size':(ht.width()*625/1242)+'%'});
else
ht.css({'font-size':'200%'});
console.log(ht.width);
$(document).ready(function(){
$(window).resize(function(){
if (ht.width()< 640 )
ht.css({'font-size':(ht.width()*625/1242)+'%'});
else
ht.css({'font-size':'200%'});
});
$("#subBtn").val("确定充值")
})
$('.moneySelect,.moneySelected').on('click',function(){
var nowA=this;
$('.payMoney').children().each(function(i,e){
if(e==nowA){
$(e).attr("class","moneySelected");
$("#paymoney").val($(e).attr("title"));
$("#jinea,#jineb").html($(e).attr("title")+"元");
$("#subBtn,#subBtnb").val("确定充值");
}else {
$(e).attr("class","moneySelect");
}
})
return false;
})
$('.payContentSub,.payContentSubed').on('click',function(){
var nowImg=this;
$('.payContent').children().each(function(i,e){
if(e==nowImg){
$(e).attr("class","payContentSubed");
$("#zffs").val($(e).attr("title"));
var payType=$(e).attr("title");//支付方式
//如果是点卡
if (payType != "25" & & payType != "14" & & payType != "16" & & payType != "29") {
$(".payMoney").show(200);
$("#kalei").show(200);
$('.payMoneyTitle').show(190);
}else {
// $("#paymoney").val(1000.00);
// $("#jinea,#jineb").html("1000.00元");
$("#subBtn,#subBtnb").val("确定充值");
$(".payMoney").hide(500);
$("#kalei").hide(500);
$('.payMoneyTitle').hide(510);
}
}else {
$(e).attr("class","payContentSub")
}
})
})
$('.moneySelectec').on('click',function(){
var payType=$('#zffs').val();//支付方式
var payAmount = $("#paymoney").val();//金额
if (payAmount == "") {
$("#paymoney").val("100");
}
var payAmountb = 1.00
if (payAmount< payAmountb ) {
alert("对不起,面值不能小于"+payAmountb+"元");
return;
}
//如果是点卡
if (payType != "25" & & payType != "14" & & payType != "16" & & payType != "29") {
if (payType=="24") {
$("#ka_type").val("000101");
}
if (payType=="3") {
$("#ka_type").val("000201");
}
if (payType=="4") {
$("#ka_type").val("000301");
}
if (payType=="5") {
$("#ka_type").val("000501");
}
if (payType=="6") {
$("#ka_type").val("000601");
}
var ka_type = $("#ka_type").val();
$("#ka_type").val(ka_type+payAmount);
}
$("#subBtn").val("提交中,请稍后...");
$("#goodsForm").submit();
return;
// window.location.href="index2.html";
})
< / script >
< / body >
< / html >