@fonixtree/magic-design 2.0.94 → 2.0.97

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.
Files changed (89) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/common/LinkModal/MiniAppApi/const.js +637 -0
  7. package/es/common/LinkModal/MiniAppApi/index.js +61 -0
  8. package/es/common/LinkModal/index.js +6 -0
  9. package/es/common/index.js +8 -0
  10. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  11. package/es/composite-comp/common/components/ProductItem/index.js +36 -22
  12. package/es/composite-comp/common/components/ProductItem/index.less +9 -0
  13. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  14. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  15. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  16. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  17. package/es/composite-comp/dito/components/GroupBuy/index.js +86 -0
  18. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  19. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  20. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  21. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  22. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  23. package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  24. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  25. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  26. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  27. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  28. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  29. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  30. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  31. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  32. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  33. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  34. package/es/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  35. package/es/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  36. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  37. package/es/constants/component-types.js +6 -2
  38. package/es/constants/index.js +6 -1
  39. package/es/core/Renderer/index.js +27 -10
  40. package/es/locale/en/en.json +5 -1
  41. package/es/locale/es/es.json +4 -0
  42. package/es/locale/id/id.json +5 -1
  43. package/es/utils/businessUtil.js +12 -0
  44. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  45. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  46. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  47. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  48. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  49. package/lib/common/LinkModal/MiniAppApi/const.js +637 -0
  50. package/lib/common/LinkModal/MiniAppApi/index.js +61 -0
  51. package/lib/common/LinkModal/index.js +6 -0
  52. package/lib/common/index.js +8 -0
  53. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  54. package/lib/composite-comp/common/components/ProductItem/index.js +36 -22
  55. package/lib/composite-comp/common/components/ProductItem/index.less +9 -0
  56. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  57. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  58. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  59. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  60. package/lib/composite-comp/dito/components/GroupBuy/index.js +86 -0
  61. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  62. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  63. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  64. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  65. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  66. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  67. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  68. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  69. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  70. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  71. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  72. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  73. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  74. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  75. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  76. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  77. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  78. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  79. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  80. package/lib/constants/component-types.js +6 -2
  81. package/lib/constants/index.js +6 -1
  82. package/lib/core/Renderer/index.js +27 -10
  83. package/lib/locale/en/en.json +5 -1
  84. package/lib/locale/es/es.json +4 -0
  85. package/lib/locale/id/id.json +5 -1
  86. package/lib/utils/businessUtil.js +12 -0
  87. package/package.json +1 -1
  88. package/es/assets/fonts/.DS_Store +0 -0
  89. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,341 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.less");
