198 lines
6.4 KiB
HTML
198 lines
6.4 KiB
HTML
{extend name="public/base" /}
|
|
{block name="body"}
|
|
<style>
|
|
.clinhei{width:100%;height:25px;}
|
|
.inp{width:200px;}
|
|
.inpdiv{width:25%;float:left;}
|
|
.inpdivbut{width:10%;float:left;}
|
|
.so{width:80px;height:30px;border:0;margin-top:25px;text-align:center;line-height:30px;cursor: pointer;}
|
|
.tdinp{width:100%;border:0;}
|
|
.up{border:0;cursor: pointer;}
|
|
</style>
|
|
<div class="alert alert-danger alert-dismissable" id="alertmgs" style="display:none;position:fixed;top:10;">
|
|
<button type="button" class="close" data-dismiss="alert"
|
|
aria-hidden="true">
|
|
×
|
|
</button>
|
|
<p>错误!请进行一些更改。</p>
|
|
</div>
|
|
<div class="alert alert-success alert-dismissable" id="alertyes" style="display:none;position:fixed;top:10;">
|
|
<button type="button" class="close" data-dismiss="alert"
|
|
aria-hidden="true">
|
|
×
|
|
</button>
|
|
成功!
|
|
</div>
|
|
<div class="main-box clearfix">
|
|
<header class="main-box-header clearfix">
|
|
<div class="pull-left">
|
|
<h2>小说书籍数据统计</h2>
|
|
</div>
|
|
|
|
</header>
|
|
<div class="main-box-body clearfix">
|
|
|
|
<div class="row">
|
|
<form method="get" class="target_form" action="{:url('Promotionlinkstatistics/index')}">
|
|
|
|
<div class="col-sm-12 col-md-3 col-lg-3">
|
|
<input type="text" class="form-control" name="bookname" placeholder="请输入书籍名称">
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-3">
|
|
<button class="btn btn-info" type="submit">搜索</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="clinhei"></div>
|
|
<div class="container">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>小说/书籍</th>
|
|
<th>今日充值</th>
|
|
<th>总充值</th>
|
|
<th>今日充值次数</th>
|
|
<th>总充值次数</th>
|
|
<th>今日新增</th>
|
|
<th>新增用户总数</th>
|
|
<th>点击量</th>
|
|
<th>今日付费率</th>
|
|
<th>付费率</th>
|
|
<th>今日客单价</th>
|
|
<th>客单价</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody id="tables">
|
|
{volist name="res" id="v"}
|
|
<tr data-id="{$v.id}">
|
|
<td class="text-center" style="">{$v.title}</td>
|
|
<td class="text-center" style="color:red;">¥{if $v.daymoney==''}0{/if}{$v.daymoney}</td>
|
|
<td class="text-center" style="color:red;">¥{if $v.money==''}0{/if}{$v.money}</td>
|
|
<td class="text-center" style="color:#689f38">{$v.DayNumberofpayments}</td>
|
|
<td class="text-center" style="color:#689f38">{$v.Numberofpayments}</td>
|
|
<td class="text-center" style="color:#8a6d3b">{$v.dayusers}</td>
|
|
<td class="text-center" style="color:#8a6d3b">{$v.mumusers}</td>
|
|
<td class="text-center" style="color:#34495e">{$v.allvisit}</td>
|
|
<td class="text-center" style="color:#689f38">{$v.daypayrate}%</td>
|
|
<td class="text-center" style="color:#689f38">{$v.payrate}%</td>
|
|
<td class="text-center" style="color:#8a6d3b;">¥{$v.dayprice}</td>
|
|
<td class="text-center" style="color:#8a6d3b;">¥{$v.price}</td>
|
|
<td><a href="{:url('Promotionlinkstatistics/info',array('id'=>$v.id))}" class="btn btn-info" style="cursor:pointer;">详情</a></td>
|
|
</tr>
|
|
{/volist}
|
|
</tbody>
|
|
</table>
|
|
{$page}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{/block}
|
|
{block name="script"}
|
|
<script>
|
|
|
|
function alertmgs(mgs){
|
|
$('#alertmgs').show();
|
|
$('#alertmgs').children('p').html(mgs);
|
|
setTimeout(function(){ gb('no'); }, 3000);
|
|
}
|
|
function alertyes(mgs){
|
|
$('#alertyes').show();
|
|
$('#alertyes').children('p').html(mgs);
|
|
setTimeout(function(){ gb('yes'); }, 3000);
|
|
}
|
|
function gb(type){
|
|
if(type=='yes'){
|
|
$('#alertyes').css('display','none');
|
|
|
|
}else{
|
|
$('#alertmgs').css('display','none');
|
|
}
|
|
}
|
|
|
|
function del(id){
|
|
if(confirm("确定删除这项配置吗?")){
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "{:url('transfer/del')}",
|
|
data: {id:id},
|
|
dataType: "json",
|
|
success: function(data){
|
|
if(data==1){
|
|
alertyes('删除成功')
|
|
setTimeout(function(){ window.location = ''; }, 1500);
|
|
}else{
|
|
alertmgs('删除失败')
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function up(zz){
|
|
var id = $(zz).parent().attr('data-id');
|
|
if(confirm("确定修改这项配置吗?")){
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "{:url('transfer/up')}",
|
|
data: {
|
|
id:id,
|
|
novelId:$(zz).parent().find('input:eq(2)').val(),
|
|
regratio:$(zz).parent().find('input:eq(3)').val(),
|
|
payratio:$(zz).parent().find('input:eq(4)').val(),
|
|
wechatId:$(zz).parent().find('select:eq(0)').val(),
|
|
chapter:$(zz).parent().find('input:eq(5)').val(),
|
|
remark:$(zz).parent().find('input:eq(6)').val(),
|
|
wxcopy:$(zz).parent().find('input:eq(7)').val()
|
|
},
|
|
dataType: "json",
|
|
success: function(data){
|
|
if(data==1){
|
|
alertyes('修改成功')
|
|
setTimeout(function(){ window.location = ''; }, 1500);
|
|
}else{
|
|
alertmgs('没有值修改')
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function copylink(url){
|
|
copyText(url)
|
|
alertyes('复制成功')
|
|
}
|
|
function copyText(text) {
|
|
var textarea = document.createElement("textarea");
|
|
var currentFocus = document.activeElement;
|
|
document.body.appendChild(textarea);
|
|
textarea.value = text;
|
|
textarea.focus();
|
|
if (textarea.setSelectionRange)
|
|
textarea.setSelectionRange(0, textarea.value.length);
|
|
else
|
|
textarea.select();
|
|
try {
|
|
var flag = document.execCommand("copy");
|
|
} catch(eo){
|
|
var flag = false;
|
|
}
|
|
document.body.removeChild(textarea);
|
|
currentFocus.focus();
|
|
return flag;
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
{/block}
|