@fonixtree/magic-design 2.0.116 → 2.0.117

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.
@@ -53,7 +53,7 @@ function (_super) {
53
53
 
54
54
  _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
55
55
  _this.state = {
56
- showNav: false
56
+ showNav: true
57
57
  };
58
58
  return _this;
59
59
  }
@@ -361,7 +361,9 @@ function (_super) {
361
361
  }, data.content && ((_b = data.content.box) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
362
362
  className: "search-input-wrap",
363
363
  onClick: function onClick() {
364
- return (0, _coreUtil.clickUrl)('/search-page');
364
+ return (0, _coreUtil.clickUrl)('/search-page', {
365
+ searchValue: value
366
+ });
365
367
  },
366
368
  style: {
367
369
  borderColor: (_d = (_c = data.content.box) === null || _c === void 0 ? void 0 : _c.color) === null || _d === void 0 ? void 0 : _d.mobile,
@@ -65,7 +65,8 @@ function BundleItem(props) {
65
65
  prodSpcAttrs: productDetail.specAttrValues,
66
66
  offerCnt: offer.num,
67
67
  inCmpIdList: [data.campaignId],
68
- salesPrice: productDetail.salesPrice
68
+ salesPrice: productDetail.salesPrice,
69
+ isBundleOffer: true
69
70
  };
70
71
  })
71
72
  }];
@@ -105,26 +105,24 @@ function SearchCondition(props) {
105
105
  };
106
106
 
107
107
  var hideBottomBar = function hideBottomBar() {
108
- var homeNavBar = document.querySelector('.menu_wrap');
108
+ var homeNavBar = document.querySelector('#bottom-menu');
109
109
  if (homeNavBar) homeNavBar.style.visibility = 'hidden';
110
- var toTop = document.querySelector('.toTopWrap');
110
+ var toTop = document.querySelector('#homeToTop');
111
111
  if (toTop) toTop.style.visibility = 'hidden';
112
112
  };
113
113
 
114
114
  var showBottomBar = function showBottomBar() {
115
- var homeNavBar = document.querySelector('.menu_wrap');
115
+ var homeNavBar = document.querySelector('#bottom-menu');
116
116
  if (homeNavBar) homeNavBar.style.visibility = 'visible';
117
- var toTop = document.querySelector('.toTopWrap');
117
+ var toTop = document.querySelector('#homeToTop');
118
118
  if (toTop) toTop.style.visibility = 'visible';
119
119
  };
120
120
 
121
121
  (0, _react.useEffect)(function () {
122
122
  if (visible) {
123
123
  hideBottomBar();
124
- console.log('hide');
125
124
  } else {
126
125
  showBottomBar();
127
- console.log('show');
128
126
  }
129
127
  }, [visible]);
130
128
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -154,7 +154,7 @@ var compInfoMap = {
154
154
  icon: 'icon-flash-deal'
155
155
  },
156
156
  BARGAIN: {
157
- name: 'Bargain',
157
+ name: 'Refer and Bargain',
158
158
  icon: 'icon-kanjia'
159
159
  },
160
160
  MONPAY_FLASH_DEAL: {
@@ -298,7 +298,7 @@ function commonFetch(url, data, method) {
298
298
  }
299
299
 
300
300
  var navigateTo = function navigateTo(url, state) {
301
- console.log('navigateTo', url);
301
+ console.log('navigateTo', url, state);
302
302
 
303
303
  if (!url) {
304
304
  return;
@@ -302,14 +302,14 @@ function isUrl(string) {
302
302
  }
303
303
  }
304
304
 
305
- var clickUrl = function clickUrl(url) {
305
+ var clickUrl = function clickUrl(url, state) {
306
306
  var _a;
307
307
 
308
308
  if (url === void 0) {
309
309
  url = '';
310
310
  }
311
311
 
312
- console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
312
+ console.log('clickUrl...', url, state); // 只读模式,设计模式,url为空,邮箱模版
313
313
  // if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
314
314
  // return;
315
315
  // }
@@ -394,10 +394,10 @@ var clickUrl = function clickUrl(url) {
394
394
  window.open(link);
395
395
  }
396
396
  } else {
397
- (0, _commonUtil.navigateTo)(link);
397
+ (0, _commonUtil.navigateTo)(link, state);
398
398
  }
399
399
  } else {
400
- (0, _commonUtil.navigateTo)(link);
400
+ (0, _commonUtil.navigateTo)(link, state);
401
401
  }
402
402
  }
403
403
  };
