Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
yulingwei 5 years ago
commit 3e423b1372

@ -103,7 +103,7 @@ class AjaxController extends ThinkController{
} }
public function getUserPlayGameName($user_id=0){ public function getUserPlayGameName($user_id=0){
$map['user_id'] = $user_id; $map['user_account'] = $user_id;
$data = M("UserPlay","tab_")->field("game_id,game_name,bind_balance")->where($map)->group('user_id,game_id')->select(); $data = M("UserPlay","tab_")->field("game_id,game_name,bind_balance")->where($map)->group('user_id,game_id')->select();
$this->AjaxReturn($data); $this->AjaxReturn($data);
} }

@ -129,8 +129,28 @@ class ConsoleController extends Think {
public function deleteRepeatUserPlayInfo() public function deleteRepeatUserPlayInfo()
{ {
/* INSERT INTO `tab_server`(`game_id`, `game_name`, `server_name`, `server_num`, `recommend_status`, `show_status`, `stop_status`, `server_status`, `icon`, `start_time`, `desride`, `prompt`, `parent_id`, `create_time`, `server_version`, `developers`, `server_id`) VALUES
(148, '王者纷争(安卓版)', 'O3-潜龙于渊', 3294, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3294'),
(148, '王者纷争(安卓版)', 'O4-攻心为上', 3301, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3301'),
(148, '王者纷争(安卓版)', 'O5-知人善用', 3311, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3311'),
(148, '王者纷争(安卓版)', 'O8-剑拔弩张', 3332, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3332'),
(148, '王者纷争(安卓版)', 'O12-七擒七纵', 3336, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3336'),
(148, '王者纷争(安卓版)', 'O15-遮空蔽日', 3375, 1, 1, 0, 0, NULL, 1571399818, NULL, NULL, NULL, 1571399818, 1, 0, '3375'); */
// $gameId = 157; // $gameId = 157;
// $gameId = 155; // $gameId = 155;
// $gameId = 153;
// $gameId = 150;
// $gameId = 151;
// 需要先执行上面sql插入区服才能清理干净
// $gameId = 148;
// $gameId = 175;
// $gameId = 142;
// $gameId = 143;
// $gameId = 172;
// $gameId = 173;
// $gameId = 155;
// $gameId = 154;
$gameId = 153; $gameId = 153;
$sql = 'select id from tab_user_play_info a left join ( $sql = 'select id from tab_user_play_info a left join (
select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id, server_name having count(1) > 1 select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id, server_name having count(1) > 1
@ -175,4 +195,68 @@ class ConsoleController extends Think {
} }
} }
} }
public function deleteRepeatUserPlayInfo2()
{
// $gameId = 157;
// $gameId = 148;
// $gameId = 150;
// $gameId = 151;
// $gameId = 158;
// $gameId = 175;
// $gameId = 142;
// $gameId = 143;
// $gameId = 172;
// $gameId = 173;
// $gameId = 154;
// $gameId = 155;
// $gameId = 176;
// $gameId = 165;
// $gameId = 164;
// $gameId = 179;
// $gameId = 156;
$gameId = 153;
$sql = 'select id from tab_user_play_info a left join (
select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id, server_name having count(1) > 1
) b on a.role_id=b.role_id where a.server_id=b.server_id and a.game_id=b.game_id and a.server_id="' . $serverId . '" and a.game_id = ' . $gameId . ' order by a.role_id, a.server_id, a.game_id';
$model = new \Think\Model();
$servers = M('server', 'tab_')->field('server_id')->where(['game_id' => $gameId])->group('server_id')->select();
foreach ($servers as $server) {
$serverId = $server['server_id'];
$sql = 'select a.id, a.role_id, a.server_id, a.game_id, a.role_level from tab_user_play_info a left join (
select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id having count(1) > 1
) b on a.role_id=b.role_id where a.server_id=b.server_id and a.game_id=b.game_id and a.server_id="' . $serverId . '" and a.game_id = ' . $gameId . ' order by a.role_id, a.server_id, a.game_id';
// var_dump($sql);
$result = $model->query($sql);
$uniqueRole = null;
$items = [];
foreach ($result as $item) {
$items[$item['role_id']][] = $item;
}
$maxRoleIds = [];
$repeatIds = [];
foreach ($items as $roles) {
$maxRole = null;
foreach ($roles as $role) {
if ($maxRole == null) {
$maxRole = $role;
} elseif ($role['role_level'] >= $maxRole['role_level']) {
$repeatIds[] = $maxRole['id'];
$maxRole = $role;
} else {
$repeatIds[] = $role['id'];
}
}
$maxRoleIds[] = $maxRole['id'];
}
if (count($repeatIds) > 0) {
M('user_play_info', 'tab_')->where(['id' => ['in', $repeatIds], 'game_id' => $gameId, 'server_id' => $serverId])->delete();
echo M()->getLastSql();
echo PHP_EOL;
}
}
}
} }

