...
|
...
|
@@ -303,6 +303,9 @@ deliveryWay = { |
|
|
unsupport: $this.parent().hasClass('unsp-way')
|
|
|
};
|
|
|
|
|
|
// 设置默认支持状态
|
|
|
that.deliveryType[data.id].defaultSupport = !that.deliveryType[data.id].unsupport;
|
|
|
|
|
|
// 更新订单配送方式数据
|
|
|
if ($this.hasClass('checked')) {
|
|
|
that.updateOrder({way: data.id});
|
...
|
...
|
@@ -370,7 +373,7 @@ deliveryWay = { |
|
|
|
|
|
dt = this.deliveryType[id];
|
|
|
|
|
|
if (support && !dt.unsupport) {
|
|
|
if (support && dt.defaultSupport) {
|
|
|
dt.dom.parent().removeClass('unsp-way');
|
|
|
dt.unsupport = false;
|
|
|
} else {
|
...
|
...
|
|