Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gift_exchange_list.htm 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" >
  6. {if condition='!$Request.param.gift_id'}
  7. <div class="fixed-bar">
  8. <div class="item-title">
  9. <a class="back_xin" href="{:url('Index/switch_map')}" title="返回"><i class="iconfont e-fanhui"></i></a>
  10. <div class="subject">
  11. <h3>积分兑换</h3>
  12. <h5></h5>
  13. </div>
  14. <ul class="tab-base nc-row">
  15. {eq name="'Memgift@gift_exchange_list'|is_check_access" value="1"}
  16. <li>
  17. <a {if condition="in_array($Request.action, ['gift_exchange_list'])"}class="current"{/if} href="{:url('Memgift/gift_exchange_list')}">
  18. <span>兑换列表</span>
  19. </a>
  20. </li>
  21. {/eq}
  22. {eq name="'Memgift@index'|is_check_access" value="1"}
  23. <li>
  24. <a {if condition="in_array($Request.action, ['index'])"}class="current"{/if} href="{:url('Memgift/index')}">
  25. <span>商品列表</span>
  26. </a>
  27. </li>
  28. {/eq}
  29. </ul>
  30. </div>
  31. </div>
  32. {/if}
  33. <div class="flexigrid" style="min-height: 600px;">
  34. <div class="mDiv pt0">
  35. <div class="ftitle_nav">
  36. <div class="fbutton">
  37. <a href="{:url('Memgift/gift_exchange_list')}">
  38. <div class="{if condition='!$Request.param.status'}cur{/if}" title="全部">
  39. 全部<span>{$count.0.count+$count.1.count+$count.2.count+$count.3.count}</span>
  40. </div>
  41. </a>
  42. </div>
  43. <div class="fbutton">
  44. <a href="{:url('Memgift/gift_exchange_list', ['status'=>-1])}">
  45. <div class="{eq name='$Request.param.status' value='-1'}cur{/eq}" title="全部">
  46. 待处理<span>{$count.0.count|default=0}</span>
  47. </div>
  48. </a>
  49. </div>
  50. <div class="fbutton">
  51. <a href="{:url('Memgift/gift_exchange_list', ['status'=>1])}">
  52. <div class="{eq name='$Request.param.status' value='1'}cur{/eq}" title="全部">
  53. 已发货<span>{$count.1.count|default=0}</span>
  54. </div>
  55. </a>
  56. </div>
  57. <div class="fbutton">
  58. <a href="{:url('Memgift/gift_exchange_list', ['status'=>2])}">
  59. <div class="{eq name='$Request.param.status' value='2'}cur{/eq}" title="全部">
  60. 已退回<span>{$count.2.count|default=0}</span>
  61. </div>
  62. </a>
  63. </div>
  64. <div class="fbutton">
  65. <a href="{:url('Memgift/gift_exchange_list', ['status'=>3])}">
  66. <div class="{eq name='$Request.param.status' value='3'}cur{/eq}" title="全部">
  67. 已重发<span>{$count.3.count|default=0}</span>
  68. </div>
  69. </a>
  70. </div>
  71. </div>
  72. <form class="navbar-form form-inline" id="searchForm" action="{:url('Memgift/gift_exchange_list')}" method="get" onsubmit="layer_loading('正在处理');">
  73. {$searchform.hidden|default=''}
  74. <div class="sDiv">
  75. <div class="sDiv2" style="margin: 0 6px;">
  76. <input type="hidden" name="status" value="{$Request.param.status|default=''}">
  77. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="用户名/昵称">
  78. <input type="submit" class="btn" value="搜索">
  79. <i class="iconfont e-sousuo"></i>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. <div class="hDiv">
  85. <div class="hDivBox">
  86. <table cellspacing="0" cellpadding="0" style="width: 100%">
  87. <thead>
  88. <tr>
  89. <th abbr="download_title" axis="col3" class="w70">
  90. <div class="tc">ID</div>
  91. </th>
  92. <th abbr="download_title" axis="col3" class="w150">
  93. <div class="tl text-l10">商品名称</div>
  94. </th>
  95. <th align="center" axis="col6" class="">
  96. <div class="tl text-l10">收货信息</div>
  97. </th>
  98. <th abbr="download_time" axis="col6" class="w100">
  99. <div class="tc">{$score.score_name}</div>
  100. </th>
  101. <th abbr="article_title" axis="col3" class="w150">
  102. <div class="tl" style="margin-left: 5px;">用户</div>
  103. </th>
  104. <th abbr="download_time" axis="col6" class="w150">
  105. <div class="tc">兑换时间</div>
  106. </th>
  107. <th axis="col1" class="w160">
  108. <div class="tc">管理操作</div>
  109. </th>
  110. </tr>
  111. </thead>
  112. </table>
  113. </div>
  114. </div>
  115. <div class="bDiv" style="height: auto;">
  116. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  117. <table style="width: 100%">
  118. <tbody>
  119. {empty name="list"}
  120. <tr>
  121. <td class="no-data" align="center" axis="col0" colspan="50">
  122. <div class="no_row">
  123. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  124. </div>
  125. </td>
  126. </tr>
  127. {else/}
  128. {foreach name="list" item="vo" key="k" }
  129. <tr>
  130. <td class="sort">
  131. <div class="tc w70">
  132. {$vo.gid}
  133. </div>
  134. </td>
  135. <td >
  136. <div class="tl text-l10 w150" >
  137. {$vo.giftname}
  138. </div>
  139. </td>
  140. <td style="width: 100%;">
  141. <div class="tl text-l10">
  142. {if condition="$vo.type eq -1"}
  143. 姓名:{$vo.name} 手机号:{$vo.mobile} 地址:{$vo.address}
  144. {else/}
  145. 虚拟商品,无需发货
  146. {/if}
  147. </div>
  148. </td>
  149. <td>
  150. <div class="w100 tc">
  151. {$vo.score}
  152. </div>
  153. </td>
  154. <td class="sort">
  155. <div class="w150 tl ellipsis">
  156. <img style="height: 26px; width: 26px; margin:0px 5px!important;float: unset;margin: auto;" src="{$vo.head_pic|get_head_pic=###,false,$vo['sex']}" />
  157. {$vo.nickname|default=$vo.username}
  158. </div>
  159. </td>
  160. <td>
  161. <div class="tc w150">
  162. {$vo.add_time|MyDate="Y-m-d H:i:s",###}
  163. </div>
  164. </td>
  165. <td class="operation">
  166. <div class="w160 tc">
  167. {eyou:if condition="$vo.status eq 0"}
  168. {eyou:notempty name="$syb"}
  169. <a class="btn blue" href="{:url('Memgift/give',['gid'=>$vo.gid,'do'=>'give','syb'=>1])}"><u>发货</u></a>
  170. <!--<a href="gift_add.php?action=give&gid={$vo.gid}&do=give&syb=1"><u>发货</u></a>-->
  171. {else /}
  172. <a class="btn blue" href="{:url('Memgift/give',['gid'=>$vo.gid,'do'=>'give'])}"><u>发货</u></a>
  173. {/eyou:notempty}
  174. {elseif condition="$vo.status eq 1"}
  175. {eyou:if condition="in_array($vo.type, [-1])"}
  176. <a class="btn blue" href="{:url('Memgift/give',['gid'=>$vo.gid])}"><u>退回</u></a>
  177. <i></i>
  178. <a class="btn blue" href="{:url('Memgift/again',['gift_id'=>$vo.gift_id,'gid'=>$vo.gid])}"><u>重发</u></a>
  179. {else /}
  180. 已发货
  181. {/eyou:if}
  182. {elseif condition="$vo.status eq 2"}
  183. <font color="red">已退回</font>
  184. {elseif condition="$vo.status eq 3"}
  185. 已重发
  186. {/eyou:if}
  187. </div>
  188. </td>
  189. </tr>
  190. {/foreach}
  191. {/empty}
  192. </tbody>
  193. </table>
  194. </div>
  195. <div class="iDiv" style="display: none;"></div>
  196. </div>
  197. <div class="footer-oper">
  198. <div class="nav-dropup">
  199. </div>
  200. {include file="public/page" /}
  201. </div>
  202. </div>
  203. </div>
  204. <script type="text/javascript">
  205. // 修改指定表的指定字段值 包括有按钮点击切换是否 或者 排序 或者输入框文字
  206. function changeMemgiftTableVal(table,id_name,id_value,field,obj)
  207. {
  208. var src = "";
  209. if($(obj).hasClass('no')) // 图片点击是否操作
  210. {
  211. //src = '/public/images/yes.png';
  212. var text = "隐藏";
  213. if ($(obj).attr('data-yestext')) {
  214. text = $(obj).attr('data-yestext');
  215. }
  216. var value = 0;
  217. try {
  218. if ($(obj).attr('data-value')) {
  219. value = $(obj).attr('data-value');
  220. if ('weapp' == table && 'status' == field) {
  221. $(obj).attr('data-value', -1); // 插件的禁用
  222. if ('Diyminipro' == $(obj).attr('data-weapp_code')) {
  223. $('#Diyminipro_theme_index', window.parent.document).show();
  224. }
  225. }
  226. }
  227. } catch(e) {
  228. // 出现异常以后执行的代码
  229. // e:exception,用来捕获异常的信息
  230. }
  231. }else if($(obj).hasClass('yes')){ // 图片点击是否操作
  232. var text = "显示";
  233. if ($(obj).attr('data-notext')) {
  234. text = $(obj).attr('data-notext');
  235. }
  236. var value = 1;
  237. try {
  238. if ($(obj).attr('data-value')) {
  239. value = $(obj).attr('data-value');
  240. if ('weapp' == table && 'status' == field) {
  241. $(obj).attr('data-value', 1); // 插件的启用
  242. if ('Diyminipro' == $(obj).attr('data-weapp_code')) {
  243. $('#Diyminipro_theme_index', window.parent.document).hide();
  244. }
  245. }
  246. }
  247. } catch(e) {
  248. // 出现异常以后执行的代码
  249. // e:exception,用来捕获异常的信息
  250. }
  251. }else{ // 其他输入框操作
  252. var value = $(obj).val();
  253. }
  254. var url = eyou_basefile + "?m="+module_name+"&c=Index&a=changeTableVal&_ajax=1";
  255. var lang = $.cookie('admin_lang');
  256. if (!lang) lang = __lang__;
  257. if ($.trim(lang) != '') {
  258. url = url + '&lang=' + lang;
  259. }
  260. $.ajax({
  261. type: 'POST',
  262. url: url,
  263. data: {table:table,id_name:id_name,id_value:id_value,field:field,value:value},
  264. dataType: 'json',
  265. success: function(res){
  266. if (res.code == 1) {
  267. var inputype = $(obj).attr('data-inputype');
  268. if ('int' == inputype) {
  269. $(obj).val(parseInt($(obj).val()));
  270. }
  271. if ($(obj).hasClass('no')) {
  272. $(obj).removeClass('no').addClass('yes');
  273. $(obj).html(text);
  274. }else if($(obj).hasClass('yes')) {
  275. $(obj).removeClass('yes').addClass('no');
  276. $(obj).html(text);
  277. }
  278. var seo_pseudo = $(obj).attr('data-seo_pseudo');
  279. if(table == 'archives' && 2 == seo_pseudo){
  280. /*生成静态页面代码*/
  281. layer_loading('生成页面');
  282. var typeid = $(obj).attr('data-typeid');
  283. $.ajax({
  284. url:__root_dir__+"/index.php?m=home&c=Buildhtml&a=upHtml&lang="+__lang__,
  285. type:'POST',
  286. dataType:'json',
  287. data:{aid:id_value,typeid:typeid,type:'view',ctl_name:'Archives',_ajax:1},
  288. success:function(res1){
  289. $.ajax({
  290. url:__root_dir__+"/index.php?m=home&c=Buildhtml&a=upHtml&lang="+__lang__,
  291. type:'POST',
  292. dataType:'json',
  293. data:{aid:id_value,typeid:typeid,type:'lists',ctl_name:'Archives',_ajax:1},
  294. success:function(res2){
  295. layer.closeAll();
  296. layer.msg('生成完成', {icon: 1, time: 1500});
  297. },
  298. error: function(e){
  299. layer.closeAll();
  300. layer.alert('生成当前栏目HTML失败,请手工生成栏目静态!', {icon: 5, title: false});
  301. }
  302. });
  303. },
  304. error: function(e){
  305. layer.closeAll();
  306. layer.alert('生成HTML失败,请手工生成静态HTML!', {icon: 5, title: false});
  307. }
  308. });
  309. /*end*/
  310. } else {
  311. if(!$(obj).hasClass('no') && !$(obj).hasClass('yes')){
  312. var time = 1500;
  313. if (res.data.time && 0 < res.data.time) {
  314. time = res.data.time;
  315. }
  316. layer.msg(res.msg, {icon: 1, time: time}, function(){
  317. if (1 == res.data.refresh) {
  318. window.location.reload();
  319. }
  320. });
  321. } else {
  322. if (1 == res.data.refresh) {
  323. window.location.reload();
  324. }
  325. }
  326. }
  327. } else {
  328. var time = parseFloat(res.wait) * 1000;
  329. layer.msg(res.msg, {icon: 5, time: time}, function(){
  330. window.location.reload();
  331. });
  332. }
  333. }
  334. });
  335. }
  336. </script>
  337. {include file="public/footer" /}