diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index 674d9ea2d..e9223ec77 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -1348,28 +1348,42 @@ class UserController extends BaseController * @return [type] [description] * @author wyr <840186209@qq.com> */ - public function usergame($p = 1) + // public function usergame($p = 1) + // { + // if (!$this->islogin()) { + // $this->redirect('Mobile/User/login'); + // } + // $page = intval($p); + // $page = $page ? $page : 1; //默认显示第一页数据 + // $row = C('LIST_ROWS'); + // $map['user_id'] = $this->suser->login_info('user_id'); + // $data = D('DownRecord')->table('tab_down_record AS tdr') + // ->field('tab_game.id,tab_game.dow_status,tab_game.game_name,tab_game.game_size,tab_game.dow_num,tab_game.icon,tab_game.features,tdr.user_id,tab_game.and_dow_address,tab_game.add_game_address,tab_game.ios_dow_address,tab_game.ios_game_address,tab_game.game_score,tab_game.sdk_version') + // ->join("tab_game ON tdr.game_id = tab_game.id") + // ->where($map) + // ->page($page, $row) + // ->select(); + + // $this->assign("data", $data); + // $this->assign("page", $page); + // $this->display(); + // } + public function usergame() { if (!$this->islogin()) { $this->redirect('Mobile/User/login'); } - $page = intval($p); - $page = $page ? $page : 1; //默认显示第一页数据 - $row = C('LIST_ROWS'); $map['user_id'] = $this->suser->login_info('user_id'); $data = D('DownRecord')->table('tab_down_record AS tdr') ->field('tab_game.id,tab_game.dow_status,tab_game.game_name,tab_game.game_size,tab_game.dow_num,tab_game.icon,tab_game.features,tdr.user_id,tab_game.and_dow_address,tab_game.add_game_address,tab_game.ios_dow_address,tab_game.ios_game_address,tab_game.game_score,tab_game.sdk_version') ->join("tab_game ON tdr.game_id = tab_game.id") ->where($map) - ->page($page, $row) ->select(); $this->assign("data", $data); - $this->assign("page", $page); $this->display(); } - /** * 个人中心->我的游戏 AJAX加载更多 * @return [type] [description] diff --git a/Application/Mobile/View/User/step1.html b/Application/Mobile/View/User/step1.html index b0ae1dc24..26ce78ec0 100644 --- a/Application/Mobile/View/User/step1.html +++ b/Application/Mobile/View/User/step1.html @@ -32,7 +32,7 @@ -
+
注册即表示同意《用户协议》
@@ -73,7 +73,7 @@ var account = $.trim($('#account').val()); var nickname = $.trim($('#nickname').val()) var password = $.trim($('#password').val()); - var sex = $.trim($('input[name=sex]:checked').val()); + // var sex = $.trim($('input[name=sex]:checked').val()); var promoteId = parseInt("{:I('get.pid')}") ? parseInt("{:I('get.pid')}") : 0; var gameId = parseInt("{:I('get.gid')}") ? parseInt("{:I('get.gid')}") : 0; @@ -106,7 +106,7 @@ $.ajax({ type:'POST', url:'{:U("User/step1")}', - data:{'account':account,'nickname':nickname,'password':password,'sex':sex,'promote_id':promoteId,'game_id':gameId}, + data:{'account':account,'nickname':nickname,'password':password,'promote_id':promoteId,'game_id':gameId}, dataType:"Json", success:function(data){ pmsg.msg(data.msg); diff --git a/Application/Mobile/View/User/usergame.html b/Application/Mobile/View/User/usergame.html index c0e89adc7..17dbad32f 100644 --- a/Application/Mobile/View/User/usergame.html +++ b/Application/Mobile/View/User/usergame.html @@ -4,7 +4,7 @@ - 我的 + 万盟天下 @@ -16,64 +16,68 @@
我的游戏 - +
- + +
+ + 您还没有相关内容哦 +
+
- -
-
-
- - {$vo.game_name} -
- - 立即进入 - - - - - 立即进入 - - 立即进入 - - - - - 立即进入 - - 立即进入 - + + +
+
+
+ + {$vo.game_name} +
+ + 立即进入 - - - - 立即进入 + + + + 立即进入 + + 立即进入 + - 立即进入 + + + 立即进入 + + 立即进入 + + + + + + 立即进入 + + 立即进入 + - - - - 立即进入 - - 立即进入 + + + 立即进入 + + 立即进入 + - - - - - -
-
-
+
+
+
+ +
+
+
+
-
+
@@ -83,43 +87,7 @@ $(function() { var pmsg = $('.popmsg').pop(); var popmsg = $('.loading').pop(); - - pmsg.msg('暂无数据'); - var ac = $('#ajaxContainer'); - ajaxload('{:U("ajaxUserGame")}',{},function(data) { - if (data.status == 1) { - ac.attr('currentpage',data.page); - var html = '',d = data.lists; - - for (var i in d) { - var item = d[i]; - html += '
  • '+ - ' '+ - '
    '+ - '
    '+ - ' '+item.game_name+''; - var game_score_html = '

    '; - html += game_score_html; - - html += '
    '+ - '
    '+ - ' '+item.game_size+''+ - ' '+item.dow_num+'人下载'+ - '
    '+ - '

    '+item.features+'

    '+ - '
    '+ - '
  • '; - - } - ac.append(html); - $('.loading').addClass('ms-none'); - $('#moreBtn').removeClass('ms-none');loads = false; - } else { - $('.loading').removeClass('hidden').addClass('ms-none'); - popmsg.msg('已经到底了~'); - } - }) $(".btn").click(function(){ var url = $(this).attr('url'); diff --git a/Application/Mobile/View/User/userset.html b/Application/Mobile/View/User/userset.html index bc5bac6f4..608ddcbd2 100644 --- a/Application/Mobile/View/User/userset.html +++ b/Application/Mobile/View/User/userset.html @@ -139,7 +139,7 @@ -
    +