component-sanzhizhou 1.0.9 → 1.0.10

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.
Files changed (58) hide show
  1. package/dist/AuthClient/login-reg.css.d.ts +1 -1
  2. package/dist/AuthClient/login-reg.css.js +4 -3
  3. package/dist/AuthClient/login.css.d.ts +1 -1
  4. package/dist/AuthClient/login.css.js +4 -3
  5. package/dist/AuthClient/qr/index.css.d.ts +4 -4
  6. package/dist/AuthClient/qr/index.css.js +16 -6
  7. package/dist/AuthClient/reg.js +1 -0
  8. package/dist/Buy/index.css.d.ts +1 -1
  9. package/dist/Buy/index.css.js +4 -3
  10. package/dist/Buy/qr.css.d.ts +1 -1
  11. package/dist/Buy/qr.css.js +4 -3
  12. package/dist/Buy/trial-member.css.d.ts +1 -1
  13. package/dist/Buy/trial-member.css.js +4 -3
  14. package/dist/Product/dict.js +0 -1
  15. package/dist/UI/DialogDrawer.css.d.ts +1 -1
  16. package/dist/UI/DialogDrawer.css.js +4 -3
  17. package/dist/UI/DialogDrawerFooter.css.d.ts +1 -1
  18. package/dist/UI/DialogDrawerFooter.css.js +4 -3
  19. package/dist/UI/FileSize.css.d.ts +1 -1
  20. package/dist/UI/FileSize.css.js +4 -3
  21. package/dist/UI/LayoutContent.js +0 -1
  22. package/dist/UI/LoadError.css.d.ts +1 -1
  23. package/dist/UI/LoadError.css.js +4 -3
  24. package/dist/UI/Money/index.css.d.ts +1 -1
  25. package/dist/UI/Money/index.css.js +4 -3
  26. package/dist/UI/PageContentWarp.js +0 -1
  27. package/dist/UI/duration.css.d.ts +1 -1
  28. package/dist/UI/duration.css.js +4 -3
  29. package/dist/VipList/index.css.d.ts +1 -1
  30. package/dist/VipList/index.css.js +4 -3
  31. package/dist/VipList/index.js +0 -1
  32. package/dist/component/folder-select.js +0 -1
  33. package/dist/component/is-installed-chrome.js +0 -1
  34. package/dist/component/media-kind.js +0 -1
  35. package/dist/lib/Tool.d.ts +2 -2
  36. package/dist/lib/Tool.js +1 -5
  37. package/dist/lib/allow-mine-type.js +0 -1
  38. package/dist/lib/call-mini-url.d.ts +1 -1
  39. package/dist/lib/call-mini-url.js +6 -6
  40. package/dist/lib/fs.js +0 -1
  41. package/dist/lib/make-mini-app-command.d.ts +1 -0
  42. package/dist/lib/make-mini-app-command.js +8 -0
  43. package/dist/lib/math.js +0 -2
  44. package/dist/lib/platform.js +0 -1
  45. package/dist/lib/request.js +0 -1
  46. package/dist/lib/save-path.js +0 -1
  47. package/dist/pay/qr-wechat.d.ts +15 -0
  48. package/dist/pay/qr-wechat.js +148 -0
  49. package/dist/pay/qr-wechat.less +49 -0
  50. package/dist/pay/qr.d.ts +1 -0
  51. package/dist/pay/qr.js +44 -23
  52. package/dist/pay/qr.less +1 -0
  53. package/dist/pay/recharge.css.d.ts +1 -1
  54. package/dist/pay/recharge.css.js +4 -3
  55. package/dist/pay/recharge.d.ts +5 -0
  56. package/dist/pay/recharge.js +43 -18
  57. package/dist/service/api/AuthController.d.ts +1 -0
  58. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- LoginReg: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ LoginReg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- LoginReg: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .radioSelectBox{\n text-align: right;\n }\n .selectTabs{\n .ant-tabs-nav-wrap{\n display: none !important;\n }\n .ant-tabs-nav{\n opacity: 0;\n }\n }\n "])))
3
+ LoginReg: styled.div.withConfig({
4
+ displayName: "LoginReg",
5
+ componentId: "component-sanzhizhou__sc-1klycls-0"
6
+ })([".radioSelectBox{text-align:right;}.selectTabs{.ant-tabs-nav-wrap{display:none !important;}.ant-tabs-nav{opacity:0;}}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- AuthClientLogin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ AuthClientLogin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- AuthClientLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: no-repeat left bottom #FFF;\n background-size: cover;\n .webTitle{\n font-weight: normal;\n font-size: 22px;\n text-align: right;\n margin: 0 0 -10px 0;\n line-height: 1em;\n span{\n display: inline-block;\n padding-left: 5px;\n font-weight: lighter;\n font-size: 16px;\n };\n }\n .loginMain{\n margin: 0 auto 20px;\n .loginForm{\n margin: 0 auto;\n padding:0 0 5px 0 ;\n background-color: rgba(255, 255, 255, 0.75 );\n border-radius: 6px;\n }\n }\n\n .storePass{\n cursor: pointer;\n }\n\n .login-success{\n position: relative;\n cursor: pointer;\n width: 220px;\n height: 220px;\n margin: 10px auto; background-color: #EEE; font-size: 40px; color: #999; text-align: center;\n .anticon{ line-height: 1em; color: #52c41a; }\n .icon-warp{\n position: relative; z-index: 10; opacity: 1; margin-top: 70px; width: 80px; height: 80px; padding: 10px; background-color: #FFF; display: inline-block; border-radius: 100px; }\n }\n\n .otherInfo{\n position: relative;\n .forgetPass{\n position: absolute;\n right: 0;\n top: 0;\n padding: 6px 0 0 0;\n font-size: 13px;\n }\n }\n "])))
3
+ AuthClientLogin: styled.div.withConfig({
4
+ displayName: "AuthClientLogin",
5
+ componentId: "component-sanzhizhou__sc-edoyoj-0"
6
+ })(["background:no-repeat left bottom #FFF;background-size:cover;.webTitle{font-weight:normal;font-size:22px;text-align:right;margin:0 0 -10px 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;};}.loginMain{margin:0 auto 20px;.loginForm{margin:0 auto;padding:0 0 5px 0;background-color:rgba(255,255,255,0.75 );border-radius:6px;}}.storePass{cursor:pointer;}.login-success{position:relative;cursor:pointer;width:220px;height:220px;margin:10px auto;background-color:#EEE;font-size:40px;color:#999;text-align:center;.anticon{line-height:1em;color:#52c41a;}.icon-warp{position:relative;z-index:10;opacity:1;margin-top:70px;width:80px;height:80px;padding:10px;background-color:#FFF;display:inline-block;border-radius:100px;}}.otherInfo{position:relative;.forgetPass{position:absolute;right:0;top:0;padding:6px 0 0 0;font-size:13px;}}"])
6
7
  };
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- AuthQrLogin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
- LoginForm: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
5
- WebTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
6
- WeQrUrlBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ AuthQrLogin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ LoginForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ WebTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ WeQrUrlBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
7
  };
