@fonixtree/magic-design 2.0.134 → 2.0.136

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 (65) hide show
  1. package/es/common/LinkModal/AffiliatePlatform/index.js +2 -2
  2. package/es/common/LinkModal/AffiliateProductTable/index.js +1 -1
  3. package/es/common/LinkModal/AffiliateStore/index.js +2 -2
  4. package/es/common/LinkModal/BundleCampaign/index.js +1 -1
  5. package/es/common/LinkModal/BundleCampaign/index.less +6 -3
  6. package/es/common/LinkModal/CatgTable/index.js +2 -2
  7. package/es/common/LinkModal/CouponTable/index.js +2 -2
  8. package/es/common/LinkModal/CustomTable/index.js +2 -2
  9. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  10. package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
  11. package/es/common/LinkModal/FunctionTable/index.js +2 -2
  12. package/es/common/LinkModal/InterestedMerchants/index.js +2 -2
  13. package/es/common/LinkModal/InterestedProducts/index.js +2 -2
  14. package/es/common/LinkModal/MerchantStory/index.js +2 -2
  15. package/es/common/LinkModal/MiniAppApi/index.js +1 -1
  16. package/es/common/LinkModal/MiniAppTable/index.js +2 -2
  17. package/es/common/LinkModal/MissionDetail/index.js +2 -2
  18. package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
  19. package/es/common/LinkModal/ProductDetailPage/index.less +1 -1
  20. package/es/common/LinkModal/SelectVideoModal/index.less +2 -1
  21. package/es/common/LinkModal/ShareUrl/index.less +1 -1
  22. package/es/common/LinkModal/StoreCatgTable/index.js +2 -2
  23. package/es/common/LinkModal/StoreTable/index.js +2 -2
  24. package/es/common/LinkModal/index.js +116 -106
  25. package/es/common/LinkModal/index.less +35 -2
  26. package/es/composite-comp/common/components/MonpayProductItem/index.js +5 -18
  27. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  28. package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +3 -0
  29. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +1 -0
  30. package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
  31. package/es/constants/index.js +2 -1
  32. package/es/utils/businessUtil.js +13 -1
  33. package/lib/common/LinkModal/AffiliatePlatform/index.js +2 -2
  34. package/lib/common/LinkModal/AffiliateProductTable/index.js +1 -1
  35. package/lib/common/LinkModal/AffiliateStore/index.js +2 -2
  36. package/lib/common/LinkModal/BundleCampaign/index.js +1 -1
  37. package/lib/common/LinkModal/BundleCampaign/index.less +6 -3
  38. package/lib/common/LinkModal/CatgTable/index.js +2 -2
  39. package/lib/common/LinkModal/CouponTable/index.js +2 -2
  40. package/lib/common/LinkModal/CustomTable/index.js +2 -2
  41. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  42. package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
  43. package/lib/common/LinkModal/FunctionTable/index.js +2 -2
  44. package/lib/common/LinkModal/InterestedMerchants/index.js +2 -2
  45. package/lib/common/LinkModal/InterestedProducts/index.js +2 -2
  46. package/lib/common/LinkModal/MerchantStory/index.js +2 -2
  47. package/lib/common/LinkModal/MiniAppApi/index.js +1 -1
  48. package/lib/common/LinkModal/MiniAppTable/index.js +2 -2
  49. package/lib/common/LinkModal/MissionDetail/index.js +2 -2
  50. package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
  51. package/lib/common/LinkModal/ProductDetailPage/index.less +1 -1
  52. package/lib/common/LinkModal/SelectVideoModal/index.less +2 -1
  53. package/lib/common/LinkModal/ShareUrl/index.less +1 -1
  54. package/lib/common/LinkModal/StoreCatgTable/index.js +2 -2
  55. package/lib/common/LinkModal/StoreTable/index.js +2 -2
  56. package/lib/common/LinkModal/index.js +116 -106
  57. package/lib/common/LinkModal/index.less +35 -2
  58. package/lib/composite-comp/common/components/MonpayProductItem/index.js +5 -18
  59. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  60. package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +3 -0
  61. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +1 -0
  62. package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
  63. package/lib/constants/index.js +2 -1
  64. package/lib/utils/businessUtil.js +13 -1
  65. package/package.json +1 -1
