...
|
...
|
@@ -3,6 +3,8 @@ var confirmReceive = require('./order/confirm-receive'); |
|
|
var editOrder = require('./order/edit-order');
|
|
|
var countDown = require('./order/countdown');
|
|
|
|
|
|
var Confirm = require('../plugins/dialog').Confirm;
|
|
|
|
|
|
var lazyLoad = require('yoho-jquery-lazyload');
|
|
|
|
|
|
// 个人中心共用代码加载
|
...
|
...
|
@@ -32,6 +34,8 @@ $('.order .edit-btn').on('click', function() { |
|
|
var mobile = $userInfo.find('.user-mo-sel').data('mobile');
|
|
|
var phone = $userInfo.find('.user-ph-sel').data('phone');
|
|
|
|
|
|
$this.removeClass('white'); // 我不知道为啥产品会有这样的需求,点一次按钮后颜色变掉,按钮颜色和可不可点状态一毛钱关系都没
|
|
|
|
|
|
editOrder.start({
|
|
|
data: {
|
|
|
orderCode: code,
|
...
|
...
|
@@ -47,8 +51,12 @@ $('.order .edit-btn').on('click', function() { |
|
|
$('.complete-btn').on('click', function() {
|
|
|
var code = $(this).closest('.order').data('code');
|
|
|
|
|
|
confirmReceive.done(code);
|
|
|
|
|
|
new Confirm({
|
|
|
content: '<h1 class="title">确认收货</h1><p>您确定要确认收货么?</p>',
|
|
|
cb: function() {
|
|
|
confirmReceive.done(code);
|
|
|
}
|
|
|
}).show();
|
|
|
});
|
|
|
|
|
|
if ($('.left-time').length) {
|
...
|
...
|
|