8
8
  export default _default;
@@ -1,9 +1,19 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .ant-tabs-tab-btn{\n .anticon{\n margin-right: 6px;\n }\n }\n .weQrUrl{\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .qr{\n position: relative;\n display: block;\n margin: 12px auto 0;\n width: 230px;\n height: 230px;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n &.qrAlipay{\n border: 3px solid #1677ff;\n }\n .reTry{\n position: absolute;\n z-index: 100;\n left: 0;\n top: 0;\n width: 100%;\n font-size: 80px;\n background-color: rgba( 255, 255, 255, 0.95 );\n text-align: center;\n line-height: 210px;\n height: 100%;\n a{\n display: block;\n }\n }\n }\n .alt{\n padding: 10px 0 0;\n color: #999;\n text-align: center;\n }\n .altWeb{\n padding: 16px 0 0;\n max-width: 300px;\n margin: 0 auto;\n .titles{\n text-align: center;\n font-weight: bold;\n }\n ul{\n margin: 0 10px;\n }\n\n }\n .percent{\n width: 100%;\n position: absolute;\n overflow: hidden;\n left: 0;\n bottom: 0;\n .warp{\n height: 4px;\n background-color: #1677ff;\n transition: all 1.6s ease-in-out;\n -webkit-transition: all 1.6s ease-in-out;\n }\n }\n\n .callWechat{\n position: absolute;\n left: 0;\n bottom: 0;\n background: #F6F6F6;\n width: 4px;\n height: 4px;\n }\n .callAccount{\n position: absolute;\n right: 0;\n bottom: 0;\n background: #F6F6F6;\n width: 4px;\n height: 4px;\n }\n\n "]))),
6
- LoginForm: styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 auto;\n padding: 0 0 5px 0 ;\n background-color: rgba(255, 255, 255, 0.75 );\n border-radius: 6px;\n "]))),
7
- WebTitle: styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: normal;\n font-size: 22px;\n text-align: center;\n padding: 0;\n margin: 6px 0 0 0;\n line-height: 1em;\n span{\n display: inline-block;\n padding-left: 5px;\n font-weight: lighter;\n font-size: 16px;\n }\n "]))),
8
- WeQrUrlBox: styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-height: 240px !important;\n "])))
3
+ AuthQrLogin: styled.div.withConfig({
4
+ displayName: "AuthQrLogin",
5
+ componentId: "component-sanzhizhou__sc-55ened-0"
6
+ })(["position:relative;.ant-tabs-tab-btn{.anticon{margin-right:6px;}}.weQrUrl{position:absolute;left:50%;transform:translateX(-50%);}.qr{position:relative;display:block;margin:12px auto 0;width:230px;height:230px;background-repeat:no-repeat;background-size:cover;background-position:center;&.qrAlipay{border:3px solid #1677ff;}.reTry{position:absolute;z-index:100;left:0;top:0;width:100%;font-size:80px;background-color:rgba( 255,255,255,0.95 );text-align:center;line-height:210px;height:100%;a{display:block;}}}.alt{padding:10px 0 0;color:#999;text-align:center;}.altWeb{padding:16px 0 0;max-width:300px;margin:0 auto;.titles{text-align:center;font-weight:bold;}ul{margin:0 10px;}}.percent{width:100%;position:absolute;overflow:hidden;left:0;bottom:0;.warp{height:4px;background-color:#1677ff;transition:all 1.6s ease-in-out;-webkit-transition:all 1.6s ease-in-out;}}.callWechat{position:absolute;left:0;bottom:0;background:#F6F6F6;width:4px;height:4px;}.callAccount{position:absolute;right:0;bottom:0;background:#F6F6F6;width:4px;height:4px;}"]),
7
+ LoginForm: styled.div.withConfig({
8
+ displayName: "LoginForm",
9
+ componentId: "component-sanzhizhou__sc-55ened-1"
10
+ })(["margin:0 auto;padding:0 0 5px 0;background-color:rgba(255,255,255,0.75 );border-radius:6px;"]),
11
+ WebTitle: styled.div.withConfig({
12
+ displayName: "WebTitle",
13
+ componentId: "component-sanzhizhou__sc-55ened-2"
14
+ })(["font-weight:normal;font-size:22px;text-align:center;padding:0;margin:6px 0 0 0;line-height:1em;span{display:inline-block;padding-left:5px;font-weight:lighter;font-size:16px;}"]),
15
+ WeQrUrlBox: styled.div.withConfig({
16
+ displayName: "WeQrUrlBox",
17
+ componentId: "component-sanzhizhou__sc-55ened-3"
18
+ })(["min-height:240px !important;"])
9
19
  };
@@ -56,6 +56,7 @@ var Reg = function Reg(_ref) {
56
56
  productType: productType,
57
57
  clientUniqueKeyList: clientUniqueKeyList
58
58
  }, data), postData), {}, {
59
+ domain: document.location.hostname,
59
60
  inviteUserId: Tool.getInviteUserId()
60
61
  }), {
61
62
  env: env
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- Buy: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
3
+ Buy: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- Buy: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :global{\n //.ktv-ai-vip-compare{\n // .vip-compare-price{\n // small{\n // color: #888;\n // vertical-align: middle;\n // }\n // }\n // .listMore{\n // position: absolute;\n // right: 10px;\n // top: 9px;\n // }\n //\n // .vipCompareListMoreContent{\n // width: 500px;\n // .ratioAlt{\n // padding: 6px 0;\n // font-size: 13px;\n // color: #777;\n // .vip-compare-alt{\n //\n // }\n // }\n // }\n //\n //}\n }\n "])))
3
+ Buy: styled.span.withConfig({
4
+ displayName: "Buy",
5
+ componentId: "component-sanzhizhou__sc-1kw7p15-0"
6
+ })([":global{}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- BuyQr: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ BuyQr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- BuyQr: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n text-align: center;\n display: flex;\n flex-direction: column;\n height: 100%;\n .qrImage{\n width: 200px;\n height: 200px;\n margin: 30px auto 0;\n img{\n display: block;\n width: 100%;\n max-width: 100%;\n }\n }\n .loadingIcon{\n font-size: 68px;\n color: #BBB;\n }\n .price{\n font-size: 16px;\n strong{\n font-size: 20px;\n color: #F60;\n }\n .multiply{\n display: inline-block;\n margin: 0 10px;\n color: #AAA;\n }\n .productCount{\n font-size: 20px;\n }\n .equal{\n transform: rotate(90deg);\n display: inline-block;\n margin: 0 10px;\n color: #AAA;\n }\n .moneyAll{\n color: #F60;\n font-size: 32px;\n }\n }\n .alt{\n color: #999;\n font-size: 13px;\n .wechatIcon{\n color: #0bc160;\n }\n .alipayIcon{\n color: #1677ff;\n }\n }\n .altInH5{\n padding: 8px 0 0;\n color: #C00;\n font-size: 15px;\n .toFriend{\n font-size: 13px;\n color: #888;\n padding: 0;\n margin: 0;\n }\n }\n .tabIcon{\n font-size: 18px;\n }\n .qrAlt{\n padding: 0 0 12px;\n }\n .payResult{\n .ant-result{\n padding: 0 30px 30px;\n }\n .ant-result-icon{\n display: none;\n }\n }\n .payChannel{\n padding: 30px 20px 20px;\n .payChannelTabs{\n position: relative;\n .ant-tabs-content-holder{\n border: 1px solid #E8E8E8;\n margin: -17px 0 0;\n }\n }\n }\n "])))
3
+ BuyQr: styled.div.withConfig({
4
+ displayName: "BuyQr",
5
+ componentId: "component-sanzhizhou__sc-c9ye2w-0"
6
+ })(["position:relative;text-align:center;display:flex;flex-direction:column;height:100%;.qrImage{width:200px;height:200px;margin:30px auto 0;img{display:block;width:100%;max-width:100%;}}.loadingIcon{font-size:68px;color:#BBB;}.price{font-size:16px;strong{font-size:20px;color:#F60;}.multiply{display:inline-block;margin:0 10px;color:#AAA;}.productCount{font-size:20px;}.equal{transform:rotate(90deg);display:inline-block;margin:0 10px;color:#AAA;}.moneyAll{color:#F60;font-size:32px;}}.alt{color:#999;font-size:13px;.wechatIcon{color:#0bc160;}.alipayIcon{color:#1677ff;}}.altInH5{padding:8px 0 0;color:#C00;font-size:15px;.toFriend{font-size:13px;color:#888;padding:0;margin:0;}}.tabIcon{font-size:18px;}.qrAlt{padding:0 0 12px;}.payResult{.ant-result{padding:0 30px 30px;}.ant-result-icon{display:none;}}.payChannel{padding:30px 20px 20px;.payChannelTabs{position:relative;.ant-tabs-content-holder{border:1px solid #E8E8E8;margin:-17px 0 0;}}}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- TrialMember: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ TrialMember: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- TrialMember: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :global{\n //.ktv-ai-vip-compare{\n // .vip-compare-price{\n // small{\n // color: #888;\n // vertical-align: middle;\n // }\n // }\n // .listMore{\n // position: absolute;\n // right: 10px;\n // top: 9px;\n // }\n //\n // .vipCompareListMoreContent{\n // width: 500px;\n // .ratioAlt{\n // padding: 6px 0;\n // font-size: 13px;\n // color: #777;\n // .vip-compare-alt{\n //\n // }\n // }\n // }\n //\n //}\n }\n "])))
3
+ TrialMember: styled.div.withConfig({
4
+ displayName: "TrialMember",
5
+ componentId: "component-sanzhizhou__sc-1wcqrph-0"
6
+ })([":global{}"])
6
7
  };
