index.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <style type="text/css">
  2. td,th {text-align:center;vertical-align:middle;/*设置垂直居中*/ }
  3. #ac_table{
  4. overflow: auto;
  5. white-space: nowrap;
  6. border-left: 1px solid #ccc;
  7. border-top: 1px solid #ccc;
  8. border-right: 1px solid #ccc;
  9. }
  10. #ac_table table{
  11. margin-bottom: 0;
  12. }
  13. #ac_table th{
  14. background-color: #eee;
  15. font-size: 14px;
  16. color: #333;
  17. text-align: center;
  18. font-weight: normal;
  19. line-height: 30px;
  20. border-bottom: 1px solid #ccc;
  21. border-right: 1px solid #ccc;
  22. }
  23. #ac_table td{
  24. padding: 16px 10px;
  25. font-size: 14px;
  26. color: #333;
  27. text-align: center;
  28. font-weight: normal;
  29. vertical-align: middle;
  30. border-bottom: 1px solid #ccc;
  31. border-right: 1px solid #ccc;
  32. }
  33. #ac_table th:last-child,
  34. #ac_table td:last-child{
  35. border-right:0;
  36. }
  37. #ac_table td strong,
  38. #ac_table td span{
  39. display: block;
  40. text-align: left;
  41. }
  42. #ac_table td strong{
  43. font-size: 18px;
  44. color: #333;
  45. }
  46. #ac_table td span{
  47. color: #999;
  48. }
  49. </style>
  50. {if condition="$group lt 3 || $group eq 6"}
  51. <ul class="nav nav-tabs">
  52. <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
  53. <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
  54. <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
  55. <li role="presentation" class="{eq name='$activity_type' value='2'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=2">APP活动</a></li>
  56. <li role="presentation"><a href="/admin/campaign/read">消耗活动</a></li>
  57. <li role="presentation"><a href="/admin/subscrip/activity">订阅活动</a></li>
  58. </ul>
  59. <div class="panel panel-default panel-intro">
  60. {:build_heading()}
  61. <div class="panel-body">
  62. <div id="myTabContent" class="tab-content">
  63. <div class="tab-pane fade active in" id="one">
  64. <div class="widget-body no-padding">
  65. <div id="toolbar" class="toolbar">
  66. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  67. {if $activity_type != 1 && $activity_type != 3}
  68. <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('activity/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  69. {/if}
  70. {if $activity_type == 1 || $activity_type == 3 }
  71. <a href="javascript:;" class="btn btn-success btn-config {:$auth->check('activity/config')?'':'hide'}" title="活动配置管理" ><i class="fa fa-magic"></i>活动配置管理</a>
  72. {if condition="$group == 6"}
  73. <a href="javascript:;" class="btn btn-success btn-resource-manange {:$auth->check('resource/index')?'':'hide'}" title="添加自定义活动资源" ><i class="fa fa-plus"></i>添加自定义活动资源</a>
  74. {/if}
  75. {/if}
  76. </div>
  77. <table id="table" class="table table-striped table-bordered table-hover"
  78. data-operate-edit="{:$auth->check('activity/edit')}"
  79. data-operate-del="false"
  80. width="100%">
  81. </table>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. {elseif condition="($group eq 3) OR ($distribute eq '1')"}
  88. <div class="s_time_txt" style="color: red;font-weight: 900;font-size: 20px">提示:活动链接仅适用于当前绑定的服务号,不可与其他服务号混用!!!</div>
  89. <div class="panel-body">
  90. <ul class="nav nav-tabs">
  91. <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
  92. <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
  93. {if $give_tab == 1}
  94. <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
  95. {/if}
  96. {if !empty($camUrl)}
  97. <li role="presentation"><a href="{$camUrl}">消耗活动</a></li>
  98. {/if}
  99. {if $subscrip}
  100. <li role="presentation" class="{eq name='$activity_type' value='4'}active{/eq}"><a href="/admin/subscrip/activecollect/channel_show">订阅活动</a></li>
  101. {/if}
  102. </ul>
  103. <div id="ac_table" >
  104. {if $activity_type == 1 || $activity_type == 3}
  105. <div style="margin: 10px;">
  106. <a href="javascript:;" class="btn btn-success btn-add-activity" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  107. </div>
  108. {/if}
  109. <table border="0" class="table table-striped table-condensed">
  110. <thead>
  111. <tr>
  112. <th>活动标题</th>
  113. <th>活动名称/活动页面</th>
  114. {if $activity_type != 3}
  115. <th>今日充值</th>
  116. <th>历史充值</th>
  117. {/if}
  118. {if $activity_type == 1 || $activity_type == 3}
  119. <th>活动状态</th>
  120. <th>启用状态</th>
  121. <th>弹窗状态</th>
  122. <th>弹窗位置</th>
  123. {if $activity_type == 1 && $activity_show_recharge_page == 1}
  124. <th>展示在充值页面</th>
  125. {/if}
  126. <th>操作</th>
  127. {/if}
  128. </tr>
  129. </thead>
  130. <tbody>
  131. {volist name="res" id='vo'}
  132. <tr>
  133. <td>
  134. <strong>{$vo.name}</strong>
  135. <span>活动时间:{$vo.starttime|date="Y-m-d H:i:s",###} -- {$vo.endtime|date="Y-m-d H:i:s",###}</span>
  136. </td>
  137. <td>
  138. {if condition="$vo.endtime lt $time"}
  139. 活动已结束,敬请期待下次活动
  140. {else /}
  141. {if $vo.type == 1}
  142. {present name="activity_config['config'][$vo['config_id']]"}
  143. {eq name="activity_config['config'][$vo['config_id']]['status']" value="1"}
  144. <div>{$vo.copywriting}</div>
  145. <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
  146. {notempty name="$vo.qq"}
  147. <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
  148. <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
  149. {else /}
  150. <div style="display: none">
  151. <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
  152. </div>
  153. {/notempty}
  154. {else /}
  155. 该活动配置已被禁止使用
  156. {/eq}
  157. {else /}
  158. 错误的活动配置
  159. {/present}
  160. {elseif $vo.type == 3}
  161. {present name="activity_give_config['config'][$vo['config_id']]"}
  162. {eq name="activity_give_config['config'][$vo['config_id']]['status']" value="1"}
  163. <div>{$vo.copywriting}</div>
  164. <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
  165. {notempty name="$vo.qq"}
  166. <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
  167. <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
  168. {else /}
  169. <div style="display: none">
  170. <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
  171. </div>
  172. {/notempty}
  173. {else /}
  174. 该活动配置已被禁止使用
  175. {/eq}
  176. {else /}
  177. 错误的活动配置
  178. {/present}
  179. {elseif $vo.type == 0}
  180. <div>{$vo.copywriting}</div>
  181. <div id="jump{$vo.id}">{$vo.url}<i class="fa fa-copy copy" data-clipboard-text="{$vo.url}"></i></div>
  182. {notempty name="$vo.qq"}
  183. <div data-clipboard-text="{$vo.qq}">腾讯短链: {$vo.qq}<i class="fa fa-copy copy" data-clipboard-text="{$vo.qq}"></i></div>
  184. <div data-clipboard-text="{$vo.sina}">新浪短链: {$vo.sina}<i class="fa fa-copy copy" data-clipboard-text="{$vo.sina}"></i></div>
  185. {else /}
  186. <div style="display: none">
  187. <input data-id="{$vo.id}" type="button" class="btn btnlink" value="生成短链" />
  188. </div>
  189. {/notempty}
  190. {/if}
  191. {/if}
  192. </td>
  193. {if $activity_type != 3}
  194. <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>
  195. <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>
  196. {/if}
  197. {if $activity_type == 1 || $activity_type == 3}
  198. <td><div>
  199. {lt name="$vo.endtime" value="$time"}
  200. 活动结束
  201. {elseif condition="$vo.starttime < $time && $vo.endtime > $time" }
  202. 活动进行中
  203. {elseif condition="$vo.starttime > $time " /}
  204. 活动未开始
  205. {/lt}
  206. </div></td>
  207. <td><div>{eq name="$vo.status" value="0"}隐藏{else/}正常{/eq}</div></td>
  208. <td>
  209. <div>{eq name="$vo.pop_status" value="0"}
  210. <b>关闭</b>&nbsp;&nbsp;{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/}
  211. <b>开启</b>&nbsp;&nbsp;{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}
  212. </div>
  213. </td>
  214. <td><div>{eq name="$vo.pop_status" value="0"}-{else/}{$vo.pop_range_txt}{/eq}</div></td>
  215. {if $activity_type == 1 && $activity_show_recharge_page == 1}
  216. <td>
  217. <div>{eq name="$vo.show_for_recharge_page" value="0"}
  218. <b>关闭</b>&nbsp;&nbsp;{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/}
  219. <b>开启</b>&nbsp;&nbsp;{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}
  220. </div>
  221. </td>
  222. {/if}
  223. <td style="text-align: center; vertical-align: middle; ">
  224. {lt name="$vo.endtime" value="$time"}
  225. <!--活动结束-->
  226. {elseif condition="$vo.starttime < $time && $vo.endtime > $time" }
  227. <!--活动进行中-->
  228. {else /}
  229. {if $activity_type == 1}
  230. {present name="activity_config['config'][$vo['config_id']]"}
  231. {eq name="activity_config['config'][$vo['config_id']]['status']" value="1"}
  232. {eq name="$vo.admin_id" value="$admin_id"}
  233. <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>
  234. {/eq}
  235. {/eq}
  236. {/present}
  237. {elseif $activity_type == 3}
  238. {present name="activity_give_config['config'][$vo['config_id']]"}
  239. {eq name="activity_give_config['config'][$vo['config_id']]['status']" value="1"}
  240. {eq name="$vo.admin_id" value="$admin_id"}
  241. <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>
  242. {/eq}
  243. {/eq}
  244. {/present}
  245. {/if}
  246. {/lt}
  247. </td>
  248. {/if}
  249. </tr>
  250. {/volist}
  251. </tbody>
  252. </table>
  253. </div>
  254. {$res->render()}
  255. </div>
  256. {else /}
  257. <style type="text/css"> td,th { text-align:center; /*设置水平居中*/ vertical-align:middle;/*设置垂直居中*/ } </style>
  258. <div class="panel-body">
  259. <ul class="nav nav-tabs">
  260. <li role="presentation" class="{eq name='$activity_type' value='0'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=0">平台活动</a></li>
  261. <li role="presentation" class="{eq name='$activity_type' value='1'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=1">自定义活动</a></li>
  262. <li role="presentation" class="{eq name='$activity_type' value='3'}active{/eq}" ><a href="/admin/activity/index?addtabs=1&type=3">赠币活动</a></li>
  263. </ul>
  264. <div id="ac_table">
  265. <table border="0" class="table table-striped table-condensed">
  266. <thead>
  267. <tr>
  268. <th>活动标题</th>
  269. <th>活动名称</th>
  270. <th>今日充值</th>
  271. <th>历史充值</th>
  272. </tr>
  273. </thead>
  274. <tbody>
  275. {volist name="res" id='vo'}
  276. <tr>
  277. <td>
  278. <strong>{$vo.name}</strong>
  279. <span>活动时间:{$vo.starttime|date="Y-m-d H:i:s",###} -- {$vo.endtime|date="Y-m-d H:i:s",###}</span>
  280. </td>
  281. <td>{if condition="$vo.endtime lt $time"}活动已结束,敬请期待下次活动{else /}{$vo.copywriting}{/if}</td>
  282. <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>
  283. <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>
  284. </tr>
  285. {/volist}
  286. </tbody>
  287. </table>
  288. </div>
  289. {$res->render()}
  290. </div>
  291. {/if}
  292. <div class="pop_position" style="display: none">
  293. <div class="form-group" style="height: 50px">
  294. <label class="control-label col-xs-12 col-sm-2" style="margin-top: 20px;width: 90px;">弹窗位置:</label>
  295. <div class="col-xs-12 col-sm-8" style="margin-top: 0.1em;margin-left: -0.32em">
  296. <div class="checkbox" id="dyhradio">
  297. <label><input type="checkbox" name="senddyhradio"> 全部</label>
  298. </div>
  299. <div class="checkbox" id="dyhcheck">
  300. {volist name="popRangeList" id="vo" key="k"}
  301. <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>
  302. {/volist}
  303. </div>
  304. </div>
  305. </div>
  306. <div></div>
  307. <div class="form-group" style="height: 50px">
  308. <label class="control-label col-xs-12 col-sm-2" style="margin-top: 20px;width: 90px">接收用户:</label>
  309. <div class="col-xs-12 col-sm-8" style="margin-top: 0.1em;margin-left: -0.32em">
  310. <div class="radio">
  311. <label for="row[pop_ispay]-{1}"><input name="row[pop_ispay]" id="ispay_1" type="radio" value="1"> 全部用户</label>
  312. <label for="row[pop_ispay]-{2}"><input name="row[pop_ispay]" id="ispay_2" type="radio" value="2"> 已充值用户</label>
  313. <label for="row[pop_ispay]-{3}"><input name="row[pop_ispay]" id="ispay_3" type="radio" value="3"> 未充值用户</label>
  314. </div>
  315. </div>
  316. </div>
  317. </div>