master
chenzhi 5 years ago
parent da8aee73c6
commit 4ac6442777

@ -224,10 +224,10 @@ class SsgController extends BaseController {
//首页
public function index(){
$user = session("user_auth");
if (!$user) {
redirect(U("ssg/login"));
//$this->error("请登入", U('ssg/login'));
}
// if (!$user) {
// redirect(U("ssg/login"));
// //$this->error("请登入", U('ssg/login'));
// }
$map['a.user_id']= $user['user_id'];
$map['a.sdk_version'] = 2;
$game_list = M("user_play a","tab_")->field("b.*,b.id as game_id,od.pay_status")->join("inner join tab_game b on a.game_id=b.id left join tab_game_supersign od on od.user_id=a.user_id and od.game_id=b.id and od.pay_status=1")->where($map)->select();

@ -1,130 +1,181 @@
<!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">
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">
<script src="__JS__/ssg/flexible.min.js" type="text/javascript"></script>
</head>
<style>
body {
background-color: #F5F5F5;
}
.flexitem {
display: flex;
justify-content: flex-start;
align-items: center;
}
.title {
display: flex;
height: .9rem;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: #21B1EB;
color: white;
font-size: .28rem;
}
.title img {
width: .3rem;
height: .3rem;
}
.borderitem::after {
/* margin-left: .24rem; */
height: 1px;
position: absolute;
z-index: 0;
bottom: 0;
left: 0;
content: "";
width: 100%;
background-image: -webkit-linear-gradient(bottom, #ececec 50%, transparent 0);
background-image: linear-gradient(0deg, #ececec 50%, transparent 0);
}
.shaddowbox {
background-color: #fff;
border-radius: .24rem;
box-shadow: 0px 0px 6px 0px rgba(89, 40, 8, 0.15);
}
input {
background-color: #F5F5F5;
}
</style>
<body>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>至尊版购买<a href="{:U('order')}" class="link">订单查询</a>
</div>
<style>
.interval {
height: 10px;
background-color: #f9f9f9;
}
</style>
<div class="interval"></div>
<div class="vip-game">
<div class="title-2"><a href="javascript:;" class="f-fr">
<h2 class="f-fl">苹果超级签</h2><span class="f-fr"
onclick="window.location.href='{:U(\'rule\')}'">至尊版说明</span>
</a></div>
<div class="vip-banner">
<img src="__IMG__/ssg/game/vip-banner.png">
<div class="title">
<div class="flexitem">
<img class="logout" src="__IMG__/ssg/index/logout.png" style="margin-left:.29rem;">
<div style="margin-left: 5px;">退出登入</div>
</div>
<div style="font-size: .32rem;font-weight: 600;">至尊版购买</div>
<div class="flexitem" style="margin-right:.29rem;">
<img class="order" src="__IMG__/ssg/index/order.png">
<div style="margin-left: 5px;">订单查询</div>
</div>
</div>
<div class="interval"></div>
<div class="vip-announcement">
<i></i>
1.选择游戏产品同时,即选择购买超级签游戏下载链接和对应游戏礼包,无法退换哦~<br>
2.不同手机设备需要分别付费安装哦
<br>
<span style="color: red;">3.如您已购买个人签,请到<a style="color:red;" href="{:U('order')}" class="link"><订单查询></a>重新下载安装,无需二次购买!</span>
</div>
<div class="interval"></div>
<div class="select-product">
<div class="title-2"><a href="javascript:;" class="f-fr">
<h2 class="f-fl">选择产品</h2><span class="f-fr" id="txtgamename">{$data_list[0]['game_name']}-超级签 </span>
</a></div>
<div class="product-list">
<ul>
<volist name="data_list" id="data">
<li onclick="handleGameID('{$data.game_id}','{$data.game_name}','{$data.pay_status}')">
<dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt>
<dd class="product-title">{$data.game_name}-超级签&nbsp;<i></i></dd>
<dd class="product-word">至尊特权礼包(限量)</dd>
<dd class="select-btn">
<a href="javascript:;" item-val="" class="<if condition="$i eq 1">current</if>"> </a>
</dd>
</dl>
</li>
</volist>
<div style="padding: .3rem;">
<div class="shaddowbox">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div class="borderitem"
style="display: flex; justify-content: space-between;align-items:center;padding: 0 .3rem;line-height: .9rem;">
<div style="font-size: .32rem;">苹果超级签</div>
<div class="flexitem" style="color: #A9A9A9;">
<div style="margin-right: 5px;">至尊版说明</div>
<img src="__IMG__/ssg/index/back.png" style="width:.3rem;height:.3rem;">
</div>
</div>
</div>
<div class="flexitem" style="height: 2.6rem;justify-content:center;">
<img class="order" src="__IMG__/ssg/index/ad.png" style="width: 6.3rem;height: 2rem;">
</div>
</div>
<div class="shaddowbox" style="margin-top: .3rem;">
<div style="width: 6.9rem;font-size: .24rem;color:#292929;position: relative;">
<p style="padding: .3rem;">
1.选择游戏产品时,即选择购买超级签游戏下载链接和对应
的游戏礼包,无法退换哦~
</p>
<p style="padding:0 .3rem .3rem;">
2.同个账号多个设备需要去找客服那边购买。
</p>
</div>
</div>
<div class="shaddowbox" style="margin-top: .3rem;">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div class="borderitem"
style="display: flex; justify-content: space-between;align-items:center;padding: 0 .3rem;line-height: .9rem;">
<div style="font-size: .32rem;">选择产品</div>
<div class="flexitem"
style="color: #A9A9A9;width: 4.1rem;height: .6rem;background-color: #F5F5F5;border-radius: .3rem;">
<img src="__IMG__/ssg/index/select.png" style="width:.4rem;height: .4rem;margin-left: .17rem;">
<input id="copyVal" type="text" value=""
style="border: 0px;width: 3rem;height: .6rem;font-size: .24rem;margin-left: .2rem;">
</div>
</div>
</ul>
<input type="hidden" id="hdGameID" value="{$data_list[0]['game_id']}">
<input type="hidden" id="orderStatus" value="{$data_list[0]['pay_status']}">
<script>
</div>
<!--游戏列表-->
<div style=" padding:0 .3rem .3rem;">
<div class="flexitem" style="padding-top:.3rem ;justify-content: space-between;">
<img src="__IMG__/ssg/detail/gamebg.png" style="width: .7rem;height: .7rem;">
<div style="margin-left: .2rem;flex-grow: 1;">
<div class="flexitem">
<div style="font-size: .28rem;">落梦星辰-超级签</div>
<img src="__IMG__/ssg/index/gif.png"
style="width: .27rem;height: .27rem;margin-left: .2rem;">
</div>
<div style="color:#A9A9A9;font-size: .2rem;">
至尊特权礼包(限量)
</div>
</div>
<img src="__IMG__/ssg/index/check.png" style="width: .3rem;height: .3rem;">
</div>
<div class="flexitem" style="padding-top:.3rem ;justify-content: space-between;">
<img src="__IMG__/ssg/detail/gamebg.png" style="width: .7rem;height: .7rem;">
<div style="margin-left: .2rem;flex-grow: 1;">
<div class="flexitem">
<div style="font-size: .28rem;">落梦星辰-超级签</div>
<img src="__IMG__/ssg/index/gif.png"
style="width: .27rem;height: .27rem;margin-left: .2rem;">
</div>
<div style="color:#A9A9A9;font-size: .2rem;">
至尊特权礼包(限量)
</div>
</div>
<img src="__IMG__/ssg/index/nocheck.png" style="width: .3rem;height: .3rem;">
</div>
</script>
</div>
</div>
<div class="interval"></div>
<div class="not-arrived">
<div class="title-2">
<a href="{:U('help')}" class="f-fr">
<h2 class="f-fl">支付未到账?</h2><span class="f-fr">充值帮助</span>
</a>
</div>
</div>
</div>
<div class="interval"></div>
<div class="contact-customer">
<!--<div class="title-2">
<a href="javascript:;" onclick="handleSobot(5062225)" class="f-fr">
<h2 class="f-fl">联系客服</h2><span class="f-fr">&nbsp;</span>
</a>
</div>-->
</div>
<div class="pay-button">
<a href="javascript:;" onclick="handlePay()">确认支付 ¥10</a>
</div>
<script>
/*function handleSobot(userID) {
//联系客服
window.location.href = decodeURIComponent("https://www.sobot.com/chat/h5/index.html?sysNum=823d139047674564bfc040e60c4a1a18&color=fa8932&customerFields={'customField8':'" + userID + "'}");
}*/
function handleGameID(gameID, gameName,orderStatus) {
var hdGameID = $("#hdGameID").val();
$("#hdGameID").val(hdGameID == gameID ? 0 : gameID);
$("#orderStatus").val(orderStatus);
<!---button--->
<div class="shaddowbox" style="margin-top: .3rem;">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div class="borderitem"
style="display: flex; justify-content: space-between;align-items:center;padding: 0 .3rem;line-height: .9rem;">
<div style="font-size: .32rem;">支付未到账?</div>
<div class="flexitem" style="color: #A9A9A9;">
<div style="margin-right: 5px;">充值帮助</div>
<img src="__IMG__/ssg/index/back.png" style="width:.3rem;height:.3rem;">
</div>
</div>
</div>
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div style="display: flex; justify-content: space-between;align-items:center;padding: 0 .3rem;line-height: .9rem;">
<div style="font-size: .32rem;">联系客服</div>
<div class="flexitem" style="color: #A9A9A9;">
<!-- <div style="margin-right: 5px;">至尊版说明</div> -->
<img src="__IMG__/ssg/index/back.png" style="width:.3rem;height:.3rem;">
</div>
</div>
</div>
<!-- <div class="flexitem" style="height: 2.6rem;justify-content:center;">
<img class="order" src="__IMG__/ssg/index/ad.png" style="width: 6.3rem;height: 2rem;">
</div> -->
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
$("#txtgamename").text(gameName + "-超级签");
}
function handlePay() {
var hdGameID = $("#hdGameID").val();
var orderStatus = $("#orderStatus").val();
if (!hdGameID || hdGameID == 0) {
alert("请选择游戏");
} else if(orderStatus==1){
alert("亲~您已购买过了~请到【订单查询】查看订单信息哟~");
}else {
location.href = "/sdk.php/Ipa365/pay/game_id/"+hdGameID;
}
}
</script>
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js?v=1.12" type="text/javascript"></script>
<!--<script type="text/javascript">
var READYTOPROCESS = false;
window.onbeforeunload = function closeWindow(e)
{
if (!READYTOPROCESS)
{
//message to be returned to the popup box.
var message = '你确定要关闭吗?',
e = e || window.event;
if (e)
e.returnValue = message; // IE
return message; // Safari
}
};
</script>-->
</body>
</html>

@ -0,0 +1,166 @@
<!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">
<script src="__JS__/ssg/flexible.min.js" type="text/javascript"></script>
</head>
<style>
.flexitem {
display: flex;
justify-content: flex-start;
align-items: center;
}
.title{
display: flex;
height:.9rem;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: #21B1EB;
color: white;
font-size: .28rem;
}
.title img,
.titleright {
width: .3rem;
height: .3rem;
}
</style>
<body>
<div class="title" >
<div class="flexitem">
<img class="logout" src="__IMG__/ssg/index/logout.png" style="margin-left:.24rem;">
<div>
退出登入
</div>
</div>
<div style="font-size: .32rem;">至尊版购买</div>
<div class="titleright" style="margin-right:.24rem;"></div>
</div>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>至尊版购买<a href="{:U('order')}" class="link">订单查询</a>
</div>
<style>
.interval {
height: 10px;
background-color: #f9f9f9;
}
</style>
<div class="interval"></div>
<div class="vip-game">
<div class="title-2"><a href="javascript:;" class="f-fr">
<h2 class="f-fl">苹果超级签</h2><span class="f-fr"
onclick="window.location.href='{:U(\'rule\')}'">至尊版说明</span>
</a></div>
<div class="vip-banner">
<img src="__IMG__/ssg/game/vip-banner.png">
</div>
</div>
<div class="interval"></div>
<div class="vip-announcement">
<i></i>
1.选择游戏产品同时,即选择购买超级签游戏下载链接和对应游戏礼包,无法退换哦~<br>
2.不同手机设备需要分别付费安装哦
<br>
<span style="color: red;">3.如您已购买个人签,请到<a style="color:red;" href="{:U('order')}" class="link"><订单查询></a>重新下载安装,无需二次购买!</span>
</div>
<div class="interval"></div>
<div class="select-product">
<div class="title-2"><a href="javascript:;" class="f-fr">
<h2 class="f-fl">选择产品</h2><span class="f-fr" id="txtgamename">{$data_list[0]['game_name']}-超级签 </span>
</a></div>
<div class="product-list">
<ul>
<volist name="data_list" id="data">
<li onclick="handleGameID('{$data.game_id}','{$data.game_name}','{$data.pay_status}')">
<dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt>
<dd class="product-title">{$data.game_name}-超级签&nbsp;<i></i></dd>
<dd class="product-word">至尊特权礼包(限量)</dd>
<dd class="select-btn">
<a href="javascript:;" item-val="" class="<if condition="$i eq 1">current</if>"> </a>
</dd>
</dl>
</li>
</volist>
</ul>
<input type="hidden" id="hdGameID" value="{$data_list[0]['game_id']}">
<input type="hidden" id="orderStatus" value="{$data_list[0]['pay_status']}">
<script>
</script>
</div>
</div>
<div class="interval"></div>
<div class="not-arrived">
<div class="title-2">
<a href="{:U('help')}" class="f-fr">
<h2 class="f-fl">支付未到账?</h2><span class="f-fr">充值帮助</span>
</a>
</div>
</div>
<div class="interval"></div>
<div class="contact-customer">
<!--<div class="title-2">
<a href="javascript:;" onclick="handleSobot(5062225)" class="f-fr">
<h2 class="f-fl">联系客服</h2><span class="f-fr">&nbsp;</span>
</a>
</div>-->
</div>
<div class="pay-button">
<a href="javascript:;" onclick="handlePay()">确认支付 ¥10</a>
</div>
<script>
/*function handleSobot(userID) {
//联系客服
window.location.href = decodeURIComponent("https://www.sobot.com/chat/h5/index.html?sysNum=823d139047674564bfc040e60c4a1a18&color=fa8932&customerFields={'customField8':'" + userID + "'}");
}*/
function handleGameID(gameID, gameName,orderStatus) {
var hdGameID = $("#hdGameID").val();
$("#hdGameID").val(hdGameID == gameID ? 0 : gameID);
$("#orderStatus").val(orderStatus);
$("#txtgamename").text(gameName + "-超级签");
}
function handlePay() {
var hdGameID = $("#hdGameID").val();
var orderStatus = $("#orderStatus").val();
if (!hdGameID || hdGameID == 0) {
alert("请选择游戏");
} else if(orderStatus==1){
alert("亲~您已购买过了~请到【订单查询】查看订单信息哟~");
}else {
location.href = "/sdk.php/Ipa365/pay/game_id/"+hdGameID;
}
}
</script>
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<!--<script type="text/javascript">
var READYTOPROCESS = false;
window.onbeforeunload = function closeWindow(e)
{
if (!READYTOPROCESS)
{
//message to be returned to the popup box.
var message = '你确定要关闭吗?',
e = e || window.event;
if (e)
e.returnValue = message; // IE
return message; // Safari
}
};
</script>-->
</body>
</html>

@ -1,102 +0,0 @@
<!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>

@ -19,7 +19,7 @@ body{
}
.title{
display: flex;
height: 1rem;
height: .9rem;
width: 100%;
justify-content: space-between;
align-items: center;

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Loading…
Cancel
Save