11
+
12
+ var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
13
+
14
+ var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _components = require("../../../../../meta-comp/components");
19
+
20
+ var _commonUtil = require("../../../../../utils/commonUtil");
21
+
22
+ var _storeUtil = require("../../../../../utils/storeUtil");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
53
+ function adopt(value) {
54
+ return value instanceof P ? value : new P(function (resolve) {
55
+ resolve(value);
56
+ });
57
+ }
58
+
59
+ return new (P || (P = Promise))(function (resolve, reject) {
60
+ function fulfilled(value) {
61
+ try {
62
+ step(generator.next(value));
63
+ } catch (e) {
64
+ reject(e);
65
+ }
66
+ }
67
+
68
+ function rejected(value) {
69
+ try {
70
+ step(generator["throw"](value));
71
+ } catch (e) {
72
+ reject(e);
73
+ }
74
+ }
75
+
76
+ function step(result) {
77
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
78
+ }
79
+
80
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
81
+ });
82
+ };
83
+
84
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
85
+ var _ = {
86
+ label: 0,
87
+ sent: function sent() {
88
+ if (t[0] & 1) throw t[1];
89
+ return t[1];
90
+ },
91
+ trys: [],
92
+ ops: []
93
+ },
94
+ f,
95
+ y,
96
+ t,
97
+ g;
98
+ return g = {
99
+ next: verb(0),
100
+ "throw": verb(1),
101
+ "return": verb(2)
102
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
103
+ return this;
104
+ }), g;
105
+
106
+ function verb(n) {
107
+ return function (v) {
108
+ return step([n, v]);
109
+ };
110
+ }
111
+
112
+ function step(op) {
113
+ if (f) throw new TypeError("Generator is already executing.");
114
+
115
+ while (_) {
116
+ try {
117
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
118
+ if (y = 0, t) op = [op[0] & 2, t.value];
119
+
120
+ switch (op[0]) {
121
+ case 0:
122
+ case 1:
123
+ t = op;
124
+ break;
125
+
126
+ case 4:
127
+ _.label++;
128
+ return {
129
+ value: op[1],
130
+ done: false
131
+ };
132
+
133
+ case 5:
134
+ _.label++;
135
+ y = op[1];
136
+ op = [0];
137
+ continue;
138
+
139
+ case 7:
140
+ op = _.ops.pop();
141
+
142
+ _.trys.pop();
143
+
144
+ continue;
145
+
146
+ default:
147
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
148
+ _ = 0;
149
+ continue;
150
+ }
151
+
152
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
153
+ _.label = op[1];
154
+ break;
155
+ }
156
+
157
+ if (op[0] === 6 && _.label < t[1]) {
158
+ _.label = t[1];
159
+ t = op;
160
+ break;
161
+ }
162
+
163
+ if (t && _.label < t[2]) {
164
+ _.label = t[2];
165
+
166
+ _.ops.push(op);
167
+
168
+ break;
169
+ }
170
+
171
+ if (t[2]) _.ops.pop();
172
+
173
+ _.trys.pop();
174
+
175
+ continue;
176
+ }
177
+
178
+ op = body.call(thisArg, _);
179
+ } catch (e) {
180
+ op = [6, e];
181
+ y = 0;
182
+ } finally {
183
+ f = t = 0;
184
+ }
185
+ }
186
+
187
+ if (op[0] & 5) throw op[1];
188
+ return {
189
+ value: op[0] ? op[1] : void 0,
190
+ done: true
191
+ };
192
+ }
193
+ };
194
+
195
+ var defaultData = [{
196
+ imgUrlContent: {
197
+ url: _defImg["default"]
198
+ },
199
+ offerName: 'Product Name',
200
+ salesPrice: 18000000,
201
+ specialPrice: 18000000,
202
+ marketPrice: 19000000,
203
+ discountPercent: 10,
204
+ salePercent: 500,
205
+ sppType: '4'
206
+ }, {
207
+ imgUrlContent: {
208
+ url: _defImg["default"]
209
+ },
210
+ offerName: 'Product Name',
211
+ salesPrice: 18000000,
212
+ specialPrice: 18000000,
213
+ marketPrice: 19000000,
214
+ discountPercent: 10,
215
+ salePercent: 500,
216
+ sppType: '4'
217
+ }, {
218
+ imgUrlContent: {
219
+ url: _defImg["default"]
220
+ },
221
+ offerName: 'Product Name',
222
+ salesPrice: 18000000,
223
+ specialPrice: 18000000,
224
+ marketPrice: 19000000,
225
+ discountPercent: 10,
226
+ salePercent: 500,
227
+ sppType: '4'
228
+ }];
229
+
230
+ var GroupBuyMobile =
231
+ /** @class */
232
+ function (_super) {
233
+ __extends(GroupBuyMobile, _super);
234
+
235
+ function GroupBuyMobile() {
236
+ var _this = _super !== null && _super.apply(this, arguments) || this; // 商品列表排序方式
237
+
238
+
239
+ _this.sortType = '';
240
+ _this.state = {
241
+ list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
242
+ return (0, _storeUtil.getMagicStore)("groupBuy_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
243
+ }, [])
244
+ };
245
+
246
+ _this.getData = function () {
247
+ return __awaiter(_this, void 0, void 0, function () {
248
+ var res;
249
+ return __generator(this, function (_a) {
250
+ switch (_a.label) {
251
+ case 0:
252
+ return [4
253
+ /*yield*/
254
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
255
+ campaignType: '4',
256
+ sortType: this.sortType
257
+ }, 'POST')];
258
+
259
+ case 1:
260
+ res = _a.sent();
261
+
262
+ if (!(0, _coreUtil.isDesignMode)()) {
263
+ (0, _storeUtil.setMagicStore)("groupBuy_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, res.pageInfo.list);
264
+ }
265
+
266
+ this.setState({
267
+ list: res.pageInfo.list
268
+ });
269
+ return [2
270
+ /*return*/
271
+ ];
272
+ }
273
+ });
274
+ });
275
+ };
276
+
277
+ return _this;
278
+ }
279
+
280
+ GroupBuyMobile.prototype.componentDidMount = function () {
281
+ this.sortType = this.props.panelProps.content.sortType;
282
+ this.getData();
283
+ };
284
+
285
+ GroupBuyMobile.prototype.componentWillReceiveProps = function (nextProps) {
286
+ if (nextProps.panelProps.content.sortType !== this.sortType) {
287
+ this.sortType = nextProps.panelProps.content.sortType;
288
+ this.getData();
289
+ }
290
+ };
291
+
292
+ GroupBuyMobile.prototype.render = function () {
293
+ var panelProps = this.props.panelProps;
294
+ var list = this.state.list;
295
+
296
+ var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
297
+
298
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
299
+ className: "m-group-buy-mobile"
300
+ }, /*#__PURE__*/_react["default"].createElement("div", {
301
+ className: "group-buy-title"
302
+ }, /*#__PURE__*/_react["default"].createElement("div", {
303
+ className: "left"
304
+ }, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
305
+ className: "title",
306
+ data: panelProps.title.headline
307
+ })), /*#__PURE__*/_react["default"].createElement("div", {
308
+ className: "right"
309
+ }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
310
+ className: "btn",
311
+ data: panelProps.title.button
312
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
313
+ className: "group-buy-list"
314
+ }, _list.map(function (item) {
315
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
316
+ key: item.id,
317
+ data: item,
318
+ onItemClick: function onItemClick() {
319
+ if (window.magicDesign.pushGA) {
320
+ window.magicDesign.pushGA({}, 'select_promotion', {
321
+ event_section: 'Group Buy',
322
+ promotion_name: item === null || item === void 0 ? void 0 : item.offerName
323
+ });
324
+ }
325
+
326
+ (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
327
+ },
328
+ panelProps: panelProps.content,
329
+ type: "groupBuy"
330
+ });
331
+ }))));
332
+ };
333
+
334
+ GroupBuyMobile.defaultProps = {
335
+ panelProps: {}
336
+ };
337
+ return GroupBuyMobile;
338
+ }(_react["default"].Component);
339
+
340
+ var _default = GroupBuyMobile;
341
+ exports["default"] = _default;
@@ -0,0 +1,87 @@
1
+ .m-group-buy-mobile {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 0.32rem 0.32rem 0.56rem 0.32rem;
5
+ }
6
+ .m-group-buy-mobile .group-buy-title {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ }
11
+ .m-group-buy-mobile .group-buy-title .left {
12
+ display: flex;
13
+ align-items: center;
14
+ }
15
+ .m-group-buy-mobile .group-buy-title .left .icon {
16
+ height: 0.36rem;
17
+ margin-right: 0.2rem;
18
+ }
19
+ .m-group-buy-mobile .group-buy-title .left .title {
20
+ font-family: 'Montserrat';
21
+ font-style: normal;
22
+ font-weight: 600;
23
+ font-size: 0.28rem;
24
+ line-height: 0.36rem;
25
+ color: #2C2C2C;
26
+ margin-right: 0.2rem;
27
+ }
28
+ .m-group-buy-mobile .group-buy-title .left .sub-title {
29
+ font-family: 'Montserrat';
30
+ font-style: normal;
31
+ font-weight: 600;
32
+ font-size: 0.2rem;
33
+ line-height: 0.36rem;
34
+ color: #2C2C2C;
35
+ margin-right: 0.12rem;
36
+ align-self: end;
37
+ }
38
+ .m-group-buy-mobile .group-buy-title .right {
39
+ display: flex;
40
+ align-items: center;
41
+ }
42
+ .m-group-buy-mobile .group-buy-title .right .text {
43
+ font-family: 'Montserrat';
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ font-size: 0.24rem;
47
+ line-height: 0.3rem;
48
+ color: #0038A8;
49
+ margin-right: 0.1rem;
50
+ }
51
+ .m-group-buy-mobile .group-buy-title .right .btn {
52
+ white-space: nowrap;
53
+ }
54
+ .m-group-buy-mobile .group-buy-list {
55
+ margin-top: 0.32rem;
56
+ overflow-x: auto;
57
+ overflow-y: hidden;
58
+ white-space: nowrap;
59
+ display: flex;
60
+ align-items: flex-start;
61
+ justify-content: flex-start;
62
+ position: relative;
63
+ }
64
+ .m-group-buy-mobile .group-buy-list .loading-wrap {
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ padding: 0.6rem;
69
+ position: absolute;
70
+ top: 0;
71
+ bottom: 0;
72
+ left: 0;
73
+ right: 0;
74
+ margin: auto;
75
+ }
76
+ .m-group-buy-mobile .group-buy-list .m-product-item-wrap {
77
+ width: 3.14rem;
78
+ margin-right: 0.24rem;
79
+ border-radius: 0;
80
+ }
81
+ .m-group-buy-mobile .group-buy-list .m-product-item-wrap .product-img {
82
+ height: 2.6rem;
83
+ width: 3.1rem;
84
+ }
85
+ .m-group-buy-mobile .group-buy-list .m-product-item-wrap .content-wrap {
86
+ padding: 0.24rem;
87
+ }
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  require("./index.less");
13
13
 
