component-sanzhizhou 1.2.13 → 1.3.0
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.
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/pay/recharge-moneyAmount-alt.less +1 -0
- package/dist/pay/recharge-rule.d.ts +1 -0
- package/dist/pay/recharge-rule.js +6 -2
- package/dist/pay/recharge.css.js +1 -1
- package/dist/pay/recharge.js +10 -7
- package/dist/types/RechargeRule.d.ts +1 -0
- package/package.json +1 -1
package/dist/lib/Tool.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
|
162
162
|
getTitleByPath(path: string): string;
|
|
163
163
|
getDirByPath(path: string): string;
|
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
|
165
|
-
notification(type: "
|
|
165
|
+
notification(type: "info" | "warning" | "error" | "success", message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
|
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
|
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
|
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
|
|
@@ -12,16 +12,20 @@ var RechargeRule = function RechargeRule(_ref) {
|
|
|
12
12
|
var formItemSpan = _ref.formItemSpan,
|
|
13
13
|
env = _ref.env,
|
|
14
14
|
money = _ref.money,
|
|
15
|
-
onList = _ref.onList
|
|
15
|
+
onList = _ref.onList,
|
|
16
|
+
balanceType = _ref.balanceType;
|
|
16
17
|
var _useState = useState([]),
|
|
17
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
19
|
listData = _useState2[0],
|
|
19
20
|
setListData = _useState2[1];
|
|
20
21
|
var _useRequest = useRequest(function () {
|
|
21
|
-
return RechargeRuleController.list({
|
|
22
|
+
return RechargeRuleController.list({
|
|
23
|
+
balanceType: balanceType
|
|
24
|
+
}, {
|
|
22
25
|
env: env
|
|
23
26
|
});
|
|
24
27
|
}, {
|
|
28
|
+
refreshDeps: [balanceType],
|
|
25
29
|
onSuccess: function onSuccess(result) {
|
|
26
30
|
result.sort(function (a, b) {
|
|
27
31
|
return a.rechargeMoney - b.rechargeMoney;
|
package/dist/pay/recharge.css.js
CHANGED
|
@@ -3,5 +3,5 @@ export default {
|
|
|
3
3
|
PayRecharge: styled.div.withConfig({
|
|
4
4
|
displayName: "PayRecharge",
|
|
5
5
|
componentId: "component-sanzhizhou__sc-1np6liz-0"
|
|
6
|
-
})([".ssz-recharge-form-moneyAmount-input{input{
|
|
6
|
+
})([".ssz-recharge-form-moneyAmount-input{input{}}.ssz-groupItems{padding:0 0 12px 0;}.ssz-submits{display:flex;flex-direction:row;justify-content:space-between;padding:0 0 18px;}.ssz-groupTitle{font-size:14px;color:#777;font-weight:300;padding:0 0 3px 0;}.ant-radio-wrapper-disabled{.ssz-color-tag{opacity:0.4;-webkit-filter:grayscale(100%);filter:grayscale(100%);}}"])
|
|
7
7
|
};
|
package/dist/pay/recharge.js
CHANGED
|
@@ -12,7 +12,6 @@ import notification from "../lib/notification";
|
|
|
12
12
|
import sleep from "../lib/sleep";
|
|
13
13
|
import formatMessage from "../lib/formatMessage";
|
|
14
14
|
import RechargeRule from "./recharge-rule";
|
|
15
|
-
import PayRechargeMoneyAmountAlt from "./recharge-moneyAmount-alt";
|
|
16
15
|
import PayChannelList from "./payChannelList";
|
|
17
16
|
var BaseDict = {
|
|
18
17
|
productKind: {
|
|
@@ -138,13 +137,16 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
138
137
|
}],
|
|
139
138
|
extra: /*#__PURE__*/React.createElement("small", null, formatMessage('充值'), "\uFF1A", formatMessage('最低'), " ", /*#__PURE__*/React.createElement("strong", null, " ", minPrice), /*#__PURE__*/React.createElement("small", null, " ", formatMessage('元')), "\uFF0C", formatMessage('最大'), " ", /*#__PURE__*/React.createElement("strong", null, " ", maxPrice), /*#__PURE__*/React.createElement("small", null, " ", formatMessage('元')))
|
|
140
139
|
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
141
|
-
prefix: /*#__PURE__*/React.createElement(React.Fragment, null, "\xA5")
|
|
142
|
-
suffix
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
140
|
+
prefix: /*#__PURE__*/React.createElement(React.Fragment, null, "\xA5")
|
|
141
|
+
// suffix={(
|
|
142
|
+
// <PayRechargeMoneyAmountAlt
|
|
143
|
+
// moneyAmount={ formData.moneyAmount }
|
|
144
|
+
// rechargeRuleList={ rechargeRuleList }
|
|
145
|
+
// />
|
|
146
|
+
// )}
|
|
147
|
+
,
|
|
146
148
|
style: {
|
|
147
|
-
|
|
149
|
+
minWidth: 150
|
|
148
150
|
},
|
|
149
151
|
className: "ssz-recharge-form-moneyAmount-input",
|
|
150
152
|
precision: precision,
|
|
@@ -189,6 +191,7 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
189
191
|
formItemSpan: FormItemSpan,
|
|
190
192
|
env: env,
|
|
191
193
|
money: formData.moneyAmount,
|
|
194
|
+
balanceType: formData.balanceType,
|
|
192
195
|
onList: function onList(list) {
|
|
193
196
|
return setRechargeRuleList(_toConsumableArray(list));
|
|
194
197
|
}
|