@@ -9,7 +9,6 @@ var ProductTypeInfo = {
9
9
  list: [],
10
10
  status: '' // loading | success | fail
11
11
  };
12
-
13
12
  var ProductTypeDict = function ProductTypeDict(_ref) {
14
13
  var productType = _ref.productType,
15
14
  env = _ref.env;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- DrawerDialog: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ DrawerDialog: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- DrawerDialog: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-drawerDialog {\n .ant-drawer-body {\n //background-color: #f5f5f5;\n }\n &.light{\n .ant-drawer-body {\n //background-color: #FFF;\n }\n }\n }\n "])))
3
+ DrawerDialog: styled.div.withConfig({
4
+ displayName: "DrawerDialog",
5
+ componentId: "component-sanzhizhou__sc-19vcuf9-0"
6
+ })([".ktv-ai-drawerDialog{.ant-drawer-body{}&.light{.ant-drawer-body{}}}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- DialogDrawerFooter: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ DialogDrawerFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- DialogDrawerFooter: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .warp{\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 20;\n width: 100%;\n height: 56px;\n background-color: #FFF;\n line-height: 56px;\n text-align: right;\n }\n .warpChildren{\n padding: 0 20px 0 0;\n box-shadow: 0 0 3px #CCC;\n }\n .pos{\n height: 56px;\n }\n "])))
3
+ DialogDrawerFooter: styled.div.withConfig({
4
+ displayName: "DialogDrawerFooter",
5
+ componentId: "component-sanzhizhou__sc-168ee15-0"
6
+ })([".warp{position:absolute;left:0;bottom:0;z-index:20;width:100%;height:56px;background-color:#FFF;line-height:56px;text-align:right;}.warpChildren{padding:0 20px 0 0;box-shadow:0 0 3px #CCC;}.pos{height:56px;}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- fileSize: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
3
+ fileSize: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- fileSize: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .file-size-unit{\n padding-left: 3px;\n }\n .gb{\n font-size: small;\n color: red;\n }\n .mb{\n font-size: small;\n color: blue;\n }\n .kb{\n font-size: small;\n color: green;\n }\n .b{\n font-size: small;\n color: #999;\n }\n "])))
3
+ fileSize: styled.span.withConfig({
4
+ displayName: "fileSize",
5
+ componentId: "component-sanzhizhou__sc-gkb237-0"
6
+ })([".file-size-unit{padding-left:3px;}.gb{font-size:small;color:red;}.mb{font-size:small;color:blue;}.kb{font-size:small;color:green;}.b{font-size:small;color:#999;}"])
6
7
  };
@@ -69,5 +69,4 @@ var LayoutContent = function LayoutContent(_ref) {
69
69
  })]
70
70
  });
71
71
  };
