master
“‘ 5 years ago
parent b2f357608f
commit 56f567e47f

@ -23,27 +23,33 @@ class SsgController extends BaseController {
{
$promoteId = I("promote_id", 0);
$user = session("user_auth");
if ($user) {
redirect(U("ssg/index", array('promete_id' => $promoteId)));
}
// if ($user) {
// redirect(U("ssg/index", array('promete_id' => $promoteId)));
// }
/*if (!$promoteId) {
echo "链接失效,请重新向推广员索取链接。";
exit();
$this->error("参数非法");
}*/
// /*if (!$promoteId) {
// echo "链接失效,请重新向推广员索取链接。";
// exit();
// $this->error("参数非法");
// }*/
if ($promoteId) {
$exists = M("promote", "tab_")->where(array('id' => $promoteId))->find();
if (!$exists) {
$this->error("链接失效,请重新向推广员索取链接.");
}
}
//获取客服qq
$appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
$this->assign("app_qq", $appqq);
$this->assign("promote_id", $promoteId);
$this->display();
}
public function home(){
//获取客服qq
$appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
$this->assign("app_qq", $appqq);
$this->display();
}
@ -123,6 +129,20 @@ class SsgController extends BaseController {
$verify = new \Think\Verify($config);
$verify->codeSet = '0123456789';
$verify->entry($vid);
}
//注册
public function phoneRegister()
{
# code...
}
//真正注册代码
public function doRegister()
{
# code...
}
//首页
@ -159,7 +179,7 @@ class SsgController extends BaseController {
$order_list = M("game_supersign a","tab_")->field("a.order_id, b.game_name, b.icon, b.id as game_id, a.pay_status, a.user_id, a.create_time")->join("left join tab_game b on a.game_id=b.id")->where(array(
'a.user_id' => $user['user_id'],
))->order("a.id")->select();
// pp($order_list);
// pp($order_list);
foreach ($order_list as $key => $value){
$deff = $this->timediffs(time(),$value['create_time']);
@ -199,7 +219,24 @@ class SsgController extends BaseController {
\Think\Log::record('缓存清理业务触发');
session(null);
}
//发送验证码
public function sendPhoneCode()
{
$phone = I("phone");
$result = R('Common/Sms/send_sms_code', array($phone, 10, false));
if ($result['code'] == 200) {
$data['status'] = 1;
$data['data'] = $result['data'];
} else {
$data['status'] = 0;
}
$data['msg'] = $result['msg'];
echo json_encode($data);
exit;
}
public function timediffs($begin_time, $end_time) {
if ($begin_time < $end_time) {
$starttime = $begin_time;

@ -2,92 +2,118 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no">
<title>苹果超级签购买(在线支付)</title>
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
<script src="__JS__/ssg/flexible.min.js" type="text/javascript"></script>
<style>
.title-1 {
margin: 0.17rem auto 0;
width: 1.12rem;
height: 0.27rem;
background-image: url(__IMG__/ssg/title-bg.png);
background-repeat: no-repeat;
background-size: 100%;
*{
padding: 0px;
margin: 0px;
max-width: 768px;
}
.index-up .button {
position: absolute;
left: 50%;
bottom: 0.84rem;
margin-left: -0.76rem;
display: block;
width: 1.52rem;
height: 0.46rem;
background-image: url(__IMG__/ssg/transaction-btn.png);
background-repeat: no-repeat;
background-size: 100%;
}
.protect-box .inner{
background-image: url(__IMG__/ssg/box-bg.png);
}
.install-box .inner{
background-image: url(__IMG__/ssg/box-bg2.png);
li{
line-height:2;
max-width: 6rem;
list-style-type:disc;
}
</style>
</head>
<body>
<div class="page-container">
<div class="index-up">
<img src="__IMG__/ssg/index/index-bg.jpg" alt="">
<a href="{:U('login')}" class="button">
</a>
<ul class="link-list">
<li><a href="{:U('process')}">充值流程</a></li>
<li><a href="{:U('tutorial')}">安装教程</a></li>
</ul>
</div>
<div class="protect-box">
<img src="__IMG__/ssg/index/index-bg2.jpg">
<div class="inner">
<div class="title-1">
<h2>至尊保障</h2>
<div id="safari_box" style="height: 100vh;background:rgba(41,41,41,.8);position:fixed;z-index:9999;top: 0px;width: 100%;display: none;">
<div style="line-height: 1;color: #fff;width: 100%;text-align: center;font-size: .36rem;position: absolute;top:2.05rem;">
请选择在“Safari”中打开 <img src="__IMG__/ssg/home/jt.png" style="position: absolute;width: 1rem;height: .8rem;right: .57rem;top:-.5rem;">
</div>
<div style="top:3.5rem;position:absolute;width: 6.3rem;left: 50%;margin-left: -3.2rem;">
<div style="background:url('__IMG__/ssg/home/alertbg.png') no-repeat top center/cover;height: 2.8rem;width: 6.3rem;position: relative;">
<img onclick="closeSafari()" src="__IMG__/ssg/home/close.png" style="width: .3rem;height: .3rem;position: absolute;left: .3rem;top: .3rem;">
<img src="__IMG__/ssg/home/safari.png" style="width:1.5rem;height: 1.5rem;position: absolute;left: .79rem;top:.75rem;">
<div style="width:3.5rem;height: .79rem;font-size: .34rem;left: 2.5rem;position: absolute;top:1rem;color:#fff;">
该链接只支持<text style="color:yellow">Safari</text>
<br/>
请在<text style="color:yellow">Safari</text>中打开
</div>
</div>
<div style="width: 6.3rem;height:1.2rem;background-color: #ffffff;position: absolute;border-bottom-left-radius:.32rem;border-bottom-right-radius:.32rem;">
<div style="display:flex;width:100%;justify-content:center;position: absolute;top: .18rem;">
<input id="copyVal" type="text" readonly='' value="" style="background: #e6e6e6;border: 0px;width: 3.5rem;padding:0 .2rem;border-top-left-radius:64px;border-bottom-left-radius:64px;height: .8rem;color:#777;font-size: .32rem;">
<a href="javascript:" id="copy" data-clipboard-target="#copyVal" style="background:url('__IMG__/ssg/home/copybt.png') no-repeat top center/cover;width: 1.4rem;height: .8rem;text-align: center;line-height: .8rem;color:white;font-size: .28rem;">
复制
</a>
</div>
</div>
<ul class="word-list">
<li>高端定制仅对iOS老用户开放。</li>
<li>永不闪退,不丢游戏,不丢数据, 稳定有保障</li>
<li>同一设备安装一次可在一年内无限次下载重装</li>
</ul>
</div>
</div>
<div class="install-box">
<img src="__IMG__/ssg/index/index-bg3.jpg">
<div class="inner">
<div class="title-1">
<h2>安装步骤</h2>
</div>
<ul class="word-list">
<li>账号登录且付费,购买苹果超级签<b>(不同设备需要分别付费安装哦)</b></li>
<li>下载安装描述文件</li>
<li>下载安装游戏</li>
<div style="background: url('__IMG__/ssg/home/bg.png') no-repeat top center/100% auto;padding-bottom: .6rem;">
<div style="width: 100%;text-align: center;padding-top: .55rem;">
<img src="__IMG__/ssg/home/hader.png" style="width:6.7rem;height: 5.35rem;">
</div>
<div style="text-align: center;padding-top: .3rem;">
<a href="{:U('login')}" onclick="return check()"><img src="__IMG__/ssg/home/button1.png" style="width:3.9rem;height: 1.3rem;"></a>
</div>
<div style="display: flex;justify-content:space-around;padding-top: .2rem;">
<a href="{:U('process')}" onclick="return check()"><img src="__IMG__/ssg/home/button2.png" style="width:1.75rem;height:.6rem;"></a>
<a href="{:U('tutorial')}" onclick="return check()"><img src="__IMG__/ssg/home/button3.png" style="width:1.75rem;height:.6rem;"></a>
<a href="javascript:" onclick="chatQQ()"><img src="__IMG__/ssg/home/button4.png" style="width:1.75rem;height:.6rem;"></a>
</div>
<div style="background: url('__IMG__/ssg/home/list1.png') no-repeat top center/100% 100%;height: 4.3rem;width: 100%;margin-top: .45rem;">
<ul style="padding-top: 1.74rem;padding-left: 1rem;color: white;font-size: .28rem;">
<li>高端定制仅对IOS老用户开放</li>
<li>永不闪退,不丢游戏,不丢数据,稳定有保障</li>
<li>同一设备安装一次可在一年内无限次下载重装</li>
</ul>
</div>
<div style="background: url('__IMG__/ssg/home/list2.png') no-repeat top center/100% 100%;height: 4.7rem;width: 100%;">
<ul style="padding-top: 1.74rem;padding-left: 1rem;color: white;font-size: .28rem;">
<li style="line-height:1.5;">
账号登入且付费,购买苹果超级签(不同设备需要分别付费安装哦)
</li>
<li>下载安装描述文件</li>
<li>下载安装游戏</li>
</ul>
</div>
<div style="text-align: center;">
<a href="{:U('login')}" onclick="return check()"><img src="__IMG__/ssg/home/button5.png" style="width:3.4rem;height: 1.1rem;"></a>
</div>
</div>
<div class="download-btn">
<a href="{:U('login')}">
<img src="__IMG__/ssg/index/download-btn.jpg">
</a>
</div>
<div class="footer">
<p class="footer-up">琼ICP备19000556号-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;琼网文20192354-200号</p>
<div class="footer" style="height: auto;">
<p class="footer-up">闽ICP备19003775号-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闽网文{2019}1554-099号</p>
<p class="footer-down">抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。<br>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</p>
</div>
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
<script src="__JS__/ssg/clipboard.min.js" type="text/javascript"></script>
<script>
var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
$("#copyVal").val(window.location.href);
function check(){
if(!issafariBrowser){
$("#safari_box").show();
return false;
}else{
return true;
}
}
function chatQQ() {
if(check()){
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$app_qq}&version=1&src_type=web&web_src=oicqzone.com';
}
}
function closeSafari(){
$("#safari_box").hide();
}
var clipboard = new ClipboardJS('#copy');
clipboard.on('success', function(e) {
alert("复制成功请在Safari中打开");
e.clearSelection();
});
</script>
</body>
</html>

@ -1,57 +1,263 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>登陆页</title>
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
<link href="__CSS__/swiper.min.css" rel="stylesheet" type="text/css">
<script src="__JS__/ssg/flexible.min.js" type="text/javascript"></script>
</head>
<style>
* {
padding: 0px;
margin: 0px;
}
.loginbox {
width: 6.3rem;
height: 6.34rem;
background-color: #fff;
border-radius: .32rem;
margin: .6rem auto 0;
}
.loginbox .title {
display: flex;
height: 1rem;
width: 100%;
justify-content: space-between;
align-items: center;
}
.loginbox .title img,
.loginbox .titleright {
width: .4rem;
height: .4rem;
}
.loginbox .title img {
padding-left: .22rem;
}
.loginbox .titleright {
padding-right: .22rem;
}
.loginbox .title div {
font-size: .4rem;
color: #292929;
}
.loginbox .formitem {
display: flex;
height: .8rem;
width: 5rem;
margin: auto;
;
justify-content: flex-start;
align-items: center;
border-bottom: 1px solid #292929;
margin: .3rem auto 0;
}
.loginbox .formitem img {
width: .4rem;
height: .4rem;
margin-right: .1rem;
}
.loginbox .formitem input {
border: 0px;
height: .8rem;
font-size: .28rem;
text-align: left;
width: 4.5rem;
}
</style>
<body>
<div class="page-container container-white">
<div class="top">
<a href="javascript:history.go(-1);"></a>登录
</div>
<div class="login">
<div class="login-title">
<h2>Hello!终于等到你~</h2>
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
<div
style="background: url('__IMG__/ssg/login/bg.png') no-repeat top center/100% 100%;padding-bottom: .4rem;min-height: 100vh;">
<div style="width: 100%;text-align: center;padding-top: .55rem;">
<img src="__IMG__/ssg/home/hader.png" style="width:6.7rem;height: 5.35rem;">
</div>
<div class="login-input">
<ul>
<li>
<label>
<input type="text" id="userAccount" name="userAccount" placeholder="用户名">
</label>
</li>
<li>
<label>
<input type="password" id="password" name="password" placeholder="登录密码">
</label>
</li>
<li>
<label>
<input type="text" id="userCode" name="userCode" maxlength="4" placeholder="验证码">
<img id="verifyCode" style="cursor:pointer" onclick="GetVerityCode()" src="/mobile.php?s=/Ssg/verify.html">
</label>
</li>
</ul>
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide swiper-no-swiping">
<!--登陆-->
<div class="loginbox">
<div class="title">
<img class="back" src="__IMG__/ssg/login/back.png">
<div>登陆</div>
<div class="titleright"></div>
</div>
<div class="formitem" style="margin-top: 0px;">
<img src="__IMG__/ssg/login/user.png">
<input id="userAccount" type="text" placeholder="请输入用户名" value="">
</div>
<div class="formitem">
<img src="__IMG__/ssg/login/password.png">
<input id="password" type="password" placeholder="请输入密码" value="">
</div>
<div class="formitem" style="border: 0px;">
<div class="formitem" style="margin-right: .2rem;margin-top: 0px;width: 3.5rem;">
<img src="__IMG__/ssg/login/code.png">
<input id="userCode" type="text" placeholder="请输入验证码" value="" style="width:2rem;">
</div>
<img id="verifyCode" style="cursor:pointer;width:1.5rem;height: .7rem;margin-right:0px;"
onclick="GetVerityCode()" src="/mobile.php?s=/Ssg/verify.html">
</div>
<!---按钮-->
<div
style="display: flex;width:100%;margin:.22rem auto 0;justify-content:center;align-items:center;font-size: .32rem;text-align: center;line-height:1.1rem;color: #fff;">
<div id="loginbtn" style="background: url('__IMG__/ssg/login/bottonbg.png') no-repeat top center/cover;width: 2.9rem;height: 1.4rem;">
登陆
</div>
<div class="gophonreg" style="background: url('__IMG__/ssg/login/bottonbg.png') no-repeat top center/cover;width: 2.9rem;height: 1.4rem;">
注册
</div>
</div>
<div style="display: flex;width:100%;justify-content:center;align-items:center;">
<img src="__IMG__/ssg/login/kf.png" style="width: .3rem;height: .3rem;">
<div class="chatqq" style="font-size: .24rem;color:#21B1EB;margin-left: .1rem;">
联系客服
</div>
</div>
</div>
</div>
<div class="swiper-slide swiper-no-swiping">
<!--手机注册-->
<div class="loginbox">
<div class="title">
<img class="gologin" src="__IMG__/ssg/login/back.png">
<div>手机注册</div>
<div class="titleright"></div>
</div>
<div class="formitem" style="margin-top: 0px;">
<img src="__IMG__/ssg/login/phone.png">
<input id="phoneval" type="text" placeholder="请输入手机号" value="">
</div>
<div class="formitem">
<img src="__IMG__/ssg/login/password.png">
<input type="password" placeholder="请输入6-12位自字母组合密码" value="">
</div>
<div class="formitem" style="border: 0px;">
<div class="formitem" style="margin-right: .2rem;margin-top: 0px;width: 3.5rem;">
<img src="__IMG__/ssg/login/code.png">
<input type="text" placeholder="请输入短信验证码" value="" style="width:2.5rem;">
</div>
<div id="getPhoneCode" style="width:1.8rem;height: .6rem;color: white;background-color:#21B1EB;border-radius: .3rem;line-height: .6rem;font-size: .24rem;text-align: center;">
获取验证码
</div>
</div>
<!---按钮-->
<div
style="display: flex;width:100%;margin:.22rem auto 0;justify-content:center;align-items:center;font-size: .32rem;text-align: center;line-height:1.1rem;color: #fff;">
<div
style="background: url('__IMG__/ssg/login/bigbuttonbg.png') no-repeat top center/cover;width: 5.6rem;height: 1.4rem;">
立即注册
</div>
</div>
<div style="display: flex;width:100%;justify-content:center;align-items:center;font-size: .24rem;">
<div>注册即表示同意<a href="{:U('News/protocol')}" style="color:#3CC2EF">《用户协议》</a></div>
<div style="display: flex;align-items:center;margin-left: .25rem;">
<img src="__IMG__/ssg/login/change.png" style="width: .3rem;height: .3rem;">
<div class="gouserreg" style="color:#21B1EB;margin-left: .1rem;">
切换普通注册
</div>
</div>
</div>
</div>
</div>
<div class="swiper-slide swiper-no-swiping">
<!--普通注册-->
<div class="loginbox">
<div class="title">
<img class="gologin" src="__IMG__/ssg/login/back.png">
<div>普通注册</div>
<div class="titleright"></div>
</div>
<div class="formitem" style="margin-top: 0px;">
<img src="__IMG__/ssg/login/user.png">
<input type="text" placeholder="请输入账号(6-12位字母数字组合)" value="">
</div>
<div class="formitem">
<img src="__IMG__/ssg/login/password.png">
<input type="password" placeholder="请输入6-12位自字母组合密码" value="">
</div>
<div class="formitem">
<img src="__IMG__/ssg/login/password.png">
<input type="password" placeholder="请再次确认输入密码" value="">
</div>
<!---按钮-->
<div
style="display: flex;width:100%;margin:.22rem auto 0;justify-content:center;align-items:center;font-size: .32rem;text-align: center;line-height:1.1rem;color: #fff;">
<div
style="background: url('__IMG__/ssg/login/bigbuttonbg.png') no-repeat top center/cover;width: 5.6rem;height: 1.4rem;">
立即注册
</div>
</div>
<div style="display: flex;width:100%;justify-content:center;align-items:center;font-size: .24rem;">
<div>注册即表示同意 <a href="{:U('News/protocol')}" style="color:#3CC2EF">《用户协议》</a></div>
<div style="display: flex;align-items:center;margin-left: .25rem;">
<img src="__IMG__/ssg/login/change.png" style="width: .3rem;height: .3rem;">
<div class="gophonreg" style="color:#21B1EB;margin-left: .1rem;">
切换手机注册
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="login-btn"><a href="javascript:;" onclick="Login()">登录</a></div>
<div style="padding-top: 0.2rem;" class="login-btn"><a href="/mobile.php?s=/User/step1.html">注册</a></div>
</div>
</div>
</body>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/jquery.md5.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
<script src="__JS__/swiper.min.js" type="text/javascript"></script>
<script type="text/javascript">
var mySwiper = new Swiper('.swiper-container', {
// autoplay: true,//可选选项,自动滑动
initialSlide :1,
noSwiping : true,
})
var loginLock = false;
function GetVerityCode() {
//刷新验证码
$("#verifyCode").attr("src", "/mobile.php?s=/Ssg/verify.html&id=" + Math.random());
}
function Login() {
$(".gophonreg").on("click",function() {
//去手机注册页
mySwiper.slideTo(1, 350, false);
})
$(".gouserreg").on("click",function() {
//去手机注册页
mySwiper.slideTo(2, 350, false);
})
$(".gologin").on("click",function(){
mySwiper.slideTo(0, 350, false);
})
$(".back").on("click",function(){
window.history.go(-1);
})
$(".chatqq").on("click",function(){
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$app_qq}&version=1&src_type=web&web_src=oicqzone.com';
})
//获取登录密码
//登陆
$("#loginbtn").on("click",function(){
var loginName = $("#userAccount").val();
var loginPass = $("#password").val();
var userCode = $("#userCode").val();
@ -75,28 +281,79 @@
jQuery.ajax({
type: 'POST',
url:'mobile.php?s=/Ssg/do_login.html',
url: 'mobile.php?s=/Ssg/do_login.html',
data: {
'Account':loginName,
'Password':(loginPass),
'VerifyCode':userCode,
'promote_id' :promoteId,
'Account': loginName,
'Password': (loginPass),
'VerifyCode': userCode,
'promote_id': promoteId,
},
dataType: 'JSON',
xhrFields:{
withCredentials:true
xhrFields: {
withCredentials: true
},
async: false,
cache: false,
success: function (result) {
if (result.ErrorCode!=0){
if (result.ErrorCode != 0) {
alert(result.ResultMsg);
GetVerityCode();
}else{
window.location.href="mobile.php?s=/Ssg/index.html"
} else {
window.location.href = "mobile.php?s=/Ssg/index.html"
}
}
});
})
//倒计时
var codeflag = true;
//获取手机验证码
$("#getPhoneCode").on("click",function(){
//获取手机
var phone = $('#phoneval').val();
if(codeflag){
if(checkPhone(phone)){
//获取验证码
$.ajax({
type: 'GET',
url: 'mobile.php?s=/Ssg/sendPhoneCode.html&phone='+phone,
dataType: 'JSON',
success: function (result) {
console.log(result)
if (result.status != 1) {
alert(result.msg);
} else {
countDown();
}
}
})
}
}
})
var i = 60;
function countDown() {
codeflag = false;
i = i - 1;
$("#getPhoneCode").html(i+"秒后重发").css("backgroundColor","#A9A9A9");
if (i == 0) {
$("#getPhoneCode").html("重新发送").css("backgroundColor","#21B1EB");
codeflag = true;
i = 60;
return;
}
setTimeout('countDown()',1000);
}
//验证手机
function checkPhone(phone){
if(!(/^1[3456789]\d{9}$/.test(phone))){
alert("手机号码有误,请重填");
return false;
} else{
return true;
}
}
</script>
</html>

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>登陆页</title>
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="page-container container-white">
<div class="top">
<a href="javascript:history.go(-1);"></a>登录
</div>
<div class="login">
<div class="login-title">
<h2>Hello!终于等到你~</h2>
<input type="hidden" value="{$promote_id}" id="promote_id" name="promote_id"/>
</div>
<div class="login-input">
<ul>
<li>
<label>
<input type="text" id="userAccount" name="userAccount" placeholder="用户名">
</label>
</li>
<li>
<label>
<input type="password" id="password" name="password" placeholder="登录密码">
</label>
</li>
<li>
<label>
<input type="text" id="userCode" name="userCode" maxlength="4" placeholder="验证码">
<img id="verifyCode" style="cursor:pointer" onclick="GetVerityCode()" src="/mobile.php?s=/Ssg/verify.html">
</label>
</li>
</ul>
</div>
<div class="login-btn"><a href="javascript:;" onclick="Login()">登录</a></div>
<div style="padding-top: 0.2rem;" class="login-btn"><a href="/mobile.php?s=/User/step1.html">注册</a></div>
</div>
</div>
</body>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/jquery.md5.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
<script type="text/javascript">
var loginLock = false;
function GetVerityCode() {
//刷新验证码
$("#verifyCode").attr("src", "/mobile.php?s=/Ssg/verify.html&id=" + Math.random());
}
function Login() {
var loginName = $("#userAccount").val();
var loginPass = $("#password").val();
var userCode = $("#userCode").val();
var promoteId = $("#promote_id").val();
if (loginName == "") {
alert("账号不能为空");
return false;
}
if (loginPass == "") {
alert("密码不能为空");
return false;
}
if (userCode == "") {
alert("验证码不能为空");
return false;
}
if (promoteId == "") {
alert("推广员ID不能为空");
return false;
}
jQuery.ajax({
type: 'POST',
url:'mobile.php?s=/Ssg/do_login.html',
data: {
'Account':loginName,
'Password':(loginPass),
'VerifyCode':userCode,
'promote_id' :promoteId,
},
dataType: 'JSON',
xhrFields:{
withCredentials:true
},
async: false,
cache: false,
success: function (result) {
if (result.ErrorCode!=0){
alert(result.ResultMsg);
GetVerityCode();
}else{
window.location.href="mobile.php?s=/Ssg/index.html"
}
}
});
}
</script>
</html>

@ -103,69 +103,70 @@ class Ipa365Controller extends BaseController{
* 发起支付
*/
public function pay() {
$userId = $this->userinfo['user_id'];
if (!$userId ) {
$this->error("请登入", "/mobile.php/ssg/login");
}
// $userId = $this->userinfo['user_id'];
// if (!$userId ) {
// $this->error("请登入", "/mobile.php/ssg/login");
// }
$gameId = I("game_id", 0);
$price = self::signprice;
// $gameId = I("game_id", 0);
// $price = self::signprice;
if (!$userId || !$gameId) {
$this->error("参数有误!");
}
// if (!$userId || !$gameId) {
// $this->error("参数有误!");
// }
$payLog = M('game_supersign', 'tab_')->where(array(
'user_id' => $userId,
'game_id' => $gameId,
'pay_status' => 0
))->find();
if ($payLog) {
$orderId = $payLog['order_id'];
} else {
$orderId = "SS_" . date('Ymd') . date('His') . sp_random_string(4); // 超级签
// $payLog = M('game_supersign', 'tab_')->where(array(
// 'user_id' => $userId,
// 'game_id' => $gameId,
// 'pay_status' => 0
// ))->find();
// if ($payLog) {
// $orderId = $payLog['order_id'];
// } else {
// $orderId = "SS_" . date('Ymd') . date('His') . sp_random_string(4); // 超级签
$gameInfo = M('game', 'tab_')->field('supersign_token')->where(array(
'id' => $gameId,
))->find();
if (!$gameInfo['supersign_token']) {
$this->error("超级签token未填写");
}
// $gameInfo = M('game', 'tab_')->field('supersign_token')->where(array(
// 'id' => $gameId,
// ))->find();
// if (!$gameInfo['supersign_token']) {
// $this->error("超级签token未填写");
// }
$r = M('game_supersign', 'tab_')->add(array(
'udid' => '',
'user_id' => $userId,
'game_id' => $gameId,
'order_id' => $orderId,
'pay_price' => $price,
'pay_status' => 0,
'ticket' => '', // 调用安装的时候分配
'token' => $gameInfo['supersign_token'],
'create_time' => time()
));
if (!$r) return -1;
}
// $r = M('game_supersign', 'tab_')->add(array(
// 'udid' => '',
// 'user_id' => $userId,
// 'game_id' => $gameId,
// 'order_id' => $orderId,
// 'pay_price' => $price,
// 'pay_status' => 0,
// 'ticket' => '', // 调用安装的时候分配
// 'token' => $gameInfo['supersign_token'],
// 'create_time' => time()
// ));
// if (!$r) return -1;
// }
$param['price'] = $price;
$param['sdk_version'] = '2';
$param['user_id'] = $userId;
$param['game_id'] = $gameId;
$param['order_id'] = $orderId;
$param['apitype'] = "alipay";
$param['config'] = "alipay";
$param['signtype']= "MD5";
$param['server'] = "alipay.wap.create.direct.pay.by.user";
$param['payway'] = 1;
$param['title'] = $price;
$param['body'] = $price;
$param['callback'] = "https://m.wmtxkj.com/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
$param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
// $param['price'] = $price;
// $param['sdk_version'] = '2';
// $param['user_id'] = $userId;
// $param['game_id'] = $gameId;
// $param['order_id'] = $orderId;
// $param['apitype'] = "alipay";
// $param['config'] = "alipay";
// $param['signtype']= "MD5";
// $param['server'] = "alipay.wap.create.direct.pay.by.user";
// $param['payway'] = 1;
// $param['title'] = $price;
// $param['body'] = $price;
// $param['callback'] = "https://m.wmtxkj.com/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
// $param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
$ret = $this->alipay($param);
// $ret = $this->alipay($param);
$this->assign("price", self::signprice);
$this->assign("url", $ret['url']);
$this->assign("order_id", $orderId);
// $this->assign("price", self::signprice);
// $this->assign("url", $ret['url']);
// $this->assign("order_id", $orderId);
// pp($orderId);
// redirect($ret['url']);

@ -3,28 +3,50 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<meta name="viewport"
content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>支付中心-网上支付 安全快速!</title>
<link href="__IMG__/ssg/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link href="__CSS__/ssg/pay-center.css" rel="stylesheet" type="text/css">
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
<script src="./Public/Mobile/js/ssg/flexible.min.js" type="text/javascript"></script>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/jquery.base64.js" type="text/javascript"></script>
</head>
<!-- </head> -->
<style>
body{
min-height: 100vh;
}
.title{
display: flex;
height: 1rem;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: #21B1EB;
}
.title img,
.titleright {
width: .3rem;
height: .3rem;
}
</style>
<body>
<div class="topbar">
<!-- <div class="topbar">
<div class="topcon auto">
<h1 class="pay-logo">
<img src="__IMG__/ssg/alipay/pay-logo.png" alt="Logo"></h1>
</div>
</div>
</div> -->
<div class="title" >
<img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;">
<div style="font-size: .32rem;color: #fff;">天宫计</div>
<div class="titleright" style="margin-right:.24rem;"></div>
</div>
<!-- 其他通道 -->
<div class="container-pay">
<div class="auto">
<div class="orders-summary">
@ -54,36 +76,52 @@
</div>
</div>
<!-- 触屏订单通道 -->
<div class="m-order hidden">
<div class="m-order-base">
<div class="m-order-item">
<label>订单名称:</label><span>超级签购买</span>
</div>
<div class="m-order-item">
<label>订单金额:</label><span>{$price}元</span>
<div class="m-order hidden" style="min-height: 100vh;">
<div style="padding: .3rem;">
<div style="width: 6.9rem;height: 1.7rem;background-color: #fff;border-radius:10px;margin: auto;font-size: .28rem;color:#292929;">
<div style="display: flex;height: .8rem; justify-content: space-between;align-items:center;padding: 0 .3rem;">
<div>订单名称:</div>
<div>超级签购买</div>
</div>
<div style="display: flex;height: .8rem; justify-content: space-between;align-items:center;padding: 0 .3rem;">
<div>订单金额:</div>
<div>{$price}元</div>
</div>
</div>
</div>
<div class="m-order-payinfo">
<div class="payinfo-tit">
<label>还需支付: </label>
<span>{$price}</span>
<div class="m-order-payinfo" style="width: 6.9rem;margin:auto;border-radius:10px;border: 0px;">
<div class="payinfo-tit" style="display: flex;justify-content: space-between;">
<label style="font-weight: normal;color:#292929;">还需支付: </label>
<span>{$price}</span>
</div>
<a class="order-payinfo-item"
href="#;" onclick="jump('{$url}', '{$order_id}')"
title="支付宝">
<div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">
title="支付宝" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;">
<div class="order-payinfo-icon" style="width: .7rem;height: .7rem;">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" style="width: 100%;height: 100%;border: 0px;" alt="支付宝">
</div>
<div class="order-payinfo-con">
<div class="pay-title">支付宝</div>
<div class="pay-meta">支持支付宝</div>
<div class="order-payinfo-con" style="margin-left: .21rem;">
<div class="pay-title">支付宝支付</div>
<div class="pay-meta">推荐支付宝用户使用</div>
</div>
</a>
<a class="order-payinfo-item"
href="#;" onclick="jump('{$url}', '{$order_id}')"
title="微信支付" style="padding: .3rem 0;width: 6.3rem;margin-left: .3rem;">
<div class="order-payinfo-icon" style="width: .7rem;height: .7rem;">
<img src="__IMG__/ssg/alipay/wxpay.png" style="width: 100%;height: 100%;border: 0px;" alt="微信支付">
</div>
<div class="order-payinfo-con" style="margin-left: .21rem;">
<div class="pay-title">微信支付</div>
<div class="pay-meta">推荐微信用户使用</div>
</div>
</a>
</div>
</div>
<div class="footer-pay">
<!-- <div class="footer-pay">
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div>
</div> -->
</body>
<script>
function jump(pay_url, order_id) {

@ -0,0 +1,108 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<meta name="viewport"
content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>支付中心-网上支付 安全快速!</title>
<link href="__IMG__/ssg/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link href="__CSS__/ssg/pay-center.css" rel="stylesheet" type="text/css">
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/jquery.base64.js" type="text/javascript"></script>
</head>
<body>
<div class="topbar">
<div class="topcon auto">
<h1 class="pay-logo">
<img src="__IMG__/ssg/alipay/pay-logo.png" alt="Logo"></h1>
</div>
</div>
<div class="container-pay">
<div class="auto">
<div class="orders-summary">
<div class="orders-name">超级签购买</div>
<div class="orders-desc">订单描述:<span>{$order_id}</span></div>
<div class="total-money">应付金额:<strong>{$price}</strong></div>
</div>
<div class="order-checkbank">
<div class="order-checkbank-con">
<div class="order-checkbank-tit">请选择付款方式:</div>
<ul class="order-checkbank-list">
<li>
<a href="{$url}"
title="支付宝">
<img src="__IMG__/ssg/alipay/zfb-icon.png" alt="支付宝">
</a>
</li>
</ul>
</div>
<div class="order-checkbank-mid">
<p class="odd">请选择支付方式。建议选择使用支付宝、微信支付、银行卡,支付请直接点击相应付款按钮。如果您使用支付宝账户支付,请点击“支付宝”按钮。</p>
<p class="odd">如果您选择支付宝、微信支付、银行卡支付时,请遵守相关支付宝、微信支付、财付通的规定进行操作。您在支付宝、微信支付、财付通页面上进行的任何操作及其产生的</p>
<p>任何法律后果,将按照您与支付宝、微信支付、银行卡之间签订的合同处理。本网站不承担任何责任。</p>
</div>
</div>
</div>
</div>
<!-- 触屏订单通道 -->
<div class="m-order hidden">
<div class="m-order-base">
<div class="m-order-item">
<label>订单名称:</label><span>超级签购买</span>
</div>
<div class="m-order-item">
<label>订单金额:</label><span>{$price}元</span>
</div>
</div>
<div class="m-order-payinfo">
<div class="payinfo-tit">
<label>还需支付: </label>
<span>{$price}元</span>
</div>
<a class="order-payinfo-item"
href="#;" onclick="jump('{$url}', '{$order_id}')"
title="支付宝">
<div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">
</div>
<div class="order-payinfo-con">
<div class="pay-title">支付宝</div>
<div class="pay-meta">支持支付宝</div>
</div>
</a>
</div>
</div>
<div class="footer-pay">
<p>海南万盟天下科技有限公司 版权所有 ©2019 支付中心</p>
</div>
</body>
<script>
function jump(pay_url, order_id) {
if(isWeiXin()){
window.location.href = "/sdk.php/Ipa365/paytip/order_id/"+order_id;
}else{
window.location.href=pay_url;
}
}
//判断是否是微信浏览器的函数
function isWeiXin(){
//window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息这个属性可以用来判断浏览器类型
var ua = window.navigator.userAgent.toLowerCase();
//通过正则表达式匹配ua中是否含有MicroMessenger字符串
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
}
</script>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

@ -0,0 +1 @@
!function(e){var t=e.document,n=t.documentElement,i="orientationchange"in e?"orientationchange":"resize",a=function e(){var t=n.getBoundingClientRect().width;return n.style.fontSize=5*Math.max(Math.min(t/750*20,11.2),8.55)+"px",e}();n.setAttribute("data-dpr",e.navigator.appVersion.match(/iphone/gi)?e.devicePixelRatio:1),/iP(hone|od|ad)/.test(e.navigator.userAgent)&&(t.documentElement.classList.add("ios"),parseInt(e.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1],10)>=8&&t.documentElement.classList.add("hairline")),t.addEventListener&&(e.addEventListener(i,a,!1),t.addEventListener("DOMContentLoaded",a,!1))}(window);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Loading…
Cancel
Save