@fonixtree/magic-design 2.0.174 → 2.0.175
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.
- package/es/assets/fonts/magic-box-iconfont.css +10 -6
- package/es/assets/fonts/magic-box-iconfont.css.bak +59 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/composite-comp/common/components/MonpayProductItem/index.js +17 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.less +13 -0
- package/es/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
- package/es/composite-comp/public/components/Location/mobile/index.js +3 -208
- package/es/composite-comp/public/components/Location/mobile/index.less +0 -30
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +16 -40
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +1 -1
- package/es/composite-comp/public/components/Stores/mobile/index.js +209 -69
- package/es/locale/ar/ar.json +1 -0
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/mn/mn.json +1 -0
- package/lib/assets/fonts/magic-box-iconfont.css +10 -6
- package/lib/assets/fonts/magic-box-iconfont.css.bak +59 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +17 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +13 -0
- package/lib/composite-comp/monpay/config-panels/MonpayRecommendConfig/RecommendConfigContent/index.js +2 -10
- package/lib/composite-comp/public/components/Location/mobile/index.js +3 -208
- package/lib/composite-comp/public/components/Location/mobile/index.less +0 -30
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +16 -40
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +1 -1
- package/lib/composite-comp/public/components/Stores/mobile/index.js +209 -69
- package/lib/locale/ar/ar.json +1 -0
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/mn/mn.json +1 -0
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -15,14 +15,10 @@ var _StoreItem = _interopRequireDefault(require("./StoreItem"));
|
|
|
15
15
|
|
|
16
16
|
var _components = require("../../../../../meta-comp/components");
|
|
17
17
|
|
|
18
|
-
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
19
|
-
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
21
19
|
|
|
22
20
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
23
21
|
|
|
24
|
-
var _product = _interopRequireDefault(require("../../../../../assets/images/common/product.png"));
|
|
25
|
-
|
|
26
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
23
|
|
|
28
24
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -67,65 +63,173 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
67
63
|
return __assign.apply(this, arguments);
|
|
68
64
|
};
|
|
69
65
|
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
imgUrlContent: {
|
|
112
|
-
url: _product["default"]
|
|
66
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
67
|
+
function adopt(value) {
|
|
68
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
69
|
+
resolve(value);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
74
|
+
function fulfilled(value) {
|
|
75
|
+
try {
|
|
76
|
+
step(generator.next(value));
|
|
77
|
+
} catch (e) {
|
|
78
|
+
reject(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function rejected(value) {
|
|
83
|
+
try {
|
|
84
|
+
step(generator["throw"](value));
|
|
85
|
+
} catch (e) {
|
|
86
|
+
reject(e);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function step(result) {
|
|
91
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
99
|
+
var _ = {
|
|
100
|
+
label: 0,
|
|
101
|
+
sent: function sent() {
|
|
102
|
+
if (t[0] & 1) throw t[1];
|
|
103
|
+
return t[1];
|
|
104
|
+
},
|
|
105
|
+
trys: [],
|
|
106
|
+
ops: []
|
|
113
107
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
108
|
+
f,
|
|
109
|
+
y,
|
|
110
|
+
t,
|
|
111
|
+
g;
|
|
112
|
+
return g = {
|
|
113
|
+
next: verb(0),
|
|
114
|
+
"throw": verb(1),
|
|
115
|
+
"return": verb(2)
|
|
116
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
117
|
+
return this;
|
|
118
|
+
}), g;
|
|
119
|
+
|
|
120
|
+
function verb(n) {
|
|
121
|
+
return function (v) {
|
|
122
|
+
return step([n, v]);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function step(op) {
|
|
127
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
128
|
+
|
|
129
|
+
while (_) {
|
|
130
|
+
try {
|
|
131
|
+
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;
|
|
132
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
133
|
+
|
|
134
|
+
switch (op[0]) {
|
|
135
|
+
case 0:
|
|
136
|
+
case 1:
|
|
137
|
+
t = op;
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
case 4:
|
|
141
|
+
_.label++;
|
|
142
|
+
return {
|
|
143
|
+
value: op[1],
|
|
144
|
+
done: false
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
case 5:
|
|
148
|
+
_.label++;
|
|
149
|
+
y = op[1];
|
|
150
|
+
op = [0];
|
|
151
|
+
continue;
|
|
152
|
+
|
|
153
|
+
case 7:
|
|
154
|
+
op = _.ops.pop();
|
|
155
|
+
|
|
156
|
+
_.trys.pop();
|
|
157
|
+
|
|
158
|
+
continue;
|
|
159
|
+
|
|
160
|
+
default:
|
|
161
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
162
|
+
_ = 0;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
167
|
+
_.label = op[1];
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
172
|
+
_.label = t[1];
|
|
173
|
+
t = op;
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (t && _.label < t[2]) {
|
|
178
|
+
_.label = t[2];
|
|
179
|
+
|
|
180
|
+
_.ops.push(op);
|
|
181
|
+
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (t[2]) _.ops.pop();
|
|
186
|
+
|
|
187
|
+
_.trys.pop();
|
|
188
|
+
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
op = body.call(thisArg, _);
|
|
193
|
+
} catch (e) {
|
|
194
|
+
op = [6, e];
|
|
195
|
+
y = 0;
|
|
196
|
+
} finally {
|
|
197
|
+
f = t = 0;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (op[0] & 5) throw op[1];
|
|
202
|
+
return {
|
|
203
|
+
value: op[0] ? op[1] : void 0,
|
|
204
|
+
done: true
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
var defaultData = [{
|
|
210
|
+
storeId: 1,
|
|
211
|
+
storeName: '落落彩虹的大超市',
|
|
212
|
+
comments: '没有比我面积更大、性价比更高的商品了。',
|
|
213
|
+
storeLogoUrl: '/get/resource/store6/conf/20240905/picture/3331831612826257207296_600.jpg',
|
|
214
|
+
storePosterUrl: '/get/resource/store6/conf/20240905/picture/11111831612121177927680_600.png',
|
|
215
|
+
freeShipping: null,
|
|
216
|
+
distance: '0',
|
|
217
|
+
deliveryTime: null,
|
|
218
|
+
minOrderAmount: 5900,
|
|
219
|
+
comEvalRate: null,
|
|
220
|
+
salesCnt: null
|
|
120
221
|
}, {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
222
|
+
storeId: 2,
|
|
223
|
+
storeName: '落落彩虹的大超市',
|
|
224
|
+
comments: '没有比我面积更大、性价比更高的商品了。',
|
|
225
|
+
storeLogoUrl: '/get/resource/store6/conf/20240905/picture/3331831612826257207296_600.jpg',
|
|
226
|
+
storePosterUrl: '/get/resource/store6/conf/20240905/picture/11111831612121177927680_600.png',
|
|
227
|
+
freeShipping: 'Y',
|
|
228
|
+
distance: '18',
|
|
229
|
+
deliveryTime: null,
|
|
230
|
+
minOrderAmount: 5900,
|
|
231
|
+
comEvalRate: null,
|
|
232
|
+
salesCnt: null
|
|
129
233
|
}];
|
|
130
234
|
|
|
131
235
|
var Mobile =
|
|
@@ -136,15 +240,54 @@ function (_super) {
|
|
|
136
240
|
function Mobile() {
|
|
137
241
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
138
242
|
|
|
139
|
-
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
140
|
-
return (0, _storeUtil.getMagicStore)("stores_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
141
|
-
}, {});
|
|
142
243
|
_this.state = {
|
|
143
244
|
list: []
|
|
144
245
|
};
|
|
246
|
+
|
|
247
|
+
_this.getData = function () {
|
|
248
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
249
|
+
var params, res, list;
|
|
250
|
+
|
|
251
|
+
var _a;
|
|
252
|
+
|
|
253
|
+
return __generator(this, function (_b) {
|
|
254
|
+
switch (_b.label) {
|
|
255
|
+
case 0:
|
|
256
|
+
params = {
|
|
257
|
+
pageIndex: 1,
|
|
258
|
+
pageSize: 10
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
if ((0, _commonUtil.isLogin)()) {
|
|
262
|
+
params.longitude = '118.78344';
|
|
263
|
+
params.latitude = '31.90613';
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return [4
|
|
267
|
+
/*yield*/
|
|
268
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/store/es', params, 'POST')];
|
|
269
|
+
|
|
270
|
+
case 1:
|
|
271
|
+
res = _b.sent();
|
|
272
|
+
list = ((_a = res.storePage) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
273
|
+
this.setState({
|
|
274
|
+
list: list
|
|
275
|
+
});
|
|
276
|
+
return [2
|
|
277
|
+
/*return*/
|
|
278
|
+
];
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
|
|
145
284
|
return _this;
|
|
146
285
|
}
|
|
147
286
|
|
|
287
|
+
Mobile.prototype.componentDidMount = function () {
|
|
288
|
+
this.getData();
|
|
289
|
+
};
|
|
290
|
+
|
|
148
291
|
Mobile.prototype.render = function () {
|
|
149
292
|
var _a;
|
|
150
293
|
|
|
@@ -162,10 +305,7 @@ function (_super) {
|
|
|
162
305
|
}, panelProps.title.name.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
163
306
|
data: panelProps.title.name
|
|
164
307
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
-
className: "right"
|
|
166
|
-
onClick: function onClick() {
|
|
167
|
-
return (0, _coreUtil.clickUrl)('/spike');
|
|
168
|
-
}
|
|
308
|
+
className: "right"
|
|
169
309
|
}, panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
170
310
|
data: panelProps.title.seeAll
|
|
171
311
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -178,7 +318,7 @@ function (_super) {
|
|
|
178
318
|
data: __assign({}, item),
|
|
179
319
|
layout: panelProps.customize.layout,
|
|
180
320
|
onItemClick: function onItemClick() {
|
|
181
|
-
return (0, _coreUtil.clickUrl)("
|
|
321
|
+
return (0, _coreUtil.clickUrl)("store-" + item.storeId + "}");
|
|
182
322
|
},
|
|
183
323
|
panelProps: panelProps.content
|
|
184
324
|
});
|
package/es/locale/ar/ar.json
CHANGED
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/mn/mn.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: "magic-box-iconfont";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
url('magic-box-iconfont.ttf?t=1724808206413') format('truetype');
|
|
2
|
+
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1726729418503') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1726729418503') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1726729418503') format('truetype');
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.magic-box-iconfont {
|
|
@@ -14,6 +13,10 @@
|
|
|
14
13
|
-moz-osx-font-smoothing: grayscale;
|
|
15
14
|
}
|
|
16
15
|
|
|
16
|
+
.magic-box-icon-a-EssentionalUI:before {
|
|
17
|
+
content: "\ea9a";
|
|
18
|
+
}
|
|
19
|
+
|
|
17
20
|
.magic-box-icon-chevron-right:before {
|
|
18
21
|
content: "\e654";
|
|
19
22
|
}
|
|
@@ -636,4 +639,5 @@
|
|
|
636
639
|
|
|
637
640
|
.magic-box-icon-image:before {
|
|
638
641
|
content: "\e608";
|
|
639
|
-
}
|
|
642
|
+
}
|
|
643
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1726729418503') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1726729418503') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1726729418503') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -13,6 +13,62 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-a-EssentionalUI:before {
|
|
17
|
+
content: "\ea9a";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon-chevron-right:before {
|
|
21
|
+
content: "\e654";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-star-circle:before {
|
|
25
|
+
content: "\e653";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-search-short:before {
|
|
29
|
+
content: "\e64d";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.icon-basket-logo:before {
|
|
33
|
+
content: "\ea91";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.icon-corner:before {
|
|
37
|
+
content: "\e651";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-border-radius:before {
|
|
41
|
+
content: "\e652";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon-bike:before {
|
|
45
|
+
content: "\e650";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-time:before {
|
|
49
|
+
content: "\e64f";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.icon-map-marker-star:before {
|
|
53
|
+
content: "\e64e";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.icon-star-check:before {
|
|
57
|
+
content: "\e64a";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon-share-points:before {
|
|
61
|
+
content: "\e64b";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.icon-bargain:before {
|
|
65
|
+
content: "\e649";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.icon-kanjia:before {
|
|
69
|
+
content: "\e688";
|
|
70
|
+
}
|
|
71
|
+
|
|
16
72
|
.icon-save:before {
|
|
17
73
|
content: "\e646";
|
|
18
74
|
}
|