72
-
73
72
  export default LayoutContent;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- LoadError: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ LoadError: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- LoadError: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-result {\n padding: 20px 2px;\n }\n .ant-result-image {\n width: 200px;\n height: 260px;\n svg {\n transform: scale(0.8);\n transform-origin: 0 50%;\n }\n }\n .ant-result-title {\n color: #666;\n font-weight: 400;\n font-size: 18px;\n }\n "])))
3
+ LoadError: styled.div.withConfig({
4
+ displayName: "LoadError",
5
+ componentId: "component-sanzhizhou__sc-16ln0pm-0"
6
+ })([".ant-result{padding:20px 2px;}.ant-result-image{width:200px;height:260px;svg{transform:scale(0.8);transform-origin:0 50%;}}.ant-result-title{color:#666;font-weight:400;font-size:18px;}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- money: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ money: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- money: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .yen{\n font-size: smaller;\n opacity: 0.8;\n font-weight: 300;\n }\n .value{\n //font-weight: bold;\n padding-left: 2px;\n padding-right: 1px;\n &.zero{\n font-weight: 300;\n color: #AAA;\n }\n }\n "])))
3
+ money: styled.div.withConfig({
4
+ displayName: "money",
5
+ componentId: "component-sanzhizhou__sc-7ey2c6-0"
6
+ })(["position:relative;.yen{font-size:smaller;opacity:0.8;font-weight:300;}.value{padding-left:2px;padding-right:1px;&.zero{font-weight:300;color:#AAA;}}"])
6
7
  };
@@ -76,5 +76,4 @@ var PageContentWarp = function PageContentWarp(_ref) {
76
76
  })]
77
77
  });
78
78
  };
79
-
80
79
  export default PageContentWarp;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- duration: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
