tplus-components-touch 3.39.4 → 3.39.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -522,6 +522,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
522
522
|
|
|
523
523
|
_this2.settleZero = function () {
|
|
524
524
|
var that = _this2;
|
|
525
|
+
//预售取货无需支付时省略弹框确认这一步
|
|
526
|
+
var IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
|
|
527
|
+
if (IdbusiType == 39) {
|
|
528
|
+
that.handleSettle("zero");
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
525
531
|
_modalWraper2.default.confirm({
|
|
526
532
|
className: 'tplus-confirm-modal',
|
|
527
533
|
title: '结算',
|
|
@@ -1910,6 +1916,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1910
1916
|
message = "退货成功";
|
|
1911
1917
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
|
1912
1918
|
message = "兑换成功";
|
|
1919
|
+
} else if (IdbusiType == 39 && received == 0) {
|
|
1920
|
+
message = "取货成功";
|
|
1913
1921
|
}
|
|
1914
1922
|
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, IdbusiType, isFull, function () {
|
|
1915
1923
|
_this.handleGuestShow(5);
|
|
@@ -3953,7 +3961,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3953
3961
|
{ key: 'settle', className: (0, _classnames4.default)({ "settle": true, "settle2": type == 1, "settleStorage": true, 'primary-btn': true }), onClick: function onClick() {
|
|
3954
3962
|
_this8.btnDebounced();
|
|
3955
3963
|
}, disabled: productsIsEmpty },
|
|
3956
|
-
this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : settle.name
|
|
3964
|
+
this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : IdbusiType == 39 && _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount == 0 ? '取货' : settle.name
|
|
3957
3965
|
)
|
|
3958
3966
|
),
|
|
3959
3967
|
!newStyle && _react2.default.createElement(
|