component-sanzhizhou 1.0.8 → 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.
- package/dist/AuthClient/login-reg.css.d.ts +1 -1
- package/dist/AuthClient/login-reg.css.js +4 -3
- package/dist/AuthClient/login.css.d.ts +1 -1
- package/dist/AuthClient/login.css.js +4 -3
- package/dist/AuthClient/qr/index.css.d.ts +4 -4
- package/dist/AuthClient/qr/index.css.js +16 -6
- package/dist/AuthClient/reg.js +1 -0
- package/dist/Buy/index.css.d.ts +1 -1
- package/dist/Buy/index.css.js +4 -3
- package/dist/Buy/qr.css.d.ts +1 -1
- package/dist/Buy/qr.css.js +4 -3
- package/dist/Buy/trial-member.css.d.ts +1 -1
- package/dist/Buy/trial-member.css.js +4 -3
- package/dist/Product/dict.js +0 -1
- package/dist/UI/DialogDrawer.css.d.ts +1 -1
- package/dist/UI/DialogDrawer.css.js +4 -3
- package/dist/UI/DialogDrawerFooter.css.d.ts +1 -1
- package/dist/UI/DialogDrawerFooter.css.js +4 -3
- package/dist/UI/FileSize.css.d.ts +1 -1
- package/dist/UI/FileSize.css.js +4 -3
- package/dist/UI/LayoutContent.js +0 -1
- package/dist/UI/LoadError.css.d.ts +1 -1
- package/dist/UI/LoadError.css.js +4 -3
- package/dist/UI/Money/index.css.d.ts +1 -1
- package/dist/UI/Money/index.css.js +4 -3
- package/dist/UI/PageContentWarp.js +0 -1
- package/dist/UI/duration.css.d.ts +1 -1
- package/dist/UI/duration.css.js +4 -3
- package/dist/VipList/index.css.d.ts +1 -1
- package/dist/VipList/index.css.js +4 -3
- package/dist/VipList/index.js +0 -1
- package/dist/component/folder-select.js +0 -1
- package/dist/component/is-installed-chrome.js +0 -1
- package/dist/component/media-kind.js +0 -1
- package/dist/lib/Tool.d.ts +2 -2
- package/dist/lib/Tool.js +1 -5
- package/dist/lib/allow-mine-type.js +0 -1
- package/dist/lib/call-mini-url.d.ts +1 -1
- package/dist/lib/call-mini-url.js +6 -6
- package/dist/lib/fs.js +0 -1
- package/dist/lib/make-mini-app-command.d.ts +1 -0
- package/dist/lib/make-mini-app-command.js +8 -0
- package/dist/lib/math.js +0 -2
- package/dist/lib/platform.js +0 -1
- package/dist/lib/request.js +0 -1
- package/dist/lib/save-path.js +0 -1
- package/dist/pay/qr-wechat.d.ts +15 -0
- package/dist/pay/qr-wechat.js +148 -0
- package/dist/pay/qr-wechat.less +49 -0
- package/dist/pay/qr.d.ts +1 -0
- package/dist/pay/qr.js +44 -23
- package/dist/pay/qr.less +1 -0
- package/dist/pay/recharge.css.d.ts +1 -1
- package/dist/pay/recharge.css.js +4 -3
- package/dist/pay/recharge.d.ts +7 -0
- package/dist/pay/recharge.js +49 -20
- package/dist/service/api/AuthController.d.ts +1 -0
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
LoginReg: import("styled-components").
|
|
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(
|
|
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").
|
|
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
|
|
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").
|
|
4
|
-
LoginForm: import("styled-components").
|
|
5
|
-
WebTitle: import("styled-components").
|
|
6
|
-
WeQrUrlBox: import("styled-components").
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
};
|
package/dist/AuthClient/reg.js
CHANGED
package/dist/Buy/index.css.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
Buy: import("styled-components").
|
|
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;
|
package/dist/Buy/index.css.js
CHANGED
|
@@ -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(
|
|
3
|
+
Buy: styled.span.withConfig({
|
|
4
|
+
displayName: "Buy",
|
|
5
|
+
componentId: "component-sanzhizhou__sc-1kw7p15-0"
|
|
6
|
+
})([":global{}"])
|
|
6
7
|
};
|
package/dist/Buy/qr.css.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
BuyQr: import("styled-components").
|
|
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;
|
package/dist/Buy/qr.css.js
CHANGED
|
@@ -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
|
|
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").
|
|
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(
|
|
3
|
+
TrialMember: styled.div.withConfig({
|
|
4
|
+
displayName: "TrialMember",
|
|
5
|
+
componentId: "component-sanzhizhou__sc-1wcqrph-0"
|
|
6
|
+
})([":global{}"])
|
|
6
7
|
};
|
package/dist/Product/dict.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
DrawerDialog: import("styled-components").
|
|
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(
|
|
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").
|
|
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(
|
|
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").
|
|
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;
|
package/dist/UI/FileSize.css.js
CHANGED
|
@@ -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(
|
|
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
|
};
|
package/dist/UI/LayoutContent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
LoadError: import("styled-components").
|
|
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;
|
package/dist/UI/LoadError.css.js
CHANGED
|
@@ -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
|
|
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").
|
|
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(
|
|
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
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
duration: import("styled-components").
|
|
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;
|
package/dist/UI/duration.css.js
CHANGED
|
@@ -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(
|
|
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").
|
|
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(
|
|
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
|
};
|
package/dist/VipList/index.js
CHANGED
package/dist/lib/Tool.d.ts
CHANGED
|
@@ -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").
|
|
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: "
|
|
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 ||
|
|
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: (
|
|
1
|
+
declare const CallMiniUrl: (appId: string, inPage: string, query?: {}) => string;
|
|
2
2
|
export default CallMiniUrl;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return
|
|
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
|
@@ -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
package/dist/lib/platform.js
CHANGED
package/dist/lib/request.js
CHANGED
|
@@ -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);
|
package/dist/lib/save-path.js
CHANGED
|
@@ -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
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
|
|
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: "
|
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
PayRecharge: import("styled-components").
|
|
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;
|
package/dist/pay/recharge.css.js
CHANGED
|
@@ -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(
|
|
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
|
};
|
package/dist/pay/recharge.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
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;
|
|
9
|
+
minPrice?: number;
|
|
10
|
+
maxPrice?: number;
|
|
4
11
|
onHandSuccess: () => void;
|
|
5
12
|
env?: Global.Env;
|
|
6
13
|
}
|
package/dist/pay/recharge.js
CHANGED
|
@@ -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,17 +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
|
|
48
|
+
var _PayChannelList$filte;
|
|
49
|
+
var appId = _ref.appId,
|
|
50
|
+
nickName = _ref.nickName,
|
|
51
|
+
_ref$minPrice = _ref.minPrice,
|
|
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,
|
|
60
|
+
_ref$maxPrice = _ref.maxPrice,
|
|
61
|
+
maxPrice = _ref$maxPrice === void 0 ? 5000 : _ref$maxPrice,
|
|
43
62
|
onHandSuccess = _ref.onHandSuccess,
|
|
44
63
|
env = _ref.env;
|
|
45
|
-
var _useState = useState(PayChannelList
|
|
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]),
|
|
46
69
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47
70
|
selectPayChannel = _useState2[0],
|
|
48
71
|
setSelectPayChannel = _useState2[1];
|
|
49
72
|
var _useState3 = useState({
|
|
50
73
|
moneyAmount: 300,
|
|
51
|
-
payChannel:
|
|
74
|
+
payChannel: defaultPayChannel
|
|
52
75
|
}),
|
|
53
76
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
77
|
formData = _useState4[0],
|
|
@@ -106,7 +129,7 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
106
129
|
},
|
|
107
130
|
initialValues: _objectSpread({}, formData),
|
|
108
131
|
onFinish: onMakeQr,
|
|
109
|
-
children: [step === 'pay-channel' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
132
|
+
children: ["step:", step, step === 'pay-channel' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
110
133
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
111
134
|
label: "\u5145\u503C\u8D26\u53F7",
|
|
112
135
|
children: /*#__PURE__*/_jsx("strong", {
|
|
@@ -136,8 +159,8 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
136
159
|
}),
|
|
137
160
|
addonAfter: "\u5143",
|
|
138
161
|
precision: 0,
|
|
139
|
-
min:
|
|
140
|
-
max:
|
|
162
|
+
min: minPrice,
|
|
163
|
+
max: maxPrice,
|
|
141
164
|
placeholder: "\u8BF7\u8F93\u5165\u5145\u503C\u91D1\u989D",
|
|
142
165
|
autoFocus: true,
|
|
143
166
|
controls: false
|
|
@@ -146,6 +169,13 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
146
169
|
name: "payChannel",
|
|
147
170
|
label: "\u652F\u4ED8\u6E20\u9053",
|
|
148
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
|
+
},
|
|
149
179
|
children: PayChannelList.map(function (items, index) {
|
|
150
180
|
return items.disabled ? null : /*#__PURE__*/_jsxs("div", {
|
|
151
181
|
className: "ssz-groupItems",
|
|
@@ -153,12 +183,10 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
153
183
|
className: "ssz-groupTitle",
|
|
154
184
|
children: items.groupTitle
|
|
155
185
|
}), items.childrenList.map(function (item, i) {
|
|
156
|
-
return item.disabled ? null : /*#__PURE__*/_jsx(Radio, {
|
|
186
|
+
return item.disabled || !(allowPayChannelList !== null && allowPayChannelList !== void 0 && allowPayChannelList.includes(item.name)) ? null : /*#__PURE__*/_jsx(Radio, {
|
|
157
187
|
disabled: item.disabled,
|
|
158
188
|
value: item.name,
|
|
159
|
-
|
|
160
|
-
setSelectPayChannel(PayChannelList[index].childrenList[i]);
|
|
161
|
-
},
|
|
189
|
+
id: "payChannel-".concat(index, "-").concat(i),
|
|
162
190
|
children: /*#__PURE__*/_jsxs(Tag, {
|
|
163
191
|
color: item.color,
|
|
164
192
|
className: "ssz-color-tag",
|
|
@@ -171,16 +199,17 @@ var PayRecharge = function PayRecharge(_ref) {
|
|
|
171
199
|
})
|
|
172
200
|
})]
|
|
173
201
|
}), step === 'qr-show' && /*#__PURE__*/_jsx(_Fragment, {
|
|
174
|
-
children:
|
|
202
|
+
children: /*#__PURE__*/_jsx(PayQr, {
|
|
203
|
+
appId: appId,
|
|
175
204
|
moneyAmount: formData.moneyAmount,
|
|
176
205
|
productCount: formData.moneyAmount,
|
|
177
|
-
productName:
|
|
206
|
+
productName: BaseDict.productKind[productKind],
|
|
178
207
|
vipId: 0,
|
|
179
208
|
payChannel: formData.payChannel,
|
|
180
209
|
selectPayChannel: selectPayChannel,
|
|
181
|
-
size:
|
|
210
|
+
size: size,
|
|
182
211
|
env: env,
|
|
183
|
-
productKind:
|
|
212
|
+
productKind: productKind
|
|
184
213
|
})
|
|
185
214
|
}), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs("div", {
|
|
186
215
|
className: "ssz-submits",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "component-sanzhizhou",
|
|
3
|
-
"version": "1.0.
|
|
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",
|