3
+ duration: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- duration: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .duration-0-0-0{\n color: #AAA;\n }\n .duration-0-0{\n .hour{\n color: #AAA;\n }\n .minute{\n color: #AAA;\n }\n }\n\n .duration-0{\n .hour{\n color: #AAA;\n }\n }\n "])))
3
+ duration: styled.span.withConfig({
4
+ displayName: "duration",
5
+ componentId: "component-sanzhizhou__sc-tnle0k-0"
6
+ })([".duration-0-0-0{color:#AAA;}.duration-0-0{.hour{color:#AAA;}.minute{color:#AAA;}}.duration-0{.hour{color:#AAA;}}"])
6
7
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- pricingCompare: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ pricingCompare: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- pricingCompare: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n th{\n font-size: 20px;\n padding: 20px 0 !important;\n font-weight: 400 !important;\n text-align: center !important;\n }\n\n .vipTitle{\n }\n\n .classifyKind{\n font-size: 18px;\n }\n\n .onBuy{\n //padding: 16px 0;\n text-align: center;\n }\n\n .title{\n font-size: 16px;\n }\n .subtitle{\n margin: 1px 0 0;\n font-size: 12px;\n color: #999;\n font-weight: 300;\n }\n .value{\n text-align: center;\n font-size: 16px;\n .allow{\n color: #00b70d;\n font-size: 18px;\n }\n .notAllow{\n color: #C00;\n font-size: 18px;\n }\n small{\n color: #999;\n padding-left: 2px;\n }\n }\n "])))
3
+ pricingCompare: styled.div.withConfig({
4
+ displayName: "pricingCompare",
5
+ componentId: "component-sanzhizhou__sc-ssxlax-0"
6
+ })(["th{font-size:20px;padding:20px 0 !important;font-weight:400 !important;text-align:center !important;}.vipTitle{}.classifyKind{font-size:18px;}.onBuy{text-align:center;}.title{font-size:16px;}.subtitle{margin:1px 0 0;font-size:12px;color:#999;font-weight:300;}.value{text-align:center;font-size:16px;.allow{color:#00b70d;font-size:18px;}.notAllow{color:#C00;font-size:18px;}small{color:#999;padding-left:2px;}}"])
6
7
  };
@@ -334,7 +334,6 @@ var VipList = function VipList(_ref) {
334
334
  scroll: {
335
335
  y: tableScrollY // '60vh',
336
336
  },
337
-
338
337
  rowKey: function rowKey(record, index) {
339
338
  return "".concat(index, "-").concat(record.id);
340
339
  },
@@ -220,5 +220,4 @@ var FolderSelect = function FolderSelect(_ref) {
220
220
  // </div>
221
221
  ;
222
222
  };
223
-
224
223
  export default FolderSelect;
@@ -3,5 +3,4 @@ var isInstalledChrome = function isInstalledChrome() {
3
3
  var settingConfig = AccountManageSettingConfig();
4
4
  return false; // !! settingConfig.chromePath;
5
5
  };
6
-
7
6
  export default isInstalledChrome;
@@ -8,7 +8,6 @@ export var MediaSourceMineTypeList = {
8
8
  // '.srt',
9
9
  ]
10
10
  };
11
-
12
11
  export var GetMineTypeByUrl = function GetMineTypeByUrl(url) {
13
12
  var fileExt = '.' + Tool.getFileExt(url).toLocaleLowerCase();
14
13
  var typeKind = '';
@@ -101,7 +101,7 @@ declare const Tool: {
101
101
  pageDialogBox: never[];
102
102
  pageDialog(opt: any): {
103
103
  destroy: () => void;
104
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
104
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
105
105
  };
106
106
  pageDialogCloseAll(): void;
107
107
  param(query?: {
@@ -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: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: import("./notification").NotificationOption): void;
165
+ notification(type: "info" | "error" | "warning" | "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;
package/dist/lib/Tool.js CHANGED
@@ -74,7 +74,7 @@ var Tool = _objectSpread(_objectSpread({
74
74
  return this.GData[key];
75
75
  },
76
76
  getInviteUserId: function getInviteUserId() {
77
- return parseInt(Tool.store.get('inviteUserId')) || Tool.getLocalSiteInfo().dealerId || 1;
77
+ return parseInt(Tool.store.get('inviteUserId')) || Tool.getLocalSiteInfo().dealerId || 0;
78
78
  },
79
79
  getLocalUserInfo: function getLocalUserInfo() {
80
80
  var storageUserInfo = _objectSpread({
@@ -540,7 +540,6 @@ var Tool = _objectSpread(_objectSpread({
540
540
  };
541
541
  }
542
542
  },
543
-
544
543
  store: store,
545
544
  toast: function toast() {
546
545
  var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -650,7 +649,6 @@ var Tool = _objectSpread(_objectSpread({
650
649
  return true; //i*1;
651
650
  }
652
651
  }
653
-
654
652
  return false;
655
653
  },
656
654
  inArrayIndex: function inArrayIndex(t) {
@@ -661,7 +659,6 @@ var Tool = _objectSpread(_objectSpread({
661
659
  return i; //i*1;
662
660
  }
663
661
  }
664
-
665
662
  return -1;
666
663
  },
667
664
  // 金额的简略写法
@@ -720,7 +717,6 @@ var Tool = _objectSpread(_objectSpread({
720
717
  } else {
721
718
  version = 1000; //不是ie浏览器
722
719
  }
723
-
724
720
  return version;
725
721
  },
726
722
  /*
@@ -2,7 +2,6 @@ import FileType from "./file-type";
2
2
  export var SoundMineType = ['mp3', 'wav', 'flac', 'ape', 'alac', 'mp3', 'aac', 'ogg'];
3
3
  export var ImageMineType = ['jpg', 'jpeg', 'png', 'webp' // 'gif',
4
4
  ];
5
-
6
5
  export var VideoMineType = ['mp4', 'mv4', 'wmv', 'rm', 'rmvb', '3gp', 'mpeg', 'mov', 'm4v', 'avi', 'mkv', 'flv', 'vob', 'webm'];
7
6
  export var GetMineTypeKind = function GetMineTypeKind(path) {
8
7
  var extName = FileType(path);
@@ -1,2 +1,2 @@
1
- declare const CallMiniUrl: (productType: string, query?: string) => string;
1
+ declare const CallMiniUrl: (appId: string, inPage: string, query?: {}) => string;
2
2
  export default CallMiniUrl;
@@ -1,8 +1,8 @@
1
- import { getEnv } from "./getApiUrl";
2
- var CallMiniUrl = function CallMiniUrl(productType) {
3
- var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
4
- var env = getEnv();
5
- var entParam = env === 'prod' ? '' : "_env=".concat(env, "&");
6
- return "https://call-alipay-mini.douzhuli.shanren.wang/?".concat(entParam, "productType=").concat(productType, "&").concat(query);
1
+ var CallMiniUrl = function CallMiniUrl(appId, inPage) {
2
+ var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
3
+ // const env = getEnv();
4
+ var page = "".concat(inPage || 'pages/index/index', "?command=").concat(encodeURIComponent(JSON.stringify(query)));
5
+ return "alipays://platformapi/startapp?appId=".concat(appId, "&page=").concat(encodeURIComponent(page));
6
+ // return `https://call-alipay-mini.sanzhizhou.com/?${ entParam }productType=${ productType }&${ query }`
7
7
  };
8
8
  export default CallMiniUrl;
package/dist/lib/fs.js CHANGED
@@ -48,7 +48,6 @@ export function fsDirVideoList(dir) {
48
48
  // list.push( filePath );
49
49
  // }
50
50
  });
51
-
52
51
  return list;
53
52
  }
54
53
  export function getDirSize(dirPath) {
@@ -0,0 +1 @@
1
+ export declare const makeMiniAppCommand: (command: string, query?: {}) => string;
@@ -0,0 +1,8 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import { Base64 } from 'js-base64';
3
+ export var makeMiniAppCommand = function makeMiniAppCommand(command) {
4
+ var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5
+ return "command=" + encodeURIComponent(encodeURIComponent(Base64.encode(JSON.stringify(_objectSpread(_objectSpread({}, query), {}, {
6
+ command: command
7
+ })))));
8
+ };
package/dist/lib/math.js CHANGED
@@ -29,7 +29,6 @@ var math = {
29
29
  ,
30
30
  pos = 0 // 记录位置
31
31
  ;
32
-
33
32
  while (len--) {
34
33
  pos = this.randInt(0, length);
35
34
  out.push(words[pos]);
@@ -142,5 +141,4 @@ var math = {
142
141
  };
143
142
  }
144
143
  };
145
-
146
144
  export default math;
@@ -53,5 +53,4 @@ var Platform = {
53
53
  //iPhone
54
54
  isIPad: ua().indexOf('iPad') > -1 //iPad
55
55
  };
56
-
57
56
  export default Platform;
@@ -61,7 +61,6 @@ var requestApi = /*#__PURE__*/function () {
61
61
  // options.onSuccess( data );
62
62
  // },
63
63
  }));
64
-
65
64
  requestData.then(function () {
66
65
  var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
67
66
  console.log('ajax requestData then:', result);
@@ -93,7 +93,6 @@ var SavePath = function SavePath(_ref) {
93
93
  onChange(path);
94
94
  // Tool.setFileResultDir( productType, path, isDefaultEmpty );
95
95
  };
96
-
97
96
  var onInit = /*#__PURE__*/function () {
98
97
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
99
98
  var id;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './qr.less';
3
+ interface Props {
4
+ productKind: Pay.ProductKind;
5
+ selectPayChannel: Pay.ChannelListChildrenList;
6
+ vipId: number;
7
+ payChannel: Pay.PayChannel;
8
+ productCount: number;
9
+ productName: string;
10
+ moneyAmount: number;
11
+ size?: number;
12
+ env?: Global.Env;
13
+ }
14
+ declare const UserVipOrderPayQr: React.FC<Props>;
15
+ export default UserVipOrderPayQr;
@@ -0,0 +1,148 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import React, { useEffect, useState } from 'react';
3
+ import { Button, Divider, QRCode, Spin } from 'antd';
4
+ import "./qr.less";
5
+ import { CheckCircleOutlined, ReloadOutlined } from "@ant-design/icons";
6
+ import { getEnv } from "../lib/getApiUrl";
7
+ import Tool from "../lib/Tool";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ var QrDict = {
11
+ local: 'https://pay.sanzhizhou.com/pay/we-h5',
12
+ // 'http://localhost:8001/pay/wepay-qr',
13
+ pre: 'http://localhost:8001/pay/we-h5r',
14
+ prod: 'https://pay.sanzhizhou.com/pay/we-h5'
15
+ };
16
+ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
17
+ var selectPayChannel = _ref.selectPayChannel,
18
+ moneyAmount = _ref.moneyAmount,
19
+ productCount = _ref.productCount,
20
+ vipId = _ref.vipId,
21
+ productName = _ref.productName,
22
+ _ref$size = _ref.size,
23
+ size = _ref$size === void 0 ? 260 : _ref$size,
24
+ productKind = _ref.productKind,
25
+ env = _ref.env;
26
+ var _useState = useState(''),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ qrUrl = _useState2[0],
29
+ setQrUrl = _useState2[1];
30
+ var _useState3 = useState('loading'),
31
+ _useState4 = _slicedToArray(_useState3, 2),
32
+ qrStatus = _useState4[0],
33
+ setQrStatus = _useState4[1];
34
+
35
+ // const { run, loading } = useRequest(
36
+ // () => RechargeController.create({
37
+ // payChannel: selectPayChannel.name,
38
+ // moneyAmount,
39
+ // }, {
40
+ // env,
41
+ // }),
42
+ // {
43
+ // onSuccess(result) {
44
+ //
45
+ // },
46
+ // onError( e ){
47
+ // setQrStatus('expired');
48
+ // }
49
+ // },
50
+ // );
51
+
52
+ var onInit = function onInit() {
53
+ var qrUrlBase = QrDict[getEnv()] || QrDict.prod;
54
+ var data = JSON.stringify({
55
+ productKind: productKind ? productKind : vipId == 0 ? 'recharge' : '',
56
+ productCount: productCount,
57
+ productId: vipId,
58
+ userToken: Tool.getLocalUserInfo().sid,
59
+ wechatAppId: '',
60
+ productName: productName,
61
+ payMoney: moneyAmount
62
+ });
63
+ var qrUrl = qrUrlBase + (qrUrlBase.indexOf('?') === -1 ? '?' : '&') + "data=" + encodeURIComponent(data);
64
+ console.log('recharge qr:', qrUrl);
65
+ setQrUrl(qrUrl);
66
+ setQrStatus('active');
67
+ };
68
+ var getPaymentQr = function getPaymentQr() {
69
+ // setQrStatus('loading');
70
+ // run();
71
+ };
72
+ useEffect(function () {
73
+ onInit();
74
+ }, []);
75
+ return /*#__PURE__*/_jsxs("div", {
76
+ className: "ssz-payQr",
77
+ children: [/*#__PURE__*/_jsxs(Divider, {
78
+ orientation: "center",
79
+ className: "ssz-altBox",
80
+ children: ["\u626B\u7801\u652F\u4ED8", /*#__PURE__*/_jsxs("span", {
81
+ className: "ssz-qr-moneyAmountBox",
82
+ children: [/*#__PURE__*/_jsx("small", {
83
+ children: "\xA5"
84
+ }), /*#__PURE__*/_jsx("span", {
85
+ className: "ssz-qr-moneyAmount",
86
+ children: moneyAmount
87
+ }), /*#__PURE__*/_jsx("small", {
88
+ children: "\u5143"
89
+ })]
90
+ })]
91
+ }), /*#__PURE__*/_jsxs("div", {
92
+ className: "ssz-qrImage",
93
+ style: {
94
+ width: size
95
+ },
96
+ children: [/*#__PURE__*/_jsxs("div", {
97
+ className: "ssz-name",
98
+ style: {
99
+ color: selectPayChannel.color
100
+ },
101
+ children: [selectPayChannel.icon, " ", selectPayChannel.label]
102
+ }), /*#__PURE__*/_jsx("div", {
103
+ className: "ssz-qrImageWarp",
104
+ children: /*#__PURE__*/_jsx(QRCode, {
105
+ type: "svg",
106
+ color: selectPayChannel.color,
107
+ bgColor: "#FFF",
108
+ size: size,
109
+ value: qrUrl || '内容为空',
110
+ status: qrStatus,
111
+ errorLevel: "M",
112
+ statusRender: function statusRender(info) {
113
+ if (info.status === 'loading') {
114
+ return /*#__PURE__*/_jsx(Spin, {
115
+ size: "large"
116
+ });
117
+ }
118
+ if (info.status === 'scanned') {
119
+ return /*#__PURE__*/_jsxs("div", {
120
+ children: [/*#__PURE__*/_jsx(CheckCircleOutlined, {}), " \u5DF2\u626B\u7801"]
121
+ });
122
+ }
123
+ if (info.status === 'expired') {
124
+ return /*#__PURE__*/_jsxs("div", {
125
+ children: ["\u4E8C\u7EF4\u7801\u5DF2\u7ECF\u8FC7\u671F", /*#__PURE__*/_jsx("div", {
126
+ style: {
127
+ paddingTop: 18
128
+ },
129
+ children: /*#__PURE__*/_jsx(Button, {
130
+ type: "link",
131
+ icon: /*#__PURE__*/_jsx(ReloadOutlined, {}),
132
+ onClick: getPaymentQr,
133
+ children: "\u5237\u65B0"
134
+ })
135
+ })]
136
+ });
137
+ }
138
+ return '';
139
+ }
140
+ })
141
+ }), /*#__PURE__*/_jsx("div", {
142
+ className: "ssz-alt",
143
+ children: "\u8BF7\u626B\u7801\u652F\u4ED8"
144
+ })]
145
+ })]
146
+ });
147
+ };
148
+ export default UserVipOrderPayQr;
@@ -0,0 +1,49 @@
1
+ .ssz-payQr{
2
+ .ssz-altBox{
3
+ font-size: large;
4
+ .ssz-qr-moneyAmountBox{
5
+ padding: 0 0 0 12px;
6
+ font-weight: 300;
7
+
8
+ small{
9
+ opacity: 0.7;
10
+ }
11
+ .ssz-qr-moneyAmount{
12
+ padding: 0 3px;
13
+ color: #C00;
14
+ font-size: x-large;
15
+ font-weight: 700;
16
+ font-family: Arial, Helvetica, sans-serif;
17
+ }
18
+ }
19
+
20
+ }
21
+ .ssz-qrImage{
22
+ margin: 0 auto 60px;
23
+ //width: 220px;
24
+ //height: 220px;
25
+ .name{
26
+ font-size: 20px;
27
+ font-weight: 300;
28
+ padding: 0 0 16px;
29
+ text-align: center;
30
+ }
31
+ .ssz-qrImageWarp{
32
+ background-color: #EEE;
33
+
34
+ }
35
+ .ssz-alt{
36
+ text-align: center;
37
+ color: #AAA;
38
+ padding: 6px 0;
39
+ font-weight: 300;
40
+ }
41
+
42
+ }
43
+ .ssz-name{
44
+ text-align: center;
45
+ padding: 5px 0 12px 0;
46
+ }
47
+
48
+
49
+ }
package/dist/pay/qr.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './qr.less';
3
3
  interface Props {
4
+ appId: string;
4
5
  productKind: Pay.ProductKind;
5
6
  selectPayChannel: Pay.ChannelListChildrenList;
6
7
  vipId: number;
package/dist/pay/qr.js CHANGED
@@ -3,18 +3,21 @@ import React, { useEffect, useState } from 'react';
3
3
  import { Button, Divider, QRCode, Spin } from 'antd';
4
4
  import "./qr.less";
5
5
  import { CheckCircleOutlined, ReloadOutlined } from "@ant-design/icons";
6
- import { getEnv } from "../lib/getApiUrl";
7
6
  import Tool from "../lib/Tool";
7
+ import CallMiniUrl from "../lib/call-mini-url";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
- var QrDict = {
11
- local: 'https://pay.sanzhizhou.com/pay/we-h5',
12
- // 'http://localhost:8001/pay/wepay-qr',
13
- pre: 'http://localhost:8001/pay/we-h5r',
14
- prod: 'https://pay.sanzhizhou.com/pay/we-h5'
15
- };
10
+ // type QrDict = Record<Global.Env, string>;
11
+ //
12
+ // const QrDict: QrDict = {
13
+ // local: 'https://pay.sanzhizhou.com/pay/we-h5', // 'http://localhost:8001/pay/wepay-qr',
14
+ // pre: 'http://localhost:8001/pay/we-h5r',
15
+ // prod: 'https://pay.sanzhizhou.com/pay/we-h5',
16
+ // };
17
+
16
18
  var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
17
- var selectPayChannel = _ref.selectPayChannel,
19
+ var appId = _ref.appId,
20
+ selectPayChannel = _ref.selectPayChannel,
18
21
  moneyAmount = _ref.moneyAmount,
19
22
  productCount = _ref.productCount,
20
23
  vipId = _ref.vipId,
@@ -31,6 +34,23 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
31
34
  _useState4 = _slicedToArray(_useState3, 2),
32
35
  qrStatus = _useState4[0],
33
36
  setQrStatus = _useState4[1];
37
+ var makeQrUrl = function makeQrUrl() {
38
+ var query = {
39
+ // fromSid: Tool.getLocalUserInfo().sid,
40
+ // fromChannel: 'web',
41
+ fromChannel: selectPayChannel.name,
42
+ productKind: productKind ? productKind : vipId == 0 ? 'recharge' : '',
43
+ productCount: productCount,
44
+ productId: vipId,
45
+ userToken: Tool.getLocalUserInfo().sid,
46
+ productName: productName,
47
+ payMoney: moneyAmount
48
+ };
49
+ var qrUrl = CallMiniUrl(appId, '', query);
50
+ console.log('makeQrUrl bind:', query, qrUrl);
51
+ setQrUrl(qrUrl);
52
+ setQrStatus('active');
53
+ };
34
54
 
35
55
  // const { run, loading } = useRequest(
36
56
  // () => RechargeController.create({
@@ -50,20 +70,21 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
50
70
  // );
51
71
 
52
72
  var onInit = function onInit() {
53
- var qrUrlBase = QrDict[getEnv()] || QrDict.prod;
54
- var data = JSON.stringify({
55
- productKind: productKind ? productKind : vipId == 0 ? 'recharge' : '',
56
- productCount: productCount,
57
- productId: vipId,
58
- userToken: Tool.getLocalUserInfo().sid,
59
- wechatAppId: '',
60
- productName: productName,
61
- payMoney: moneyAmount
62
- });
63
- var qrUrl = qrUrlBase + (qrUrlBase.indexOf('?') === -1 ? '?' : '&') + "data=" + encodeURIComponent(data);
64
- console.log('recharge qr:', qrUrl);
65
- setQrUrl(qrUrl);
66
- setQrStatus('active');
73
+ // const qrUrlBase = QrDict[ getEnv() ] || QrDict.prod;
74
+ // const data = JSON.stringify({
75
+ // productKind: productKind ? productKind : ( vipId == 0 ? 'recharge' : '' ),
76
+ // productCount,
77
+ // productId: vipId,
78
+ // userToken: Tool.getLocalUserInfo().sid,
79
+ // wechatAppId: '',
80
+ // productName,
81
+ // payMoney: moneyAmount,
82
+ // });
83
+ // const qrUrl = qrUrlBase + ( qrUrlBase.indexOf('?') === -1 ? '?' : '&' ) + `data=`+ encodeURIComponent( data ) ;
84
+ // console.log('recharge qr:', qrUrl );
85
+ // setQrUrl( qrUrl );
86
+ // setQrStatus('active');
87
+ makeQrUrl();
67
88
  };
68
89
  var getPaymentQr = function getPaymentQr() {
69
90
  // setQrStatus('loading');
@@ -108,7 +129,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
108
129
  size: size,
109
130
  value: qrUrl || '内容为空',
110
131
  status: qrStatus,
111
- errorLevel: "M",
132
+ errorLevel: "L",
112
133
  statusRender: function statusRender(info) {
113
134
  if (info.status === 'loading') {
114
135
  return /*#__PURE__*/_jsx(Spin, {
package/dist/pay/qr.less CHANGED
@@ -43,6 +43,7 @@
43
43
  .ssz-name{
44
44
  text-align: center;
45
45
  padding: 5px 0 12px 0;
46
+ font-size: 18px;
46
47
  }
47
48
 
48
49
 
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- PayRecharge: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ PayRecharge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import styled from 'styled-components';
4
2
  export default {
5
- PayRecharge: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ssz-groupItems{\n padding: 0 0 32px 0;\n }\n .ssz-submits{\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n }\n .ssz-groupTitle{\n font-size: 14px;\n color: #777;\n font-weight: 300;\n padding: 0 0 3px 0;\n }\n\n .ant-radio-wrapper-disabled{\n .ssz-color-tag{\n opacity: 0.4;\n -webkit-filter: grayscale(100%);\n filter: grayscale(100%);\n }\n }\n "])))
3
+ PayRecharge: styled.div.withConfig({
4
+ displayName: "PayRecharge",
5
+ componentId: "component-sanzhizhou__sc-1np6liz-0"
6
+ })([".ssz-groupItems{padding:0 0 32px 0;}.ssz-submits{display:flex;flex-direction:row;justify-content:space-between;padding:0 12px;}.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%);}}"])
6
7
  };
@@ -1,6 +1,11 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
+ appId: string;
3
4
  nickName: React.ReactNode;
5
+ allowPayChannelList: Pay.PayChannel[];
6
+ defaultPayChannel: Pay.PayChannel;
7
+ productKind: Pay.ProductKind;
8
+ size?: number;
4
9
  minPrice?: number;
5
10
  maxPrice?: number;
6
11
  onHandSuccess: () => void;
@@ -15,17 +15,17 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
15
15
  var PayChannelList = [{
16
16
  groupTitle: '',
17
17
  childrenList: [{
18
+ name: 'alipay',
19
+ label: '支付宝',
20
+ icon: /*#__PURE__*/_jsx(AlipayCircleOutlined, {}),
21
+ color: '#1c6cf4',
22
+ disabled: false
23
+ }, {
18
24
  name: 'wepay',
19
25
  label: '微信支付',
20
26
  icon: /*#__PURE__*/_jsx(WechatOutlined, {}),
21
27
  color: '#2bae68',
22
28
  disabled: false
23
- }, {
24
- name: 'alipay',
25
- label: '支付宝',
26
- icon: /*#__PURE__*/_jsx(AlipayCircleOutlined, {}),
27
- color: '#1c6cf4',
28
- disabled: true
29
29
  }]
30
30
  }, {
31
31
  groupTitle: '国际支付',
@@ -38,21 +38,40 @@ var PayChannelList = [{
38
38
  disabled: true
39
39
  }]
40
40
  }];
41
+ var BaseDict = {
42
+ productKind: {
43
+ recharge: '充值',
44
+ vip: '会员卡'
45
+ }
46
+ };
41
47
  var PayRecharge = function PayRecharge(_ref) {
42
- var nickName = _ref.nickName,
48
+ var _PayChannelList$filte;
49
+ var appId = _ref.appId,
50
+ nickName = _ref.nickName,
43
51
  _ref$minPrice = _ref.minPrice,
44
52
  minPrice = _ref$minPrice === void 0 ? 1 : _ref$minPrice,
53
+ allowPayChannelList = _ref.allowPayChannelList,
54
+ _ref$productKind = _ref.productKind,
55
+ productKind = _ref$productKind === void 0 ? 'recharge' : _ref$productKind,
56
+ _ref$defaultPayChanne = _ref.defaultPayChannel,
57
+ defaultPayChannel = _ref$defaultPayChanne === void 0 ? 'alipay' : _ref$defaultPayChanne,
58
+ _ref$size = _ref.size,
59
+ size = _ref$size === void 0 ? 320 : _ref$size,
45
60
  _ref$maxPrice = _ref.maxPrice,
46
61
  maxPrice = _ref$maxPrice === void 0 ? 5000 : _ref$maxPrice,
47
62
  onHandSuccess = _ref.onHandSuccess,
48
63
  env = _ref.env;
49
- var _useState = useState(PayChannelList[0].childrenList[0]),
64
+ var _useState = useState(((_PayChannelList$filte = PayChannelList.filter(function (items) {
65
+ return items.childrenList.map(function (item) {
66
+ return item.name === defaultPayChannel;
67
+ });
68
+ })) === null || _PayChannelList$filte === void 0 || (_PayChannelList$filte = _PayChannelList$filte[0]) === null || _PayChannelList$filte === void 0 || (_PayChannelList$filte = _PayChannelList$filte.childrenList) === null || _PayChannelList$filte === void 0 ? void 0 : _PayChannelList$filte[0]) || PayChannelList[0].childrenList[0]),
50
69
  _useState2 = _slicedToArray(_useState, 2),
51
70
  selectPayChannel = _useState2[0],
52
71
  setSelectPayChannel = _useState2[1];
53
72
  var _useState3 = useState({
54
73
  moneyAmount: 300,
55
- payChannel: 'wepay'
74
+ payChannel: defaultPayChannel
56
75
  }),
57
76
  _useState4 = _slicedToArray(_useState3, 2),
58
77
  formData = _useState4[0],
@@ -110,7 +129,7 @@ var PayRecharge = function PayRecharge(_ref) {
110
129
  },
111
130
  initialValues: _objectSpread({}, formData),
112
131
  onFinish: onMakeQr,
113
- children: [step === 'pay-channel' && /*#__PURE__*/_jsxs(_Fragment, {
132
+ children: ["step:", step, step === 'pay-channel' && /*#__PURE__*/_jsxs(_Fragment, {
114
133
  children: [/*#__PURE__*/_jsx(Form.Item, {
115
134
  label: "\u5145\u503C\u8D26\u53F7",
116
135
  children: /*#__PURE__*/_jsx("strong", {
@@ -150,6 +169,13 @@ var PayRecharge = function PayRecharge(_ref) {
150
169
  name: "payChannel",
151
170
  label: "\u652F\u4ED8\u6E20\u9053",
152
171
  children: /*#__PURE__*/_jsx(Radio.Group, {
172
+ onChange: function onChange(e) {
173
+ var _e$target$id;
174
+ var idInfo = ((_e$target$id = e.target.id) === null || _e$target$id === void 0 ? void 0 : _e$target$id.split('-')) || [];
175
+ var index = parseInt(idInfo[1]) || 0;
176
+ var i = parseInt(idInfo[2]) || 0;
177
+ setSelectPayChannel(PayChannelList[index].childrenList[i]);
178
+ },
153
179
  children: PayChannelList.map(function (items, index) {
154
180
  return items.disabled ? null : /*#__PURE__*/_jsxs("div", {
155
181
  className: "ssz-groupItems",
@@ -157,12 +183,10 @@ var PayRecharge = function PayRecharge(_ref) {
157
183
  className: "ssz-groupTitle",
158
184
  children: items.groupTitle
159
185
  }), items.childrenList.map(function (item, i) {
160
- return item.disabled ? null : /*#__PURE__*/_jsx(Radio, {
186
+ return item.disabled || !(allowPayChannelList !== null && allowPayChannelList !== void 0 && allowPayChannelList.includes(item.name)) ? null : /*#__PURE__*/_jsx(Radio, {
161
187
  disabled: item.disabled,
162
188
  value: item.name,
163
- onClick: function onClick() {
164
- setSelectPayChannel(PayChannelList[index].childrenList[i]);
165
- },
189
+ id: "payChannel-".concat(index, "-").concat(i),
166
190
  children: /*#__PURE__*/_jsxs(Tag, {
167
191
  color: item.color,
168
192
  className: "ssz-color-tag",
@@ -175,16 +199,17 @@ var PayRecharge = function PayRecharge(_ref) {
175
199
  })
176
200
  })]
177
201
  }), step === 'qr-show' && /*#__PURE__*/_jsx(_Fragment, {
178
- children: formData.payChannel === 'wepay' && /*#__PURE__*/_jsx(PayQr, {
202
+ children: /*#__PURE__*/_jsx(PayQr, {
203
+ appId: appId,
179
204
  moneyAmount: formData.moneyAmount,
180
205
  productCount: formData.moneyAmount,
181
- productName: "\u5145\u503C",
206
+ productName: BaseDict.productKind[productKind],
182
207
  vipId: 0,
183
208
  payChannel: formData.payChannel,
184
209
  selectPayChannel: selectPayChannel,
185
- size: 260,
210
+ size: size,
186
211
  env: env,
187
- productKind: "recharge"
212
+ productKind: productKind
188
213
  })
189
214
  }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs("div", {
190
215
  className: "ssz-submits",
@@ -19,5 +19,6 @@ export declare function reg(body: {
19
19
  accountName: string;
20
20
  password: string;
21
21
  inviteUserId: number;
22
+ domain: string;
22
23
  clientUniqueKeyList?: string[];
23
24
  }, options?: ServicesApi.RequestOptions): Promise<UserAuth.LoginSuccessData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -71,6 +71,7 @@
71
71
  "@umijs/hooks": "^1.9.3",
72
72
  "dayjs": "^1.11.12",
73
73
  "jr-qrcode": "^1.1.4",
74
+ "js-base64": "^3.7.8",
74
75
  "markdown-to-jsx": "^7.5.0",
75
76
  "moment": "^2.29.4",
76
77
  "qrcode.react": "^3.1.0",