component-shipinlv 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/VipList/index.js +6 -2
- 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", {
|