123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>积分商品详情-{eyou:global name='web_name' /}</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
- <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
- {eyou:static file="users/skin/css/basic.css"/}
- {eyou:static file="users/skin/css/eyoucms.css"/}
- <!-- 新样式 2020-11-25 -->
- {eyou:static file="users/skin/css/element/index.css" /}
- {eyou:static file="users/skin/css/e-user.css" /}
- {eyou:include file="users/skin/css/diy_css.htm"/}
-
- {eyou:static file="/public/static/common/js/jquery.min.js"/}
- {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
- {eyou:static file="/public/static/common/js/tag_global.js"/}
- {eyou:static file="/public/static/common/js/mobile_global.js"/}
-
- </head>
-
- <body class="centre">
- <!-- 头部信息 -->
- <div class="ey-header-status">
- <div class="header-status-l">
- <a href="javascript:history.go(-1)"><i class="el-icon-arrow-left"></i></a>
- </div>
- <div class="header-status-m">商品详情</div>
- <div class="header-status-r">
- <a href="{eyou:url link='user/Users/index' /}"><i class="el-icon-user"></i></a>
- </div>
- </div>
- <!-- 头部信息结束 -->
- <div class="h50"></div>
-
- <div class="ey-container gift_detail">
- <div class="ey-con">
- <div class="ey-row">
- <!-- 中部 -->
- <div class="b_img"><img src="{$field.litpic}" ></div>
- <div class="b_div mt20">
- <div class="flex-content">
- <div class="flex-title">名称:</div>
- <div class="flex-val">{$field.giftname}</div>
- </div>
- <div class="flex-content">
- <div class="flex-title">类型:</div>
- <div class="flex-val">
- {eyou:if condition="$field.type eq -1"}
- 实物
- {else /}
- 虚拟
- {/eyou:if}
- </div>
- </div>
- <div class="flex-content">
- <div class="flex-title">库存:</div>
- <div class="flex-val">{$field.stock}</div>
- </div>
- <div class="flex-content">
- <div class="flex-title">价格:</div>
- <div class="flex-val" style="color: #fe690f;">
- {$field.score}{$score_name}
- </div>
- </div>
- <div style="margin: 0 auto;">
- {eyou:if condition="$field.score elt $users.scores"}
- {eq name='$field.type' value='-1'}
- <a href="javascript:void(0)" class="okgo" data-url="{:url('user/Memgift/users_gift_shiwu',['gift_id'=>$field.gift_id])}" onclick="jumpInfo(this)">立即兑换</a>
- {else/}
- <a href="javascript:void(0)" class="okgo" data-url="{:url('user/Memgift/users_gift_vip',['gift_id'=>$field.gift_id])}" onclick="jumpVip(this)">立即兑换</a>
- {/eq}
- {else /}
- <a class="okgo nones">{$score_name}不足</a>
- {/eyou:if}
-
- </div>
- </div>
-
- <!-- END -->
- </div>
- </div>
- <div class="giftcontent">
- {$field.content|htmlspecialchars_decode}
- </div>
- </div>
- <script type="text/javascript">
- //兑换实物
- function jumpInfo(obj){
- var url = $(obj).data('url');
- var index = layer.open({
- type: 2,
- id: 'iframe_goinfo',
- title: '填写快递信息',
- fixed: true, //不固定
- shadeClose: false,
- shade: [0.3,'#000'],
- maxmin: false, //开启最大化最小化按钮
- closeBtn: 1,
- area: ['388px','288px'],
- content: url
- });
- }
- //兑换会员
- function jumpVip(obj) {
- var url = $(obj).data('url');
- layer.confirm('确定要兑换商品?', {
- skin: 'xin-demo-btn',
- title: false,
- closeBtn: 0,
- shadeClose: true
- }, function() {
- $.ajax({
- url: url,
- type: 'POST',
- dataType: 'JSON',
- data: {
- long: 0
- },
- success: function(res) {
- if (1 == res.code) {
- layer.msg(res.msg, {
- icon: 1,
- time: 1000
- }, function() {
- location.href = res.url;
- });
- } else if (res.code == 2) {
- layer.confirm(res.msg, {
- btn: ['继续兑换', '取消'] //按钮
- }, function() {
- $.ajax({
- url: url,
- type: 'POST',
- dataType: 'JSON',
- data: {
- long: 1
- },
- success: function(res) {
- if (1 == res.code) {
- layer.msg(res.msg, {
- icon: 1,
- time: 1000
- }, function() {
- location.href = res.url;
- });
- } else {
- layer.msg(res.msg, {
- icon: 2,
- time: 2000
- });
- }
- },
- error: function(e) {
- layer.closeAll();
- layer.alert(e.responseText, {
- icon: 5,
- title: false
- });
- }
- })
- });
- } else {
- layer.msg(res.msg, {
- icon: 2,
- time: 2000
- });
- }
- },
- error: function(e) {
- layer.closeAll();
- layer.alert(e.responseText, {
- icon: 5,
- title: false
- });
- }
- })
- }, function(index) {
- layer.closeAll(index);
- });
- }
- </script>
- <!-- END -->
|