master
chenzhi 5 years ago
parent 6ed821429f
commit 712498aff9

@ -72,12 +72,12 @@ class BaseController extends Controller {
/* 退出登录 */
public function logout() {
$member = new SuserApi;
if($member->logout()>0) {
$this->ajaxReturn(array('status' => 1, 'msg' => '退出成功!'));
} else {
$this->ajaxReturn(array('status' => 0, 'msg' => '已退出!'));
}
$member = new SuserApi;
if($member->logout()>0) {
$this->ajaxReturn(array('status' => 1, 'msg' => '退出成功!'));
} else {
$this->ajaxReturn(array('status' => 0, 'msg' => '已退出!'));
}
}

@ -240,6 +240,8 @@ class SsgController extends BaseController {
$v['pay_status'] = 0;
}
}
$appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
$this->assign("app_qq", $appqq);
$this->assign("data_list",$game_list);
$this->display();
}
@ -331,6 +333,11 @@ class SsgController extends BaseController {
\Think\Log::record('缓存清理业务触发');
session(null);
}
//退出
public function logout() {
session("user_auth",null);
redirect(U("ssg/login"));
}
//发送验证码
public function sendPhoneCode()
{

@ -78,12 +78,12 @@
<body>
<div class="title">
<div class="flexitem">
<div class="flexitem" id="logout">
<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;">
<div class="flexitem" style="margin-right:.29rem;" onclick="window.location.href='{:U(\'order\')}'">
<img class="order" src="__IMG__/ssg/index/order.png">
<div style="margin-left: 5px;">订单查询</div>
</div>
@ -131,29 +131,12 @@
</div>
<!--游戏列表-->
<div style=" padding:0 .3rem .3rem;" id="gamebox">
<!-- <volist name="data_list" id="data">
<div class="gameitem flexitem" data-game_id="{$data.game_id}" data-game_name="{$data.game_name}" data-pay_status="{$data.pay_status}" style="padding-top:.3rem ;justify-content: space-between;">
<img src="{$data['icon']|get_cover='path'}" style="width: .7rem;height: .7rem;">
<div style="margin-left: .2rem;flex-grow: 1;">
<div class="flexitem">
<div style="font-size: .28rem;">{$data.game_name}-超级签</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>
<div class="gamechoose gamenocheck <if condition="$i eq 1">gamecheck <else/> gamenocheck</if>"></div>
</div>
</volist>
<input type="hidden" id="hdGameID" value="{$data_list[0]['game_id']}">
<input type="hidden" id="orderStatus" value="{$data_list[0]['pay_status']}"> -->
<div style="text-align: center;font-size: .24rem;color: #a9a9a9;line-height: 5;">游戏数据获取中....</div>
</div>
</div>
<!---button--->
<div class="shaddowbox" style="margin-top: .3rem;">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;" onclick="window.location.href='{:U(\'help\')}'">
<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>
@ -163,7 +146,7 @@
</div>
</div>
</div>
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;">
<div style="width: 6.9rem;font-size: .28rem;color:#292929;position: relative;" onclick="chatQQ()">
<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;">
@ -172,9 +155,6 @@
</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>
<div style="margin:auto;width:100%;height:1.34rem;"></div>
@ -264,6 +244,10 @@ $(".pay-button").on("click",function(){
location.href = "/sdk.php/Ipa365/pay/game_id/"+index.choose.game_id;
}
})
$("#logout").on("click",function(){
alert("退出登录成功");
location.href = "mobile.php?s=/Ssg/logout.html";
})
function handlePay() {
var hdGameID = $("#hdGameID").val();
var orderStatus = $("#orderStatus").val();
@ -294,5 +278,8 @@ function throttle(fun, delay) {
}
}
}
function chatQQ() {
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$app_qq}&version=1&src_type=web&web_src=oicqzone.com';
}
</script>
</html>

@ -227,7 +227,7 @@
<script type="text/javascript">
var mySwiper = new Swiper('.swiper-container', {
// autoplay: true,//可选选项,自动滑动
initialSlide :1,
// initialSlide :1,
noSwiping : true,
})