@@ -19,8 +19,6 @@ var _ImageLabel = _interopRequireDefault(require("../ImageLabel"));
19
19
 
20
20
  var _components = require("../../../../meta-comp/components");
21
21
 
22
- var _businessUtil = require("../../../../utils/businessUtil");
23
-
24
22
  var _locale = require("../../../../locale");
25
23
 
26
24
  require("./index.less");
@@ -130,10 +128,10 @@ function (_super) {
130
128
  layout = _m.layout,
131
129
  imgHeight = _m.imgHeight,
132
130
  imgWidth = _m.imgWidth,
133
- unknownPrice = _m.unknownPrice,
134
- rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
131
+ showDiscountTag = _m.showDiscountTag,
132
+ rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag"]); // const promotions = getPromotionList(data);
133
+
135
134
 
136
- var promotions = (0, _businessUtil.getPromotionList)(data);
137
135
  var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
138
136
  var oldPrice = null;
139
137
 
@@ -178,22 +176,11 @@ function (_super) {
178
176
  }), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
179
177
  labels: imgLabels,
180
178
  small: true
181
- }), ((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
179
+ }), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
182
180
  className: "discount-tag"
183
181
  }, data.discountPercent, "% off")), /*#__PURE__*/_react["default"].createElement("div", {
184
182
  className: "content-wrap"
185
- }, panelProps.label.open && /*#__PURE__*/_react["default"].createElement("div", {
186
- className: "promotions-wrap"
187
- }, promotions.map(function (promot, index) {
188
- return /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
189
- key: index,
190
- className: "promotion-item",
191
- data: __assign(__assign({}, panelProps.label), {
192
- text: promot
193
- }),
194
- readonly: true
195
- });
196
- })), /*#__PURE__*/_react["default"].createElement("div", {
183
+ }, /*#__PURE__*/_react["default"].createElement("div", {
197
184
  className: "product-name-wrap"
198
185
  }, /*#__PURE__*/_react["default"].createElement("div", {
199
186
  className: "box"
@@ -234,7 +234,7 @@ function (_super) {
234
234
  style: {
235
235
  color: panelProps.salesPrice.content.color
236
236
  }
237
- })), type !== 'groupBuy' && !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
237
+ })), type !== 'groupBuy' && !showProgress && data.salesCnt > 0 && data.displaySalesCntFlag === 'Y' && /*#__PURE__*/_react["default"].createElement("div", {
238
238
  className: "sold-count"
239
239
  }, (0, _commonUtil.convertCount)(data.salesCnt), " sold"))), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
240
240
  className: "progress-wrap"
@@ -28,7 +28,10 @@
28
28
  overflow: scroll;
29
29
  }
30
30
  .BundleItemWrap .prodList img {
31
+ height: 1.9rem;
31
32
  width: 1.9rem;
33
+ border-radius: 0.16rem;
34
+ object-fit: cover;
32
35
  }
33
36
  .BundleItemWrap .bottomWrap {
34
37
  border-top: 0.02rem solid #E4E4E4;
@@ -821,6 +821,7 @@ function (_super) {
821
821
  (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
822
822
  },
823
823
  panelProps: panelProps.content,
824
+ showDiscountTag: true,
824
825
  showProgress: false
825
826
  });
826
827
  })), _seeAll.open && _products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
11
-
12
10
  var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
13
11
 
14
12
  var _coreUtil = require("../../../../../utils/coreUtil");
