No Description
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.

users_gift_list.htm 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>积分兑换-{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
  9. <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  10. {eyou:static file="users/skin/css/eyoucms.css" /}
  11. <!-- 新样式 2020-11-25 -->
  12. {eyou:static file="users/skin/css/element/index.css" /}
  13. {eyou:static file="users/skin/css/e-user.css" /}
  14. {eyou:include file="users/skin/css/diy_css.htm" /}
  15. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  16. {eyou:static file="users/skin/js/global.js"/}
  17. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  18. </head>
  19. <body class="centre shop">
  20. <!-- 头部 -->
  21. {eyou:include file="users/users_header.htm" /}
  22. <!-- 头部结束 -->
  23. <div class="breadcrumbs"></div>
  24. <div class="ey-body-bg">
  25. <div class="ey-body pd0">
  26. <div class="ey-container w1226">
  27. <!-- 侧边 -->
  28. {eyou:include file="users/users_left.htm" /}
  29. <!-- 侧边结束 -->
  30. <!-- 中部 -->
  31. <div class="ey-con fr">
  32. <div class="el-main main-bg xin_mian">
  33. <div class="el-row shop-oper">
  34. <h1 class="title">积分兑换</h1>
  35. </div>
  36. <div class="el-row shop-oper mt20">
  37. <div class="shop-oper-bottom">
  38. <div class="shop-oper-l">
  39. <div class="el-button-group">
  40. <a class="el-button-xin el-button--default first active" href="javascript:void(0);" id="a_changeGift1" onclick="changeGift(1);">全部商品</a>
  41. <a class="el-button-xin el-button--default" href="javascript:void(0);" id="a_changeGift2" onclick="changeGift(2);">兑换记录</a>
  42. </div>
  43. </div>
  44. <div class="shop-oper-r dpf">
  45. <div class="users-money">我的{$score_name}&nbsp;:&nbsp;<span class="red fb">{$users.scores}</span></div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="pro-list">
  50. {eyou:empty name="$list"}
  51. <div class="cell pt100 tc">
  52. <span class="mb10"><img id='litpic_img' src="{eyou:static file='users/skin/images/null-data.png' /}"/></span>
  53. <p>当前暂无兑换记录哦~</p>
  54. </div>
  55. {eyou:else/}
  56. <ul>
  57. {eyou:volist name="$list" id="vo" key="k"}
  58. <li>
  59. <div class="diva">
  60. <div class="tit">
  61. <div class="tit-l" data-url="{:url('user/Memgift/users_gift_detail',['gift_id'=>$vo.gift_id])}" onclick="goDetail(this)">
  62. <img src="{$vo.litpic}">
  63. </div>
  64. <div class="tit-r">
  65. <h2 data-url="{:url('user/Memgift/users_gift_detail',['gift_id'=>$vo.gift_id])}" onclick="goDetail(this)">{$vo.giftname}</h2>
  66. <p>{$vo.score}{$score_name}</p>
  67. {eyou:if condition='$users.scores >= $vo.score'}
  68. <p>
  69. {eq name='$vo.type' value='-1'}
  70. <a href="javascript:void(0)" class="okgo" data-url="{:url('user/Memgift/users_gift_shiwu',['gift_id'=>$vo.gift_id])}" onclick="jumpInfo(this)">立即兑换</a>
  71. {else/}
  72. <a href="javascript:void(0)" class="okgo" data-url="{:url('user/Memgift/users_gift_vip',['gift_id'=>$vo.gift_id])}" onclick="jumpVip(this)">立即兑换</a>
  73. {/eq}
  74. </p>
  75. {eyou:else /}
  76. <p><a class="okgo nones">{$score_name}不足</a></p>
  77. {/eyou:if}
  78. </div>
  79. </div>
  80. </div>
  81. </li>
  82. {/eyou:volist}
  83. </ul>
  84. {/eyou:empty}
  85. </div>
  86. <!-- END -->
  87. <div class="ey-con-inside mt20" style="display: none;">
  88. <div id="finance-list_wrapper" class="el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition" style="width: 100%;">
  89. <table class="pay_details" cellspacing="0" cellpadding="0" style="width: 100%">
  90. <thead>
  91. <tr role="row">
  92. <th class="w40">
  93. <div class="cell tc">
  94. <span>ID</span>
  95. </div>
  96. </th>
  97. <th><div class="cell tl">商品名称</div></th>
  98. <th class="w150"><div class="cell tc">消耗({$score_name})</div></th>
  99. <th class="w200"><div class="cell tc">兑换时间</div></th>
  100. <th class="w80"><div class="cell tc">状态</div></th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. {eyou:empty name="$order_list"}
  105. <tr>
  106. <td align="center" axis="col0" colspan="50">
  107. <div class="cell pt100 tc">
  108. <span class="mb10"><img id='litpic_img' src="{eyou:static file='users/skin/images/null-data.png' /}"/></span>
  109. <p>当前暂无兑换记录哦~</p>
  110. </div>
  111. </td>
  112. </tr>
  113. {eyou:else/}
  114. {eyou:volist name="$order_list" id="vo"}
  115. <tr>
  116. <td>
  117. <div class="cell tc">
  118. <span>{$vo.key}</span>
  119. </div>
  120. </td>
  121. <td>
  122. <div class="cell tl">
  123. <a href="javascript:void(0);" class="arc-name">
  124. <div class="arc-pic">
  125. <img src="{$vo.litpic}">
  126. </div>
  127. <div class="arc-title">
  128. {$vo.giftname}
  129. </div>
  130. </a>
  131. </div>
  132. </td>
  133. <td>
  134. <div class="cell tc">{$vo.score}{eyou:if condition="$vo.status eq 2"}[已返还]{/eyou:if}</div>
  135. </td>
  136. <td>
  137. <div class="cell tc">{$vo.add_time|MyDate="Y-m-d H:i",###}</div>
  138. </td>
  139. <td>
  140. <div class="cell tc">
  141. {eyou:if condition="$vo.status eq 1"}
  142. <span style="color: #67c23a">已发货</span>
  143. {elseif condition="$vo.status eq 2"}
  144. <span style="color: #F00">发货取消</span>
  145. {else /}
  146. <span style="color: #333">待发货</span>
  147. {/eyou:if}
  148. </div>
  149. </td>
  150. </tr>
  151. {/eyou:volist}
  152. {/eyou:empty}
  153. </tbody>
  154. </table>
  155. </div>
  156. {$page}
  157. {eyou:if condition="!empty($pager->totalRows)"}
  158. <div class="fytotal">共{$pager->totalRows}条记录</div>
  159. {/eyou:if}
  160. </div>
  161. </div>
  162. </div>
  163. <!-- 中部结束 -->
  164. </div>
  165. </div>
  166. </div>
  167. <script>
  168. function changeGift(n) {
  169. if (1 == n){
  170. $('#a_changeGift1').addClass('active');
  171. $('#a_changeGift2').removeClass('active');
  172. $('.pro-list').show();
  173. $('.ey-con-inside').hide();
  174. } else{
  175. $('#a_changeGift2').addClass('active');
  176. $('#a_changeGift1').removeClass('active');
  177. $('.pro-list').hide();
  178. $('.ey-con-inside').show();
  179. }
  180. }
  181. //兑换实物
  182. function jumpInfo(obj){
  183. var url = $(obj).data('url');
  184. var index = layer.open({
  185. type: 2,
  186. id: 'iframe_goinfo',
  187. title: '填写收货信息',
  188. fixed: true, //不固定
  189. shadeClose: false,
  190. shade: [0.3,'#000'],
  191. maxmin: false, //开启最大化最小化按钮
  192. closeBtn: 1,
  193. area: ['388px','288px'],
  194. content: url
  195. });
  196. }
  197. //打开详情页
  198. function goDetail(obj) {
  199. //iframe窗
  200. var url = $(obj).data('url');
  201. var index = layer.open({
  202. type: 2,
  203. id: 'iframe_goDetail',
  204. title: '商品详情',
  205. fixed: true, //不固定
  206. shadeClose: false,
  207. shade: [0.3, '#000'],
  208. maxmin: false, //开启最大化最小化按钮
  209. closeBtn: 1,
  210. area: ['700px', '99%'],
  211. content: url,
  212. });
  213. }
  214. //兑换会员
  215. function jumpVip(obj) {
  216. var url = $(obj).data('url');
  217. layer.confirm('确定要兑换商品?', {
  218. title: false,
  219. closeBtn: false
  220. }, function() {
  221. $.ajax({
  222. url: url,
  223. type: 'POST',
  224. dataType: 'JSON',
  225. data: {
  226. long: 0
  227. },
  228. success: function(res) {
  229. if (1 == res.code) {
  230. layer.msg(res.msg, {
  231. icon: 1,
  232. time: 1000
  233. }, function() {
  234. window.location.reload();
  235. });
  236. } else if (res.code == 2) {
  237. layer.confirm(res.msg, {
  238. btn: ['继续兑换', '取消'] //按钮
  239. }, function() {
  240. $.ajax({
  241. url: url,
  242. type: 'POST',
  243. dataType: 'JSON',
  244. data: {
  245. long: 1
  246. },
  247. success: function(res) {
  248. if (1 == res.code) {
  249. layer.msg(res.msg, {
  250. icon: 1,
  251. time: 1000
  252. }, function() {
  253. window.location.reload();
  254. });
  255. } else {
  256. layer.msg(res.msg, {
  257. icon: 2,
  258. time: 2000
  259. });
  260. }
  261. },
  262. error: function(e) {
  263. layer.closeAll();
  264. layer.alert(e.responseText, {
  265. icon: 5,
  266. title: false
  267. });
  268. }
  269. })
  270. });
  271. } else {
  272. layer.msg(res.msg, {
  273. icon: 2,
  274. time: 2000
  275. });
  276. }
  277. },
  278. error: function(e) {
  279. layer.closeAll();
  280. layer.alert(e.responseText, {
  281. icon: 5,
  282. title: false
  283. });
  284. }
  285. })
  286. }, function(index) {
  287. layer.closeAll(index);
  288. });
  289. }
  290. </script>
  291. {eyou:include file="users/users_footer.htm" /}