@ -1,70 +1,173 @@
<!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>
<style>
.order-search li dl .order-status{
background-image: url("__IMG__/ssg/order-status.png");
body {
background-color: #F5F5F5;
}
.flexitem {
display: flex;
justify-content: flex-start;
align-items: center;
}
.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);
margin-top: .3rem;
}
.title {
display: flex;
height: .9rem;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: #21B1EB;
}
.title img,
.titleright {
width: .3rem;
height: .3rem;
}
.order-search li dl .order-status {
background-image: url("/Public/Mobile/images/ssg/order-status.png");
}
.order-search .no-order {
background-image: url("/Public/Mobile/images/ssg/no-order.png");
margin-top: 1.5rem;
padding-top: 2rem;
text-align: center;
/* background-image: url(/Content/images/no-order.png); */
background-repeat: no-repeat;
background-position: center top;
background-size: 1.6rem 1.6rem;
font-size: 0.28rem;
color: #666;
}
.order-search .no-order{
background-image: url("__IMG__/ssg/no-order.png");
.box-title {
width: 6.9rem;
font-size: .28rem;
color: #292929;
position: relative;
}
.borderitem {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 .3rem;
line-height: .8rem;
}
.title-cont {
font-size: .24rem;
color: #A9A9A9;
}
.gamebox {
height: 1.8rem;
justify-content: center;
padding: .3rem;
}
.gamebox img {
width: 1.2rem;
height: 1.2rem;
}
.gameboxname {
margin-left: .3rem;
flex-grow: 1;
font-size: .28rem;
color: #292929;
}
</style>
</head>
<body>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>订单查询
<div class="title">
<img class="gologin" src="__IMG__/ssg/back.png" style="margin-left:.24rem;" onclick="javascript:history.go(-1)">
<div style="font-size: .32rem;color: #fff;">订单查询</div>
<div class="titleright" style="margin-right:.24rem;"></div>
</div>
<div class="order-search">
<if condition="$data_list">
<ul>
<if condition="$data_list">
<div style="padding:0 .3rem;">
<volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_id\']}','{$data[\'user_id\']}')">
<p>订单编号:{$data.order_id}</p>
<dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt>
<dd class="order-title">{$data['game_name']}</dd>
<if condition="$data['pay_status'] eq '1'">
<dd class="order-status"></dd>
<else />
<if condition="$data['pay_status'] eq '0' and $data['invalid'] eq 0">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}"><dd class="order-pay">立即支付</dd></a>
<else />
<dd class="order-pay" style="color:gray">已失效</dd>
</if>
<div class="shaddowbox">
<div class="box-title">
<div class="borderitem">
<div class="title-cont">订单编号:{$data.order_id}</div>
</div>
</div>
<div class="flexitem gamebox">
<img src="{$data['icon']|get_cover='path'}">
<div class="gameboxname">{$data['game_name']}-超级签</div>
<if condition="$data['pay_status'] eq '1'">
<div style="font-size: .24rem;color: #21B1EB;">交易成功</div>
<else />
<if condition="$data['pay_status'] eq '2'">
<div style="font-size: .24rem;color: #FF0000;">交易失败</div>
<else />
<if condition="$data['pay_status'] eq '0' and $data['invalid'] eq 0">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}">
<div style="font-size: .24rem;">立即支付</div>
</a>
<else />
<div style="font-size: .24rem;color:#A9A9A9;">已失效</div>
</if>
<!--
<dd class="order-pay" style="color:gray">已失效</dd>
-->
</dl>
</li>
</volist>
</ul>
<else />
<div class="no-order">
您还没有订单哟~快去下单吧~
</if>
</if>
</div>
</div>
</if>
</div>
</volist>
</div>
<else />
<div class="page-container ">
<div class="order-search">
<div class="no-order">
您还没有订单哟~快去下单吧~
</div>
</div>
</div>
</if>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script>
function handleOrderDetail(orderID, state, game_id, user_id) {
if (state == 1) {
//前往详情
window.location.href = "/sdk.php/Ipa365/install_show/order_id/"+orderID+"/game_id/"+game_id+"/user_id/"+user_id;
window.location.href = "/sdk.php/Ipa365/install_show/order_id/" + orderID + "/game_id/" + game_id + "/user_id/" + user_id;
}
}
</script>
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
</body>
</html>

