@fonixtree/magic-design 1.0.26 → 1.0.28

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.
Binary file
@@ -213,7 +213,8 @@ function (_super) {
213
213
  if (window.magicDesign.pushGA) {
214
214
  window.magicDesign.pushGA({}, 'select_promotion', {
215
215
  event_label: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
216
- promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
216
+ promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
217
+ promotion_id: item.id
217
218
  });
218
219
  }
219
220
  },
@@ -223,7 +223,7 @@ function (_super) {
223
223
  , 3];
224
224
 
225
225
  case 2:
226
- num = (localStorage.getItem('TEMP_CART') || []).length;
226
+ num = JSON.parse(localStorage.getItem('TEMP_CART') || []).length;
227
227
  _a.label = 3;
228
228
 
229
229
  case 3:
Binary file
@@ -213,7 +213,8 @@ function (_super) {
213
213
  if (window.magicDesign.pushGA) {
214
214
  window.magicDesign.pushGA({}, 'select_promotion', {
215
215
  event_label: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
216
- promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
216
+ promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
217
+ promotion_id: item.id
217
218
  });
218
219
  }
219
220
  },
@@ -223,7 +223,7 @@ function (_super) {
223
223
  , 3];
224
224
 
225
225
  case 2:
226
- num = (localStorage.getItem('TEMP_CART') || []).length;
226
+ num = JSON.parse(localStorage.getItem('TEMP_CART') || []).length;
227
227
  _a.label = 3;
228
228
 
229
229
  case 3:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",