Authored by 梁志锋

提交gulp ge 文件

... ... @@ -9065,8 +9065,6 @@ var $ = require("jquery"),
var dialog = require("js/me/dialog"),
tip = require("js/plugin/tip");
// orderInfo = require('./order-info').orderInfo;
var $selectAllBtn = $('.balance .checkbox'),
requesting = false;
... ... @@ -9160,9 +9158,7 @@ $('.icon-del').on('touchstart', function(e) {
autoHide: true,
fast: true
});
// orderInfo('couponCode', null);
// orderInfo('couponName', null);
window.setCookie('order-info', '');
window.setCookie('_yoho-cart-refreshByDelete', true);
window.location.href = '/cart/index/index?cartType=' + $('#cartType').val();
} else {
... ... @@ -9427,7 +9423,11 @@ $('.invoice').on('touchend', '.checkbox', function() {
}
});
function orderCompute() {
function orderCompute(firstEnter) {
var yohoCoin = orderInfo('yohoCoin');
if (firstEnter) {
yohoCoin = 0;
}
$.ajax({
method: 'POST',
url: '/cart/index/orderCompute',
... ... @@ -9436,7 +9436,7 @@ function orderCompute() {
deliveryId: orderInfo('deliveryId'),
paymentTypeId: orderInfo('paymentTypeId'),
couponCode: orderInfo('couponCode'),
yohoCoin: orderInfo('yohoCoin')
yohoCoin: yohoCoin
}
}).then(function(res) {
var priceHtml;
... ... @@ -9466,7 +9466,7 @@ function orderCompute() {
}
// 进入页面计算一次价格
orderCompute();
//orderCompute(1);
function submitOrder() {
var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
... ...
This diff could not be displayed because it is too large.