@ -0,0 +1,79 @@
<!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">
<style>
.order-search li dl .order-status{
background-image: url("__IMG__/ssg/order-status.png");
}
.order-search .no-order{
background-image: url("__IMG__/ssg/no-order.png");
margin-top:1.5rem;
padding-top: 2rem;
text-align: center;
/* background-image: url(/Content/images/no-order.png); */
background-repeat: no-repeat;
background-position: center top;
background-size: 1.5rem 1.6rem;
font-size: 0.14rem;
color: #666;
}
</style>
</head>
<body>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>订单查询
</div>
<div class="order-search">
<if condition="$data_list">
<ul>
<volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_id\']}','{$data[\'user_id\']}')">
<p>订单编号:{$data.order_id}</p>
<dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt>
<dd class="order-title">{$data['game_name']}</dd>
<if condition="$data['pay_status'] eq '1'">
<dd class="order-status"></dd>
<else />
<if condition="$data['pay_status'] eq '0' and $data['invalid'] eq 0">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}"><dd class="order-pay">立即支付</dd></a>
<else />
<dd class="order-pay" style="color:gray">已失效</dd>
</if>
</if>
<!--
<dd class="order-pay" style="color:gray">已失效</dd>
-->
</dl>
</li>
</volist>
</ul>
<else />
<div class="no-order">
您还没有订单哟~快去下单吧~
</div>
</if>
</div>
<script>
function handleOrderDetail(orderID, state, game_id, user_id) {
if (state == 1) {
//前往详情
window.location.href = "/sdk.php/Ipa365/install_show/order_id/"+orderID+"/game_id/"+game_id+"/user_id/"+user_id;
}
}
</script>
</div>
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
</body>
</html>