14
+ var _locale = require("../../../../../locale");
15
+
14
16
  var _components = require("../../../../../meta-comp/components");
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -100,6 +102,15 @@ function (_super) {
100
102
  key: source.id,
101
103
  className: "one-card" // className={data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'}
102
104
  ,
105
+ onClick: function onClick() {
106
+ /** PTO 定制GA */
107
+ if (window.magicDesign.pushGA) {
108
+ window.magicDesign.pushGA({}, 'select_promotion', {
109
+ event_section: 'Mobile Navigation',
110
+ promotion_name: source.image.content.h5ImgSrc ? source.image.content.h5Name : (0, _locale.i18n)('NAVIGATION_NAME')
111
+ });
112
+ }
113
+ },
103
114
  style: _this.getCardStyle(source, i)
104
115
  }, source.image.open && /*#__PURE__*/_react["default"].createElement("div", {
105
116
  className: "card-image-wrap"
@@ -270,7 +270,7 @@ var getDefaultJSON = function getDefaultJSON() {
270
270
  lineHeight: 18
271
271
  }
272
272
  },
273
- salesProgressVisible: {
273
+ salesProgress: {
274
274
  open: true
275
275
  }
276
276
  },
@@ -641,8 +641,10 @@ function (_super) {
641
641
  onItemClick: function onItemClick() {
642
642
  /** PTO 定制GA */
643
643
  if (window.magicDesign.pushGA) {
644
- window.magicDesign.pushGA(item, 'select_item', {
645
- event_action: 'Select Item'
644
+ window.magicDesign.pushGA(item, 'GA_SENSOR_select_item', {
645
+ event_action: 'Select Item',
646
+ event_section: 'Recommend',
647
+ promotion_name: item === null || item === void 0 ? void 0 : item.offerName
646
648
  });
647
649
  }
648
650
 
@@ -37,6 +37,10 @@ var getDefaultJSON = function getDefaultJSON() {
37
37
  color: {
38
38
  pc: '#D92929',
39
39
  mobile: '#8493AF'
40
+ },
41
+ backgroundColor: {
42
+ pc: '#fff',
43
+ mobile: '#fff'
40
44
  }
41
45
  },
42
46
  icon: {
@@ -344,7 +344,19 @@ function (_super) {
344
344
  }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
345
345
  className: "num"
346
346
  }, messageNum))), data.content && ((_p = data.content.logo) === null || _p === void 0 ? void 0 : _p.open) && /*#__PURE__*/_react["default"].createElement("div", {
347
- className: "logo"
347
+ className: "logo",
348
+ onClick: function onClick() {
349
+ var _a, _b;
350
+ /** PTO 定制GA */
351
+
352
+
353
+ if (window.magicDesign.pushGA) {
354
+ window.magicDesign.pushGA({}, 'select_promotion', {
355
+ event_section: 'Search',
356
+ promotion_name: (_b = (_a = data.content.logo) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.h5Name
357
+ });
358
+ }
359
+ }
348
360
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
349
361
  data: data.content.logo,
350
362
  style: {
@@ -387,7 +387,7 @@ function (_super) {
387
387
  className: "store-info-wrap"
388
388
  }, /*#__PURE__*/_react["default"].createElement("div", {
389
389
  className: "number"
390
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '50', " "), /*#__PURE__*/_react["default"].createElement("img", {
390
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '5.0', " "), /*#__PURE__*/_react["default"].createElement("img", {
391
391
  alt: "star",
392
392
  src: _star["default"]
393
393
  })), /*#__PURE__*/_react["default"].createElement("div", {
@@ -71,6 +71,8 @@ function (_super) {
71
71
  AComponent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
+ var _a;
75
+
74
76
  var panelProps = this.props.panelProps;
75
77
  return /*#__PURE__*/_react["default"].createElement("div", {
76
78
  className: "flash_sale_content"
@@ -125,9 +127,9 @@ function (_super) {
125
127
  }, /*#__PURE__*/_react["default"].createElement("span", {
126
128
  className: "label"
127
129
  }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
128
- checked: panelProps.salesProgressVisible.open,
130
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
129
131
  onChange: function onChange(v) {
130
- panelProps.salesProgressVisible = {
132
+ panelProps.salesProgress = {
131
133
  open: v
132
134
  };
133
135
 
@@ -143,7 +145,7 @@ function (_super) {
143
145
  productName: {},
144
146
  activityPrice: {},
145
147
  salesPrice: {},
146
- salesProgressVisible: {
148
+ salesProgress: {
147
149
  open: false
148
150
  }
149
151
  }