component-sanzhizhou 1.0.16 → 1.0.18

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/pay/qr.js CHANGED
@@ -9,6 +9,7 @@ import CallMiniUrl from "../lib/call-mini-url";
9
9
  import formatMessage from "../lib/formatMessage";
10
10
  import * as WechatMinAppController from "../service/api/WechatMinAppController";
11
11
  import { getApiEnv } from "../lib/getApiUrl";
12
+ import getLocalUserInfo from "../lib/getLocalUserInfo";
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
15
  // type QrDict = Record<Global.Env, string>;
@@ -58,7 +59,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
58
59
  var _useRequest = useRequest(function () {
59
60
  return WechatMinAppController.getUrlLink({
60
61
  pagePath: 'pages/recharge/index',
61
- pathQuery: "moneyAmount=".concat(moneyAmount),
62
+ pathQuery: "moneyAmount=".concat(moneyAmount, "&userToken=").concat(getLocalUserInfo().sid || '', "&productKind=recharge"),
62
63
  envVersion: getApiEnv() === 'local' ? "develop" : 'release'
63
64
  }, {
64
65
  env: env
@@ -8,6 +8,7 @@ interface Props {
8
8
  size?: number;
9
9
  defaultPrice?: number;
10
10
  minPrice?: number;
11
+ precision?: number;
11
12
  maxPrice?: number;
12
13
  onHandSuccess: () => void;
13
14
  env?: Global.Env;
@@ -54,6 +54,8 @@ var PayRecharge = function PayRecharge(_ref) {
54
54
  nickName = _ref.nickName,
55
55
  _ref$minPrice = _ref.minPrice,
56
56
  minPrice = _ref$minPrice === void 0 ? 1 : _ref$minPrice,
57
+ _ref$precision = _ref.precision,
58
+ precision = _ref$precision === void 0 ? 2 : _ref$precision,
57
59
  allowPayChannelList = _ref.allowPayChannelList,
58
60
  _ref$productKind = _ref.productKind,
59
61
  productKind = _ref$productKind === void 0 ? 'recharge' : _ref$productKind,
@@ -172,7 +174,7 @@ var PayRecharge = function PayRecharge(_ref) {
172
174
  rechargeRuleList: rechargeRuleList
173
175
  }),
174
176
  className: "ssz-recharge-form-moneyAmount-input",
175
- precision: 0,
177
+ precision: precision,
176
178
  min: minPrice,
177
179
  max: maxPrice,
178
180
  placeholder: formatMessage('请输入'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",