component-shipinlv 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AuthClient/login-reg.css.d.ts +5 -0
- package/dist/AuthClient/login-reg.css.js +6 -0
- package/dist/AuthClient/login-reg.d.ts +0 -1
- package/dist/AuthClient/login-reg.js +2 -3
- package/dist/AuthClient/login.css.d.ts +5 -0
- package/dist/AuthClient/login.css.js +6 -0
- package/dist/AuthClient/login.d.ts +0 -1
- package/dist/AuthClient/login.js +2 -1
- package/dist/AuthClient/qr/index.css.d.ts +8 -0
- package/dist/AuthClient/qr/index.css.js +9 -0
- package/dist/AuthClient/qr/index.d.ts +0 -1
- package/dist/AuthClient/qr/index.js +37 -43
- package/dist/AuthClient/reg.d.ts +0 -1
- package/dist/AuthClient/reg.js +0 -1
- package/dist/Buy/index.css.d.ts +5 -0
- package/dist/Buy/index.css.js +6 -0
- package/dist/Buy/index.d.ts +0 -1
- package/dist/Buy/index.js +11 -9
- package/dist/Buy/qr.css.d.ts +5 -0
- package/dist/Buy/qr.css.js +6 -0
- package/dist/Buy/qr.d.ts +0 -1
- package/dist/Buy/qr.js +73 -71
- package/dist/UI/DialogDrawer.css.d.ts +5 -0
- package/dist/UI/DialogDrawer.css.js +6 -0
- package/dist/UI/DialogDrawer.d.ts +0 -1
- package/dist/UI/DialogDrawer.js +14 -12
- package/dist/UI/DialogDrawerFooter.css.d.ts +5 -0
- package/dist/UI/DialogDrawerFooter.css.js +6 -0
- package/dist/UI/DialogDrawerFooter.d.ts +0 -1
- package/dist/UI/DialogDrawerFooter.js +2 -3
- package/dist/UI/LoadError.css.d.ts +5 -0
- package/dist/UI/LoadError.css.js +6 -0
- package/dist/UI/LoadError.d.ts +0 -1
- package/dist/UI/LoadError.js +2 -3
- package/dist/UI/PageContentWarp.css.d.ts +5 -0
- package/dist/UI/PageContentWarp.css.js +6 -0
- package/dist/UI/PageContentWarp.d.ts +0 -1
- package/dist/UI/PageContentWarp.js +2 -2
- package/dist/VipCompare/commend.css.d.ts +5 -0
- package/dist/VipCompare/commend.css.js +6 -0
- package/dist/VipCompare/commend.d.ts +0 -1
- package/dist/VipCompare/commend.js +2 -3
- package/dist/VipCompare/index.css.d.ts +5 -0
- package/dist/VipCompare/index.css.js +6 -0
- package/dist/VipCompare/index.d.ts +0 -1
- package/dist/VipCompare/index.js +48 -47
- package/package.json +3 -1
- package/dist/AuthClient/login-reg.scss +0 -13
- package/dist/AuthClient/login.scss +0 -52
- package/dist/AuthClient/qr/index.scss +0 -84
- package/dist/AuthClient/reg.scss +0 -3
- package/dist/Buy/index.scss +0 -26
- package/dist/Buy/qr.scss +0 -69
- package/dist/Product/index.scss +0 -84
- package/dist/UI/DialogDrawer.scss +0 -10
- package/dist/UI/DialogDrawerFooter.scss +0 -19
- package/dist/UI/LoadError.scss +0 -18
- package/dist/UI/PageContentWarp.scss +0 -11
- package/dist/VipCompare/commend.scss +0 -7
- package/dist/VipCompare/index.scss +0 -26
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
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 "])))
|
6
|
+
};
|
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
|
|
3
3
|
import { Tabs, Radio } from "antd";
|
4
4
|
import { UserAddOutlined, UserOutlined } from "@ant-design/icons";
|
5
5
|
import Reg from "./reg";
|
6
|
-
import "./login-reg.
|
6
|
+
import styles from "./login-reg.css";
|
7
7
|
import AuthLogin from "./login";
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -17,8 +17,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
17
17
|
_useState2 = _slicedToArray(_useState, 2),
|
18
18
|
activeKey = _useState2[0],
|
19
19
|
setActiveKey = _useState2[1];
|
20
|
-
return /*#__PURE__*/_jsxs(
|
21
|
-
className: "loginReg",
|
20
|
+
return /*#__PURE__*/_jsxs(styles.LoginReg, {
|
22
21
|
children: [/*#__PURE__*/_jsx("div", {
|
23
22
|
className: "radioSelectBox",
|
24
23
|
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
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 "])))
|
6
|
+
};
|
package/dist/AuthClient/login.js
CHANGED
@@ -7,7 +7,8 @@ import { LockOutlined, UserOutlined, EyeTwoTone, EyeInvisibleOutlined } from '@a
|
|
7
7
|
import { Input, Button, Form } from 'antd';
|
8
8
|
import Tool from "../lib/Tool";
|
9
9
|
import { useRequest } from '@umijs/hooks';
|
10
|
-
|
10
|
+
|
11
|
+
// import styles from "./reg.scss" ;
|
11
12
|
import * as AuthController from "../service/api/AuthController";
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
7
|
+
};
|
8
|
+
export default _default;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
export default {
|
5
|
+
AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .qr{\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 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 "]))),
|
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 "])))
|
9
|
+
};
|
@@ -7,15 +7,15 @@ import { WechatOutlined, RedoOutlined, UserOutlined } from '@ant-design/icons';
|
|
7
7
|
import { Tabs } from 'antd';
|
8
8
|
import Tool from "../../lib/Tool";
|
9
9
|
import { useRequest } from '@umijs/hooks';
|
10
|
-
import "./index.scss";
|
11
10
|
import * as AuthController from "../../service/api/AuthController";
|
12
11
|
import PageContentWarp from "../../UI/PageContentWarp";
|
13
12
|
import AuthLoginReg from "../login-reg";
|
14
13
|
import Platform from "../../lib/platform";
|
15
14
|
import QrWs from "./ws";
|
16
15
|
import { getApiEnv } from "../../lib/getApiUrl";
|
17
|
-
|
16
|
+
import styles from "./index.css";
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
18
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
19
19
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
20
20
|
var reTryMaxCount = 120;
|
21
21
|
var reTryTimeLoop = 1000; // ms
|
@@ -229,17 +229,11 @@ var LoginQr = function LoginQr(_ref) {
|
|
229
229
|
clearTimeout(timer.current);
|
230
230
|
};
|
231
231
|
}, []);
|
232
|
-
return /*#__PURE__*/_jsx(
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
className: "form-group",
|
238
|
-
children: /*#__PURE__*/_jsx("h1", {
|
239
|
-
className: "webTitle",
|
240
|
-
children: /*#__PURE__*/_jsx("span", {
|
241
|
-
children: "\u767B\u5F55/\u6CE8\u518C"
|
242
|
-
})
|
232
|
+
return /*#__PURE__*/_jsx(styles.AuthQrLogin, {
|
233
|
+
children: /*#__PURE__*/_jsxs(styles.LoginForm, {
|
234
|
+
children: [/*#__PURE__*/_jsx(styles.WebTitle, {
|
235
|
+
children: /*#__PURE__*/_jsx("span", {
|
236
|
+
children: "\u767B\u5F55/\u6CE8\u518C"
|
243
237
|
})
|
244
238
|
}), /*#__PURE__*/_jsxs(Tabs, {
|
245
239
|
activeKey: activeKey,
|
@@ -247,46 +241,46 @@ var LoginQr = function LoginQr(_ref) {
|
|
247
241
|
onTabChange(keyName);
|
248
242
|
},
|
249
243
|
children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
|
250
|
-
tab: /*#__PURE__*/_jsxs(
|
251
|
-
|
252
|
-
children: [/*#__PURE__*/_jsx(WechatOutlined, {}), "\u5FAE\u4FE1"]
|
244
|
+
tab: /*#__PURE__*/_jsxs(_Fragment, {
|
245
|
+
children: [/*#__PURE__*/_jsx(WechatOutlined, {}), " \u5FAE\u4FE1"]
|
253
246
|
}),
|
254
247
|
disabled: wechatDisabled,
|
255
|
-
children: /*#__PURE__*/
|
248
|
+
children: /*#__PURE__*/_jsx(PageContentWarp, {
|
256
249
|
loading: loadingWeLoginQr || loading,
|
257
250
|
error: errorWeLoginQr,
|
258
251
|
onReload: function onReload() {
|
259
252
|
return onRetryWeQr();
|
260
253
|
},
|
261
|
-
|
262
|
-
children: [/*#__PURE__*/_jsx("div", {
|
263
|
-
style: {
|
264
|
-
backgroundImage: "url('".concat(weQrUrl, "')")
|
265
|
-
},
|
266
|
-
className: "qr wechat ".concat(isNextTry ? '' : 'noTry'),
|
267
|
-
children: !isNextTry && /*#__PURE__*/_jsx("div", {
|
268
|
-
className: "reTry",
|
269
|
-
onClick: onRetryWeQr,
|
270
|
-
children: /*#__PURE__*/_jsx("a", {
|
271
|
-
children: /*#__PURE__*/_jsx(RedoOutlined, {})
|
272
|
-
})
|
273
|
-
})
|
274
|
-
}), Platform.isH5 ? /*#__PURE__*/_jsxs("div", {
|
275
|
-
className: "altWeb",
|
254
|
+
children: /*#__PURE__*/_jsxs(styles.WeQrUrlBox, {
|
276
255
|
children: [/*#__PURE__*/_jsx("div", {
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
256
|
+
style: {
|
257
|
+
backgroundImage: "url('".concat(weQrUrl, "')")
|
258
|
+
},
|
259
|
+
className: "qr wechat ".concat(isNextTry ? '' : 'noTry'),
|
260
|
+
children: !isNextTry && /*#__PURE__*/_jsx("div", {
|
261
|
+
className: "reTry",
|
262
|
+
onClick: onRetryWeQr,
|
263
|
+
children: /*#__PURE__*/_jsx("a", {
|
264
|
+
children: /*#__PURE__*/_jsx(RedoOutlined, {})
|
265
|
+
})
|
266
|
+
})
|
267
|
+
}), Platform.isH5 ? /*#__PURE__*/_jsxs("div", {
|
268
|
+
className: "altWeb",
|
269
|
+
children: [/*#__PURE__*/_jsx("div", {
|
270
|
+
className: "titles",
|
271
|
+
children: "\u4E0B\u9762\u4EFB\u9009\u4E00\u4E2A\u65B9\u6CD5\u90FD\u53EF\u4EE5\u767B\u5F55\uFF1A"
|
272
|
+
}), /*#__PURE__*/_jsxs("ul", {
|
273
|
+
children: [/*#__PURE__*/_jsx("li", {
|
274
|
+
children: "1\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"
|
275
|
+
}), /*#__PURE__*/_jsx("li", {
|
276
|
+
children: "2\u3001\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"
|
277
|
+
})]
|
284
278
|
})]
|
279
|
+
}) : /*#__PURE__*/_jsx("div", {
|
280
|
+
className: "alt",
|
281
|
+
children: "\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"
|
285
282
|
})]
|
286
|
-
})
|
287
|
-
className: "alt",
|
288
|
-
children: "\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"
|
289
|
-
})]
|
283
|
+
})
|
290
284
|
})
|
291
285
|
}, "wechat"), !accountHidden && /*#__PURE__*/_jsx(Tabs.TabPane, {
|
292
286
|
tab: /*#__PURE__*/_jsxs("span", {
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
@@ -6,7 +6,6 @@ import React from 'react';
|
|
6
6
|
import { LockOutlined, UserOutlined, EyeTwoTone, EyeInvisibleOutlined } from '@ant-design/icons';
|
7
7
|
import { Input, Button, Form } from 'antd';
|
8
8
|
import Tool from "../lib/Tool";
|
9
|
-
import "./reg.scss";
|
10
9
|
import { useRequest } from "@umijs/hooks";
|
11
10
|
import * as AuthController from "../service/api/AuthController";
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
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 "])))
|
6
|
+
};
|
package/dist/Buy/index.d.ts
CHANGED
package/dist/Buy/index.js
CHANGED
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import React from 'react';
|
4
4
|
import { Button } from 'antd';
|
5
5
|
import Tool from "../lib/Tool";
|
6
|
-
import "./index.
|
6
|
+
import styles from "./index.css";
|
7
7
|
import VipQr from "./qr";
|
8
8
|
import Platform from "../lib/platform";
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -78,14 +78,16 @@ var Buy = function Buy(_ref) {
|
|
78
78
|
// 广播,点击了 购买;
|
79
79
|
Tool.event.run('vip-buy-click');
|
80
80
|
};
|
81
|
-
return /*#__PURE__*/_jsx(
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
81
|
+
return /*#__PURE__*/_jsx(styles.Buy, {
|
82
|
+
children: /*#__PURE__*/_jsx(Button, {
|
83
|
+
type: "primary",
|
84
|
+
size: buttonSmall,
|
85
|
+
disabled: disabled,
|
86
|
+
onClick: function onClick() {
|
87
|
+
return onBuy();
|
88
|
+
},
|
89
|
+
children: title
|
90
|
+
})
|
89
91
|
});
|
90
92
|
};
|
91
93
|
export default Buy;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
export default {
|
5
|
+
BuyQr: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-vipQr{\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: 20px auto 10px;\n img{\n display: block;\n width: 100%;\n max-width: 100%;\n }\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 }\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\n .payResult{\n .ant-result{\n padding: 0 30px 30px;\n }\n .ant-result-icon{\n display: none;\n }\n }\n }\n\n "])))
|
6
|
+
};
|
package/dist/Buy/qr.d.ts
CHANGED
package/dist/Buy/qr.js
CHANGED
@@ -7,7 +7,7 @@ import * as TradeController from "../service/api/TradeController";
|
|
7
7
|
import * as VipController from "../service/api/VipController";
|
8
8
|
import Tool from "../lib/Tool";
|
9
9
|
import PageContentWarp from "../UI/PageContentWarp";
|
10
|
-
import "./qr.
|
10
|
+
import styles from "./qr.css";
|
11
11
|
import Platform from "../lib/platform";
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -105,81 +105,83 @@ var VipQr = function VipQr(_ref) {
|
|
105
105
|
loading = _useRequest2.loading,
|
106
106
|
run = _useRequest2.run,
|
107
107
|
error = _useRequest2.error;
|
108
|
-
return /*#__PURE__*/
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
children: ["
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
children: "
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
children: "\u5143"
|
127
|
-
}), " / ", detailData.monthTitle, productCount > 1 && /*#__PURE__*/_jsxs(_Fragment, {
|
128
|
-
children: [/*#__PURE__*/_jsx(CloseOutlined, {
|
129
|
-
className: "multiply"
|
130
|
-
}), /*#__PURE__*/_jsx("span", {
|
131
|
-
className: "productCount",
|
132
|
-
children: productCount
|
133
|
-
}), /*#__PURE__*/_jsx(PauseOutlined, {
|
134
|
-
className: "equal"
|
135
|
-
}), /*#__PURE__*/_jsx("span", {
|
136
|
-
className: "moneyAll",
|
137
|
-
children: parseFloat(Tool.math.multiply(detailData.price, productCount).toFixed(0))
|
108
|
+
return /*#__PURE__*/_jsx(styles.BuyQr, {
|
109
|
+
children: /*#__PURE__*/_jsxs(PageContentWarp, {
|
110
|
+
loading: loading || loadingPay,
|
111
|
+
error: error || errorPay
|
112
|
+
// title="购买会员"
|
113
|
+
,
|
114
|
+
onReload: function onReload() {
|
115
|
+
return run();
|
116
|
+
},
|
117
|
+
className: "ktv-ai-vipQr",
|
118
|
+
children: [/*#__PURE__*/_jsxs("h2", {
|
119
|
+
children: ["\u8D2D\u4E70\u4F1A\u5458\uFF1A", detailData.productName || detailData.productType]
|
120
|
+
}), /*#__PURE__*/_jsxs("div", {
|
121
|
+
className: "price",
|
122
|
+
children: [/*#__PURE__*/_jsx("small", {
|
123
|
+
children: "\uFFE5"
|
124
|
+
}), /*#__PURE__*/_jsx("strong", {
|
125
|
+
children: detailData.price
|
138
126
|
}), /*#__PURE__*/_jsx("small", {
|
139
|
-
className: "yen",
|
140
127
|
children: "\u5143"
|
141
|
-
})
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
}) : /*#__PURE__*/_jsxs("div", {
|
156
|
-
className: "alt",
|
157
|
-
children: ["\u8BF7\u7528 ", /*#__PURE__*/_jsx(WechatOutlined, {
|
158
|
-
className: "wechatIcon"
|
159
|
-
}), " \u5FAE\u4FE1 \u626B\u7801\u652F\u4ED8 ", /*#__PURE__*/_jsx(Divider, {
|
160
|
-
type: "vertical"
|
161
|
-
}), " \u4E5F\u53EF\u4EE5\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"]
|
162
|
-
}), payResult && /*#__PURE__*/_jsxs("div", {
|
163
|
-
className: "payResult",
|
164
|
-
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Result, {
|
165
|
-
title: "\u662F\u5426\u5DF2\u7ECF\u8D2D\u4E70\u6210\u529F\uFF1F",
|
166
|
-
subTitle: "\u8D2D\u4E70\u6210\u529F\u540E\uFF0C\u53EF\u4EE5\u5728\u201C\u6211\u7684\u201D\u9875\u9762\u67E5\u770B",
|
167
|
-
extra: /*#__PURE__*/_jsxs(Space, {
|
168
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
169
|
-
type: "primary",
|
170
|
-
onClick: function onClick() {
|
171
|
-
return onHandlePaySuccess();
|
172
|
-
},
|
173
|
-
children: "\u5DF2\u7ECF\u4ED8\u6B3E\u6210\u529F"
|
174
|
-
}), /*#__PURE__*/_jsx(Button, {
|
175
|
-
onClick: function onClick() {
|
176
|
-
return setPayResult(false);
|
177
|
-
},
|
178
|
-
children: "\u672A\u4ED8\u6B3E"
|
128
|
+
}), " / ", detailData.monthTitle, productCount > 1 && /*#__PURE__*/_jsxs(_Fragment, {
|
129
|
+
children: [/*#__PURE__*/_jsx(CloseOutlined, {
|
130
|
+
className: "multiply"
|
131
|
+
}), /*#__PURE__*/_jsx("span", {
|
132
|
+
className: "productCount",
|
133
|
+
children: productCount
|
134
|
+
}), /*#__PURE__*/_jsx(PauseOutlined, {
|
135
|
+
className: "equal"
|
136
|
+
}), /*#__PURE__*/_jsx("span", {
|
137
|
+
className: "moneyAll",
|
138
|
+
children: parseFloat(Tool.math.multiply(detailData.price, productCount).toFixed(0))
|
139
|
+
}), /*#__PURE__*/_jsx("small", {
|
140
|
+
className: "yen",
|
141
|
+
children: "\u5143"
|
179
142
|
})]
|
143
|
+
})]
|
144
|
+
}), /*#__PURE__*/_jsx("div", {
|
145
|
+
className: "qrImage",
|
146
|
+
children: payQrImageUrl && /*#__PURE__*/_jsx("img", {
|
147
|
+
src: payQrImageUrl,
|
148
|
+
alt: ""
|
180
149
|
})
|
150
|
+
}), Platform.isH5 ? /*#__PURE__*/_jsxs("div", {
|
151
|
+
className: "altInH5",
|
152
|
+
children: ["\u957F\u6309\u4E8C\u7EF4\u7801\uFF0C\u53EF\u8BC6\u522B\u4E8C\u7EF4\u7801\u652F\u4ED8", /*#__PURE__*/_jsx("p", {
|
153
|
+
className: "toFriend",
|
154
|
+
children: "\u6216\u8005\u4FDD\u5B58\u56FE\u7247\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"
|
155
|
+
})]
|
156
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
157
|
+
className: "alt",
|
158
|
+
children: ["\u8BF7\u7528 ", /*#__PURE__*/_jsx(WechatOutlined, {
|
159
|
+
className: "wechatIcon"
|
160
|
+
}), " \u5FAE\u4FE1 \u626B\u7801\u652F\u4ED8 ", /*#__PURE__*/_jsx(Divider, {
|
161
|
+
type: "vertical"
|
162
|
+
}), " \u4E5F\u53EF\u4EE5\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"]
|
163
|
+
}), payResult && /*#__PURE__*/_jsxs("div", {
|
164
|
+
className: "payResult",
|
165
|
+
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Result, {
|
166
|
+
title: "\u662F\u5426\u5DF2\u7ECF\u8D2D\u4E70\u6210\u529F\uFF1F",
|
167
|
+
subTitle: "\u8D2D\u4E70\u6210\u529F\u540E\uFF0C\u53EF\u4EE5\u5728\u201C\u6211\u7684\u201D\u9875\u9762\u67E5\u770B",
|
168
|
+
extra: /*#__PURE__*/_jsxs(Space, {
|
169
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
170
|
+
type: "primary",
|
171
|
+
onClick: function onClick() {
|
172
|
+
return onHandlePaySuccess();
|
173
|
+
},
|
174
|
+
children: "\u5DF2\u7ECF\u4ED8\u6B3E\u6210\u529F"
|
175
|
+
}), /*#__PURE__*/_jsx(Button, {
|
176
|
+
onClick: function onClick() {
|
177
|
+
return setPayResult(false);
|
178
|
+
},
|
179
|
+
children: "\u672A\u4ED8\u6B3E"
|
180
|
+
})]
|
181
|
+
})
|
182
|
+
})]
|
181
183
|
})]
|
182
|
-
})
|
184
|
+
})
|
183
185
|
});
|
184
186
|
};
|
185
187
|
export default VipQr;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
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 "])))
|
6
|
+
};
|
package/dist/UI/DialogDrawer.js
CHANGED
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import { Drawer, ConfigProvider } from 'antd';
|
3
3
|
import React, { useState, useEffect } from 'react';
|
4
4
|
import Tool from "../lib/Tool";
|
5
|
-
import "./DialogDrawer.
|
5
|
+
import styles from "./DialogDrawer.css";
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
7
|
// 抽屉
|
8
8
|
var DialogDrawer = function DialogDrawer(props) {
|
@@ -50,17 +50,19 @@ var DialogDrawer = function DialogDrawer(props) {
|
|
50
50
|
colorPrimary: '#722ED1'
|
51
51
|
}
|
52
52
|
},
|
53
|
-
children: /*#__PURE__*/_jsx(
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
53
|
+
children: /*#__PURE__*/_jsx(styles.DrawerDialog, {
|
54
|
+
children: /*#__PURE__*/_jsx(Drawer, {
|
55
|
+
className: "ktv-ai-drawerDialog ".concat(state.bgTheme, " "),
|
56
|
+
title: state.title,
|
57
|
+
placement: state.placement,
|
58
|
+
closable: state.closable,
|
59
|
+
onClose: function onClose() {
|
60
|
+
return _onClose();
|
61
|
+
},
|
62
|
+
visible: visible,
|
63
|
+
width: state.width,
|
64
|
+
children: props.content
|
65
|
+
})
|
64
66
|
})
|
65
67
|
});
|
66
68
|
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
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 }\n .pos{\n height: 56px;\n }\n "])))
|
6
|
+
};
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { Space } from 'antd';
|
3
|
-
import "./DialogDrawerFooter.
|
3
|
+
import styles from "./DialogDrawerFooter.css";
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
6
|
var DialogDrawerFooter = function DialogDrawerFooter(_ref) {
|
7
7
|
var children = _ref.children;
|
8
|
-
return /*#__PURE__*/_jsxs(
|
9
|
-
className: "ktv-ai-dialogDrawerFooter",
|
8
|
+
return /*#__PURE__*/_jsxs(styles.DialogDrawerFooter, {
|
10
9
|
children: [/*#__PURE__*/_jsx("div", {
|
11
10
|
className: "warp",
|
12
11
|
children: /*#__PURE__*/_jsx("div", {
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
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>>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import styled from 'styled-components';
|
4
|
+
export default {
|
5
|
+
LoadError: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :global{\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 }\n "])))
|
6
|
+
};
|