@@ -76,14 +74,8 @@ function (_super) {
76
74
  name: (0, _locale.i18n)('FILTER'),
77
75
  value: null,
78
76
  metaOption: panelProps.filter
79
- }, {
80
- key: '1',
81
- name: (0, _locale.i18n)('LABEL'),
82
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
- data: panelProps.label
84
- }),
85
- metaOption: panelProps.label
86
- }, {
77
+ }, // { key: '1', name: i18n('LABEL'), value: <ButtonConfig data={panelProps.label} />, metaOption: panelProps.label },
78
+ {
87
79
  key: '2',
88
80
  name: (0, _locale.i18n)('PRODUCT_NAME'),
89
81
  value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
@@ -90,7 +90,8 @@ var urlTypeMap = {
90
90
  AFFILIATE_PLATFORM: 'AffiliatePlatform',
91
91
  INTERESTED_MERCHANTS: 'InterestedMerchants',
92
92
  INTERESTED_PRODUCTS: 'InterestedProducts',
93
- MERCHANT_STORY: 'MerchantStory'
93
+ MERCHANT_STORY: 'MerchantStory',
94
+ AFFILIATE_MISSION_DETAIL: 'AffiliateMissionDetail'
94
95
  };
95
96
  exports.urlTypeMap = urlTypeMap;
96
97
  var respCodeMap = {
@@ -75,7 +75,7 @@ var newParseUrl = function newParseUrl(urlObj) {
75
75
 
76
76
  case _constants.urlTypeMap.STORE_CATEGORY:
77
77
  // 商品列表
78
- link = "/product/list/?storeCatgIds=" + value;
78
+ link = "/product/list/" + value;
79
79
  params = {
80
80
  action: 'jump',
81
81
  params: {
@@ -255,6 +255,18 @@ var newParseUrl = function newParseUrl(urlObj) {
255
255
  };
256
256
  break;
257
257
 
258
+ case _constants.urlTypeMap.AFFILIATE_MISSION_DETAIL:
259
+ // affiliate mission detail
260
+ link = "/taskDetail/" + value;
261
+ params = {
262
+ action: 'jump',
263
+ params: {
264
+ type: 'AFFILIATE_MISSION_DETAIL',
265
+ url: value
266
+ }
267
+ };
268
+ break;
269
+
258
270
  default:
259
271
  var map = {
260
272
  '/main/cart': 'CART',
@@ -262,7 +262,7 @@ function AffiliatePlatform(props) {
262
262
 
263
263
  return /*#__PURE__*/_react["default"].createElement("div", {
264
264
  style: {
265
- height: 550
265
+ height: 450
266
266
  }
267
267
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
268
268
  labelCol: {
@@ -319,7 +319,7 @@ function AffiliatePlatform(props) {
319
319
  rowKey: "distributionPlatformId",
320
320
  rowSelection: rowSelection,
321
321
  scroll: {
322
- y: 400
322
+ y: 350
323
323
  }
324
324
  }));
325
325
  }
@@ -286,7 +286,7 @@ function AffiliateProductTable(props) {
286
286
 
287
287
  return /*#__PURE__*/_react["default"].createElement("div", {
288
288
  style: {
289
- height: 550
289
+ height: 450
290
290
  }
291
291
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
292
292
  form: form,
@@ -268,7 +268,7 @@ function AffiliateStore(props) {
268
268
 
269
269
  return /*#__PURE__*/_react["default"].createElement("div", {
270
270
  style: {
271
- height: 550
271
+ height: 450
272
272
  }
273
273
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
274
274
  labelCol: {
@@ -325,7 +325,7 @@ function AffiliateStore(props) {
325
325
  rowKey: "affiliateStoreId",
326
326
  rowSelection: rowSelection,
327
327
  scroll: {
328
- y: 400
328
+ y: 350
329
329
  }
330
330
  }));
331
331
  }
@@ -404,7 +404,7 @@ var BundleCampaign = function BundleCampaign(props) {
404
404
  rowKey: "campaignId",
405
405
  rowSelection: rowSelection,
406
406
  scroll: {
407
- y: 340
407
+ y: 300
408
408
  }
409
409
  }));
410
410
  };
@@ -1,18 +1,21 @@
1
- .bundleCampaign{
1
+ .bundleCampaign {
2
2
  // padding-top: 12px;
3
3
  // border-top: 1px solid #f0f0f0;
4
- height: 550px;
4
+ height: 450px;
5
+
5
6
  .inputStyle {
6
7
  width: 280px;
7
8
  height: 32px;
8
9
  margin-left: 10px;
9
- }
10
+ }
11
+
10
12
  .labelStyle {
11
13
  display: inline-block;
12
14
  width: 110px;
13
15
  text-align: right;
14
16
  line-height: 2;
15
17
  }
18
+
16
19
  .mb12 {
17
20
  margin-bottom: 12px;
18
21
  }
@@ -223,7 +223,7 @@ function CatgTable(props) {
223
223
  };
224
224
  return /*#__PURE__*/_react["default"].createElement("div", {
225
225
  style: {
226
- height: 550
226
+ height: 450
227
227
  }
228
228
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
229
229
  bordered: false,
@@ -237,7 +237,7 @@ function CatgTable(props) {
237
237
  },
238
238
  rowSelection: rowSelection,
239
239
  scroll: {
240
- y: 480
240
+ y: 380
241
241
  }
242
242
  }));
243
243
  }
@@ -294,7 +294,7 @@ function CouponTable(props) {
294
294
  }, []);
295
295
  return /*#__PURE__*/_react["default"].createElement("div", {
296
296
  style: {
297
- height: 550
297
+ height: 450
298
298
  }
299
299
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
300
300
  columns: columns,
@@ -308,7 +308,7 @@ function CouponTable(props) {
308
308
  }),
309
309
  rowSelection: rowSelection,
310
310
  scroll: {
311
- y: 480
311
+ y: 380
312
312
  }
313
313
  }));
314
314
  }
@@ -221,7 +221,7 @@ function CustomTable(props) {
221
221
  };
222
222
  return /*#__PURE__*/_react["default"].createElement("div", {
223
223
  style: {
224
- height: 550
224
+ height: 450
225
225
  }
226
226
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
227
227
  bordered: false,
@@ -232,7 +232,7 @@ function CustomTable(props) {
232
232
  rowKey: "bdPageId",
233
233
  rowSelection: rowSelection,
234
234
  scroll: {
235
- y: 480
235
+ y: 380
236
236
  }
237
237
  }));
238
238
  }
@@ -674,7 +674,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
674
674
  }
675
675
  }),
