@fonixtree/magic-design 2.0.170 → 2.0.171
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 +39 -3
- package/es/assets/fonts/magic-box-iconfont.js +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/assets/images/base64/index.js +8 -2
- package/es/assets/images/common/product.png +0 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/images/layout-icon/storesLayout1.png +0 -0
- package/es/assets/images/layout-icon/storesLayout2.png +0 -0
- package/es/assets/less/common.less +40 -3
- package/es/common/Field/index.js +5 -2
- package/es/common/Field/index.less +5 -0
- package/es/common/MyModal/index.less +12 -4
- package/{lib/composite-comp/bol/components/Wallet → es/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
- package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
- package/{lib/composite-comp/bol/config-panels/WalletConfig → es/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/public/components/Location/defaultJSON.js +104 -0
- package/es/composite-comp/public/components/Location/index.js +86 -0
- package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/es/composite-comp/public/components/Location/mobile/index.js +353 -0
- package/es/composite-comp/public/components/Location/mobile/index.less +90 -0
- package/es/composite-comp/public/components/Stores/defaultJSON.js +348 -0
- package/es/composite-comp/public/components/Stores/index.js +86 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
- package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
- package/es/composite-comp/public/components/Stores/mobile/index.js +198 -0
- package/es/composite-comp/public/components/Stores/mobile/index.less +37 -0
- package/es/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
- package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
- package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
- package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
- package/{lib/composite-comp/bol → es/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
- package/es/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
- package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
- package/es/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
- package/es/constants/component-types.js +23 -13
- package/es/constants/index.js +9 -1
- package/es/constants/layout.js +18 -4
- package/es/locale/en/en.json +15 -1
- package/es/locale/es/es.json +15 -1
- package/es/locale/index.js +5 -1
- package/es/locale/mn/mn.json +15 -1
- package/es/meta-comp/components/Text/index.less +6 -0
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
- package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +7 -8
- package/es/utils/commonUtil.js +21 -9
- package/lib/assets/fonts/magic-box-iconfont.css +39 -3
- package/lib/assets/fonts/magic-box-iconfont.js +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/assets/images/base64/index.js +8 -2
- package/lib/assets/images/common/product.png +0 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
- package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
- package/lib/assets/less/common.less +40 -3
- package/lib/common/Field/index.js +5 -2
- package/lib/common/Field/index.less +5 -0
- package/lib/common/MyModal/index.less +12 -4
- package/{es/composite-comp/bol/components/Wallet → lib/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
- package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
- package/{es/composite-comp/bol/config-panels/WalletConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/public/components/Location/defaultJSON.js +104 -0
- package/lib/composite-comp/public/components/Location/index.js +86 -0
- package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
- package/lib/composite-comp/public/components/Location/mobile/index.js +353 -0
- package/lib/composite-comp/public/components/Location/mobile/index.less +90 -0
- package/lib/composite-comp/public/components/Stores/defaultJSON.js +348 -0
- package/lib/composite-comp/public/components/Stores/index.js +86 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
- package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
- package/lib/composite-comp/public/components/Stores/mobile/index.js +198 -0
- package/lib/composite-comp/public/components/Stores/mobile/index.less +37 -0
- package/lib/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
- package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
- package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
- package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
- package/{es/composite-comp/bol → lib/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
- package/lib/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
- package/lib/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
- package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
- package/lib/constants/component-types.js +23 -13
- package/lib/constants/index.js +9 -1
- package/lib/constants/layout.js +18 -4
- package/lib/locale/en/en.json +15 -1
- package/lib/locale/es/es.json +15 -1
- package/lib/locale/index.js +5 -1
- package/lib/locale/mn/mn.json +15 -1
- package/lib/meta-comp/components/Text/index.less +6 -0
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
- package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +7 -8
- package/lib/utils/commonUtil.js +21 -9
- package/package.json +1 -1
- package/es/composite-comp/bol/components/Location/defaultJSON.js +0 -60
- package/es/composite-comp/bol/components/Location/index.js +0 -102
- package/es/composite-comp/bol/components/Location/index.less +0 -15
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +0 -60
- package/lib/composite-comp/bol/components/Location/index.js +0 -102
- package/lib/composite-comp/bol/components/Location/index.less +0 -15
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
- /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
- /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
- /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/index.js +0 -0
- /package/es/composite-comp/{bol → nuri}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
- /package/es/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent → es/composite-comp/public/config-panels/StoresConfig/ConfigContent}/index.less +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletConfig/imgs → es/composite-comp/public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.less +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/WalletNuriConfigImageGroup/index.js +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup → es/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup}/index.less +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList → es/composite-comp/public/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
- /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/index.js +0 -0
- /package/{lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig → es/composite-comp/public/second-config-panels/WalletSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
- /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup → ashita/config-panels/WalletAshitaConfig/WalletConfigContent}/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
- /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
- /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
- /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
- /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
- /package/lib/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
12
|
+
var _index = require("../../../../assets/images/base64/index");
|
|
13
|
+
|
|
14
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
15
|
+
var _a;
|
|
16
|
+
|
|
17
|
+
var groupId = (0, _uuid.v4)();
|
|
18
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
19
|
+
return {
|
|
20
|
+
id: groupId,
|
|
21
|
+
type: 'STORES',
|
|
22
|
+
title: {
|
|
23
|
+
name: {
|
|
24
|
+
id: (0, _uuid.v4)(),
|
|
25
|
+
open: true,
|
|
26
|
+
type: 'TEXT',
|
|
27
|
+
specialContent: [],
|
|
28
|
+
text: 'Free Delivery',
|
|
29
|
+
content: {
|
|
30
|
+
sizeType: 'Customize font styles',
|
|
31
|
+
fontFamily: defaultFontFamily,
|
|
32
|
+
fontWeight: 600,
|
|
33
|
+
fontSize: 14,
|
|
34
|
+
color: '#1B1B1B'
|
|
35
|
+
},
|
|
36
|
+
underline: {
|
|
37
|
+
open: false,
|
|
38
|
+
textDecorationColor: '',
|
|
39
|
+
textDecorationStyle: 'solid'
|
|
40
|
+
},
|
|
41
|
+
vertical: {
|
|
42
|
+
open: false,
|
|
43
|
+
lineHeight: 18
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
seeAll: {
|
|
47
|
+
id: (0, _uuid.v4)(),
|
|
48
|
+
open: true,
|
|
49
|
+
type: 'BUTTON',
|
|
50
|
+
text: 'See All',
|
|
51
|
+
content: {
|
|
52
|
+
url: '',
|
|
53
|
+
backgroundColor: 'transparent'
|
|
54
|
+
},
|
|
55
|
+
buttonText: {
|
|
56
|
+
sizeType: 'Customize font styles',
|
|
57
|
+
fontFamily: defaultFontFamily,
|
|
58
|
+
fontWeight: 400,
|
|
59
|
+
fontSize: 14,
|
|
60
|
+
fontStyle: 'normal',
|
|
61
|
+
color: '#61096B'
|
|
62
|
+
},
|
|
63
|
+
buttonBorder: {
|
|
64
|
+
open: true,
|
|
65
|
+
borderColor: '',
|
|
66
|
+
borderRadius: 0
|
|
67
|
+
},
|
|
68
|
+
spacing: {
|
|
69
|
+
mobile: {
|
|
70
|
+
paddingTop: 0,
|
|
71
|
+
paddingBottom: 0,
|
|
72
|
+
paddingLeft: 5,
|
|
73
|
+
paddingRight: 5
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
buttonIcon: {
|
|
77
|
+
iconUrl: '',
|
|
78
|
+
layout: 'right'
|
|
79
|
+
},
|
|
80
|
+
hover: null
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
content: {
|
|
84
|
+
storeName: {
|
|
85
|
+
id: (0, _uuid.v4)(),
|
|
86
|
+
open: true,
|
|
87
|
+
type: 'TEXT',
|
|
88
|
+
specialContent: [],
|
|
89
|
+
text: '',
|
|
90
|
+
content: {
|
|
91
|
+
sizeType: 'Customize font styles',
|
|
92
|
+
fontFamily: defaultFontFamily,
|
|
93
|
+
fontWeight: 600,
|
|
94
|
+
fontSize: 14,
|
|
95
|
+
color: '#1B1B1B',
|
|
96
|
+
urlDisabled: true
|
|
97
|
+
},
|
|
98
|
+
underline: {
|
|
99
|
+
open: false,
|
|
100
|
+
textDecorationColor: '',
|
|
101
|
+
textDecorationStyle: 'solid'
|
|
102
|
+
},
|
|
103
|
+
vertical: {
|
|
104
|
+
open: false,
|
|
105
|
+
lineHeight: 18
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
storeDesc: {
|
|
109
|
+
id: (0, _uuid.v4)(),
|
|
110
|
+
open: true,
|
|
111
|
+
type: 'TEXT',
|
|
112
|
+
specialContent: [],
|
|
113
|
+
text: '',
|
|
114
|
+
content: {
|
|
115
|
+
sizeType: 'Customize font styles',
|
|
116
|
+
fontFamily: defaultFontFamily,
|
|
117
|
+
fontWeight: 400,
|
|
118
|
+
fontSize: 12,
|
|
119
|
+
color: '#545454',
|
|
120
|
+
urlDisabled: true
|
|
121
|
+
},
|
|
122
|
+
underline: {
|
|
123
|
+
open: false,
|
|
124
|
+
textDecorationColor: '',
|
|
125
|
+
textDecorationStyle: 'solid'
|
|
126
|
+
},
|
|
127
|
+
vertical: {
|
|
128
|
+
open: false,
|
|
129
|
+
lineHeight: 18
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
freeDeliveryLabel: {
|
|
133
|
+
id: (0, _uuid.v4)(),
|
|
134
|
+
open: true,
|
|
135
|
+
type: 'BUTTON',
|
|
136
|
+
text: 'Free delivery',
|
|
137
|
+
content: {
|
|
138
|
+
url: '',
|
|
139
|
+
backgroundColor: '#86BF31'
|
|
140
|
+
},
|
|
141
|
+
buttonText: {
|
|
142
|
+
sizeType: 'Customize font styles',
|
|
143
|
+
fontFamily: defaultFontFamily,
|
|
144
|
+
fontWeight: 600,
|
|
145
|
+
fontSize: 12,
|
|
146
|
+
fontStyle: 'normal',
|
|
147
|
+
color: '#fff'
|
|
148
|
+
},
|
|
149
|
+
buttonBorder: {
|
|
150
|
+
open: true,
|
|
151
|
+
borderColor: '',
|
|
152
|
+
borderRadius: '0px 5px 5px 0px'
|
|
153
|
+
},
|
|
154
|
+
spacing: {
|
|
155
|
+
mobile: {
|
|
156
|
+
paddingTop: 5,
|
|
157
|
+
paddingBottom: 5,
|
|
158
|
+
paddingLeft: 5,
|
|
159
|
+
paddingRight: 5
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
buttonIcon: {
|
|
163
|
+
iconUrl: '',
|
|
164
|
+
layout: 'right'
|
|
165
|
+
},
|
|
166
|
+
hover: null
|
|
167
|
+
},
|
|
168
|
+
minOrder: {
|
|
169
|
+
id: (0, _uuid.v4)(),
|
|
170
|
+
open: true,
|
|
171
|
+
type: 'TEXT',
|
|
172
|
+
specialContent: [],
|
|
173
|
+
text: '',
|
|
174
|
+
content: {
|
|
175
|
+
sizeType: 'Customize font styles',
|
|
176
|
+
fontFamily: defaultFontFamily,
|
|
177
|
+
fontWeight: 400,
|
|
178
|
+
fontSize: 12,
|
|
179
|
+
color: '#545454',
|
|
180
|
+
urlDisabled: true
|
|
181
|
+
},
|
|
182
|
+
underline: {
|
|
183
|
+
open: false,
|
|
184
|
+
textDecorationColor: '',
|
|
185
|
+
textDecorationStyle: 'solid'
|
|
186
|
+
},
|
|
187
|
+
vertical: {
|
|
188
|
+
open: false,
|
|
189
|
+
lineHeight: 18
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
evaluateScore: {
|
|
193
|
+
id: (0, _uuid.v4)(),
|
|
194
|
+
open: true,
|
|
195
|
+
type: 'BUTTON',
|
|
196
|
+
text: 'Button',
|
|
197
|
+
content: {
|
|
198
|
+
url: '',
|
|
199
|
+
backgroundColor: 'transparent'
|
|
200
|
+
},
|
|
201
|
+
buttonText: {
|
|
202
|
+
sizeType: 'Customize font styles',
|
|
203
|
+
fontFamily: defaultFontFamily,
|
|
204
|
+
fontWeight: 400,
|
|
205
|
+
fontSize: 12,
|
|
206
|
+
fontStyle: 'normal',
|
|
207
|
+
color: '#545454'
|
|
208
|
+
},
|
|
209
|
+
buttonBorder: {
|
|
210
|
+
open: true,
|
|
211
|
+
borderColor: '',
|
|
212
|
+
borderRadius: 0
|
|
213
|
+
},
|
|
214
|
+
spacing: {
|
|
215
|
+
mobile: {
|
|
216
|
+
paddingTop: 0,
|
|
217
|
+
paddingBottom: 0,
|
|
218
|
+
paddingLeft: 0,
|
|
219
|
+
paddingRight: 0
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
buttonIcon: {
|
|
223
|
+
iconUrl: _index.starIcon,
|
|
224
|
+
layout: 'left'
|
|
225
|
+
},
|
|
226
|
+
hover: null
|
|
227
|
+
},
|
|
228
|
+
sold: {
|
|
229
|
+
id: (0, _uuid.v4)(),
|
|
230
|
+
open: true,
|
|
231
|
+
type: 'TEXT',
|
|
232
|
+
specialContent: [],
|
|
233
|
+
text: '',
|
|
234
|
+
content: {
|
|
235
|
+
sizeType: 'Customize font styles',
|
|
236
|
+
fontFamily: defaultFontFamily,
|
|
237
|
+
fontWeight: 400,
|
|
238
|
+
fontSize: 12,
|
|
239
|
+
color: '#545454',
|
|
240
|
+
urlDisabled: true
|
|
241
|
+
},
|
|
242
|
+
underline: {
|
|
243
|
+
open: false,
|
|
244
|
+
textDecorationColor: '',
|
|
245
|
+
textDecorationStyle: 'solid'
|
|
246
|
+
},
|
|
247
|
+
vertical: {
|
|
248
|
+
open: false,
|
|
249
|
+
lineHeight: 18
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
deliveryTime: {
|
|
253
|
+
id: (0, _uuid.v4)(),
|
|
254
|
+
open: true,
|
|
255
|
+
type: 'BUTTON',
|
|
256
|
+
text: 'Button',
|
|
257
|
+
content: {
|
|
258
|
+
url: '',
|
|
259
|
+
backgroundColor: 'transparent'
|
|
260
|
+
},
|
|
261
|
+
buttonText: {
|
|
262
|
+
sizeType: 'Customize font styles',
|
|
263
|
+
fontFamily: defaultFontFamily,
|
|
264
|
+
fontWeight: 400,
|
|
265
|
+
fontSize: 12,
|
|
266
|
+
fontStyle: 'normal',
|
|
267
|
+
color: '#545454'
|
|
268
|
+
},
|
|
269
|
+
buttonBorder: {
|
|
270
|
+
open: true,
|
|
271
|
+
borderColor: '',
|
|
272
|
+
borderRadius: 0
|
|
273
|
+
},
|
|
274
|
+
spacing: {
|
|
275
|
+
mobile: {
|
|
276
|
+
paddingTop: 0,
|
|
277
|
+
paddingBottom: 0,
|
|
278
|
+
paddingLeft: 0,
|
|
279
|
+
paddingRight: 0
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
buttonIcon: {
|
|
283
|
+
iconUrl: _index.timeIcon,
|
|
284
|
+
layout: 'left'
|
|
285
|
+
},
|
|
286
|
+
hover: null
|
|
287
|
+
},
|
|
288
|
+
distance: {
|
|
289
|
+
id: (0, _uuid.v4)(),
|
|
290
|
+
open: true,
|
|
291
|
+
type: 'BUTTON',
|
|
292
|
+
text: 'Button',
|
|
293
|
+
content: {
|
|
294
|
+
url: '',
|
|
295
|
+
backgroundColor: 'transparent'
|
|
296
|
+
},
|
|
297
|
+
buttonText: {
|
|
298
|
+
sizeType: 'Customize font styles',
|
|
299
|
+
fontFamily: defaultFontFamily,
|
|
300
|
+
fontWeight: 400,
|
|
301
|
+
fontSize: 12,
|
|
302
|
+
fontStyle: 'normal',
|
|
303
|
+
color: '#545454'
|
|
304
|
+
},
|
|
305
|
+
buttonBorder: {
|
|
306
|
+
open: true,
|
|
307
|
+
borderColor: '',
|
|
308
|
+
borderRadius: 0
|
|
309
|
+
},
|
|
310
|
+
spacing: {
|
|
311
|
+
mobile: {
|
|
312
|
+
paddingTop: 0,
|
|
313
|
+
paddingBottom: 0,
|
|
314
|
+
paddingLeft: 0,
|
|
315
|
+
paddingRight: 0
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
buttonIcon: {
|
|
319
|
+
iconUrl: _index.bikeIcon,
|
|
320
|
+
layout: 'left'
|
|
321
|
+
},
|
|
322
|
+
hover: null
|
|
323
|
+
},
|
|
324
|
+
sourceType: '1',
|
|
325
|
+
maxProdNum: 5
|
|
326
|
+
},
|
|
327
|
+
spacing: {
|
|
328
|
+
mobile: {
|
|
329
|
+
paddingTop: 20,
|
|
330
|
+
paddingBottom: 20,
|
|
331
|
+
paddingLeft: 0,
|
|
332
|
+
paddingRight: 0,
|
|
333
|
+
marginBottom: window.magicDesign.compSpacing
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
customize: {
|
|
337
|
+
layout: 'layout1'
|
|
338
|
+
},
|
|
339
|
+
background: {
|
|
340
|
+
opacity: 100,
|
|
341
|
+
color: '#fff',
|
|
342
|
+
image: '',
|
|
343
|
+
bgType: 'color'
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
+
|
|
12
|
+
var _defaultJSON = require("./defaultJSON");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
53
|
+
var c = arguments.length,
|
|
54
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
55
|
+
d;
|
|
56
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
57
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
58
|
+
}
|
|
59
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var AComponent =
|
|
63
|
+
/** @class */
|
|
64
|
+
function (_super) {
|
|
65
|
+
__extends(AComponent, _super);
|
|
66
|
+
|
|
67
|
+
function AComponent() {
|
|
68
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
AComponent.prototype.render = function () {
|
|
72
|
+
var nodeData = this.props.nodeData;
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
74
|
+
panelProps: nodeData
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
AComponent.defaultProps = {};
|
|
79
|
+
AComponent.type = 'STORES';
|
|
80
|
+
AComponent.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
81
|
+
AComponent = __decorate([_compositeDecorator["default"]], AComponent);
|
|
82
|
+
return AComponent;
|
|
83
|
+
}(_react.Component);
|
|
84
|
+
|
|
85
|
+
var _default = AComponent;
|
|
86
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.renderDiscount = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
13
|
+
|
|
14
|
+
var _currencyUtil = require("../../../../../../utils/currencyUtil");
|
|
15
|
+
|
|
16
|
+
var _common = require("../../../../../../common");
|
|
17
|
+
|
|
18
|
+
var _components = require("../../../../../../meta-comp/components");
|
|
19
|
+
|
|
20
|
+
var _locale = require("../../../../../../locale");
|
|
21
|
+
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
71
|
+
var t = {};
|
|
72
|
+
|
|
73
|
+
for (var p in s) {
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var renderDiscount = function renderDiscount(data) {
|
|
84
|
+
var AMT = data.discountMethod === 'AMT'; // 金额扣减
|
|
85
|
+
|
|
86
|
+
var DISC = data.discountMethod === 'DISC'; // 百分比
|
|
87
|
+
|
|
88
|
+
var text = '';
|
|
89
|
+
|
|
90
|
+
if (AMT) {
|
|
91
|
+
text = (0, _currencyUtil.formatCurrencyWithSymbol)(data.discountAmount);
|
|
92
|
+
} else if (DISC) {
|
|
93
|
+
var temp = (0, _currencyUtil.formatCurrency)(data.discountAmount, 2); // 折扣券处理:100 => 1%
|
|
94
|
+
|
|
95
|
+
text = parseInt(temp, 10) + "%";
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
text: text,
|
|
100
|
+
isBig: text.length > 6 && text.length <= 9,
|
|
101
|
+
isHide: text.length > 9
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.renderDiscount = renderDiscount;
|
|
106
|
+
|
|
107
|
+
var StoreItem =
|
|
108
|
+
/** @class */
|
|
109
|
+
function (_super) {
|
|
110
|
+
__extends(StoreItem, _super);
|
|
111
|
+
|
|
112
|
+
function StoreItem() {
|
|
113
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
114
|
+
|
|
115
|
+
_this.state = {};
|
|
116
|
+
return _this;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
StoreItem.prototype.render = function () {
|
|
120
|
+
var _a = this.props,
|
|
121
|
+
data = _a.data,
|
|
122
|
+
panelProps = _a.panelProps,
|
|
123
|
+
onItemClick = _a.onItemClick,
|
|
124
|
+
layout = _a.layout,
|
|
125
|
+
rest = __rest(_a, ["data", "panelProps", "onItemClick", "layout"]);
|
|
126
|
+
|
|
127
|
+
var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
|
|
128
|
+
console.log(panelProps);
|
|
129
|
+
var storeName = panelProps.storeName,
|
|
130
|
+
storeDesc = panelProps.storeDesc,
|
|
131
|
+
freeDeliveryLabel = panelProps.freeDeliveryLabel,
|
|
132
|
+
minOrder = panelProps.minOrder,
|
|
133
|
+
evaluateScore = panelProps.evaluateScore,
|
|
134
|
+
sold = panelProps.sold,
|
|
135
|
+
deliveryTime = panelProps.deliveryTime,
|
|
136
|
+
distance = panelProps.distance;
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
138
|
+
className: (0, _classnames["default"])('m-store-item-wrap', {
|
|
139
|
+
horizontal: true
|
|
140
|
+
}),
|
|
141
|
+
onClick: function onClick() {
|
|
142
|
+
return onItemClick();
|
|
143
|
+
}
|
|
144
|
+
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
+
className: "img-wrap"
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
147
|
+
className: "product-img",
|
|
148
|
+
lazy: true,
|
|
149
|
+
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
150
|
+
}), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
151
|
+
className: "flag",
|
|
152
|
+
data: freeDeliveryLabel
|
|
153
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: "content-wrap"
|
|
155
|
+
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
156
|
+
className: "name",
|
|
157
|
+
data: __assign(__assign({}, storeName), {
|
|
158
|
+
text: data.offerName
|
|
159
|
+
}),
|
|
160
|
+
readonly: true
|
|
161
|
+
}), minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
162
|
+
className: "minOrder",
|
|
163
|
+
data: __assign(__assign({}, minOrder), {
|
|
164
|
+
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('MIN_ORDER'), ':', (data.minOrder || 0) + " IQD"])
|
|
165
|
+
}),
|
|
166
|
+
readonly: true
|
|
167
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "row"
|
|
169
|
+
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
170
|
+
className: "score",
|
|
171
|
+
data: __assign(__assign({}, evaluateScore), {
|
|
172
|
+
text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
|
|
173
|
+
}),
|
|
174
|
+
readonly: true
|
|
175
|
+
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
|
+
className: "line1"
|
|
177
|
+
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
178
|
+
className: "sold",
|
|
179
|
+
data: __assign(__assign({}, sold), {
|
|
180
|
+
text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('SOLD'), soldNumber, '+'])
|
|
181
|
+
}),
|
|
182
|
+
readonly: true
|
|
183
|
+
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
184
|
+
className: "time",
|
|
185
|
+
data: __assign(__assign({}, deliveryTime), {
|
|
186
|
+
text: '17 mins'
|
|
187
|
+
}),
|
|
188
|
+
readonly: true
|
|
189
|
+
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
190
|
+
className: "distance",
|
|
191
|
+
data: __assign(__assign({}, distance), {
|
|
192
|
+
text: '1 km'
|
|
193
|
+
}),
|
|
194
|
+
readonly: true
|
|
195
|
+
})))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
196
|
+
className: (0, _classnames["default"])('m-store-item-wrap'),
|
|
197
|
+
onClick: function onClick() {
|
|
198
|
+
return onItemClick();
|
|
199
|
+
}
|
|
200
|
+
}, rest), /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
|
+
className: "img-wrap"
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
|
|
203
|
+
className: "product-img",
|
|
204
|
+
lazy: true,
|
|
205
|
+
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
|
|
206
|
+
}), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
207
|
+
className: "flag",
|
|
208
|
+
data: freeDeliveryLabel
|
|
209
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
|
+
className: "content-wrap"
|
|
211
|
+
}, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
212
|
+
className: "name",
|
|
213
|
+
data: __assign(__assign({}, storeName), {
|
|
214
|
+
text: data.offerName
|
|
215
|
+
}),
|
|
216
|
+
readonly: true
|
|
217
|
+
}), storeDesc.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
218
|
+
className: "desc",
|
|
219
|
+
data: __assign(__assign({}, storeDesc), {
|
|
220
|
+
text: data.offerName
|
|
221
|
+
}),
|
|
222
|
+
readonly: true
|
|
223
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
|
+
className: "row"
|
|
225
|
+
}, minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
226
|
+
className: "minOrder",
|
|
227
|
+
data: __assign(__assign({}, minOrder), {
|
|
228
|
+
text: (0, _locale.i18n)('MIN_ORDER') + ": " + data.minOrder
|
|
229
|
+
}),
|
|
230
|
+
readonly: true
|
|
231
|
+
}), minOrder.open && sold.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
+
className: "line1"
|
|
233
|
+
}), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
234
|
+
className: "sold",
|
|
235
|
+
data: __assign(__assign({}, sold), {
|
|
236
|
+
text: (0, _locale.i18n)('SOLD') + " " + soldNumber
|
|
237
|
+
}),
|
|
238
|
+
readonly: true
|
|
239
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
|
+
className: "row"
|
|
241
|
+
}, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
242
|
+
className: "score",
|
|
243
|
+
data: __assign(__assign({}, evaluateScore), {
|
|
244
|
+
text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
|
|
245
|
+
}),
|
|
246
|
+
readonly: true
|
|
247
|
+
}), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
248
|
+
className: "line2"
|
|
249
|
+
}), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
250
|
+
className: "time",
|
|
251
|
+
data: __assign(__assign({}, deliveryTime), {
|
|
252
|
+
text: '17 mins'
|
|
253
|
+
}),
|
|
254
|
+
readonly: true
|
|
255
|
+
}), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
256
|
+
className: "line2"
|
|
257
|
+
}), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
258
|
+
className: "distance",
|
|
259
|
+
data: __assign(__assign({}, distance), {
|
|
260
|
+
text: '1km'
|
|
261
|
+
}),
|
|
262
|
+
readonly: true
|
|
263
|
+
})))));
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
StoreItem.defaultProps = {
|
|
267
|
+
data: {},
|
|
268
|
+
panelProps: {},
|
|
269
|
+
layout: 'vertical'
|
|
270
|
+
};
|
|
271
|
+
return StoreItem;
|
|
272
|
+
}(_react["default"].Component);
|
|
273
|
+
|
|
274
|
+
var _default = StoreItem;
|
|
275
|
+
exports["default"] = _default;
|