component-shipinlv 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/dist/AuthClient/login-reg.css.d.ts +5 -0
  2. package/dist/AuthClient/login-reg.css.js +6 -0
  3. package/dist/AuthClient/login-reg.d.ts +0 -1
  4. package/dist/AuthClient/login-reg.js +2 -3
  5. package/dist/AuthClient/login.css.d.ts +5 -0
  6. package/dist/AuthClient/login.css.js +6 -0
  7. package/dist/AuthClient/login.d.ts +0 -1
  8. package/dist/AuthClient/login.js +2 -1
  9. package/dist/AuthClient/qr/index.css.d.ts +8 -0
  10. package/dist/AuthClient/qr/index.css.js +9 -0
  11. package/dist/AuthClient/qr/index.js +49 -45
  12. package/dist/AuthClient/reg.d.ts +0 -1
  13. package/dist/AuthClient/reg.js +0 -1
  14. package/dist/Buy/index.css.d.ts +5 -0
  15. package/dist/Buy/index.css.js +6 -0
  16. package/dist/Buy/index.d.ts +0 -1
  17. package/dist/Buy/index.js +13 -10
  18. package/dist/Buy/qr.css.d.ts +5 -0
  19. package/dist/Buy/qr.css.js +6 -0
  20. package/dist/Buy/qr.d.ts +0 -1
  21. package/dist/Buy/qr.js +76 -72
  22. package/dist/UI/DialogDrawer.css.d.ts +5 -0
  23. package/dist/UI/DialogDrawer.css.js +6 -0
  24. package/dist/UI/DialogDrawer.d.ts +0 -1
  25. package/dist/UI/DialogDrawer.js +16 -13
  26. package/dist/UI/DialogDrawerFooter.css.d.ts +5 -0
  27. package/dist/UI/DialogDrawerFooter.css.js +6 -0
  28. package/dist/UI/DialogDrawerFooter.d.ts +0 -1
  29. package/dist/UI/DialogDrawerFooter.js +2 -3
  30. package/dist/UI/LoadError.css.d.ts +5 -0
  31. package/dist/UI/LoadError.css.js +6 -0
  32. package/dist/UI/LoadError.d.ts +0 -1
  33. package/dist/UI/LoadError.js +2 -3
  34. package/dist/UI/PageContentWarp.css.d.ts +5 -0
  35. package/dist/UI/PageContentWarp.css.js +6 -0
  36. package/dist/UI/PageContentWarp.d.ts +0 -1
  37. package/dist/UI/PageContentWarp.js +2 -2
  38. package/dist/VipCompare/commend.css.d.ts +5 -0
  39. package/dist/VipCompare/commend.css.js +6 -0
  40. package/dist/VipCompare/commend.d.ts +0 -1
  41. package/dist/VipCompare/commend.js +2 -3
  42. package/dist/VipCompare/index.css.d.ts +5 -0
  43. package/dist/VipCompare/index.css.js +6 -0
  44. package/dist/VipCompare/index.d.ts +0 -1
  45. package/dist/VipCompare/index.js +48 -47
  46. package/dist/lib/Tool.d.ts +1 -0
  47. package/dist/lib/Tool.js +29 -10
  48. package/dist/lib/getApiUrl.js +4 -4
  49. package/dist/lib/js-error.js +3 -0
  50. package/dist/lib/platform.js +4 -3
  51. package/dist/lib/request.js +2 -2
  52. package/package.json +3 -1
  53. package/dist/AuthClient/login-reg.scss +0 -13
  54. package/dist/AuthClient/login.scss +0 -52
  55. package/dist/AuthClient/qr/index.scss +0 -84
  56. package/dist/AuthClient/reg.scss +0 -3
  57. package/dist/Buy/index.scss +0 -26
  58. package/dist/Buy/qr.scss +0 -69
  59. package/dist/UI/DialogDrawer.scss +0 -10
  60. package/dist/UI/DialogDrawerFooter.scss +0 -19
  61. package/dist/UI/LoadError.scss +0 -18
  62. package/dist/UI/PageContentWarp.scss +0 -11
  63. package/dist/VipCompare/commend.scss +0 -7
  64. package/dist/VipCompare/index.scss +0 -26
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { Space } from 'antd';
3
- import "./DialogDrawerFooter.scss";
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("div", {
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
+ };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './LoadError.scss';
3
2
  interface Props {
4
3
  title?: string;
5
4
  code?: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Button, Result } from 'antd';
3
- import "./LoadError.scss";
3
+ import styles from "./LoadError.css";
4
4
  import { MehOutlined } from '@ant-design/icons';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  var LoadError = function LoadError(_ref) {
@@ -18,8 +18,7 @@ var LoadError = function LoadError(_ref) {
18
18
  }
19
19
  return outTitle;
20
20
  };
21
- return /*#__PURE__*/_jsx("div", {
22
- className: "ktv-ai-loadError",
21
+ return /*#__PURE__*/_jsx(styles.LoadError, {
23
22
  children: /*#__PURE__*/_jsx(Result, {
24
23
  icon: /*#__PURE__*/_jsx(MehOutlined, {}),
25
24
  title: getTitle(),
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ PageContentBox: 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
+ PageContentBox: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ktv-ai-loading{\n padding: 20px;\n text-align: center;\n display: flex;\n flex-direction: row;\n justify-content: center;\n font-size: 30px;\n }\n "])))
6
+ };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './PageContentWarp.scss';
3
2
  interface Props {
4
3
  title?: React.ReactNode;
5
4
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import "./PageContentWarp.scss";
2
+ import styles from "./PageContentWarp.css";
3
3
  import LoadError from "./LoadError";
4
4
  import { LoadingOutlined } from '@ant-design/icons';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -22,7 +22,7 @@ var PageContentWarp = function PageContentWarp(_ref) {
22
22
  error = _ref.error,
23
23
  errorNode = _ref.errorNode,
24
24
  onReload = _ref.onReload;
25
- return /*#__PURE__*/_jsxs("div", {
25
+ return /*#__PURE__*/_jsxs(styles.PageContentBox, {
26
26
  className: "ktv-ai-pageContentBox ".concat(className),
27
27
  style: {
28
28
  minHeight: minHeight > 0 ? minHeight : 'auto'
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ VipCommend: 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
+ VipCommend: styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: #F60;\n padding-left: 3px;\n .ktv-ai-icon{\n margin-right: 1px;\n }\n "])))
6
+ };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './commend.scss';
3
2
  interface Props {
4
3
  commend?: number;
5
4
  }
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import { LikeOutlined } from '@ant-design/icons';
4
- import "./commend.scss";
4
+ import styles from "./commend.css";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  var VipCommend = function VipCommend(_ref) {
7
7
  var _ref$commend = _ref.commend,
@@ -17,8 +17,7 @@ var VipCommend = function VipCommend(_ref) {
17
17
  }
18
18
  setList(dataList);
19
19
  }, [commend]);
20
- return /*#__PURE__*/_jsx("span", {
21
- className: "ktv-ai-vipCommend",
20
+ return /*#__PURE__*/_jsx(styles.VipCommend, {
22
21
  children: list.map(function (num, i) {
23
22
  return /*#__PURE__*/_jsx(LikeOutlined, {
24
23
  className: "ktv-ai-icon"
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ VipCompare: 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
+ VipCompare: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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 "])))
6
+ };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import "./index.scss";
3
2
  interface Props {
4
3
  productType: string;
5
4
  env?: Global.Env;
@@ -8,7 +8,7 @@ import { useRequest } from '@umijs/hooks';
8
8
  import * as VipController from "../service/api/VipController";
9
9
  import Tool from "../lib/Tool";
10
10
  import PageContentWarp from "../UI/PageContentWarp";
11
- import "./index.scss";
11
+ import styles from "./index.css";
12
12
  import { QuestionCircleFilled, LikeOutlined } from '@ant-design/icons';
13
13
  import VipCommend from "./commend";
14
14
  import * as UserController from "../service/api/UserController";
@@ -263,58 +263,59 @@ var VipCompare = function VipCompare(_ref) {
263
263
  });
264
264
  setColumns(_toConsumableArray(columns));
265
265
  }, []);
266
- return /*#__PURE__*/_jsxs(PageContentWarp, {
266
+ return /*#__PURE__*/_jsx(PageContentWarp, {
267
267
  loading: loading,
268
268
  error: error,
269
269
  onReload: function onReload() {
270
270
  return run();
271
271
  },
272
- className: "ktv-ai-vip-compare",
273
- children: [/*#__PURE__*/_jsx("div", {
274
- className: "listMore",
275
- children: /*#__PURE__*/_jsx(Popover, {
276
- title: "\u4F1A\u5458\u63D0\u6210\u4ECB\u7ECD",
277
- placement: "topRight",
278
- content: /*#__PURE__*/_jsxs("div", {
279
- className: "vipCompareListMoreContent",
280
- children: [/*#__PURE__*/_jsx("p", {
281
- children: "\u60A8\u53EF\u4EE5\u8D2D\u4E70\u7684\u4F1A\u5458\u52A0\u901F\u5361\uFF0C\u63A8\u5E7F\u8D5A\u94B1\uFF1B\u4F1A\u5458\u7B49\u7EA7\u7B49\u7EA7\u8D8A\u9AD8\uFF0C\u6536\u76CA\u8D8A\u9AD8\uFF1B"
282
- }), /*#__PURE__*/_jsx(Table, {
283
- size: "small",
284
- bordered: true,
285
- rowKey: function rowKey(record) {
286
- return "".concat(record.id);
287
- },
288
- loading: loading,
289
- columns: columnsMore,
290
- dataSource: listData,
291
- pagination: false
292
- }), /*#__PURE__*/_jsxs("div", {
293
- className: ".vip-compare-ratioAlt",
294
- children: [/*#__PURE__*/_jsx("strong", {
295
- children: "\u4E00\u7EA7\u597D\u53CB"
296
- }), "\u8868\u793A\u4F60\u9080\u8BF7\u7684\u597D\u53CB\uFF0C", /*#__PURE__*/_jsx("strong", {
297
- children: "\u4E8C\u7EA7\u597D\u53CB"
298
- }), "\u8868\u793A\u4F60\u7684\u597D\u53CB\u9080\u8BF7\u7684\u597D\u53CB\uFF1B\u597D\u53CB\u5728\u5E73\u53F0", /*#__PURE__*/_jsx("strong", {
299
- children: "\u73B0\u5728\u3001\u672A\u6765"
300
- }), "\u7684\u6240\u6709\u6D88\u8D39\u90FD\u6709\u5206\u6210\u3002"]
301
- })]
302
- }),
303
- children: /*#__PURE__*/_jsxs("a", {
304
- children: [/*#__PURE__*/_jsx(QuestionCircleFilled, {}), " \u8BF4\u660E"]
272
+ children: /*#__PURE__*/_jsxs(styles.VipCompare, {
273
+ children: [/*#__PURE__*/_jsx("div", {
274
+ className: "listMore",
275
+ children: /*#__PURE__*/_jsx(Popover, {
276
+ title: "\u4F1A\u5458\u63D0\u6210\u4ECB\u7ECD",
277
+ placement: "topRight",
278
+ content: /*#__PURE__*/_jsxs("div", {
279
+ className: "vipCompareListMoreContent",
280
+ children: [/*#__PURE__*/_jsx("p", {
281
+ children: "\u60A8\u53EF\u4EE5\u8D2D\u4E70\u7684\u4F1A\u5458\u52A0\u901F\u5361\uFF0C\u63A8\u5E7F\u8D5A\u94B1\uFF1B\u4F1A\u5458\u7B49\u7EA7\u7B49\u7EA7\u8D8A\u9AD8\uFF0C\u6536\u76CA\u8D8A\u9AD8\uFF1B"
282
+ }), /*#__PURE__*/_jsx(Table, {
283
+ size: "small",
284
+ bordered: true,
285
+ rowKey: function rowKey(record) {
286
+ return "".concat(record.id);
287
+ },
288
+ loading: loading,
289
+ columns: columnsMore,
290
+ dataSource: listData,
291
+ pagination: false
292
+ }), /*#__PURE__*/_jsxs("div", {
293
+ className: ".vip-compare-ratioAlt",
294
+ children: [/*#__PURE__*/_jsx("strong", {
295
+ children: "\u4E00\u7EA7\u597D\u53CB"
296
+ }), "\u8868\u793A\u4F60\u9080\u8BF7\u7684\u597D\u53CB\uFF0C", /*#__PURE__*/_jsx("strong", {
297
+ children: "\u4E8C\u7EA7\u597D\u53CB"
298
+ }), "\u8868\u793A\u4F60\u7684\u597D\u53CB\u9080\u8BF7\u7684\u597D\u53CB\uFF1B\u597D\u53CB\u5728\u5E73\u53F0", /*#__PURE__*/_jsx("strong", {
299
+ children: "\u73B0\u5728\u3001\u672A\u6765"
300
+ }), "\u7684\u6240\u6709\u6D88\u8D39\u90FD\u6709\u5206\u6210\u3002"]
301
+ })]
302
+ }),
303
+ children: /*#__PURE__*/_jsxs("a", {
304
+ children: [/*#__PURE__*/_jsx(QuestionCircleFilled, {}), " \u8BF4\u660E"]
305
+ })
305
306
  })
306
- })
307
- }), /*#__PURE__*/_jsx(Table, {
308
- size: "small",
309
- bordered: true,
310
- rowKey: function rowKey(record) {
311
- return "".concat(record.id);
312
- },
313
- loading: loading,
314
- columns: columns,
315
- dataSource: listData,
316
- pagination: false
317
- })]
307
+ }), /*#__PURE__*/_jsx(Table, {
308
+ size: "small",
309
+ bordered: true,
310
+ rowKey: function rowKey(record) {
311
+ return "".concat(record.id);
312
+ },
313
+ loading: loading,
314
+ columns: columns,
315
+ dataSource: listData,
316
+ pagination: false
317
+ })]
318
+ })
318
319
  });
319
320
  };
320
321
  export default VipCompare;
@@ -153,6 +153,7 @@ declare const Tool: {
153
153
  top: number;
154
154
  };
155
155
  makeQrUrl(url: string, foreground?: string, size?: number): any;
156
+ makeQr(url: string, fgColor?: string, size?: number): import("react/jsx-runtime").JSX.Element;
156
157
  onLogin(): void;
157
158
  getObjectURL(file: File): string;
158
159
  onDownFile(url: string): void;
package/dist/lib/Tool.js CHANGED
@@ -2,10 +2,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
2
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
+ var _window8;
5
6
  // @ts-nocheck
6
7
 
7
8
  import { Modal, message, Tooltip } from 'antd';
8
- var JrQrcode = require('jr-qrcode');
9
+ // const JrQrcode = require('jr-qrcode');
10
+ import QRCode from 'qrcode.react';
9
11
 
10
12
  // import { history } from 'umi';
11
13
 
@@ -20,13 +22,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
20
22
  var packageJson = require("../../package.json");
21
23
  var store = {
22
24
  key: function key() {
23
- var WebBaseConfig = window.WebBaseConfig || {};
25
+ var _window;
26
+ var WebBaseConfig = ((_window = window) === null || _window === void 0 ? void 0 : _window.WebBaseConfig) || {};
24
27
  return "__".concat(WebBaseConfig.webKind, "-").concat(WebBaseConfig.productName, "__");
25
28
  },
26
29
  get: function get(name) {
27
30
  var getData;
28
31
  try {
29
- getData = window.localStorage.getItem(this.key() + name);
32
+ var _window2;
33
+ getData = (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.localStorage.getItem(this.key() + name);
30
34
  if (getData) {
31
35
  getData = JSON.parse(getData);
32
36
  }
@@ -47,7 +51,8 @@ var store = {
47
51
  value: value
48
52
  };
49
53
  try {
50
- window.localStorage.setItem(this.key() + name, JSON.stringify(saveData));
54
+ var _window3;
55
+ (_window3 = window) === null || _window3 === void 0 || _window3.localStorage.setItem(this.key() + name, JSON.stringify(saveData));
51
56
  } catch (e) {
52
57
  console.error('LocalStorage set Error:', e);
53
58
  }
@@ -319,16 +324,18 @@ var Tool = _objectSpread(_objectSpread({
319
324
  },
320
325
  //参数:变量名,url为空则表从当前页面的url中取
321
326
  getQuery: function getQuery(name) {
327
+ var _window4, _document;
322
328
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
323
- var u = arguments[1] || window.location.search.replace('?', '') || document.location.hash.replace('#', ''),
329
+ var u = arguments[1] || ((_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.location) === null || _window4 === void 0 ? void 0 : _window4.search.replace('?', '')) || ((_document = document) === null || _document === void 0 || (_document = _document.location) === null || _document === void 0 ? void 0 : _document.hash.replace('#', '')),
324
330
  reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'),
325
331
  r = u.substr(u.indexOf('?') + 1).match(reg);
326
332
  return r != null ? decodeURIComponent(r[2]) : '';
327
333
  },
328
334
  getQueryAll: function getQueryAll() {
335
+ var _window5, _document2;
329
336
  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
330
337
  var theRequest = {};
331
- var str = url || window.location.search.replace('?', '') || document.location.hash.replace('#', '');
338
+ var str = url || ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.location) === null || _window5 === void 0 ? void 0 : _window5.search.replace('?', '')) || ((_document2 = document) === null || _document2 === void 0 || (_document2 = _document2.location) === null || _document2 === void 0 ? void 0 : _document2.hash.replace('#', ''));
332
339
  if (url.indexOf('?') !== -1) {
333
340
  str = url.substr(url.indexOf('?') + 1);
334
341
  }
@@ -1032,11 +1039,21 @@ var Tool = _objectSpread(_objectSpread({
1032
1039
  foreground: foreground // 二维码颜色(默认黑色)
1033
1040
  });
1034
1041
  },
1042
+ makeQr: function makeQr(url) {
1043
+ var fgColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#1677ff';
1044
+ var size = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 600;
1045
+ return /*#__PURE__*/_jsx(QRCode, {
1046
+ value: url,
1047
+ fgColor: fgColor,
1048
+ size: size
1049
+ });
1050
+ },
1035
1051
  onLogin: function onLogin() {
1036
1052
  return PostMessage('login');
1037
1053
  },
1038
1054
  getObjectURL: function getObjectURL(file) {
1039
- var url = window.URL || window.webkitURL;
1055
+ var _window6, _window7;
1056
+ var url = ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.URL) || ((_window7 = window) === null || _window7 === void 0 ? void 0 : _window7.webkitURL);
1040
1057
  return url.createObjectURL(file);
1041
1058
  },
1042
1059
  // file
@@ -1081,10 +1098,12 @@ var Tool = _objectSpread(_objectSpread({
1081
1098
  (top || window).document.location.href = 'https://pay.shanren.wang/pay/we-h5?data=' + encodeURIComponent(data);
1082
1099
  }
1083
1100
  });
1084
- if (!window._GData) {
1101
+ if (window && !((_window8 = window) !== null && _window8 !== void 0 && _window8._GData)) {
1085
1102
  window._GData = {};
1086
1103
  }
1087
- Tool.GData = window._GData;
1088
- window._Tool = Tool;
1104
+ if (window) {
1105
+ Tool.GData = window._GData;
1106
+ window._Tool = Tool;
1107
+ }
1089
1108
  Tool.onWindowError();
1090
1109
  export default Tool;
@@ -1,11 +1,11 @@
1
1
  import ApiUrlsInfo, { currentEnv } from "../config/apiUrls";
2
2
  var ApiUrls = function ApiUrls() {
3
- var _window$WebBaseConfig, _window$WebBaseConfig2;
4
- return ((_window$WebBaseConfig = window.WebBaseConfig) === null || _window$WebBaseConfig === void 0 || (_window$WebBaseConfig = _window$WebBaseConfig[(_window$WebBaseConfig2 = window.WebBaseConfig) === null || _window$WebBaseConfig2 === void 0 ? void 0 : _window$WebBaseConfig2.webKind]) === null || _window$WebBaseConfig === void 0 ? void 0 : _window$WebBaseConfig.apiUrls) || ApiUrlsInfo;
3
+ var _window$WebBaseConfig, _window;
4
+ return ((_window$WebBaseConfig = window.WebBaseConfig) === null || _window$WebBaseConfig === void 0 || (_window$WebBaseConfig = _window$WebBaseConfig[(_window = window) === null || _window === void 0 || (_window = _window.WebBaseConfig) === null || _window === void 0 ? void 0 : _window.webKind]) === null || _window$WebBaseConfig === void 0 ? void 0 : _window$WebBaseConfig.apiUrls) || ApiUrlsInfo;
5
5
  };
6
6
  var envData = function envData() {
7
- var _window$WebBaseConfig3;
8
- return ((_window$WebBaseConfig3 = window.WebBaseConfig) === null || _window$WebBaseConfig3 === void 0 ? void 0 : _window$WebBaseConfig3.currentEnv) || currentEnv;
7
+ var _window2;
8
+ return ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.WebBaseConfig) === null || _window2 === void 0 ? void 0 : _window2.currentEnv) || currentEnv;
9
9
  };
10
10
  var getApiUrl = function getApiUrl() {
11
11
  var _ref, _domain;
@@ -1,6 +1,9 @@
1
1
  import * as JsErrorController from "../service/api/JsErrorController";
2
2
  var packageJson = require("../../package.json");
3
3
  var JsError = function JsError() {
4
+ if (!window) {
5
+ return;
6
+ }
4
7
  if (window.__onBindWindowError) {
5
8
  console.log('onWindowError Binded 2!');
6
9
  return false;
@@ -1,4 +1,5 @@
1
- var ua = window.navigator.userAgent.toLowerCase();
1
+ var _window;
2
+ var ua = (_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent.toLowerCase();
2
3
 
3
4
  // android平台
4
5
  var isAndroid = function () {
@@ -16,8 +17,8 @@ var isWechat = function () {
16
17
  }();
17
18
 
18
19
  // 微信小程序
19
- var isWxmp = function () {
20
- return /miniProgram/i.test(ua) || window.__wxjs_environment === 'miniprogram';
20
+ var isWxmp = function (_window2) {
21
+ return /miniProgram/i.test(ua) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__wxjs_environment) === 'miniprogram';
21
22
  }();
22
23
 
23
24
  // 钉钉环境
@@ -72,7 +72,7 @@ var requestApi = function requestApi() {
72
72
  });
73
73
  };
74
74
  var onError = function onError(pageUrl) {
75
- var _window$__recordError;
75
+ var _window;
76
76
  var apiUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
77
77
  var title = arguments.length > 2 ? arguments[2] : undefined;
78
78
  var content = arguments.length > 3 ? arguments[3] : undefined;
@@ -80,7 +80,7 @@ var onError = function onError(pageUrl) {
80
80
  if (silent) {
81
81
  return;
82
82
  }
83
- (_window$__recordError = window.__recordError) === null || _window$__recordError === void 0 || _window$__recordError.create([{
83
+ (_window = window) === null || _window === void 0 || (_window = _window.__recordError) === null || _window === void 0 || _window.create([{
84
84
  title: title,
85
85
  siteUserId: Tool.getLocalUserInfo().id,
86
86
  errorLevel: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -72,6 +72,8 @@
72
72
  "@umijs/hooks": "^1.9.3",
73
73
  "jr-qrcode": "^1.1.4",
74
74
  "moment": "^2.29.4",
75
+ "qrcode.react": "^3.1.0",
76
+ "styled-components": "^6.1.8",
75
77
  "umi-request": "^1.4.0",
76
78
  "yarn": "^1.22.19"
77
79
  },
@@ -1,13 +0,0 @@
1
- .loginReg{
2
- .radioSelectBox{
3
- text-align: right;
4
- }
5
- .selectTabs{
6
- .ant-tabs-nav-wrap{
7
- display: none !important;
8
- }
9
- .ant-tabs-nav{
10
- opacity: 0;
11
- }
12
- }
13
- }
@@ -1,52 +0,0 @@
1
- .authClientLogin{
2
- background: no-repeat left bottom #FFF;
3
- background-size: cover;
4
- .webTitle{
5
- font-weight: normal;
6
- font-size: 22px;
7
- text-align: right;
8
- margin: 0 0 -10px 0;
9
- line-height: 1em;
10
- span{
11
- display: inline-block;
12
- padding-left: 5px;
13
- font-weight: lighter;
14
- font-size: 16px;
15
- };
16
- }
17
- .loginMain{
18
- margin: 0 auto 20px;
19
- .loginForm{
20
- margin: 0 auto;
21
- padding:0 0 5px 0 ;
22
- background-color: rgba(255, 255, 255, 0.75 );
23
- border-radius: 6px;
24
- }
25
- }
26
-
27
- .storePass{
28
- cursor: pointer;
29
- }
30
-
31
- .login-success{
32
- position: relative;
33
- cursor: pointer;
34
- width: 220px;
35
- height: 220px;
36
- margin: 10px auto; background-color: #EEE; font-size: 40px; color: #999; text-align: center;
37
- .anticon{ line-height: 1em; color: #52c41a; }
38
- .icon-warp{
39
- 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; }
40
- }
41
-
42
- .otherInfo{
43
- position: relative;
44
- .forgetPass{
45
- position: absolute;
46
- right: 0;
47
- top: 0;
48
- padding: 6px 0 0 0;
49
- font-size: 13px;
50
- }
51
- }
52
- }
@@ -1,84 +0,0 @@
1
- .authQrLogin{
2
- .loginForm{
3
- margin: 0 auto;
4
- padding: 0 0 5px 0 ;
5
- background-color: rgba(255, 255, 255, 0.75 );
6
- border-radius: 6px;
7
- }
8
- .webTitle{
9
- font-weight: normal;
10
- font-size: 22px;
11
- text-align: center;
12
- padding: 0;
13
- margin: 6px 0 0 0;
14
- line-height: 1em;
15
- span{
16
- display: inline-block;
17
- padding-left: 5px;
18
- font-weight: lighter;
19
- font-size: 16px;
20
- };
21
- }
22
- .weQrUrlBox{
23
- min-height: 240px !important;
24
- .weQrUrl{
25
- width: 240px;
26
- display: block;
27
- margin: 10px auto 0;
28
- }
29
- }
30
-
31
- .qr{
32
- display: block;
33
- margin: 12px auto 0;
34
- width: 230px;
35
- height: 230px;
36
- background-repeat: no-repeat;
37
- background-size: cover;
38
- background-position: center;
39
- &.qrAlipay{
40
- border: 3px solid #1677ff;
41
- }
42
- .reTry{
43
- font-size: 80px;
44
- background-color: rgba( 255, 255, 255, 0.95 );
45
- text-align: center;
46
- line-height: 210px;
47
- height: 100%;
48
- a{
49
- display: block;
50
- }
51
- }
52
- }
53
- .alt{
54
- padding: 10px 0 0;
55
- color: #999;
56
- text-align: center;
57
- }
58
- .altWeb{
59
- padding: 16px 0 0;
60
- max-width: 300px;
61
- margin: 0 auto;
62
- .titles{
63
- text-align: center;
64
- font-weight: bold;
65
- }
66
- ul{
67
- margin: 0 10px;
68
- }
69
-
70
- }
71
- .percent{
72
- width: 100%;
73
- position: absolute;
74
- overflow: hidden;
75
- left: 0;
76
- bottom: 0;
77
- .warp{
78
- height: 4px;
79
- background-color: #1677ff;
80
- transition: all 1.6s ease-in-out;
81
- -webkit-transition: all 1.6s ease-in-out;
82
- }
83
- }
84
- }
@@ -1,3 +0,0 @@
1
- .authClientReg{
2
-
3
- }
@@ -1,26 +0,0 @@
1
- .ktv-ai-vip-compare{
2
- .vip-compare-price{
3
- small{
4
- color: #888;
5
- vertical-align: middle;
6
- }
7
- }
8
- .listMore{
9
- position: absolute;
10
- right: 10px;
11
- top: 9px;
12
- }
13
-
14
- .vipCompareListMoreContent{
15
- width: 500px;
16
- .ratioAlt{
17
- padding: 6px 0;
18
- font-size: 13px;
19
- color: #777;
20
- .vip-compare-alt{
21
-
22
- }
23
- }
24
- }
25
-
26
- }