123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- <style type="text/css">
- td,th {text-align:center;vertical-align:middle;/*设置垂直居中*/ }
- #ac_table{
- overflow: auto;
- white-space: nowrap;
- border-left: 1px solid #ccc;
- border-top: 1px solid #ccc;
- border-right: 1px solid #ccc;
- }
- #ac_table table{
- margin-bottom: 0;
- }
- #ac_table th{
- background-color: #eee;
- font-size: 14px;
- color: #333;
- text-align: center;
- font-weight: normal;
- line-height: 30px;
- border-bottom: 1px solid #ccc;
- border-right: 1px solid #ccc;
- }
- #ac_table td{
- padding: 16px 10px;
- font-size: 14px;
- color: #333;
- text-align: center;
- font-weight: normal;
- vertical-align: middle;
- border-bottom: 1px solid #ccc;
- border-right: 1px solid #ccc;
- }
- #ac_table th:last-child,
- #ac_table td:last-child{
- border-right:0;
- }
- #ac_table td strong,
- #ac_table td span{
- display: block;
- text-align: left;
- }
- #ac_table td strong{
- font-size: 18px;
- color: #333;
- }
- #ac_table td span{
- color: #999;
- }
- </style>
- {if condition="$group lt 3 || $group eq 6"}
- <ul class="nav nav-tabs">
- <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='2'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=2">APP活动</a></li>
- <li role="presentation"><a href="/admin/campaign/read">消耗活动</a></li>
- <li role="presentation"><a href="/admin/subscrip/activity">订阅活动</a></li>
- </ul>
- <div class="panel panel-default panel-intro">
- {:build_heading()}
- <div class="panel-body">
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane fade active in" id="one">
- <div class="widget-body no-padding">
- <div id="toolbar" class="toolbar">
- <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
- {if $activity_type != 1 && $activity_type != 3}
- <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('activity/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
- {/if}
- {if $activity_type == 1 || $activity_type == 3 }
- <a href="javascript:;" class="btn btn-success btn-config {:$auth->check('activity/config')?'':'hide'}" title="活动配置管理" ><i class="fa fa-magic"></i>活动配置管理</a>
- {if condition="$group == 6"}
- <a href="javascript:;" class="btn btn-success btn-resource-manange {:$auth->check('resource/index')?'':'hide'}" title="添加自定义活动资源" ><i class="fa fa-plus"></i>添加自定义活动资源</a>
- {/if}
- {/if}
- </div>
- <table id="table" class="table table-striped table-bordered table-hover"
- data-operate-edit="{:$auth->check('activity/edit')}"
- data-operate-del="false"
- width="100%">
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- {elseif condition="($group eq 3) OR ($distribute eq '1')"}
- <div class="s_time_txt" style="color: red;font-weight: 900;font-size: 20px">提示:活动链接仅适用于当前绑定的服务号,不可与其他服务号混用!!!</div>
- <div class="panel-body">
- <ul class="nav nav-tabs">
- <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
- {if $give_tab == 1}
- <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
- {/if}
- {if !empty($camUrl)}
- <li role="presentation"><a href="{$camUrl}">消耗活动</a></li>
- {/if}
- {if $subscrip}
- <li role="presentation" class="{eq name='$activity_type' value='4'}active{/eq}"><a href="/admin/subscrip/activecollect/channel_show">订阅活动</a></li>
- {/if}
- </ul>
- <div id="ac_table" >
- {if $activity_type == 1 || $activity_type == 3}
- <div style="margin: 10px;">
- <a href="javascript:;" class="btn btn-success btn-add-activity" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
- </div>
- {/if}
- <table border="0" class="table table-striped table-condensed">
- <thead>
- <tr>
- <th>活动标题</th>
- <th>活动名称/活动页面</th>
- {if $activity_type != 3}
- <th>今日充值</th>
- <th>历史充值</th>
- {/if}
- {if $activity_type == 1 || $activity_type == 3}
- <th>活动状态</th>
- <th>启用状态</th>
- <th>弹窗状态</th>
- <th>弹窗位置</th>
- {if $activity_type == 1 && $activity_show_recharge_page == 1}
- <th>展示在充值页面</th>
- {/if}
- <th>操作</th>
- {/if}
- </tr>
- </thead>
- <tbody>
- {volist name="res" id='vo'}
- <tr>
- <td>
- <strong>{$vo.name}</strong>
- <span>活动时间:{$vo.starttime|date="Y-m-d H:i:s",###} -- {$vo.endtime|date="Y-m-d H:i:s",###}</span>
- </td>
- <td>
- {if condition="$vo.endtime lt $time"}
- 活动已结束,敬请期待下次活动
- {else /}
- {if $vo.type == 1}
- {present name="activity_config['config'][$vo['config_id']]"}
- {eq name="activity_config['config'][$vo['config_id']]['status']" value="1"}
- <div>{$vo.copywriting}</div>
- <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
- {notempty name="$vo.qq"}
- <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
- <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
- {else /}
- <div style="display: none">
- <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
- </div>
- {/notempty}
- {else /}
- 该活动配置已被禁止使用
- {/eq}
- {else /}
- 错误的活动配置
- {/present}
- {elseif $vo.type == 3}
- {present name="activity_give_config['config'][$vo['config_id']]"}
- {eq name="activity_give_config['config'][$vo['config_id']]['status']" value="1"}
- <div>{$vo.copywriting}</div>
- <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
- {notempty name="$vo.qq"}
- <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
- <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
- {else /}
- <div style="display: none">
- <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
- </div>
- {/notempty}
- {else /}
- 该活动配置已被禁止使用
- {/eq}
- {else /}
- 错误的活动配置
- {/present}
- {elseif $vo.type == 0}
- <div>{$vo.copywriting}</div>
- <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
- {notempty name="$vo.qq"}
- <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
- <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
- {else /}
- <div style="display: none">
- <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
- </div>
- {/notempty}
- {/if}
- {/if}
- </td>
- {if $activity_type != 3}
- <td><div>{empty name="$vo.money"}0.00{else /}¥{$vo.money}{/empty}</div><div>{empty name="$vo.recharge_count"}0{else /}{$vo.recharge_count}{/empty}笔</div></td>
- <td><div>{empty name="$vo.allmoney"}0.00{else /}¥{$vo.allmoney}{/empty}</div><div>{empty name="$vo.arecharge_count"}0{else /}{$vo.arecharge_count}{/empty}笔</div></td>
- {/if}
- {if $activity_type == 1 || $activity_type == 3}
- <td><div>
- {lt name="$vo.endtime" value="$time"}
- 活动结束
- {elseif condition="$vo.starttime < $time && $vo.endtime > $time" }
- 活动进行中
- {elseif condition="$vo.starttime > $time " /}
- 活动未开始
- {/lt}
- </div></td>
- <td><div>{eq name="$vo.status" value="0"}隐藏{else/}正常{/eq}</div></td>
- <td>
- <div>{eq name="$vo.pop_status" value="0"}
- <b>关闭</b> {eq name="$vo.admin_id" value="$admin_id"}<input type="button" class="btn-pop-start btn btn-success" data-pop-range="{$vo.pop_range}" data-ispay="{$vo.pop_ispay}" data-reload="1" data-id="{$vo.id}" value="点击开启" />{/eq}{else/}
- <b>开启</b> {eq name="$vo.admin_id" value="$admin_id"}<input type="button" class="btn-pop-start btn btn-warning" data-reload="1" data-id="{$vo.id}" value="点击关闭" />{/eq}{/eq}
- </div>
- </td>
- <td><div>{eq name="$vo.pop_status" value="0"}-{else/}{$vo.pop_range_txt}{/eq}</div></td>
- {if $activity_type == 1 && $activity_show_recharge_page == 1}
- <td>
- <div>{eq name="$vo.show_for_recharge_page" value="0"}
- <b>关闭</b> {eq name="$vo.admin_id" value="$admin_id"}<input type="button" class="js_recharge_on btn btn-success" data-reload="1" data-id="{$vo.id}" value="点击开启" />{/eq}{else/}
- <b>开启</b> {eq name="$vo.admin_id" value="$admin_id"}<input type="button" class="js_recharge_off btn btn-warning" data-reload="1" data-id="{$vo.id}" value="点击关闭" />{/eq}{/eq}
- </div>
- </td>
- {/if}
- <td style="text-align: center; vertical-align: middle; ">
- {lt name="$vo.endtime" value="$time"}
- <!--活动结束-->
- {elseif condition="$vo.starttime < $time && $vo.endtime > $time" }
- <!--活动进行中-->
- {else /}
- {if $activity_type == 1}
- {present name="activity_config['config'][$vo['config_id']]"}
- {eq name="activity_config['config'][$vo['config_id']]['status']" value="1"}
- {eq name="$vo.admin_id" value="$admin_id"}
- <a data-href="/admin/activity/edit?type={$activity_type}&ids={$vo.id}" href="javascript:;" class="btn btn-xs btn-success btn-edit-row" title="" data-table-id="table" data-field-index="12" data-row-index="0" data-button-index="1"><i class="fa fa-pencil"></i></a>
- {/eq}
- {/eq}
- {/present}
- {elseif $activity_type == 3}
- {present name="activity_give_config['config'][$vo['config_id']]"}
- {eq name="activity_give_config['config'][$vo['config_id']]['status']" value="1"}
- {eq name="$vo.admin_id" value="$admin_id"}
- <a data-href="/admin/activity/edit?type={$activity_type}&ids={$vo.id}" href="javascript:;" class="btn btn-xs btn-success btn-edit-row" title="" data-table-id="table" data-field-index="12" data-row-index="0" data-button-index="1"><i class="fa fa-pencil"></i></a>
- {/eq}
- {/eq}
- {/present}
- {/if}
- {/lt}
- </td>
- {/if}
- </tr>
- {/volist}
- </tbody>
- </table>
- </div>
- {$res->render()}
- </div>
- {else /}
- <style type="text/css"> td,th { text-align:center; /*设置水平居中*/ vertical-align:middle;/*设置垂直居中*/ } </style>
- <div class="panel-body">
- <ul class="nav nav-tabs">
- <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
- <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
- </ul>
- <div id="ac_table">
- <table border="0" class="table table-striped table-condensed">
- <thead>
- <tr>
- <th>活动标题</th>
- <th>活动名称</th>
- <th>今日充值</th>
- <th>历史充值</th>
- </tr>
- </thead>
- <tbody>
- {volist name="res" id='vo'}
- <tr>
- <td>
- <strong>{$vo.name}</strong>
- <span>活动时间:{$vo.starttime|date="Y-m-d H:i:s",###} -- {$vo.endtime|date="Y-m-d H:i:s",###}</span>
- </td>
- <td>{if condition="$vo.endtime lt $time"}活动已结束,敬请期待下次活动{else /}{$vo.copywriting}{/if}</td>
- <td><div>{empty name="$vo.money"}0.00{else /}¥{$vo.money}{/empty}</div><div>{empty name="$vo.recharge_count"}0{else /}{$vo.recharge_count}{/empty}笔</div></td>
- <td><div>{empty name="$vo.allmoney"}0.00{else /}¥{$vo.allmoney}{/empty}</div><div>{empty name="$vo.arecharge_count"}0{else /}{$vo.arecharge_count}{/empty}笔</div></td>
- </tr>
- {/volist}
- </tbody>
- </table>
- </div>
- {$res->render()}
- </div>
- {/if}
- <div class="pop_position" style="display: none">
- <div class="form-group" style="height: 50px">
- <label class="control-label col-xs-12 col-sm-2" style="margin-top: 20px;width: 90px;">弹窗位置:</label>
- <div class="col-xs-12 col-sm-8" style="margin-top: 0.1em;margin-left: -0.32em">
- <div class="checkbox" id="dyhradio">
- <label><input type="checkbox" name="senddyhradio"> 全部</label>
- </div>
- <div class="checkbox" id="dyhcheck">
- {volist name="popRangeList" id="vo" key="k"}
- <label><input name="row[pop_range][{$k-1}]" type="checkbox" value="{$k-1}" {if condition="isset($popRangeSelected) and in_array($k-1, $popRangeSelected)"}checked{/if}> {$vo}</label>
- {/volist}
- </div>
- </div>
- </div>
- <div></div>
- <div class="form-group" style="height: 50px">
- <label class="control-label col-xs-12 col-sm-2" style="margin-top: 20px;width: 90px">接收用户:</label>
- <div class="col-xs-12 col-sm-8" style="margin-top: 0.1em;margin-left: -0.32em">
- <div class="radio">
- <label for="row[pop_ispay]-{1}"><input name="row[pop_ispay]" id="ispay_1" type="radio" value="1"> 全部用户</label>
- <label for="row[pop_ispay]-{2}"><input name="row[pop_ispay]" id="ispay_2" type="radio" value="2"> 已充值用户</label>
- <label for="row[pop_ispay]-{3}"><input name="row[pop_ispay]" id="ispay_3" type="radio" value="3"> 未充值用户</label>
- </div>
- </div>
- </div>
- </div>
|