676
676
  scroll: {
677
- y: 400
677
+ y: 350
678
678
  }
679
679
  })))));
680
680
  };
@@ -1,5 +1,5 @@
1
1
  .mFilteredProductModal {
2
- height: 550px;
2
+ height: 450px;
3
3
 
4
4
  .proModalWrap {
5
5
  .info {
@@ -86,7 +86,8 @@
86
86
 
87
87
  .leftCot {
88
88
  width: 280px;
89
- // height: 400px;
89
+ height: 400px;
90
+ overflow-y: auto;
90
91
  box-sizing: border-box;
91
92
  border-right: 1px solid #e0e0e0;
92
93
  padding-right: 15px;
@@ -218,7 +218,7 @@ function FunctionTable(props) {
218
218
  }, []);
219
219
  return /*#__PURE__*/_react["default"].createElement("div", {
220
220
  style: {
221
- height: 550
221
+ height: 450
222
222
  }
223
223
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
224
224
  columns: columns,
@@ -228,7 +228,7 @@ function FunctionTable(props) {
228
228
  rowKey: "funcUrlLibId",
229
229
  rowSelection: rowSelection,
230
230
  scroll: {
231
- y: 480
231
+ y: 380
232
232
  }
233
233
  }));
234
234
  }
@@ -262,7 +262,7 @@ function InterestedMerchants(props) {
262
262
 
263
263
  return /*#__PURE__*/_react["default"].createElement("div", {
264
264
  style: {
265
- height: 550
265
+ height: 450
266
266
  }
267
267
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
268
268
  labelCol: {
@@ -319,7 +319,7 @@ function InterestedMerchants(props) {
319
319
  rowKey: "interestId",
320
320
  rowSelection: rowSelection,
321
321
  scroll: {
322
- y: 400
322
+ y: 350
323
323
  }
324
324
  }));
325
325
  }
@@ -262,7 +262,7 @@ function InterestedMerchants(props) {
262
262
 
263
263
  return /*#__PURE__*/_react["default"].createElement("div", {
264
264
  style: {
265
- height: 550
265
+ height: 450
266
266
  }
267
267
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
268
268
  labelCol: {
@@ -319,7 +319,7 @@ function InterestedMerchants(props) {
319
319
  rowKey: "interestId",
320
320
  rowSelection: rowSelection,
321
321
  scroll: {
322
- y: 400
322
+ y: 350
323
323
  }
324
324
  }));
325
325
  }
@@ -264,7 +264,7 @@ function MerchantStory(props) {
264
264
 
265
265
  return /*#__PURE__*/_react["default"].createElement("div", {
266
266
  style: {
267
- height: 550
267
+ height: 450
268
268
  }
269
269
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
270
270
  labelCol: {
@@ -321,7 +321,7 @@ function MerchantStory(props) {
321
321
  rowKey: "storeId",
322
322
  rowSelection: rowSelection,
323
323
  scroll: {
324
- y: 400
324
+ y: 350
325
325
  }
326
326
  }));
327
327
  }
@@ -55,7 +55,7 @@ function MiniAppApi(_a) {
55
55
  rowKey: "title",
56
56
  rowSelection: rowSelection,
57
57
  scroll: {
58
- y: 480
58
+ y: 350
59
59
  }
60
60
  }));
61
61
  }
@@ -233,7 +233,7 @@ function CustomTable(props) {
233
233
  };
234
234
  return /*#__PURE__*/_react["default"].createElement("div", {
235
235
  style: {
236
- height: 550
236
+ height: 450
237
237
  }
238
238
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
239
239
  bordered: false,
@@ -244,7 +244,7 @@ function CustomTable(props) {
244
244
  rowKey: "storeMiniProgramId",
245
245
  rowSelection: rowSelection,
246
246
  scroll: {
247
- y: 480
247
+ y: 380
248
248
  }
249
249
  }));
250
250
  }
@@ -255,7 +255,7 @@ function MissionDetail(props) {
255
255
 
256
256
  return /*#__PURE__*/_react["default"].createElement("div", {
257
257
  style: {
258
- height: 550
258
+ height: 450
259
259
  }
260
260
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
261
261
  labelCol: {
@@ -312,7 +312,7 @@ function MissionDetail(props) {
312
312
  rowKey: "sfTaskId",
313
313
  rowSelection: rowSelection,
314
314
  scroll: {
315
- y: 400
315
+ y: 350
316
316
  }
317
317
  }));
318
318
  }
@@ -557,7 +557,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
557
557
  rowKey: "productId",
558
558
  rowSelection: rowSelection,
559
559
  scroll: {
560
- y: 300
560
+ y: 250
561
561
  }
562
562
  }));
