Authored by zhangxiaoru

address

... ... @@ -14187,7 +14187,9 @@ var $invoice = $('.invoice'),
total,
isTickets = $('#ticketsPage').val(),
productSku = $('#productSku').val(),
buyNumber = $('#buyNumber').val();
buyNumber = $('#buyNumber').val(),
headerTop = $("#yoho-header").outerHeight(),
addressTop = $(".address-wrap").outerHeight();
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
var invoiceCont = {
... ... @@ -14346,6 +14348,7 @@ function orderCompute() {
yohoCoin: yohoCoin,
skuList: isLimitGood() ? orderInfo('skuList') : undefined
};
//门票
if (isTickets) {
data = {
... ... @@ -14574,6 +14577,7 @@ $('.bill a').on('touchstart', function() {
if (isTickets) {
ticketsConfirm();
return ;
}
orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id'));
orderInfo('paymentType', $('.payment-type .icon-cb-radio').data('id'));
... ... @@ -14593,6 +14597,7 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
orderCompute();
}
//电子票下单
function ticketsConfirm () {
... ... @@ -14600,6 +14605,7 @@ function ticketsConfirm () {
tip.show('手机号必填');
return;
}
var data = {
productSku: productSku,
buyNumber: buyNumber,
... ... @@ -14613,6 +14619,7 @@ function ticketsConfirm () {
dataType: 'json',
data: data,
success: function(ticket) {
//下单成功调整支付页面
if (ticket.code === 200) {
window.location.href = '/home/orders/pay?order_code=' + ticket.data.order_code
... ... @@ -14637,6 +14644,16 @@ $ticketsMobile.blur(function function_name (e) {
})
// 初始化发票信息内容
invoiceInit();
$(window).scroll(function() {
if ($(this).scrollTop() >= (headerTop + addressTop)) {
$('.address-bottom').show();
} else {
$('.address-bottom').hide();
}
});
});
define("js/cart/order-info", ["jquery","hammer"], function(require, exports, module){
/**
... ... @@ -15074,7 +15091,7 @@ var $confim = $('.confim-mask'),
require("js/common");
$('.address-item').on('touchend', function() {
$('.address-item').on('click', function() {
var $this = $(this);
var addressId = $this.data('address-id');
var address = {
... ... @@ -15088,14 +15105,15 @@ $('.address-item').on('touchend', function() {
orderInfo('addressId', addressId);
orderInfo('address', address);
window.location.href = $this.data('href') + (orderInfo('limitUrlSufix') || '');
}).on('touchend', '.edit', function() {
}).on('click', '.edit', function() {
window.location.href = $(this).data('href');
return false;
}).on('touchstart', '.del', function() {
}).on('click', '.del', function() {
deleteId = $(this).data('id');
});
$confim.on('touchend', '.confim', function() {
$confim.on('click', '.confim', function() {
if (orderInfo('addressId') === deleteId) {
orderInfo('addressId', null);
orderInfo('address', null);
... ...
This diff could not be displayed because it is too large.

24.7 KB | W: | H:

19.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin