www.lightcourse.com/app/home/view/default/member/buy/buy_step1.html

168 lines
5.4 KiB
HTML

{include file="default/base/mall_top" /}
<link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
<script type="text/javascript" src="{$Think.HTTP_TYPE}api.map.baidu.com/api?v=2.0&ak=eKM1pFXWESB0jDtZ7PMQH13Uykyqb48e"></script>
<style>
#order_form {
padding: 5rem 0;
}
#order_form *{
box-sizing: content-box;
}
#order_form .tr{
text-align: right !important;
}
.dsc-receipt-info-title a{
color: #3b52f6;
}
.dsc-receipt-info.current_box{
border-color: #3b52f6;
}
a.dsc-btn-red,a.dsc-btn-acidblue{
background-color: #3b52f6 !important;
color: #fff !important;
border: none;
}
.dsc-main{
margin-bottom: 3rem;
}
.dsc-table-style{
border: none;
}
.dsc-main tbody tr:last-of-type{
display: none;
}
.dsc-title{
height: auto;
border-top: none;
margin-bottom: 3rem;
}
.dsc-receipt-info{
padding: 0;
border: none;
}
.dsc-receipt-info-title h3, .dsc-receipt-info-title a{
font-size: 1rem;
font-family: "robotoMedium";
}
#paymentCon{
display: none;
}
@media screen and (max-width:768px){
#order_form .dsc-main{
width: 100%;
padding-left: 2%;
padding-right: 2%;
box-sizing: border-box;
}
.dsc-title h3{
font-size: 1rem;
font-family: "puhuiti-2-85";
}
}
#order_form h3{
font-size: 1.3rem!important;
}
.dsc-all-account{
font-size: 0.9rem!important;
}
.dsc-bottom{
font-size: 0.9rem!important;
}
</style>
<form method="post" id="order_form" name="order_form" action="/Buy/buy_step2">
{include file="default/member/buy/buy_fcode" /}
<div class="dsc-main">
<div class="dsc-title">
<h2>Confirm An Order</h2>
<h3>Please Check The Order Information Carefully</h3>
</div>
{include file="default/member/buy/buy_payment" /}
{include file="default/member/buy/buy_goods_list" /}
{include file="default/member/buy/buy_amount" /}
<!-- 订单来源1为PC 2为手机 -->
<input value="1" type="hidden" name="order_from">
<!-- 来源于购物车标志 -->
<input value="{$ifcart}" type="hidden" name="ifcart">
<!-- offline/online -->
<input value="online" name="pay_name" id="pay_name" type="hidden">
<!-- 是否保存增值税发票判断标志 -->
<input value="{$vat_hash}" name="vat_hash" type="hidden">
<!-- 收货地址ID -->
<input value="{$address_info.address_id}" name="address_id" id="address_id" type="hidden">
<!-- 城市ID(运费) -->
<input value="" name="buy_city_id" id="buy_city_id" type="hidden">
<!-- 记录所选地区是否支持货到付款 第一个前端JS判断 第二个后端PHP判断 -->
<input value="" id="allow_offpay" name="allow_offpay" type="hidden">
<input value="" id="allow_offpay_batch" name="allow_offpay_batch" type="hidden">
<input value="" id="offpay_hash" name="offpay_hash" type="hidden">
<input value="" id="offpay_hash_batch" name="offpay_hash_batch" type="hidden">
<input value="{present name='inv_info.invoice_id'}{$inv_info.invoice_id}{/present}" name="invoice_id" id="invoice_id" type="hidden">
</div>
</form>
<script>
var SUBMIT_FORM = true;
//计算总运费小计
function calcOrder() {
var allTotal = 0;
$('em[ds_type="eachStoreTotal"]').each(function(){
var eachTotal = 0;
if ($('#eachFreight_').length > 0) {
eachTotal += parseFloat($('#eachFreight_').html());
}
if ($('#eachGoodsTotal_').length > 0) {
eachTotal += parseFloat($('#eachGoodsTotal_').html());
}
if ($('#eachManSong_').length > 0) {
eachTotal += parseFloat($('#eachManSong_').html());
}
if ($('#eachVoucher_').length > 0) {
eachTotal += parseFloat($('#eachVoucher_').html());
}
$(this).html(number_format(eachTotal,2));
allTotal += eachTotal;
});
$('#orderTotal').html(number_format(allTotal,2));
}
$(function(){
$.ajaxSetup({
async : false
});
$('select[dstype="voucher"]').on('change',function(){
if ($(this).val() == '') {
$('#eachVoucher_').html('-0.00');
} else {
var items = $(this).val().split('|');
$('#eachVoucher_').html('-'+number_format(items[1],2));
}
calcOrder();
});
});
function disableOtherEdit(showText) {
$('a[ds_type="buy_edit"]').each(function() {
if ($(this).css('display') != 'none') {
$(this).after('<font color="#B0B0B0">' + showText + '</font>');
$(this).hide();
}
});
disableSubmitOrder();
}
function ableOtherEdit() {
$('a[ds_type="buy_edit"]').show().next('font').remove();
ableSubmitOrder();
}
function ableSubmitOrder() {
$('#submitOrder').on('click', function() {
submitNext()
}).css('cursor', '').addClass('dsc-btn-acidblue');
}
function disableSubmitOrder() {
$('#submitOrder').unbind('click').css('cursor', 'not-allowed').removeClass('dsc-btn-acidblue');
}
</script>
{include file="default/base/mall_footer" /}