@fonixtree/magic-design 0.0.74 → 0.0.75

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.
@@ -458,7 +458,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
458
458
  minPrice: minimum * precision || '',
459
459
  maxPrice: maximum * precision || '',
460
460
  // storeName:storeName,
461
- cmpTypeId: promotions.key || '',
461
+ campaignType: promotions.key || '',
462
462
  pageSize: paginationParams.pageSize,
463
463
  pageIndex: paginationParams.current,
464
464
  state: 'A'
@@ -485,7 +485,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
485
485
  minPrice: minimum * precision || '',
486
486
  maxPrice: maximum * precision || '',
487
487
  storeName: storeName || '',
488
- cmpTypeId: promotions.key || '',
488
+ campaignType: promotions.key || '',
489
489
  state: 'A'
490
490
  }),
491
491
  total: res.total
@@ -0,0 +1,86 @@
1
+ #message_modal {
2
+ .message-container {
3
+ display: flex;
4
+ position: fixed;
5
+ left: 0;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ flex-direction: column;
10
+ width: 100%;
11
+ z-index: 99;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+
16
+
17
+ .modal-shadow {
18
+ width: 100%;
19
+ height: 100%;
20
+ background-color: rgba(0, 0, 0, .5);
21
+ position: absolute;
22
+ left: 0;
23
+ top: 0;
24
+ z-index: -1;
25
+ }
26
+
27
+ .modal-content {
28
+ width: 80%;
29
+ padding: 16px;
30
+ display: flex;
31
+ flex-direction: column;
32
+ background-color: #fff;
33
+ box-shadow: 0px 4px 8px rgba(96, 97, 112, 0.16);
34
+ animation: bounceIn .5s linear;
35
+ margin-top: -80px;
36
+
37
+ .modal-title {
38
+ font-family: var(--truenoSBd-family);
39
+ color: #000;
40
+ font-size: 16px;
41
+ font-weight: 600;
42
+ text-align: center;
43
+ }
44
+
45
+ .modal-message {
46
+ padding: 24px 0px;
47
+ color: rgb(0, 0, 0);
48
+ text-align: center;
49
+ font-family: var(--regular-font);
50
+ }
51
+
52
+ .modal-btn-wrap {
53
+ display: flex;
54
+ flex-direction: column;
55
+
56
+ .confirm {
57
+ border: none;
58
+ margin: 8px 0;
59
+ background-color: #FF1659;
60
+ font-size: 14px;
61
+ font-weight: 600;
62
+ font-family: var(--regular-font);
63
+ line-height: 21px;
64
+ color: #FFFFFF;
65
+ opacity: 1;
66
+ height: 46px;
67
+ }
68
+
69
+ .cancel {
70
+ border: none;
71
+ margin: 8px 0;
72
+ background-color: #FFFFFF;
73
+ font-size: 14px;
74
+ font-weight: 600;
75
+ font-family: var(--regular-font);
76
+ line-height: 21px;
77
+ color: #FF1659;
78
+ opacity: 1;
79
+ height: 46px;
80
+ }
81
+ }
82
+ }
83
+
84
+ }
85
+
86
+ }
@@ -700,7 +700,7 @@ var ProductModal = function ProductModal(props) {
700
700
  productName: productName,
701
701
  productCode: productCode,
702
702
  storeId: storeId,
703
- cmpTypeId: promotions || '',
703
+ campaignType: promotions || '',
704
704
  minPrice: minPrice === '' ? '' : minPrice * Math.pow(10, precision),
705
705
  maxPrice: maxPrice === '' ? '' : maxPrice * Math.pow(10, precision),
706
706
  catgIds: selCatgsList.join(','),
@@ -730,7 +730,7 @@ var ProductModal = function ProductModal(props) {
730
730
  queryGoods({
731
731
  productName: productName,
732
732
  productCode: productCode,
733
- cmpTypeId: promotions || '',
733
+ campaignType: promotions || '',
734
734
  minPrice: minPrice === '' ? '' : minPrice * Math.pow(10, precision),
735
735
  maxPrice: maxPrice === '' ? '' : maxPrice * Math.pow(10, precision),
736
736
  catgIds: selCatgsList.join(','),
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Save",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Guardar",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Save",
@@ -13,6 +13,12 @@ var _commonUtil = require("./commonUtil");
13
13
 
14
14
  var _androidUtil = require("./androidUtil");
15
15
 
16
+ var _MessageModal = _interopRequireDefault(require("../common/MessageModal"));
17
+
18
+ var _locale = require("../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
16
22
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
17
23
 
18
24
  var __assign = void 0 && (void 0).__assign || function () {
@@ -31,6 +37,149 @@ var __assign = void 0 && (void 0).__assign || function () {
31
37
  return __assign.apply(this, arguments);
32
38
  };
33
39
 
40
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
41
+ function adopt(value) {
42
+ return value instanceof P ? value : new P(function (resolve) {
43
+ resolve(value);
44
+ });
45
+ }
46
+
47
+ return new (P || (P = Promise))(function (resolve, reject) {
48
+ function fulfilled(value) {
49
+ try {
50
+ step(generator.next(value));
51
+ } catch (e) {
52
+ reject(e);
53
+ }
54
+ }
55
+
56
+ function rejected(value) {
57
+ try {
58
+ step(generator["throw"](value));
59
+ } catch (e) {
60
+ reject(e);
61
+ }
62
+ }
63
+
64
+ function step(result) {
65
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
66
+ }
67
+
68
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
69
+ });
70
+ };
71
+
72
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
73
+ var _ = {
74
+ label: 0,
75
+ sent: function sent() {
76
+ if (t[0] & 1) throw t[1];
77
+ return t[1];
78
+ },
79
+ trys: [],
80
+ ops: []
81
+ },
82
+ f,
83
+ y,
84
+ t,
85
+ g;
86
+ return g = {
87
+ next: verb(0),
88
+ "throw": verb(1),
89
+ "return": verb(2)
90
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
91
+ return this;
92
+ }), g;
93
+
94
+ function verb(n) {
95
+ return function (v) {
96
+ return step([n, v]);
97
+ };
98
+ }
99
+
100
+ function step(op) {
101
+ if (f) throw new TypeError("Generator is already executing.");
102
+
103
+ while (_) {
104
+ try {
105
+ 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;
106
+ if (y = 0, t) op = [op[0] & 2, t.value];
107
+
108
+ switch (op[0]) {
109
+ case 0:
110
+ case 1:
111
+ t = op;
112
+ break;
113
+
114
+ case 4:
115
+ _.label++;
116
+ return {
117
+ value: op[1],
118
+ done: false
119
+ };
120
+
121
+ case 5:
122
+ _.label++;
123
+ y = op[1];
124
+ op = [0];
125
+ continue;
126
+
127
+ case 7:
128
+ op = _.ops.pop();
129
+
130
+ _.trys.pop();
131
+
132
+ continue;
133
+
134
+ default:
135
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
136
+ _ = 0;
137
+ continue;
138
+ }
139
+
140
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
141
+ _.label = op[1];
142
+ break;
143
+ }
144
+
145
+ if (op[0] === 6 && _.label < t[1]) {
146
+ _.label = t[1];
147
+ t = op;
148
+ break;
149
+ }
150
+
151
+ if (t && _.label < t[2]) {
152
+ _.label = t[2];
153
+
154
+ _.ops.push(op);
155
+
156
+ break;
157
+ }
158
+
159
+ if (t[2]) _.ops.pop();
160
+
161
+ _.trys.pop();
162
+
163
+ continue;
164
+ }
165
+
166
+ op = body.call(thisArg, _);
167
+ } catch (e) {
168
+ op = [6, e];
169
+ y = 0;
170
+ } finally {
171
+ f = t = 0;
172
+ }
173
+ }
174
+
175
+ if (op[0] & 5) throw op[1];
176
+ return {
177
+ value: op[0] ? op[1] : void 0,
178
+ done: true
179
+ };
180
+ }
181
+ };
182
+
34
183
  var _this = void 0;
35
184
 
36
185
  var isDesignMode = function isDesignMode() {
@@ -62,8 +211,65 @@ var renderPreview = function renderPreview() {
62
211
 
63
212
  exports.renderPreview = renderPreview;
64
213
 
214
+ var getCoupon = function getCoupon(couponId) {
215
+ return __awaiter(void 0, void 0, void 0, function () {
216
+ var err_1;
217
+ return __generator(this, function (_a) {
218
+ switch (_a.label) {
219
+ case 0:
220
+ _MessageModal["default"].success({
221
+ content: 'test',
222
+ okText: 'Ok'
223
+ });
224
+
225
+ _a.label = 1;
226
+
227
+ case 1:
228
+ _a.trys.push([1, 3,, 4]);
229
+
230
+ return [4
231
+ /*yield*/
232
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/coupons/usercoupon", {
233
+ couponId: Number(couponId)
234
+ }, 'POST')];
235
+
236
+ case 2:
237
+ _a.sent();
238
+
239
+ _MessageModal["default"].success({
240
+ content: (0, _locale.i18n)('VOUCHER_SUCCESS'),
241
+ okText: 'Ok'
242
+ });
243
+
244
+ return [3
245
+ /*break*/
246
+ , 4];
247
+
248
+ case 3:
249
+ err_1 = _a.sent();
250
+
251
+ _MessageModal["default"].success({
252
+ content: err_1,
253
+ okText: 'Ok'
254
+ });
255
+
256
+ return [3
257
+ /*break*/
258
+ , 4];
259
+
260
+ case 4:
261
+ return [2
262
+ /*return*/
263
+ ];
264
+ }
265
+ });
266
+ });
267
+ };
268
+
65
269
  var clickUrl = function clickUrl(url) {
66
270
  console.log('url', url);
271
+ getCoupon(100);
272
+ return;
67
273
 
68
274
  if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url) {
69
275
  return;
@@ -78,8 +284,7 @@ var clickUrl = function clickUrl(url) {
78
284
  data = params.data; // 领取优惠券
79
285
 
80
286
  if (type === 'GET_COUPON') {
81
- _this.getCoupon(data.couponId);
82
-
287
+ getCoupon(data.couponId);
83
288
  return;
84
289
  }
85
290
 
@@ -458,7 +458,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
458
458
  minPrice: minimum * precision || '',
459
459
  maxPrice: maximum * precision || '',
460
460
  // storeName:storeName,
461
- cmpTypeId: promotions.key || '',
461
+ campaignType: promotions.key || '',
462
462
  pageSize: paginationParams.pageSize,
463
463
  pageIndex: paginationParams.current,
464
464
  state: 'A'
@@ -485,7 +485,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
485
485
  minPrice: minimum * precision || '',
486
486
  maxPrice: maximum * precision || '',
487
487
  storeName: storeName || '',
488
- cmpTypeId: promotions.key || '',
488
+ campaignType: promotions.key || '',
489
489
  state: 'A'
490
490
  }),
491
491
  total: res.total
@@ -0,0 +1,86 @@
1
+ #message_modal {
2
+ .message-container {
3
+ display: flex;
4
+ position: fixed;
5
+ left: 0;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ flex-direction: column;
10
+ width: 100%;
11
+ z-index: 99;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+
16
+
17
+ .modal-shadow {
18
+ width: 100%;
19
+ height: 100%;
20
+ background-color: rgba(0, 0, 0, .5);
21
+ position: absolute;
22
+ left: 0;
23
+ top: 0;
24
+ z-index: -1;
25
+ }
26
+
27
+ .modal-content {
28
+ width: 80%;
29
+ padding: 16px;
30
+ display: flex;
31
+ flex-direction: column;
32
+ background-color: #fff;
33
+ box-shadow: 0px 4px 8px rgba(96, 97, 112, 0.16);
34
+ animation: bounceIn .5s linear;
35
+ margin-top: -80px;
36
+
37
+ .modal-title {
38
+ font-family: var(--truenoSBd-family);
39
+ color: #000;
40
+ font-size: 16px;
41
+ font-weight: 600;
42
+ text-align: center;
43
+ }
44
+
45
+ .modal-message {
46
+ padding: 24px 0px;
47
+ color: rgb(0, 0, 0);
48
+ text-align: center;
49
+ font-family: var(--regular-font);
50
+ }
51
+
52
+ .modal-btn-wrap {
53
+ display: flex;
54
+ flex-direction: column;
55
+
56
+ .confirm {
57
+ border: none;
58
+ margin: 8px 0;
59
+ background-color: #FF1659;
60
+ font-size: 14px;
61
+ font-weight: 600;
62
+ font-family: var(--regular-font);
63
+ line-height: 21px;
64
+ color: #FFFFFF;
65
+ opacity: 1;
66
+ height: 46px;
67
+ }
68
+
69
+ .cancel {
70
+ border: none;
71
+ margin: 8px 0;
72
+ background-color: #FFFFFF;
73
+ font-size: 14px;
74
+ font-weight: 600;
75
+ font-family: var(--regular-font);
76
+ line-height: 21px;
77
+ color: #FF1659;
78
+ opacity: 1;
79
+ height: 46px;
80
+ }
81
+ }
82
+ }
83
+
84
+ }
85
+
86
+ }
@@ -700,7 +700,7 @@ var ProductModal = function ProductModal(props) {
700
700
  productName: productName,
701
701
  productCode: productCode,
702
702
  storeId: storeId,
703
- cmpTypeId: promotions || '',
703
+ campaignType: promotions || '',
704
704
  minPrice: minPrice === '' ? '' : minPrice * Math.pow(10, precision),
705
705
  maxPrice: maxPrice === '' ? '' : maxPrice * Math.pow(10, precision),
706
706
  catgIds: selCatgsList.join(','),
@@ -730,7 +730,7 @@ var ProductModal = function ProductModal(props) {
730
730
  queryGoods({
731
731
  productName: productName,
732
732
  productCode: productCode,
733
- cmpTypeId: promotions || '',
733
+ campaignType: promotions || '',
734
734
  minPrice: minPrice === '' ? '' : minPrice * Math.pow(10, precision),
735
735
  maxPrice: maxPrice === '' ? '' : maxPrice * Math.pow(10, precision),
736
736
  catgIds: selCatgsList.join(','),
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Save",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Guardar",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "VOUCHER_SUCCESS": "Voucher received successfully!",
2
3
  "NAVIGATION_NAME": "Navigation Name",
3
4
  "ADD_NAVIGATION": "Add Navigation",
4
5
  "SAVE": "Save",
@@ -13,6 +13,12 @@ var _commonUtil = require("./commonUtil");
13
13
 
14
14
  var _androidUtil = require("./androidUtil");
15
15
 
16
+ var _MessageModal = _interopRequireDefault(require("../common/MessageModal"));
17
+
18
+ var _locale = require("../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
16
22
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
17
23
 
18
24
  var __assign = void 0 && (void 0).__assign || function () {
@@ -31,6 +37,149 @@ var __assign = void 0 && (void 0).__assign || function () {
31
37
  return __assign.apply(this, arguments);
32
38
  };
33
39
 
40
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
41
+ function adopt(value) {
42
+ return value instanceof P ? value : new P(function (resolve) {
43
+ resolve(value);
44
+ });
45
+ }
46
+
47
+ return new (P || (P = Promise))(function (resolve, reject) {
48
+ function fulfilled(value) {
49
+ try {
50
+ step(generator.next(value));
51
+ } catch (e) {
52
+ reject(e);
53
+ }
54
+ }
55
+
56
+ function rejected(value) {
57
+ try {
58
+ step(generator["throw"](value));
59
+ } catch (e) {
60
+ reject(e);
61
+ }
62
+ }
63
+
64
+ function step(result) {
65
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
66
+ }
67
+
68
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
69
+ });
70
+ };
71
+
72
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
73
+ var _ = {
74
+ label: 0,
75
+ sent: function sent() {
76
+ if (t[0] & 1) throw t[1];
77
+ return t[1];
78
+ },
79
+ trys: [],
80
+ ops: []
81
+ },
82
+ f,
83
+ y,
84
+ t,
85
+ g;
86
+ return g = {
87
+ next: verb(0),
88
+ "throw": verb(1),
89
+ "return": verb(2)
90
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
91
+ return this;
92
+ }), g;
93
+
94
+ function verb(n) {
95
+ return function (v) {
96
+ return step([n, v]);
97
+ };
98
+ }
99
+
100
+ function step(op) {
101
+ if (f) throw new TypeError("Generator is already executing.");
102
+
103
+ while (_) {
104
+ try {
105
+ 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;
106
+ if (y = 0, t) op = [op[0] & 2, t.value];
107
+
108
+ switch (op[0]) {
109
+ case 0:
110
+ case 1:
111
+ t = op;
112
+ break;
113
+
114
+ case 4:
115
+ _.label++;
116
+ return {
117
+ value: op[1],
118
+ done: false
119
+ };
120
+
121
+ case 5:
122
+ _.label++;
123
+ y = op[1];
124
+ op = [0];
125
+ continue;
126
+
127
+ case 7:
128
+ op = _.ops.pop();
129
+
130
+ _.trys.pop();
131
+
132
+ continue;
133
+
134
+ default:
135
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
136
+ _ = 0;
137
+ continue;
138
+ }
139
+
140
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
141
+ _.label = op[1];
142
+ break;
143
+ }
144
+
145
+ if (op[0] === 6 && _.label < t[1]) {
146
+ _.label = t[1];
147
+ t = op;
148
+ break;
149
+ }
150
+
151
+ if (t && _.label < t[2]) {
152
+ _.label = t[2];
153
+
154
+ _.ops.push(op);
155
+
156
+ break;
157
+ }
158
+
159
+ if (t[2]) _.ops.pop();
160
+
161
+ _.trys.pop();
162
+
163
+ continue;
164
+ }
165
+
166
+ op = body.call(thisArg, _);
167
+ } catch (e) {
168
+ op = [6, e];
169
+ y = 0;
170
+ } finally {
171
+ f = t = 0;
172
+ }
173
+ }
174
+
175
+ if (op[0] & 5) throw op[1];
176
+ return {
177
+ value: op[0] ? op[1] : void 0,
178
+ done: true
179
+ };
180
+ }
181
+ };
182
+
34
183
  var _this = void 0;
35
184
 
36
185
  var isDesignMode = function isDesignMode() {
@@ -62,8 +211,65 @@ var renderPreview = function renderPreview() {
62
211
 
63
212
  exports.renderPreview = renderPreview;
64
213
 
214
+ var getCoupon = function getCoupon(couponId) {
215
+ return __awaiter(void 0, void 0, void 0, function () {
216
+ var err_1;
217
+ return __generator(this, function (_a) {
218
+ switch (_a.label) {
219
+ case 0:
220
+ _MessageModal["default"].success({
221
+ content: 'test',
222
+ okText: 'Ok'
223
+ });
224
+
225
+ _a.label = 1;
226
+
227
+ case 1:
228
+ _a.trys.push([1, 3,, 4]);
229
+
230
+ return [4
231
+ /*yield*/
232
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/coupons/usercoupon", {
233
+ couponId: Number(couponId)
234
+ }, 'POST')];
235
+
236
+ case 2:
237
+ _a.sent();
238
+
239
+ _MessageModal["default"].success({
240
+ content: (0, _locale.i18n)('VOUCHER_SUCCESS'),
241
+ okText: 'Ok'
242
+ });
243
+
244
+ return [3
245
+ /*break*/
246
+ , 4];
247
+
248
+ case 3:
249
+ err_1 = _a.sent();
250
+
251
+ _MessageModal["default"].success({
252
+ content: err_1,
253
+ okText: 'Ok'
254
+ });
255
+
256
+ return [3
257
+ /*break*/
258
+ , 4];
259
+
260
+ case 4:
261
+ return [2
262
+ /*return*/
263
+ ];
264
+ }
265
+ });
266
+ });
267
+ };
268
+
65
269
  var clickUrl = function clickUrl(url) {
66
270
  console.log('url', url);
271
+ getCoupon(100);
272
+ return;
67
273
 
68
274
  if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url) {
69
275
  return;
@@ -78,8 +284,7 @@ var clickUrl = function clickUrl(url) {
78
284
  data = params.data; // 领取优惠券
79
285
 
80
286
  if (type === 'GET_COUPON') {
81
- _this.getCoupon(data.couponId);
82
-
287
+ getCoupon(data.couponId);
83
288
  return;
84
289
  }
85
290
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.74",
4
+ "version": "0.0.75",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",