From 712498aff9709c42dfccce7009b4856996c45dc8 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Thu, 17 Oct 2019 12:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/BaseController.class.php | 12 +- .../Mobile/Controller/SsgController.class.php | 7 + Application/Mobile/View/Ssg/index.html | 37 ++-- Application/Mobile/View/Ssg/login.html | 2 +- Application/Mobile/View/Ssg/order.html | 185 ++++++++++++++---- Application/Mobile/View/Ssg/orderbcak.html | 79 ++++++++ .../Sdk/Controller/Ipa365Controller.class.php | 4 +- .../Sdk/View/default/Ipa365/install_show.html | 128 +++++++++--- .../View/default/Ipa365/install_show1.html | 53 +++++ Public/Mobile/images/ssg/back.png | Bin 0 -> 1255 bytes 10 files changed, 407 insertions(+), 100 deletions(-) create mode 100644 Application/Mobile/View/Ssg/orderbcak.html create mode 100644 Application/Sdk/View/default/Ipa365/install_show1.html create mode 100644 Public/Mobile/images/ssg/back.png diff --git a/Application/Mobile/Controller/BaseController.class.php b/Application/Mobile/Controller/BaseController.class.php index 522eae603..718ecb54d 100644 --- a/Application/Mobile/Controller/BaseController.class.php +++ b/Application/Mobile/Controller/BaseController.class.php @@ -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' => '已退出!')); + } } diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 93e4a4ebf..df8d4d8ed 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -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() { diff --git a/Application/Mobile/View/Ssg/index.html b/Application/Mobile/View/Ssg/index.html index 57babcca4..015a78cec 100644 --- a/Application/Mobile/View/Ssg/index.html +++ b/Application/Mobile/View/Ssg/index.html @@ -78,12 +78,12 @@
-
+
退出登入
至尊版购买
-
+
订单查询
@@ -131,29 +131,12 @@
- +
游戏数据获取中....
-
+
支付未到账?
@@ -163,7 +146,7 @@
-
+
联系客服
@@ -172,9 +155,6 @@
-
@@ -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'; +} \ No newline at end of file diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html index 3682ab3d5..6b8870b35 100644 --- a/Application/Mobile/View/Ssg/login.html +++ b/Application/Mobile/View/Ssg/login.html @@ -227,7 +227,7 @@ + -
-
- 订单查询 +
+ +
订单查询
+
- - -
+ +
+ +
+ +
+ + + - -
- - \ No newline at end of file diff --git a/Application/Mobile/View/Ssg/orderbcak.html b/Application/Mobile/View/Ssg/orderbcak.html new file mode 100644 index 000000000..9d79ca785 --- /dev/null +++ b/Application/Mobile/View/Ssg/orderbcak.html @@ -0,0 +1,79 @@ + + + + + + + 订单列表 + + + + +
+
+ 订单查询 +
+ + + +
+ + + + + \ No newline at end of file diff --git a/Application/Sdk/Controller/Ipa365Controller.class.php b/Application/Sdk/Controller/Ipa365Controller.class.php index 645fe19bc..405851ef4 100644 --- a/Application/Sdk/Controller/Ipa365Controller.class.php +++ b/Application/Sdk/Controller/Ipa365Controller.class.php @@ -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("订单不存在"); } diff --git a/Application/Sdk/View/default/Ipa365/install_show.html b/Application/Sdk/View/default/Ipa365/install_show.html index 83430ca7d..2f7ecd7eb 100644 --- a/Application/Sdk/View/default/Ipa365/install_show.html +++ b/Application/Sdk/View/default/Ipa365/install_show.html @@ -8,45 +8,123 @@ content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> 订单详情 + + -
-
- {$game['game_name']} +
+ +
{$game['game_name']}
+
+
-
+
-
+
{$game['game_name']}-超级签
不同设备需要分别付费安装哦,请使用常用设备下载
- +
- + \ No newline at end of file diff --git a/Application/Sdk/View/default/Ipa365/install_show1.html b/Application/Sdk/View/default/Ipa365/install_show1.html new file mode 100644 index 000000000..7e88b4cc7 --- /dev/null +++ b/Application/Sdk/View/default/Ipa365/install_show1.html @@ -0,0 +1,53 @@ + + + + + + + + 订单详情 + + + + +
+
+ {$game['game_name']} +
+
+
+ +
+
{$game['game_name']}-超级签
+
不同设备需要分别付费安装哦,请使用常用设备下载
+ +
+
+
+

特权礼包

+
+
+
    +
  • +
    +

    《天宫计》至尊礼包

    +
    +

    [ 高级宝图*2、财神银匙*1 ]

    +

    + + + 复制 +

    +
  • + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/Public/Mobile/images/ssg/back.png b/Public/Mobile/images/ssg/back.png new file mode 100644 index 0000000000000000000000000000000000000000..899b8eae834249761f1a4b2f14f75789e0bafeea GIT binary patch literal 1255 zcmVQ*N=icU$6%xx4KixTmWGHlCe%nmma>GhM7AVkUy}%{o#K0619ECrx0(cXT^!dpqDMVCMo% ze4Xb@`o1ab=zwkS4m<&DU4VHISS0DUHn5`twmk>9AK176b3Jf|q`%w3jt1EFBH&hF z-2%)xk}jJG=*r)n_&aR-T;P%d%wNE9lJ4#TcA`6Md+jU}Pbt9s0xXd9Y*(-o1Gc>( z5W6KQugPRu&l z;gnCKdfKc&ayxKx-#NCUtK4V zp?qcpoVz^_xM!NuaxnR(&O@6qa6<0|JO*rDSacA9ZZP144(T=8oFTVM(9tNnA?BzGL4@jYn55_G1lgre zCm*d+K(?0w7Z!frc`LNegXtAGcROxYA;gDtTV+cnT~R04E_`|iPUw(qLvRlXx5}=I zS*)3kGt_w?g8(OVNVkszTNMI(AUhGEmh@(W0Vi}wxRI+v(yg-PIg<24U&Mm~Cv-@; zA?e0sY?ZyAorzETfF2w;p+nLQX*VR^D*GnIgx9-