@ -219,6 +219,10 @@ class MemberController extends ThinkController
->group('tab_user.id') ->group('tab_user.id')
->where($hav) ->where($hav)
->having($havs)->select(false); ->having($havs)->select(false);
//获取总额
$allcount = M()->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select();
$this->assign('history_count', $allcount[0]['recharge_total']);
//替换为新表 //替换为新表
if($_REQUEST['promote_id'] && $_REQUEST['promote_id'] > -1){ if($_REQUEST['promote_id'] && $_REQUEST['promote_id'] > -1){
$sql = M('user', 'tab_')->field('tab_user.id,IFNULL(sum(ss.pay_amount),0) AS recharge_total') $sql = M('user', 'tab_')->field('tab_user.id,IFNULL(sum(ss.pay_amount),0) AS recharge_total')
@ -234,7 +238,7 @@ class MemberController extends ThinkController
$jcount = M('User', 'tab_')->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select(); $jcount = M('User', 'tab_')->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select();
$count = $jcount[0]['count']; $count = $jcount[0]['count'];
// var_dump($jcount);die(); // var_dump($jcount);die();
$this->assign('pay_allcount', $jcount[0]['recharge_total']); $this->assign('now_count', $jcount[0]['recharge_total']);
$model = M('Model')->getByName('user'); $model = M('Model')->getByName('user');

@ -49,12 +49,13 @@
<tr> <tr>
<td class="l">玩家账号:</td> <td class="l">玩家账号:</td>
<td class="r" > <td class="r" >
<select id="user_id" name="user_id"> <!-- <select id="user_id" name="user_id">-->
<option value="0">请选择账号</option> <!-- <option value="0">请选择账号</option>-->
<volist name=":get_user_play_group_list()" id="vo"> <!-- <volist name=":get_user_play_group_list()" id="vo">-->
<option value="{$vo.user_id}" account="{$vo.user_account}">{$vo.user_account}</option> <!-- <option value="{$vo.user_id}" account="{$vo.user_account}">{$vo.user_account}</option>-->
</volist> <!-- </volist>-->
</select> <!-- </select>-->
<input type="text" class="txt" id="user_id" name="user_id"/>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -144,7 +145,7 @@ $(function(){
//$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币'); //$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币');
$('#user_id').change(function(){ $('#user_id').change(function(){
//$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币'); //$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币');
var user_id = $('#user_id option:selected').attr('value'); var user_id = $('#user_id').val();
if(this.value !="请选择账号"){ if(this.value !="请选择账号"){
getUserPlayGameName(user_id); getUserPlayGameName(user_id);

@ -306,10 +306,23 @@
</empty> </empty>
<tr class="data_summary"> <tr class="data_summary">
<td colspan="3" style="text-align: center;">汇总:</td> <td colspan="3" style="text-align: center;">汇总:</td>
<if condition="I('promote_id') && I('promote_id') gt 0 ">
<td colspan="8">
当前用户累计充值:{$now_count} &#12288;&#12288;
历史累计充值:{$history_count}
</td>
<td colspan="8" style="font-style: 12px;color: #a9a9a9;text-align: center;">
当前用户累计充值:&#12288;当前属于该推广员的用户的充值累计(不含用户换绑前记录)&#12288;&#12288;/&#12288;&#12288;
历史累计充值:&#12288;历史中属于该推广员的用户的充值累计(含用户换绑前记录)
</td>
<else />
<td colspan="99"> <td colspan="99">
累计充值:{$pay_allcount} 当前用户累计充值:{$now_count}
</td> </td>
<td></td>
</if>
</tr> </tr>
</tbody> </tbody>
</table> </table>

@ -2666,15 +2666,14 @@ class DownloadController extends BaseController {
array('create_role_count','创角数'), array('create_role_count','创角数'),
array('create_role_user_count','创角用户'), array('create_role_user_count','创角用户'),
array('new_create_role_user_count','新创角用户'), array('new_create_role_user_count','新创角用户'),
array('new_create_role_device_count','新创角设备'),
array('new_create_role_ip_count','新创角ip'), array('new_create_role_ip_count','新创角ip'),
array('login_user_count','登陆用户数'), array('login_user_count','登陆用户数'),
array('recharge_count','充值人数'), array('recharge_user_count','充值人数'),
array('recharge_user_count','充值次数'), array('recharge_count','充值次数'),
array('recharge_amount','充值总额'), array('recharge_amount','充值总额'),
array('recharge_by_ban_coin','现金充值'), array('recharge_by_ban_coin','绑定币充值'),
array('recharge_by_coin','通用币充值'), array('recharge_by_coin','通用币充值'),
array('recharge_by_cash','绑定币充值'), array('recharge_by_cash','现金充值'),
); );

@ -625,10 +625,11 @@ class PromoteCoinController extends BaseController
$level = I('level', 0); $level = I('level', 0);
$account = I('account', ''); $account = I('account', '');
$mobile = I('mobile', ''); $mobile = I('mobile', '');
$promote = $this->getLoginPromote(); $promote = $this->getLoginPromote();
$map = []; $map = [];
if ($level > 0) {
$map['level'] = $level; $map['level'] = $level;
}
$map['chain'] = ['like', $promote['chain'] . $promote['id'] . '/%']; $map['chain'] = ['like', $promote['chain'] . $promote['id'] . '/%'];
if ($account) { if ($account) {
@ -638,7 +639,6 @@ class PromoteCoinController extends BaseController
$map['mobile_phone'] = ['like', '%' . $mobile . '%']; $map['mobile_phone'] = ['like', '%' . $mobile . '%'];
} }
$query = M('promote', 'tab_')->field(['id', 'account', 'real_name', 'mobile_phone'])->where($map); $query = M('promote', 'tab_')->field(['id', 'account', 'real_name', 'mobile_phone'])->where($map);
list($promotes, $pagination, $count) = $this->paginate($query); list($promotes, $pagination, $count) = $this->paginate($query);
$records = []; $records = [];
foreach ($promotes as $promote) { foreach ($promotes as $promote) {
@ -747,7 +747,6 @@ class PromoteCoinController extends BaseController
} else { } else {
$map['_string'] = '1<>1'; $map['_string'] = '1<>1';
} }
$query = M('Game', 'tab_')->field(['id', 'game_name', 'sdk_version', 'icon'])->where($map); $query = M('Game', 'tab_')->field(['id', 'game_name', 'sdk_version', 'icon'])->where($map);
list($games, $pagination, $count) = $this->paginate($query); list($games, $pagination, $count) = $this->paginate($query);

@ -1,294 +1,133 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta itemprop="name" content="{$game['relation_game_name']}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta itemprop="image" content="{$game['icon']}"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="description" itemprop="description" content="{$game['features']}"/>
<script src="__JS__/jquery-1.11.3.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="__JS__/getRem.js"></script> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="__JS__/swiper.min.js"></script> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css"> <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css"> <script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css"> <link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
<title>home</title> <title>{$game['relation_game_name']}</title>
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
<link rel="stylesheet" href="__CSS__/20180207/game.css">
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__CSS__/landing_page.css">
</head> </head>
<body> <body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<div class="home"> <input type="hidden" name="title" value="{$game['relation_game_name']}">
<div class="home-box"> <input type="hidden" name="icon" value="{$game['icon']}">
<div class="heard"> <input type="hidden" name="desc" value="{$game['features']}">
<img src="{$game['icon']}" alt=""> <input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<div class="right"> <?php if ($isWechat):?>
<div>{$game['relation_game_name']}</div> <?php if ($isAndroid):?>
<div>{$game['features']}</div> <div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
<div> <?php elseif ($isIOS):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/ios-rule.png"></div>
<?php endif;?>
<?php endif;?>
<div class="h_wrap">
<div id="data-2">
<volist name="game['flooring_page_imgs']" id="item">
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?> <?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<div class="download">免费安装</div> <a href="#" class="no-package"><img src="{$item}" style="width: 100%;"/></a>
<?php else :?> <?php else :?>
<div class="download">免费安装</div> <a href="javascript:;" class="down-link" down-link="{$downloadUrl}"><img src="{$item}" style="width: 100%;"/></a>
<?php endif ;?> <?php endif ;?>
<img src="__IMG__/wenhao.png" class="doubt" alt="">
</div>
</div>
</div>
<div class="evaluate">
<div class="evaluate-box">
<div class="number">
<span>{$game['game_score']}</span>
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start.png" alt="">
</div>
</div>
<div class="grade">14.48K个评分</div>
</div>
<div class="evaluate-box">
<span>#{$game['recommend_level']}</span>
<div class="grade">网络游戏</div>
</div>
<div class="evaluate-box">
<span>16+</span>
<div class="grade">年龄</div>
</div>
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>
</volist> </volist>
</ul>
</div>
<div class="synopsis">
<div>简介</div>
<div id="brief_introduction">{$game['features']}</div>
<div id="look_more">
<div class="bg-blur"></div>
<div class="more">查看更多</div>
</div>
</div>
<div class="appraisal">
<div class="title">评分及评论</div>
<div class="appraisal-box">
<div class="left">
<span>{$game['game_score']}</span>
<span>满分5分</span>
</div>
<div class="right">
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 2.77rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.24rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.06rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.04rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0;"></div>
</div>
</div>
<div class="mark">14.48K个评分</div>
</div>
</div>
</div>
<div class="device">
<div class="title">新功能</div>
<div class="soon-title">更新说明:</div>
<div class="del">1、优化用户体验</div>
</div>
<div class="information">
<div class="title">信息</div>
<div class="data-box">
<span>大小</span>
<div>{$game['game_size']}MB</div>
</div>
<div class="data-box">
<span>类别</span>
<div>游戏</div>
</div>
<div class="data-box">
<span>语言</span>
<div>英语,简体中文</div>
</div>
<div class="data-box">
<span>年龄分级</span>
<div>限16岁以上</div>
</div>
<div class="data-box">
<span>价格</span>
<div>免费</div>
</div>
<div class="privacy">隐私政策</div>
</div>
</div>
<div class="foot">
<div>
<div>闽ICP备19000000号-0</div>
<div>闽网文{2019}1554-099号</div>
</div>
<div>抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。</div>
<div>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
</div> </div>
</div> </div>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12')
return
}
if ($('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + ".html"
})
return
}
}
var downLink = $(this).attr('down-link')
location.href = downLink
});
<div class="window" style="display: none;"> $('.no-package').click(function() {
<div class="containner"> layer.msg('暂无下载', {
<div class="containner-box"> icon: 7,
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div> time: 2000
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div> })
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div> })
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div> $.ajax({
<div class="gray-btn" onclick="location.href='{$downloadUrl}'">普通下载</div> url: "{:U('Home/generateWechatSign')}",
</div> dataType: 'json',
</div> type: 'post',
</div> data: {url: window.location.href},
<div class="second" style="display: none;"> success: function(response) {
<div class="second-box"> if (response.status) {
<div class="title">升级IOS9后游戏打不开怎么办</div> wx.config({
<div class="carousel"> // debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
<div class="swiper-container"> appId: response.data.appid,
<div class="swiper-wrapper"> timestamp: response.data.time,
<div class="swiper-slide"> nonceStr: response.data.randStr,
<div class="swiper-slide-box"> signature: response.data.sign,
<div>一、游戏安装完毕,点击游戏图标弹出如下提示:</div> jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
<div class="slide-img"> })
<img src="__IMG__/1.png" alt="" style=" height: 2.86rem;"> var title = $('[name=title]').val();
<img src="__IMG__/box-scroll.png" alt="" class="case"> var description = $('[name=desc]').val();
</div> var icon = $('[name=icon]').val();
</div> wxReady(title, description, icon)
</div> }
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>二、进入[设置] - [通用] - [描述文件]:找到对应证书名称</div>
<div class="slide-img">
<img src="__IMG__/2.png" alt="" style="height: 2.75rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>三、信任当前证书</div>
<div class="slide-img">
<img src="__IMG__/3.png" alt="" style="height: 2.06rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>四、下载过程中若出现以下情况,请检查网络和内存再次尝试下载</div>
<div class="slide-img">
<img src="__IMG__/4.png" alt="" style="height: 2.88rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>五、如果您已验证并正常体验游戏,一段时间后,点击游戏图标再次出现信任提示且无法信任时,请卸载游戏包,重新安装游戏验证</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<div class="blue-btn">点我去信任</div>
</div>
</div>
</body>
</html>
<script>
$(function(){
if ($("#brief_introduction").length<80) {
$("#look_more").hide();
} }
$(".more").click(function(){
$("#look_more").hide();
$("#brief_introduction").css("overflow", "visible");
}); });
function swiperGet(){ function wxReady(title, description, img) {
var swiper = new Swiper('.swiper-container', { wx.ready(function () {
loop: true, wx.onMenuShareAppMessage({
// autoplay: img > 1, title: title,
pagination: { desc: description,
el: '.swiper-pagination', link: window.location.href,
clickable: true, imgUrl: img,
}, type: '',
autoplay: { dataUrl: ''
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
}); });
}; wx.onMenuShareTimeline({
swiperGet(); title: title,
$(".download").click(function(){ link: window.location.href,
$(".window").show(); imgUrl: img
document.body.style.overflow = 'hidden';
}); });
$(".window").click(function(){ wx.onMenuShareQQ({
$(".window").hide(); title: title,
document.body.style.overflow = 'auto'; desc: description,
link: window.location.href,
imgUrl: img
}); });
$(".gray-btn").click(function(){ wx.onMenuShareWeibo({
event.stopPropagation(); title: title,
$(".second").show(); desc: description,
swiperGet(); link: window.location.href,
document.body.style.overflow = 'hidden'; imgUrl: img
$(".window").hide(); });
}) wx.onMenuShareQZone({
$(".second").click(function(){ title: title,
$(".second").hide(); desc: description,
document.body.style.overflow = 'auto'; link: window.location.href,
}) imgUrl: img
$(".doubt").click(function(){ });
$(".second").show(); });
document.body.style.overflow = 'hidden'; }
swiperGet();
})
})
</script> </script>
</body>
</html>

@ -9,6 +9,7 @@
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix" style="margin-bottom: 10px;"> <div class="trunk-search clearfix" style="margin-bottom: 10px;">
<form action="{:U('PromoteCoin/promoteGames', array('row'=>I('get.row')))}" method="post" class="clearfix"> <form action="{:U('PromoteCoin/promoteGames', array('row'=>I('get.row')))}" method="post" class="clearfix">
<input type="hidden" name="promote_id" value="{:I('promote_id', 0)}">
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" value="查询">
</div> </div>

@ -9,6 +9,7 @@
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix" style="margin-bottom: 10px;"> <div class="trunk-search clearfix" style="margin-bottom: 10px;">
<form action="{:U('PromoteCoin/subPromotes', array('row'=>I('get.row')))}" method="post" class="clearfix"> <form action="{:U('PromoteCoin/subPromotes', array('row'=>I('get.row')))}" method="post" class="clearfix">
<input type="hidden" name="level" value="{:I('level', 0)}">
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" value="查询">
</div> </div>

@ -9,6 +9,7 @@
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix" style="margin-bottom: 10px;"> <div class="trunk-search clearfix" style="margin-bottom: 10px;">
<form action="{:U('PromoteCoin/userGames', array('row'=>I('get.row')))}" method="post" class="clearfix"> <form action="{:U('PromoteCoin/userGames', array('row'=>I('get.row')))}" method="post" class="clearfix">
<input type="hidden" name="user_id" value="{:I('user_id', 0)}">
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" value="查询">
</div> </div>

Loading…
Cancel
Save