...
|
...
|
@@ -22,8 +22,15 @@ var orderId = $('#order-detail').data('id'), |
|
|
optHammer,
|
|
|
$createTime = new Date($('.createTime').text() * 1000);
|
|
|
|
|
|
var $sureClose = $('#sureClose'); // 确定删除订单
|
|
|
var $sureRefund = $('#sureRefund'); // 确定申请退款
|
|
|
var $disMissBtn = $('.dis-miss-btn'); // 返回
|
|
|
|
|
|
|
|
|
require('home/order-detail-index.page.css');
|
|
|
require('../common');
|
|
|
require('../plugin/modal.alert');
|
|
|
require('../../scss/layout/_modal.css');
|
|
|
|
|
|
lazyLoad({
|
|
|
try_again_css: 'order-failure'
|
...
|
...
|
@@ -117,9 +124,9 @@ optHammer.on('tap', function(e) { |
|
|
});
|
|
|
});
|
|
|
} else if ($cur.hasClass('btn-cancel')) {
|
|
|
$reaMask.css('visibility', 'visible');
|
|
|
// $reaMask.css('visibility', 'visible');
|
|
|
} else if ($cur.hasClass('btn-refund')) {
|
|
|
$refundReaMask.css('visibility', 'visible');
|
|
|
// $refundReaMask.css('visibility', 'visible');
|
|
|
|
|
|
/**
|
|
|
* 埋点
|
...
|
...
|
@@ -238,6 +245,9 @@ $(function() { |
|
|
});
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 取消订单
|
|
|
*/
|
|
|
$reaMask.find('.box-cmp').on('touchend', function() {
|
|
|
var selSolid = reasonSwiper.slides[reasonSwiper.activeIndex],
|
|
|
reason = $(selSolid).text(),
|
...
|
...
|
@@ -308,7 +318,7 @@ $reaMask.on('touchend', function(event) { |
|
|
|
|
|
// 申请退款
|
|
|
$refundReaMask.on('touchend', function(event) {
|
|
|
if (event.target.className !== 'reason-mask') {
|
|
|
if (event.target.className !== 'refund-reason-mask') {
|
|
|
return false;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -316,6 +326,19 @@ $refundReaMask.on('touchend', function(event) { |
|
|
event.stopPropagation();
|
|
|
});
|
|
|
|
|
|
|
|
|
// 弹出取消订单提示框
|
|
|
$sureClose.on('click', function() {
|
|
|
$disMissBtn.trigger('click');
|
|
|
$reaMask.css('visibility', 'visible');
|
|
|
});
|
|
|
|
|
|
// 弹出申请退款提示框
|
|
|
$sureRefund.on('click', function() {
|
|
|
$disMissBtn.trigger('click');
|
|
|
$refundReaMask.css('visibility', 'visible');
|
|
|
});
|
|
|
|
|
|
function formatDate(objD) {
|
|
|
var str,
|
|
|
yy = objD.getYear(),
|
...
|
...
|
|