@fonixtree/magic-design 0.1.36 → 0.1.39

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.
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _defaultImg = _interopRequireDefault(require("../../../../../common/GroupList/defaultImg.png"));
17
17
 
18
+ var _coreUtil = require("../../../../../utils/coreUtil");
19
+
18
20
  var _commonUtil = require("../../../../../utils/commonUtil");
19
21
 
20
22
  var _locale = require("../../../../../locale");
@@ -225,7 +227,7 @@ function (_super) {
225
227
  _a = _b.sent(), res = _a[0], isFollow = _a[1];
226
228
  this.setState({
227
229
  storeInfo: res,
228
- isFollow: isFollow
230
+ isFollow: isFollow == 'Y'
229
231
  });
230
232
  _b.label = 2;
231
233
 
@@ -240,7 +242,7 @@ function (_super) {
240
242
 
241
243
  _this.searchProduct = function () {
242
244
  var storeId = window.magicDesign.storeId;
243
- clickUrl("/product/list?q=" + _this.state.inputVal + "&storeId=" + storeId);
245
+ (0, _coreUtil.clickUrl)("/product/list?q=" + _this.state.inputVal + "&storeId=" + storeId);
244
246
  };
245
247
 
246
248
  _this.clickCollect = function () {
@@ -229,7 +229,7 @@ function (_super) {
229
229
  _a = _b.sent(), res = _a[0], isFollow = _a[1];
230
230
  this.setState({
231
231
  storeInfo: res,
232
- isFollow: isFollow
232
+ isFollow: isFollow == 'Y'
233
233
  });
234
234
  _b.label = 2;
235
235
 
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _defaultImg = _interopRequireDefault(require("../../../../../common/GroupList/defaultImg.png"));
17
17
 
18
+ var _coreUtil = require("../../../../../utils/coreUtil");
19
+
18
20
  var _commonUtil = require("../../../../../utils/commonUtil");
19
21
 
20
22
  var _locale = require("../../../../../locale");
@@ -225,7 +227,7 @@ function (_super) {
225
227
  _a = _b.sent(), res = _a[0], isFollow = _a[1];
226
228
  this.setState({
227
229
  storeInfo: res,
228
- isFollow: isFollow
230
+ isFollow: isFollow == 'Y'
229
231
  });
230
232
  _b.label = 2;
231
233
 
@@ -240,7 +242,7 @@ function (_super) {
240
242
 
241
243
  _this.searchProduct = function () {
242
244
  var storeId = window.magicDesign.storeId;
243
- clickUrl("/product/list?q=" + _this.state.inputVal + "&storeId=" + storeId);
245
+ (0, _coreUtil.clickUrl)("/product/list?q=" + _this.state.inputVal + "&storeId=" + storeId);
244
246
  };
245
247
 
246
248
  _this.clickCollect = function () {
@@ -229,7 +229,7 @@ function (_super) {
229
229
  _a = _b.sent(), res = _a[0], isFollow = _a[1];
230
230
  this.setState({
231
231
  storeInfo: res,
232
- isFollow: isFollow
232
+ isFollow: isFollow == 'Y'
233
233
  });
234
234
  _b.label = 2;
235
235
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.36",
4
+ "version": "0.1.39",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",