component-shipinlv 0.1.18 → 0.1.20
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/VipList/index.js +6 -2
- package/dist/lib/getApiUrl.js +4 -4
- package/package.json +1 -1
package/dist/VipList/index.js
CHANGED
@@ -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]
|
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", {
|
package/dist/lib/getApiUrl.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import ApiUrlsInfo, { currentEnv } from "../config/apiUrls";
|
2
2
|
var ApiUrls = function ApiUrls() {
|
3
|
-
var _window
|
4
|
-
return ((_window
|
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
|
8
|
-
return ((
|
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;
|