tplus-components-touch 3.22.4 → 3.22.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.
@@ -1274,8 +1274,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1274
1274
  // return ;
1275
1275
  // }
1276
1276
  _this2.store.checkCoupon(v).then(function () {
1277
- _this2.inputdjq.input.value = '';
1278
1277
  _this2.inputdjq.input.focus();
1278
+ }).finally(function () {
1279
+ setTimeout(function () {
1280
+ _this2.inputdjq.input.value = '';
1281
+ var ele = document.getElementById('djqInput');
1282
+ ele.value = '';
1283
+ }, 100);
1279
1284
  });
1280
1285
  };
1281
1286
 
@@ -4884,6 +4889,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4884
4889
  visible: this.state.djqVisible,
4885
4890
  maskClosable: false,
4886
4891
  onOk: this.handleDjqOk,
4892
+ destroyOnClose: true,
4887
4893
  onCancel: this.handleDjqCancel,
4888
4894
  centered: !this.isHorizontalPad ? true : false,
4889
4895
  title: Differentiate.COUPON + '支付',
@@ -4923,7 +4929,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4923
4929
  _react2.default.createElement(_input2.default, {
4924
4930
  type: 'text',
4925
4931
  placeholder: '\u626B\u63CF/\u8F93\u5165' + Differentiate.COUPON + '\u53F7\u5E76\u56DE\u8F66',
4926
- className: 'input'
4932
+ className: 'input',
4933
+ id: 'djqInput'
4927
4934
  // onChange={this.onDjqChange}
4928
4935
  // value={currentMode && currentMode.member.cardNo}
4929
4936
  , ref: function ref(input) {
@@ -4942,7 +4949,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4942
4949
  }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
4943
4950
  },
4944
4951
  onBlur: function onBlur(e) {
4945
- _keyboard2.default.close();
4952
+ _keyboard2.default.close();_this8.inputdjq.input.value = '';
4946
4953
  }
4947
4954
  })
4948
4955
  ),