@33cn/game-cashier-react
Advanced tools
Comparing version 1.10.2 to 1.10.3
@@ -201,3 +201,3 @@ import * as tslib_1 from "tslib"; | ||
React.createElement("p", { className: "tip" }, this.props.address)), | ||
rwState.step === RWStep.unStart ? | ||
rwState.step !== RWStep.unStart ? | ||
React.createElement(React.Fragment, null, | ||
@@ -219,10 +219,26 @@ React.createElement("div", { className: "recharge-count" }, | ||
React.createElement(Button, { className: "btn-blue", loading: this.state.loading, onClick: this.submit }, actionName)) : | ||
React.createElement("div", { className: "process-box clearfix" }, | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 1), onClick: this.onCircleClick(1) }, "1"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 2) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 3), onClick: this.onCircleClick(2) }, "2"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 4) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 5), onClick: this.onCircleClick(3) }, "3"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 6) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 7) }, "4")))); | ||
React.createElement(React.Fragment, null, | ||
React.createElement("p", { className: "process-title" }, | ||
"\u5168\u90E8\u5B8C\u6210\u624D\u662F", | ||
actionName, | ||
"\u5B8C\u6210"), | ||
React.createElement("div", { className: "process-box clearfix" }, | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 1), onClick: this.onCircleClick(1) }, "1"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 2) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 3), onClick: this.onCircleClick(2) }, "2"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 4) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 5), onClick: this.onCircleClick(3) }, "3"), | ||
React.createElement("div", { className: "line " + calcProcessClass(rwState.step, 6) }), | ||
React.createElement("div", { className: "circle " + calcProcessClass(rwState.step, 7) }, "4")), | ||
React.createElement("div", { className: "process-box clearfix" }, | ||
React.createElement("div", { className: "text" }, "\u6784\u9020"), | ||
React.createElement("div", { className: "space" }), | ||
React.createElement("div", { className: "text" }, "\u6253\u5305"), | ||
React.createElement("div", { className: "space" }), | ||
React.createElement("div", { className: "text" }, "\u5171\u8BC6"), | ||
React.createElement("div", { className: "space" }), | ||
React.createElement("div", { className: "text" }, | ||
actionName, | ||
"\u6210\u529F"), | ||
React.createElement("div", { className: "space" }))))); | ||
}; | ||
@@ -245,6 +261,13 @@ Recharge.prototype.onInputChange = function (e) { | ||
} | ||
if (!/^\d+(\.\d{0,8})?$/.test(this.state.amount)) { | ||
/* if (!/^\d+(\.\d{0,8})?$/.test(this.state.amount)) { | ||
notification.warning({ | ||
message: '最大小数位数为8位', | ||
duration: 1 | ||
}) | ||
return | ||
} */ | ||
if (this.state.amount.indexOf('.') !== -1) { | ||
notification.warning({ | ||
message: '只能输入整数', | ||
duration: 1 | ||
}); | ||
@@ -251,0 +274,0 @@ return [2 /*return*/]; |
{ | ||
"name": "@33cn/game-cashier-react", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"main": "lib/Cashier.js", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
542439
2911