@ -256,11 +256,11 @@ class Ipa365Controller extends BaseController{
if (!$userId ) {
$this->error("请登入", "/mobile.php/ssg/login");
}
if (!$orderId || !$gameId || !userId) {
if (!$orderId || !$gameId || !$userId) {
$this->error("参数校验失败,请重试");
}
$supersign = M('game_supersign', 'tab_')->where(array('order_id' => $orderId))->find();
$supersign = M('game_supersign', 'tab_')->where(array('order_id' => $orderId,"game_id"=>$gameId))->find();
if (!$supersign) {
$this->error("订单不存在");
}

@ -8,45 +8,123 @@
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="/Public/Mobile/js/ssg/flexible.min.js" type="text/javascript"></script>
<style>
.title{
display: flex;
height: .9rem;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: #21B1EB;
}
.title img,
.titleright {
width: .3rem;
height: .3rem;
}
.vip-download .game-info .game-icon img{
width: 1.1rem;
height: 1.1rem;
}
.vip-download .game-info .game-title{
top: 1.8rem;
}
.vip-download .game-info .game-rule{
top: 2.24rem;
}
.vip-download .game-info .download-button{
bottom:.5rem
}
.vip-download .game-info .download-button a{
margin: 0 auto;
display: block;
width: 2.4rem;
height: 0.6rem;
text-align: center;
line-height: 0.6rem;
background-color: #f7ca02;
border-radius: 0.3rem;
font-size: 0.28rem;
}
.shaddowbox {
background-color: #fff;
border-radius: .24rem;
box-shadow: 0px 0px 6px 0px rgba(89, 40, 8, 0.15);
}
.vip-download .game-gift{
padding: 0 .3rem;
}
.title-3{
height: 0.7rem;
line-height: 0.7rem;
border-bottom-color: #f0f0f0;
border-bottom-width: 1px;
border-bottom-style: solid;
}
.title-3 h2{
font-size: .28rem;
}
.vip-download .game-gift .gift-list li{
padding-bottom: 0.3rem;
/* border-bottom-color: #f0f0f0;
border-bottom-width: 1px;
border-bottom-style: solid; */
}
.vip-download .game-gift .gift-list li .gift-title{
height: .64rem;
line-height:.64rem;
}
.vip-download .game-gift .gift-list li .gift-title h2{
padding-left: 0.36rem;
background-size: 0.25rem 0.25rem;
font-size: 0.28rem;
}
</style>
</head>
<body>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>{$game['game_name']}
<div class="title" >
<img class="gologin" src="__IMG__/ssg/alipay/back.png" style="margin-left:.24rem;" onclick="javascript:history.go(-1)">
<div style="font-size: .32rem;color: #fff;">{$game['game_name']}</div>
<div class="titleright" style="margin-right:.24rem;"></div>
</div>
<div class="page-container ">
<div class="vip-download">
<div class="game-info">
<div class="game-info" style="padding: .3rem;width: 6.9rem;height: 3.4rem;font-size: .28rem;">
<img src="__IMG__/ssg/detail/download-bg.png">
<div class="game-icon"><img src="{$game['icon']|get_cover='path'}"></div>
<div class="game-icon" style="top:.5rem;"><img src="{$game['icon']|get_cover='path'}"></div>
<div class="game-title">{$game['game_name']}-超级签</div>
<div class="game-rule">不同设备需要分别付费安装哦,请使用常用设备下载</div>
<div class="download-button"><a href="{$url}">下载安装</a></div>
</div>
<!-- <div class="game-gift">
<div class="title-3">
<h2>特权礼包</h2>
</div>
<div class="gift-list">
<ul>
<li>
<div class="gift-title">
<h2>《天宫计》至尊礼包</h2>
</div>
<p class="gift-info">[ 高级宝图*2、财神银匙*1 ]</p>
<p class="gift-code">
<label for="giftCode">兑换码:</label>
<input id="giftCode1455" type="text" value="GNM6BWJS" readonly="">
<a href="javascript:;" class="code-btn1455" data-clipboard-target="#giftCode1455">复制</a>
</p>
</li>
<div style="padding:0 .3rem;">
<div class="game-gift shaddowbox">
<div class="title-3">
<h2>特权礼包</h2>
</div>
<div class="gift-list">
<ul>
<li >
<div class="gift-title">
<h2>《天宫计》至尊礼包</h2>
</div>
<p class="gift-info">[ 高级宝图*2、财神银匙*1 ]</p>
<p class="gift-code">
<label for="giftCode">兑换码:</label>
<input id="giftCode1455" type="text" value="GNM6BWJS" readonly="">
<a href="javascript:;" class="code-btn1455" data-clipboard-target="#giftCode1455">复制</a>
</p>
</li>
</ul>
</ul>
</div>
</div>
</div> -->
</div>
</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/common.js" type="text/javascript"></script> -->
<script src="__JS__/ssg/clipboard.min.js" type="text/javascript"></script>
</body>
</html>

@ -0,0 +1,53 @@
<!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="/Public/Mobile/js/ssg/flexible.min.js" type="text/javascript"></script>
</head>
<body>
<div class="page-container ">
<div class="top">
<a href="javascript:history.go(-1);"></a>{$game['game_name']}
</div>
<div class="vip-download">
<div class="game-info">
<img src="__IMG__/ssg/detail/download-bg.png">
<div class="game-icon"><img src="{$game['icon']|get_cover='path'}"></div>
<div class="game-title">{$game['game_name']}-超级签</div>
<div class="game-rule">不同设备需要分别付费安装哦,请使用常用设备下载</div>
<div class="download-button"><a href="{$url}">下载安装</a></div>
</div>
<div class="game-gift">
<div class="title-3">
<h2>特权礼包</h2>
</div>
<div class="gift-list">
<ul>
<li>
<div class="gift-title">
<h2>《天宫计》至尊礼包</h2>
</div>
<p class="gift-info">[ 高级宝图*2、财神银匙*1 ]</p>
<p class="gift-code">
<label for="giftCode">兑换码:</label>
<input id="giftCode1455" type="text" value="GNM6BWJS" readonly="">
<a href="javascript:;" class="code-btn1455" data-clipboard-target="#giftCode1455">复制</a>
</p>
</li>
</ul>
</div>
</div>
</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>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save