@@ -53,7 +53,7 @@ function (_super) {
53
53
 
54
54
  _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
55
55
  _this.state = {
56
- showNav: false
56
+ showNav: true
57
57
  };
58
58
  return _this;
59
59
  }
@@ -361,7 +361,9 @@ function (_super) {
361
361
  }, data.content && ((_b = data.content.box) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
362
362
  className: "search-input-wrap",
363
363
  onClick: function onClick() {
364
- return (0, _coreUtil.clickUrl)('/search-page');
364
+ return (0, _coreUtil.clickUrl)('/search-page', {
365
+ searchValue: value
366
+ });
365
367
  },
366
368
  style: {
367
369
  borderColor: (_d = (_c = data.content.box) === null || _c === void 0 ? void 0 : _c.color) === null || _d === void 0 ? void 0 : _d.mobile,
@@ -65,7 +65,8 @@ function BundleItem(props) {
65
65
  prodSpcAttrs: productDetail.specAttrValues,
66
66
  offerCnt: offer.num,
67
67
  inCmpIdList: [data.campaignId],
68
- salesPrice: productDetail.salesPrice
68
+ salesPrice: productDetail.salesPrice,
69
+ isBundleOffer: true
69
70
  };
70
71
  })
71
72
  }];
@@ -105,26 +105,24 @@ function SearchCondition(props) {
105
105
  };
106
106
 
107
107
  var hideBottomBar = function hideBottomBar() {
108
- var homeNavBar = document.querySelector('.menu_wrap');
108
+ var homeNavBar = document.querySelector('#bottom-menu');
109
109
  if (homeNavBar) homeNavBar.style.visibility = 'hidden';
110
- var toTop = document.querySelector('.toTopWrap');
110
+ var toTop = document.querySelector('#homeToTop');
111
111
  if (toTop) toTop.style.visibility = 'hidden';
112
112
  };
113
113
 
114
114
  var showBottomBar = function showBottomBar() {
115
- var homeNavBar = document.querySelector('.menu_wrap');
115
+ var homeNavBar = document.querySelector('#bottom-menu');
116
116
  if (homeNavBar) homeNavBar.style.visibility = 'visible';
117
- var toTop = document.querySelector('.toTopWrap');
117
+ var toTop = document.querySelector('#homeToTop');
118
118
  if (toTop) toTop.style.visibility = 'visible';
119
119
  };
120
120
 
121
121
  (0, _react.useEffect)(function () {
122
122
  if (visible) {
123
123
  hideBottomBar();
124
- console.log('hide');
125
124
  } else {
126
125
  showBottomBar();
127
- console.log('show');
128
126
  }
129
127
  }, [visible]);
130
128
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -154,7 +154,7 @@ var compInfoMap = {
154
154
  icon: 'icon-flash-deal'
155
155
  },
156
156
  BARGAIN: {
157
- name: 'Bargain',
157
+ name: 'Refer and Bargain',
158
158
  icon: 'icon-kanjia'
159
159
  },
160
160
  MONPAY_FLASH_DEAL: {
@@ -298,7 +298,7 @@ function commonFetch(url, data, method) {
298
298
  }
299
299
 
300
300
  var navigateTo = function navigateTo(url, state) {
301
- console.log('navigateTo', url);
301
+ console.log('navigateTo', url, state);
302
302
 
303
303
  if (!url) {
304
304
  return;
@@ -302,14 +302,14 @@ function isUrl(string) {
302
302
  }
303
303
  }
304
304
 
305
- var clickUrl = function clickUrl(url) {
305
+ var clickUrl = function clickUrl(url, state) {
306
306
  var _a;
307
307
 
308
308
  if (url === void 0) {
309
309
  url = '';
310
310
  }
311
311
 
312
- console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
312
+ console.log('clickUrl...', url, state); // 只读模式,设计模式,url为空,邮箱模版
313
313
  // if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
314
314
  // return;
315
315
  // }
@@ -394,10 +394,10 @@ var clickUrl = function clickUrl(url) {
394
394
  window.open(link);
395
395
  }
396
396
  } else {
397
- (0, _commonUtil.navigateTo)(link);
397
+ (0, _commonUtil.navigateTo)(link, state);
398
398
  }
399
399
  } else {
400
- (0, _commonUtil.navigateTo)(link);
400
+ (0, _commonUtil.navigateTo)(link, state);
401
401
  }
402
402
  }
403
403
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.116",
4
+ "version": "2.0.117",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",