component-shipinlv 0.1.18 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,8 +26,11 @@ var ApplyColorDict = {
26
26
  300: {
27
27
  color: '#724822'
28
28
  },
29
+ 400: {
30
+ color: '#F60'
31
+ },
29
32
  1000: {
30
- color: ''
33
+ color: '#000'
31
34
  }
32
35
  };
33
36
  var VipList = function VipList(_ref) {
@@ -95,13 +98,14 @@ var VipList = function VipList(_ref) {
95
98
  var listLen = result.vipList.length;
96
99
  var buyList = [];
97
100
  result.vipList.forEach(function (item) {
101
+ var _ApplyColorDict$item$;
98
102
  buyList.push({
99
103
  id: item.id,
100
104
  price: item.price,
101
105
  canBuy: item.canBuy
102
106
  });
103
107
  var dataIndex = "vipLevel".concat(item.vipLevel);
104
- var colorPrimary = ApplyColorDict[item.vipLevel].color || '#722ED1';
108
+ var colorPrimary = ((_ApplyColorDict$item$ = ApplyColorDict[item.vipLevel]) === null || _ApplyColorDict$item$ === void 0 ? void 0 : _ApplyColorDict$item$.color) || '#722ED1';
105
109
  list.push({
106
110
  title: /*#__PURE__*/_jsxs("div", {
107
111
  children: [/*#__PURE__*/_jsx("div", {
@@ -1,11 +1,11 @@
1
1
  import ApiUrlsInfo, { currentEnv } from "../config/apiUrls";
2
2
  var ApiUrls = function ApiUrls() {
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;
3
+ var _window, _window2;
4
+ return ((_window = window) === null || _window === void 0 || (_window = _window.WebBaseConfig) === null || _window === void 0 || (_window = _window[(_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.WebBaseConfig) === null || _window2 === void 0 ? void 0 : _window2.webKind]) === null || _window === void 0 ? void 0 : _window.apiUrls) || ApiUrlsInfo;
5
5
  };
6
6
  var envData = function envData() {
7
- var _window2;
8
- return ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.WebBaseConfig) === null || _window2 === void 0 ? void 0 : _window2.currentEnv) || currentEnv;
7
+ var _window3;
8
+ return ((_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.WebBaseConfig) === null || _window3 === void 0 ? void 0 : _window3.currentEnv) || currentEnv;
9
9
  };
10
10
  var getApiUrl = function getApiUrl() {
11
11
  var _domain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",