563
563
  };
@@ -1,5 +1,5 @@
1
1
  .productDetailPage {
2
- height: 550px;
2
+ height: 450px;
3
3
 
4
4
  .btn-select-type {
5
5
  margin-bottom: 10px;
@@ -2,7 +2,8 @@
2
2
  display: flex;
3
3
  // padding: 20px 80px;
4
4
  // border-top: 1px solid #f0f0f0;
5
- height: 550px;
5
+ height: 450px;
6
+
6
7
  .video-left-wrap {
7
8
  display: flex;
8
9
  flex-direction: column;
@@ -1,3 +1,3 @@
1
1
  .shareWrap {
2
- height: 550px;
2
+ height: 450px;
3
3
  }
@@ -223,7 +223,7 @@ function StoreCatgTable(props) {
223
223
  };
224
224
  return /*#__PURE__*/_react["default"].createElement("div", {
225
225
  style: {
226
- height: 550
226
+ height: 450
227
227
  }
228
228
  }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
229
229
  bordered: false,
@@ -237,7 +237,7 @@ function StoreCatgTable(props) {
237
237
  },
238
238
  rowSelection: rowSelection,
239
239
  scroll: {
240
- y: 480
240
+ y: 380
241
241
  }
242
242
  }));
243
243
  }
@@ -264,7 +264,7 @@ function StoreTable(props) {
264
264
 
265
265
  return /*#__PURE__*/_react["default"].createElement("div", {
266
266
  style: {
267
- height: 550
267
+ height: 450
268
268
  }
269
269
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
270
270
  labelCol: {
@@ -321,7 +321,7 @@ function StoreTable(props) {
321
321
  rowKey: "storeId",
322
322
  rowSelection: rowSelection,
323
323
  scroll: {
324
- y: 400
324
+ y: 350
325
325
  }
326
326
  }));
327
327
  }