You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.5 KiB
HTML
100 lines
3.5 KiB
HTML
5 years ago
|
<extend name="Public/bases" />
|
||
|
<block name="css">
|
||
|
<link href="__CSS__/shop.css" rel="stylesheet" >
|
||
|
</block>
|
||
|
<block name="body">
|
||
|
<body class="shop-order-detail">
|
||
|
<header class="header">
|
||
|
<div class="">
|
||
|
<a href="{:U('Shop/shopdetail',array('id'=>I('id')))}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
||
|
<h1 class="caption">确认订单</h1>
|
||
|
</div>
|
||
|
</header>
|
||
|
<div class="occupy"></div>
|
||
|
<section class="trunker">
|
||
|
<section class="container shop-order-container">
|
||
|
<form id="form" action="{:U('Shop/shoporder')}" method="post">
|
||
|
<div class="base clearfix">
|
||
|
<span class="iconbox">
|
||
|
<img src="{$data['cover']}" class="icon" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
|
||
|
</span>
|
||
|
<!-- <div class="pic_shopdetail"> -->
|
||
|
<!-- <a class="za_icon"> -->
|
||
|
<!-- <notempty name="data.cover"> -->
|
||
|
<!-- <img src="{$data['cover']}" class="icon"> -->
|
||
|
<!-- </notempty> -->
|
||
|
<!-- <span class="dis_tab"> -->
|
||
|
<!-- <span class="dis_tabcell"> -->
|
||
|
<!-- <div>{:C(APP_NAME)}游戏</div> -->
|
||
|
<!-- </span> -->
|
||
|
<!-- </span> -->
|
||
|
<!-- </a> -->
|
||
|
<!-- </div> -->
|
||
|
<span class="text">
|
||
|
<div class="name">{$data['good_name']}</div>
|
||
|
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="address">
|
||
|
<empty name="address">
|
||
|
<div class="emptyaddr">
|
||
|
<p>您没有默认的收货地址(点击选择)</p>
|
||
|
<a href="{:U('Shop/useraddresslist',array('id'=>I('id'),'num'=>I('num')))}"><i class="iconfont icon-drop-right"></i></a>
|
||
|
</div>
|
||
|
<else/>
|
||
|
<div class="realaddr">
|
||
|
<p class="rd1">{$address['name']} {$address['phone']}</p>
|
||
|
<p class="rd2">{$address['city']} {$address['address']}</p>
|
||
|
<a href="{:U('Shop/useraddresslist',array('id'=>I('id'),'num'=>I('num')))}"><i class="iconfont icon-drop-right"></i></a>
|
||
|
</div>
|
||
|
</empty>
|
||
|
</div>
|
||
|
<div class="ordercomfirm table">
|
||
|
<span class="table-row">
|
||
|
<span class="table-cell">兑换数量</span>
|
||
|
<span class="table-cell shopordernumber">
|
||
|
<span>x{:I('num')}</span>
|
||
|
<input type="hidden" name="number" value="{:I('num')}">
|
||
|
</span>
|
||
|
</span>
|
||
|
<span class="table-row">
|
||
|
<span class="table-cell">积分消耗</span>
|
||
|
<span class="table-cell shoporderpice">
|
||
|
<input type="text" name="" id="useing" class="useing" value="{$data['price']}" readonly>
|
||
|
</span>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="btnbox">
|
||
|
<input type="hidden" name="good_id" value="{:I('id')}">
|
||
|
<input type="button" class="btn " value="确认兑换">
|
||
|
</div>
|
||
|
</form>
|
||
|
</section>
|
||
|
</section>
|
||
|
<div class="pop pop-dialog"></div>
|
||
|
<script src="__JS__/pop.lwx.min.js"></script>
|
||
|
<script>
|
||
|
$(function() {
|
||
|
var pop = $('.pop').pop();
|
||
|
$(".btn").click(function(){
|
||
|
$.ajax({
|
||
|
url:"{:U('Shop/shoporder')}",
|
||
|
type:"POST",
|
||
|
dataType:"json",
|
||
|
data:$("#form").serialize(),
|
||
|
success:function(result){
|
||
|
pop.msg(result.info);
|
||
|
if(result.status == 1){
|
||
|
setTimeout(function () {
|
||
|
window.location.href = result.url;
|
||
|
}, 2000);
|
||
|
}
|
||
|
},
|
||
|
error:function(){}
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
</block>
|
||
|
<block name="footer"></block>
|