diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 894fbe205..daf0df7c8 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -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; diff --git a/Application/Mobile/View/Ssg/home.html b/Application/Mobile/View/Ssg/home.html index cecb8ff94..9d4eac7a4 100644 --- a/Application/Mobile/View/Ssg/home.html +++ b/Application/Mobile/View/Ssg/home.html @@ -2,92 +2,118 @@ - - - + 苹果超级签购买(在线支付) + -
-
- - - - -
-
- -
-
-

至尊保障

+ -
- -
-
-

安装步骤

-
-
    -
  • 账号登录且付费,购买苹果超级签(不同设备需要分别付费安装哦)
  • -
  • 下载安装描述文件
  • -
  • 下载安装游戏
  • + + +
    +
    + +
    +
    + +
    +
    + + + +
    +
    +
      +
    • 高端定制,仅对IOS老用户开放
    • +
    • 永不闪退,不丢游戏,不丢数据,稳定有保障
    • +
    • 同一设备安装一次可在一年内无限次下载重装
    +
    +
      +
    • + 账号登入且付费,购买苹果超级签(不同设备需要分别付费安装哦) +
    • +
    • 下载安装描述文件
    • +
    • 下载安装游戏
    • +
    +
    +
    + +
    -
    - - - -
    - + - + + \ No newline at end of file diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html index ff0a56119..2beedf15d 100644 --- a/Application/Mobile/View/Ssg/login.html +++ b/Application/Mobile/View/Ssg/login.html @@ -1,57 +1,263 @@ + - + 登陆页 + + + + + -
    -
    - 登录 -
    -