Merge branch 'dev_zcl' into dev

master
zhengchanglong 5 years ago
commit d191552c1f

@ -101,6 +101,7 @@ class HomeController extends Controller
public function promitionofregestion()
{
// 旧版兼容
A('Home')->landingPage();
die();
@ -171,9 +172,12 @@ class HomeController extends Controller
'dow_status',
'features',
'flooring_page_imgs',
'game_score',
'recommend_level',
'game_size',
'introduction'
];
$map = ['id' => intval($gameId)];
$game = M('game', 'tab_')->field($columns)->where($map)->find();
if ($game['sdk_version'] == 1 && $isIOS) {
@ -213,6 +217,7 @@ class HomeController extends Controller
$this->assign('isAndroid', $isAndroid);
$this->assign('apply', $apply);
$this->assign('game', $game);
$this->assign('promoteId', $promoteId);
$this->display('landingPage');
}

@ -1,133 +1,294 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta itemprop="name" content="{$game['relation_game_name']}"/>
<meta itemprop="image" content="{$game['icon']}"/>
<meta name="description" itemprop="description" content="{$game['features']}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
<title>{$game['relation_game_name']}</title>
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
<link rel="stylesheet" href="__CSS__/20180207/game.css">
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__CSS__/landing_page.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="__JS__/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="__JS__/getRem.js"></script>
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css">
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
<title>home</title>
</head>
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<input type="hidden" name="title" value="{$game['relation_game_name']}">
<input type="hidden" name="icon" value="{$game['icon']}">
<input type="hidden" name="desc" value="{$game['features']}">
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<?php if ($isWechat):?>
<?php if ($isAndroid):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
<?php elseif ($isIOS):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/ios-rule.png"></div>
<?php endif;?>
<?php endif;?>
<div class="h_wrap">
<div id="data-2">
<volist name="game['flooring_page_imgs']" id="item">
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<a href="#" class="no-package"><img src="{$item}" style="width: 100%;"/></a>
<?php else :?>
<a href="javascript:;" class="down-link" down-link="{$downloadUrl}"><img src="{$item}" style="width: 100%;"/></a>
<?php endif ;?>
</volist>
<body>
<div class="home">
<div class="home-box">
<div class="heard">
<img src="{$game['icon']}" alt="">
<div class="right">
<div>{$game['relation_game_name']}</div>
<div>{$game['features']}</div>
<div>
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<div class="download">免费安装</div>
<?php else :?>
<div class="download">免费安装</div>
<?php endif ;?>
<img src="__IMG__/wenhao.png" class="doubt" alt="">
</div>
</div>
</div>
<div class="evaluate">
<div class="evaluate-box">
<div class="number">
<span>{$game['game_score']}</span>
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start.png" alt="">
</div>
</div>
<div class="grade">14.48K个评分</div>
</div>
<div class="evaluate-box">
<span>#{$game['recommend_level']}</span>
<div class="grade">网络游戏</div>
</div>
<div class="evaluate-box">
<span>16+</span>
<div class="grade">年龄</div>
</div>
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>
</volist>
</ul>
</div>
<div class="synopsis">
<div>简介</div>
<div id="brief_introduction">{$game['features']}</div>
<div id="look_more">
<div class="bg-blur"></div>
<div class="more">查看更多</div>
</div>
</div>
<div class="appraisal">
<div class="title">评分及评论</div>
<div class="appraisal-box">
<div class="left">
<span>{$game['game_score']}</span>
<span>满分5分</span>
</div>
<div class="right">
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 2.77rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.24rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.06rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.04rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0;"></div>
</div>
</div>
<div class="mark">14.48K个评分</div>
</div>
</div>
</div>
<div class="device">
<div class="title">新功能</div>
<div class="soon-title">更新说明:</div>
<div class="del">1、优化用户体验</div>
</div>
<div class="information">
<div class="title">信息</div>
<div class="data-box">
<span>大小</span>
<div>{$game['game_size']}MB</div>
</div>
<div class="data-box">
<span>类别</span>
<div>游戏</div>
</div>
<div class="data-box">
<span>语言</span>
<div>英语,简体中文</div>
</div>
<div class="data-box">
<span>年龄分级</span>
<div>限16岁以上</div>
</div>
<div class="data-box">
<span>价格</span>
<div>免费</div>
</div>
<div class="privacy">隐私政策</div>
</div>
</div>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12')
return
}
if ($('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + ".html"
})
return
}
}
var downLink = $(this).attr('down-link')
location.href = downLink
});
<div class="foot">
<div>
<div>闽ICP备19000000号-0</div>
<div>闽网文{2019}1554-099号</div>
</div>
<div>抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。</div>
<div>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
</div>
</div>
$('.no-package').click(function() {
layer.msg('暂无下载', {
icon: 7,
time: 2000
})
})
$.ajax({
url: "{:U('Home/generateWechatSign')}",
dataType: 'json',
type: 'post',
data: {url: window.location.href},
success: function(response) {
if (response.status) {
wx.config({
// debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
appId: response.data.appid,
timestamp: response.data.time,
nonceStr: response.data.randStr,
signature: response.data.sign,
jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
})
var title = $('[name=title]').val();
var description = $('[name=desc]').val();
var icon = $('[name=icon]').val();
wxReady(title, description, icon)
}
}
<div class="window" style="display: none;">
<div class="containner">
<div class="containner-box">
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div>
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
<div class="gray-btn" onclick="location.href='{$downloadUrl}'">普通下载</div>
</div>
</div>
</div>
<div class="second" style="display: none;">
<div class="second-box">
<div class="title">升级IOS9后游戏打不开怎么办</div>
<div class="carousel">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>一、游戏安装完毕,点击游戏图标弹出如下提示:</div>
<div class="slide-img">
<img src="__IMG__/1.png" alt="" style=" height: 2.86rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>二、进入[设置] - [通用] - [描述文件]:找到对应证书名称</div>
<div class="slide-img">
<img src="__IMG__/2.png" alt="" style="height: 2.75rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>三、信任当前证书</div>
<div class="slide-img">
<img src="__IMG__/3.png" alt="" style="height: 2.06rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>四、下载过程中若出现以下情况,请检查网络和内存再次尝试下载</div>
<div class="slide-img">
<img src="__IMG__/4.png" alt="" style="height: 2.88rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>五、如果您已验证并正常体验游戏,一段时间后,点击游戏图标再次出现信任提示且无法信任时,请卸载游戏包,重新安装游戏验证</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<div class="blue-btn">点我去信任</div>
</div>
</div>
</body>
</html>
<script>
$(function(){
if ($("#brief_introduction").length<80) {
$("#look_more").hide();
}
$(".more").click(function(){
$("#look_more").hide();
$("#brief_introduction").css("overflow", "visible");
});
function wxReady(title, description, img) {
wx.ready(function () {
wx.onMenuShareAppMessage({
title: title,
desc: description,
link: window.location.href,
imgUrl: img,
type: '',
dataUrl: ''
});
wx.onMenuShareTimeline({
title: title,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareQQ({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareWeibo({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareQZone({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
function swiperGet(){
var swiper = new Swiper('.swiper-container', {
loop: true,
// autoplay: img > 1,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
});
}
</script>
</body>
</html>
};
swiperGet();
$(".download").click(function(){
$(".window").show();
document.body.style.overflow = 'hidden';
});
$(".window").click(function(){
$(".window").hide();
document.body.style.overflow = 'auto';
});
$(".gray-btn").click(function(){
event.stopPropagation();
$(".second").show();
swiperGet();
document.body.style.overflow = 'hidden';
$(".window").hide();
})
$(".second").click(function(){
$(".second").hide();
document.body.style.overflow = 'auto';
})
$(".doubt").click(function(){
$(".second").show();
document.body.style.overflow = 'hidden';
swiperGet();
})
})
</script>

@ -75,7 +75,7 @@
background-color: #fff;
border-radius: 10px;
}
@media screen and (min-width: 768px) {
.register-box-max {
width: 50%;

@ -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;

@ -25,6 +25,7 @@ class SsgController extends BaseController {
public function login()
{
$promoteId = I("promote_id", 0);
$gameId = I("game_id", 0);
$user = session("user_auth");
if ($user) {
redirect(U("ssg/index", array('promete_id' => $promoteId)));
@ -44,6 +45,7 @@ class SsgController extends BaseController {
$this->assign("app_qq", $appqq);
$this->assign("promote_id", $promoteId);
$this->assign("game_id", $gameId);
$this->display();
}
@ -163,6 +165,7 @@ class SsgController extends BaseController {
$user = $_POST;
$promoteId =( $user['promote_id'] ? $user['promote_id'] : 0);
$game_id = $user['game_id'] ?? 0;
#判断数据是否为空
if (empty($user)) {
$this -> set_message(1001, "fail", "注册数据不能为空");
@ -170,7 +173,7 @@ class SsgController extends BaseController {
#验证短信验证码
$this -> sms_verify($user['account'], $user['code']);
$res = $this -> doRegister($user['account'],$user['password'],$user['account'],$promoteId,4,2);
$res = $this -> doRegister($user['account'],$user['password'],$user['account'],$promoteId,4,2, $game_id);
if(empty($res)){
$this -> set_message(1017, "fail", "添加失败");
}
@ -238,7 +241,7 @@ class SsgController extends BaseController {
exit();
}
//真正注册代码
public function doRegister($account,$password,$phone,$promote_id,$register_way,$register_type)
public function doRegister($account,$password,$phone,$promote_id,$register_way,$register_type, $game_id = 0)
{
//验证账号
$is_user_info = M('user', 'tab_') -> where(['account' => $account]) -> find();
@ -271,6 +274,13 @@ class SsgController extends BaseController {
'check_time' => time(),
);
if ($game_id) {//关联游戏
$game = M('game', 'tab_')->where(['id' => $game_id])->find();
if ($game) {
$data['fgame_id'] = $game_id;
$data['fgame_name'] = $game['game_name'];
}
}
/* 添加用户 */
$res = M('user', 'tab_') ->add($data);
return $res;
@ -449,9 +459,11 @@ class SsgController extends BaseController {
public function pay(){
$user = session("user_auth");
$gameId = I("game_id", 0);
$promoteId = I("promote_id");
//$price = self::signprice;
if (!$user) {
redirect("/mobile.php/ssg/login");
redirect("/mobile.php/ssg/login/game_id/{$gameId}/promote_id/$promoteId");
// $this->error("请登入", "/mobile.php/ssg/login");
}
$userId = $user['user_id'];
@ -485,8 +497,6 @@ class SsgController extends BaseController {
}
}
/*
* 发起支付
*/

@ -32,6 +32,7 @@
<img src="__IMG__/ssg/home/hader.png">
</div>
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
<input type="hidden" value="{$game_id}" id="game_id" name="game_id"/>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide swiper-no-swiping">
@ -375,6 +376,7 @@ var PhoneObj = {
var phonepassword = $('#phonepassword').val();
var phonecode = $('#phonecode').val();
var promoteId = $("#promote_id").val();
var gameId = $("#game_id").val();
if(!PhoneObj.checkPhone(phone)){
return false;
}
@ -393,7 +395,8 @@ var PhoneObj = {
account:phone,
password:phonepassword,
code:phonecode,
promote_id:promoteId
promote_id:promoteId,
game_id:gameId,
},
success: function (result) {
console.log(result)

@ -0,0 +1,445 @@
.home{
width: 100%;
font-family:PingFang SC;
}
.home-box{
padding: 0.5rem 0.37rem 0 0.31rem;
}
.heard{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.heard>img{
width: 2.5rem;
height: 2.5rem;
}
.heard>.right{
margin-left: 0.3rem;
}
.heard>.right>div:first-child{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
}
.heard>.right>div:nth-child(2){
overflow: hidden;
text-overflow:ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 0.28rem;
color: #A9A9A9;
margin-top: 0.23rem;
}
.heard>.right>div:nth-child(3){
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.32rem;
}
.heard>.right>div:nth-child(3) .download{
width: 1.8rem;
height: 0.6rem;
background:rgba(34,129,245,1);
border-radius:0.3rem;
color:#fff ;
font-size: 0.28rem;
font-weight: 400;
text-align: center;
line-height: 0.6rem;
}
.heard>.right>div:nth-child(3) >img{
width: 0.6rem;
height: 0.6rem;
}
.evaluate{
font-size: 0.32rem;
color: #757575;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.33rem;
}
.evaluate .number{
display: flex;
align-items: center;
}
.evaluate .start{
display: flex;
align-items: center;
margin-left: 0.32rem;
}
.evaluate .start>img{
width: 0.3rem;
height: 0.3rem;
}
.evaluate-box{
display: flex;
flex-direction: column;
}
.evaluate-box:last-child,.evaluate-box:nth-child(2){
align-items: center;
justify-content: center;
}
.evaluate-box .grade{
margin-top: 0.19rem;
font-size: 0.24rem;
color: #D3D3D3;
font-weight: 400;
}
.slide_list{
width: 100%;
margin-top:0.4rem;
padding-bottom: 0.39rem;
border-bottom: 1px solid #DEDEDE;
}
.slide-box{
display: -webkit-box;
overflow-x: auto;
/*适应苹果*/
-webkit-overflow-scrolling:touch;
font-size: 0.2rem;
font-size: 100%;
font-weight: normal;
margin: 0;
padding: 0;
}
.slide-item{
width: 4.4rem;
/* height: 6.22rem; */
margin-right: 30px;
list-style: none;
}
.slide-item >img{
width: 100%;
height: 100%;
}
/*隐藏掉滚动条*/
.slide-box::-webkit-scrollbar {
display: none;
}
.synopsis{
margin-top: 0.41rem;
padding-bottom: 0.38rem;
border-bottom: 1px solid #DEDEDE;
}
.synopsis>div:first-child{
font-size:0.4rem;
font-weight:700;
color:rgba(41,41,41,1);
margin-bottom: 0.41rem;
}
.synopsis>div:nth-child(2){
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.4rem;
font-size: 0.28rem;
overflow: hidden;
text-overflow:ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
padding-bottom: 20px;
}
.synopsis>div:last-child{
position: relative;
margin-top: -0.4rem;
}
.synopsis>div:last-child .bg-blur{
background-color: #fff;
-webkit-filter:blur(0.2rem);
filter:blur(0.2rem);
width: 100%;
height: 1rem;
}
.more{
position: absolute;
top: 0.6rem;
left: 50%;
margin-left: -0.7948rem;
font-size: 0.36rem;
color: #2281F5;
/* background-color: #fff; */
}
.appraisal{
margin-top: 0.38rem;
}
.appraisal .title{
font-size:0.4rem;
font-weight:700;
color:rgba(41,41,41,1);
}
.appraisal-box{
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-top: 0.4rem;
padding-bottom: 0.39rem;
border-bottom: 1px solid #DEDEDE;
}
.appraisal-box .left{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.appraisal-box .left>span:first-child{
font-size: 1.2rem;
font-weight: 800;
color: #4B4C50;
}
.appraisal-box .left>span:last-child{
font-size: 0.28rem;
color: #4B4C50;
font-weight: 500;
}
.appraisal-box .right{
display: flex;
align-items: flex-end;
flex-direction: column;
justify-content: flex-end;
}
.appraisal-box .right>.start-number{
display: flex;
align-items:center;
justify-content: flex-end;
margin-bottom: 0.06rem;
}
.appraisal-box .right>.start-number .start{
display: flex;
align-items: center;
}
.appraisal-box .right>.start-number .start>img{
width: 0.16rem;
height: 0.16rem;
}
.appraisal-box .right>.start-number .strip{
width: 3rem;
height: 0.04rem;
background-color: #E0E0E0;
position: relative;
margin-left: 0.33rem;
}
.appraisal-box .right>.start-number .strip>div{
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: #4B4C50;
}
.appraisal-box .right>.mark{
font-size:0.24rem;
font-weight:400;
color:rgba(75,76,80,1);
margin-top: 0.26rem;
}
.device{
margin-top: 0.4rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid #DEDEDE;
}
.device .title{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
}
.device .soon-title{
margin-top: 0.4rem;
font-size: 0.28rem;
color: #292929;
}
.device .del{
font-size: 0.28rem;
color: #292929;
}
.information{
margin-top: 0.39rem;
}
.information .title{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
margin-bottom: 0.52rem;
}
.information .data-box{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 0.3rem;
border-bottom: 1px solid #DEDEDE;
margin-bottom: 0.29rem;
}
.information .data-box>span{
font-size: 0.24rem;
color: #A9A9A9;
font-weight: 400;
}
.information .data-box>div{
font-size: 0.24rem;
color: #292929;
font-weight: 400;
}
.privacy{
font-size: 0.24rem;
color: #292929;
font-weight: 400;
}
.foot{
background-color: #101010;
width: 100%;
padding: 0.29rem 0 0.24rem 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 0.2rem;
color: #D3D3D3;
margin-top: 0.92rem;
}
.foot div:first-child{
display: flex;
align-items: center;
color: #D3D3D3;
font-weight:400;
font-size: 0.24rem;
}
.foot div:first-child>div{
font-size: 0.24rem;
}
.foot div:first-child>div:first-child{
margin-right: 0.5rem;
}
.foot div:nth-child(2){
margin-top: 0.18rem;
margin-bottom: 0.18rem;
}
.window{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background:rgba(0,0,0,0.6);
}
.containner{
width: 5.50rem;
height: 7.32rem;
background: url(../images/bg.png) no-repeat;
background-size: 100% 100%;
display: flex;
justify-content: flex-end;
}
.containner-box{
padding: 0 0.39rem 0.15rem 0.36rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.containner-box .text{
font-size:0.24rem;
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.36rem;
}
.blue-btn{
width: 4.58rem;
height:0.98rem;
background: url(../images/btn-blue.png) no-repeat;
background-size: 100% 100%;
font-size:0.28rem;
font-weight:400;
color:rgba(255,255,255,1);
text-align: center;
line-height: 0.86rem;
margin: 0.15rem 0;
}
.gray-btn{
width: 4.58rem;
height:0.98rem;
background: url(../images/btn-gray.png) no-repeat;
background-size: 100% 100%;
font-size:0.28rem;
font-weight:400;
color:rgba(255,255,255,1);
text-align: center;
line-height: 0.86rem;
}
.second{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background:rgba(0,0,0,0.6);
}
.second-box{
width: 5.50rem;
height: 7.4rem;
border-radius:0.3rem;
background-color: #fff;
display: flex;
flex-direction: column;
align-items: center;
}
.second-box .title{
border-top-left-radius: 0.3rem;
border-top-right-radius: 0.3rem;
height: 1rem;
width: 100%;
line-height: 1rem;
background-color: #489EF6;
font-size: 0.32rem;
font-weight: 500;
text-align: center;
color: #fff;
}
.carousel{
width: 100%;
margin-top: 0.3rem;
}
.swiper-container{
padding-bottom: 0.6rem;
}
.swiper-slide{
width: 100%;
}
.swiper-slide-box{
padding: 0 0.5rem;
}
.swiper-slide-box>div:first-child{
margin-bottom: 0.3rem;
font-size:0.28rem;
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.36rem;
}
.swiper-slide-box>.slide-img{
width: 100%;
position: relative;
font-size: 0.2rem;
}
.swiper-slide-box>.slide-img .case{
position: absolute;
right: 0;
top: -0.18rem;
width: 0.8rem;
height: 0.8rem;
}
.swiper-slide-box>.slide-img>img:first-child{
width: 100%;
}
.swiper-container-horizontal>.swiper-pagination-bullets{
bottom: -9px !important;
}

@ -0,0 +1,28 @@
html,
body {
width: 100%;
/* font-size: calc(266.67% + 57.3333 * (100vw - 320px) / 430); */
}
/*清除一些默认样式*/
html,
body {
margin: 0;
padding: 0;
}
img{border:0;}
a{text-decoration:none; color:#000; outline:none;}
a:hover{text-decoration:none;}
em,strong,i{font-style:normal;}
h1,h2,h3,h4,h5,h6,span,strong,i{font-size:100%;font-weight:normal;margin: 0;padding: 0;}
.trans {
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
-ms-transition: all 0.3s linear;
transition: all 0.3s linear;
}
.clearfix {*zoom:1;}
.clearfix:after {content:'\200B';clear:both;display:block;height:0px}
/* html{-webkit-tap-highlight-color:transparent;} */

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@ -0,0 +1,20 @@
function getRem(pwidth,prem){
var html = document.getElementsByTagName("html")[0];
var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
//var oHeight = document.body.clientHeight || document.documentElement.clientHeight;
// if (oWidth >= pwidth) {
// oWidth = pwidth;
// }
// if (oWidth > oHeight) {
// oWidth = oHeight
// }
var size=oWidth/pwidth*prem;
html.style.fontSize = size + "px";
}
$(document).ready(function(){
//画布、字体大小设定
getRem(750,100);
$(window).resize(function() {
getRem(750,100);
})
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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