@pisell/materials 2.2.77 → 2.2.78

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.
@@ -357,7 +357,7 @@ var WalletCard = function WalletCard(props) {
357
357
  } else {
358
358
  var _props$walletGuideCon;
359
359
  // 如果游客和引导页设置了背景色,则不展示背景图
360
- if (props !== null && props !== void 0 && (_props$walletGuideCon = props.walletGuideConfig) !== null && _props$walletGuideCon !== void 0 && _props$walletGuideCon.backgroundColor || props !== null && props !== void 0 && props.backgroundColor) {
360
+ if (props !== null && props !== void 0 && (_props$walletGuideCon = props.walletGuideConfig) !== null && _props$walletGuideCon !== void 0 && _props$walletGuideCon.backgroundColor && isGuide || props !== null && props !== void 0 && props.backgroundColor && !isLogin) {
361
361
  return {
362
362
  backgroundImage: 'none'
363
363
  };
@@ -299,7 +299,7 @@ var WalletCard = (props) => {
299
299
  if (props.customBackgroundImage) {
300
300
  return { backgroundImage: `url(${props.customBackgroundImage})` };
301
301
  } else {
302
- if (((_a2 = props == null ? void 0 : props.walletGuideConfig) == null ? void 0 : _a2.backgroundColor) || (props == null ? void 0 : props.backgroundColor)) {
302
+ if (((_a2 = props == null ? void 0 : props.walletGuideConfig) == null ? void 0 : _a2.backgroundColor) && isGuide || (props == null ? void 0 : props.backgroundColor) && !isLogin) {
303
303
  return {
304
304
  backgroundImage: "none"
305
305
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.77",
3
+ "version": "2.2.78",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -71,8 +71,8 @@
71
71
  "swiper": "^8.4.7",
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
- "@pisell/utils": "2.0.1",
75
74
  "@pisell/date-picker": "1.0.101",
75
+ "@pisell/utils": "2.0.1",
76
76
  "@pisell/icon": "0.0.11"
77
77
  },
78
78
  "peerDependencies": {