|
@@ -0,0 +1,178 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
|
|
+ <title>认证群推荐</title>
|
|
|
+ <link type="text/css" rel="stylesheet"
|
|
|
+ href="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/css/weui.css?<?php echo bonus_version(); ?>"/>
|
|
|
+ <link rel="stylesheet"
|
|
|
+ href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css?<?php echo bonus_version(); ?>">
|
|
|
+ <link type="text/css" rel="stylesheet"
|
|
|
+ href="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/css/homepage.css?<?php echo bonus_version(); ?>"/>
|
|
|
+ <style type="text/css">
|
|
|
+ html, body {
|
|
|
+ background: #ffffff;
|
|
|
+ font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;
|
|
|
+ }
|
|
|
+ .group_name h3 {
|
|
|
+ margin-top: 7px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .weui-cell__hd img {
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+
|
|
|
+ }
|
|
|
+ .group_list .weui-cell__hd img {
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ .group_list .weui-cell__ft .weui-btn_mini {
|
|
|
+ display: block;
|
|
|
+ font-size: 13px;
|
|
|
+ line-height: 16px;
|
|
|
+ padding: 5px 10px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .title h3{
|
|
|
+ font-size: 15px;
|
|
|
+ margin-left: 15px;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+ .title span {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #333333;
|
|
|
+ margin-right: 15px;
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+ .weui-btn_primary {
|
|
|
+ background: #2B2B2B;
|
|
|
+ }
|
|
|
+ .week_total {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #666666;
|
|
|
+ }
|
|
|
+ .sport_echarts {
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .today_num,.month {
|
|
|
+ position: absolute;
|
|
|
+ right: 15px;
|
|
|
+ top: 10px;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ffffff;
|
|
|
+ z-index: 10;
|
|
|
+ }
|
|
|
+ .month {
|
|
|
+ left: 15px;
|
|
|
+ }
|
|
|
+ .question_mark {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ vertical-align: bottom;
|
|
|
+ margin-left: 5px;
|
|
|
+ }
|
|
|
+ .rules {
|
|
|
+ position: absolute;
|
|
|
+ right: 15px;
|
|
|
+ bottom: 30px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ .group_info {
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+
|
|
|
+<div class="group_list" >
|
|
|
+ <div class="weui-cells" id="apply_list">
|
|
|
+ </div>
|
|
|
+ <div id="load_state"></div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/utility.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/js/talk_room.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/fastclick.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/new_bridge.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ $(function () {
|
|
|
+ FastClick.attach(document.body);
|
|
|
+
|
|
|
+ var ApplyList = function ()
|
|
|
+ {
|
|
|
+ RoomList.apply(this,arguments);
|
|
|
+ this.droploadCallback = function(res)
|
|
|
+ {
|
|
|
+ var applyList = JSON.parse(res);
|
|
|
+ console.log(applyList);
|
|
|
+
|
|
|
+ if (applyList.code != 200) {
|
|
|
+ $.alert(applyList.message);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var applyHTML = new ApplyHTML(applyList.datas.rooms);
|
|
|
+ applyHTML.appendHTML(this.append_el);
|
|
|
+ if (applyList.datas.mobile_page.hasmore) {
|
|
|
+ this.curpage = applyList.datas.mobile_page.curpage+1;
|
|
|
+ this.hasmore = true;
|
|
|
+ applyHTML.loadHTML(this.load_state_el);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(window).off('scroll');
|
|
|
+ this.hasmore = false;
|
|
|
+ applyHTML.endHTML(this.load_state_el);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ var apply_list = new ApplyList({act:'member_talk',op: "ajax_certs_rooms"},"#apply_list","#load_state",true);
|
|
|
+ apply_list.init();
|
|
|
+
|
|
|
+
|
|
|
+ var ApplyHTML = function () {
|
|
|
+ RoomListHTML.apply(this,arguments);
|
|
|
+ this.appendHTML = function (id) {
|
|
|
+ console.log(this);
|
|
|
+ var html = "";
|
|
|
+ for (var i = 0; i < this.useObj.length; i++) {
|
|
|
+ html +=
|
|
|
+ "<div class=\"weui-cell room-detail\" data-room-id=\""+this.useObj[i].room_id+"\">\n" +
|
|
|
+ " <div class=\"weui-cell__hd\">\n" +
|
|
|
+ " <img src=\""+this.useObj[i].avatar+"\">\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " <div class=\"weui-cell__bd\">\n" +
|
|
|
+ " <p>"+this.useObj[i].name+"</p>\n" +
|
|
|
+ " <p class='week_total'></p>\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ " <div class=\"weui-cell__ft\">\n" +
|
|
|
+ " <span style='color: #000;'>¥"+this.useObj[i].shared_bonus+"</span>\n" +
|
|
|
+ " </div>\n" +
|
|
|
+ "</div>";
|
|
|
+ }
|
|
|
+ $(id).append(html);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ $(document).on('click','.room-detail',function(){
|
|
|
+ var id = $(this).attr('data-room-id');
|
|
|
+ window.location.href = "/mobile/index.php?act=index&op=room_index&talk_type=room&talk_id="+id;
|
|
|
+ });
|
|
|
+ });
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+
|
|
|
+
|