@fonixtree/magic-design 2.0.170 → 2.0.172
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/ba/ba.json +360 -0
- 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/ba/ba.json +360 -0
- 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,81 @@
|
|
|
1
|
+
.m-store-item-wrap {
|
|
2
|
+
background: #FFFFFF;
|
|
3
|
+
border: 0.02rem solid #E4E4E4;
|
|
4
|
+
border-radius: 0.16rem;
|
|
5
|
+
position: relative;
|
|
6
|
+
margin-right: 0.32rem;
|
|
7
|
+
margin-top: 0.32rem;
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
.m-store-item-wrap .img-wrap .product-img {
|
|
13
|
+
width: 2.1rem;
|
|
14
|
+
height: 2.1rem;
|
|
15
|
+
border-radius: 0.16rem 0 0 0.16rem;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
}
|
|
18
|
+
.m-store-item-wrap .img-wrap .flag {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0.2rem;
|
|
21
|
+
left: -0.04rem;
|
|
22
|
+
}
|
|
23
|
+
.m-store-item-wrap .content-wrap {
|
|
24
|
+
padding: 0.12rem 0.2rem;
|
|
25
|
+
width: 4.4rem;
|
|
26
|
+
}
|
|
27
|
+
.m-store-item-wrap .content-wrap .name {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
}
|
|
32
|
+
.m-store-item-wrap .content-wrap .desc {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
margin-top: -0.02rem;
|
|
37
|
+
margin-bottom: 0.1rem;
|
|
38
|
+
}
|
|
39
|
+
.m-store-item-wrap .content-wrap .minOrder {
|
|
40
|
+
width: fit-content !important;
|
|
41
|
+
}
|
|
42
|
+
.m-store-item-wrap .content-wrap .sold {
|
|
43
|
+
width: fit-content !important;
|
|
44
|
+
}
|
|
45
|
+
.m-store-item-wrap .content-wrap .row {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
.m-store-item-wrap .content-wrap .line1 {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
width: 0.02rem;
|
|
52
|
+
height: 0.32rem;
|
|
53
|
+
background-color: #545454;
|
|
54
|
+
margin: 0 0.1rem;
|
|
55
|
+
}
|
|
56
|
+
.m-store-item-wrap .content-wrap .line2 {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 0.02rem;
|
|
59
|
+
height: 0.24rem;
|
|
60
|
+
background-color: #D9D9D9;
|
|
61
|
+
margin: 0 0.16rem;
|
|
62
|
+
}
|
|
63
|
+
.m-store-item-wrap.horizontal {
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
width: 5.84rem;
|
|
66
|
+
}
|
|
67
|
+
.m-store-item-wrap.horizontal .img-wrap .product-img {
|
|
68
|
+
width: 5.8rem;
|
|
69
|
+
height: 2.4rem;
|
|
70
|
+
border-radius: 0.16rem 0.16rem 0 0;
|
|
71
|
+
object-fit: cover;
|
|
72
|
+
}
|
|
73
|
+
.m-store-item-wrap.horizontal .content-wrap {
|
|
74
|
+
flex: auto;
|
|
75
|
+
padding: 0.16rem;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.m-store-item-wrap.horizontal .content-wrap .sold,
|
|
79
|
+
.m-store-item-wrap.horizontal .content-wrap .time {
|
|
80
|
+
margin-right: 0.1rem;
|
|
81
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _StoreItem = _interopRequireDefault(require("./StoreItem"));
|
|
15
|
+
|
|
16
|
+
var _components = require("../../../../../meta-comp/components");
|
|
17
|
+
|
|
18
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
19
|
+
|
|
20
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
21
|
+
|
|
22
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
23
|
+
|
|
24
|
+
var _product = _interopRequireDefault(require("../../../../../assets/images/common/product.png"));
|
|
25
|
+
|
|
26
|
+
var _constants = require("../../../../../constants");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
+
__proto__: []
|
|
34
|
+
} instanceof Array && function (d, b) {
|
|
35
|
+
d.__proto__ = b;
|
|
36
|
+
} || function (d, b) {
|
|
37
|
+
for (var p in b) {
|
|
38
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _extendStatics(d, b);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
_extendStatics(d, b);
|
|
47
|
+
|
|
48
|
+
function __() {
|
|
49
|
+
this.constructor = d;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
+
};
|
|
54
|
+
}();
|
|
55
|
+
|
|
56
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
57
|
+
__assign = Object.assign || function (t) {
|
|
58
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
59
|
+
s = arguments[i];
|
|
60
|
+
|
|
61
|
+
for (var p in s) {
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return __assign.apply(this, arguments);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var defaultData = [{
|
|
73
|
+
imgUrlContent: {
|
|
74
|
+
url: _product["default"]
|
|
75
|
+
},
|
|
76
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
77
|
+
salesPrice: 10000,
|
|
78
|
+
specialPrice: null,
|
|
79
|
+
marketPrice: 20000,
|
|
80
|
+
salePercent: 500,
|
|
81
|
+
discountPercent: 90,
|
|
82
|
+
coupons: [{
|
|
83
|
+
couponId: '1',
|
|
84
|
+
discountMethod: 'DISC',
|
|
85
|
+
discountAmount: 3000
|
|
86
|
+
}, {
|
|
87
|
+
couponId: '2',
|
|
88
|
+
discountMethod: 'AMT',
|
|
89
|
+
discountAmount: 100
|
|
90
|
+
}, {
|
|
91
|
+
couponId: '3',
|
|
92
|
+
discountMethod: 'AMT',
|
|
93
|
+
discountAmount: 1000
|
|
94
|
+
}, {
|
|
95
|
+
couponId: '4',
|
|
96
|
+
discountMethod: 'AMT',
|
|
97
|
+
discountAmount: 10000
|
|
98
|
+
}, {
|
|
99
|
+
couponId: '5',
|
|
100
|
+
discountMethod: 'AMT',
|
|
101
|
+
discountAmount: 100000
|
|
102
|
+
}]
|
|
103
|
+
}, {
|
|
104
|
+
imgUrlContent: {
|
|
105
|
+
url: _product["default"]
|
|
106
|
+
},
|
|
107
|
+
offerName: 'Product Name',
|
|
108
|
+
salesPrice: 10000,
|
|
109
|
+
specialPrice: null,
|
|
110
|
+
marketPrice: 20000,
|
|
111
|
+
salePercent: 500
|
|
112
|
+
}, {
|
|
113
|
+
imgUrlContent: {
|
|
114
|
+
url: _product["default"]
|
|
115
|
+
},
|
|
116
|
+
offerName: 'Product Name Long Long Long Long Long',
|
|
117
|
+
salesPrice: 18000000,
|
|
118
|
+
specialPrice: 18000000,
|
|
119
|
+
marketPrice: 19000000,
|
|
120
|
+
discountPercent: 10,
|
|
121
|
+
salePercent: 500
|
|
122
|
+
}, {
|
|
123
|
+
imgUrlContent: {
|
|
124
|
+
url: _product["default"]
|
|
125
|
+
},
|
|
126
|
+
offerName: 'Product Name',
|
|
127
|
+
salesPrice: 18000000,
|
|
128
|
+
specialPrice: 18000000,
|
|
129
|
+
marketPrice: 19000000,
|
|
130
|
+
salePercent: 500
|
|
131
|
+
}];
|
|
132
|
+
|
|
133
|
+
var Mobile =
|
|
134
|
+
/** @class */
|
|
135
|
+
function (_super) {
|
|
136
|
+
__extends(Mobile, _super);
|
|
137
|
+
|
|
138
|
+
function Mobile() {
|
|
139
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
140
|
+
|
|
141
|
+
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
142
|
+
return (0, _storeUtil.getMagicStore)("stores_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
143
|
+
}, {});
|
|
144
|
+
_this.state = {
|
|
145
|
+
list: []
|
|
146
|
+
};
|
|
147
|
+
return _this;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
Mobile.prototype.render = function () {
|
|
151
|
+
var _a;
|
|
152
|
+
|
|
153
|
+
var panelProps = this.props.panelProps;
|
|
154
|
+
var list = this.state.list;
|
|
155
|
+
|
|
156
|
+
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
157
|
+
|
|
158
|
+
var needReverse = ((0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE)) === 'ba';
|
|
159
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
|
+
className: (0, _classnames["default"])('m-stores-mobile', (_a = {}, _a['reversed-layout'] = needReverse, _a))
|
|
161
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
+
className: "stores-title"
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
+
className: "left"
|
|
165
|
+
}, panelProps.title.name.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
166
|
+
data: panelProps.title.name
|
|
167
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "right",
|
|
169
|
+
onClick: function onClick() {
|
|
170
|
+
return (0, _coreUtil.clickUrl)('/spike');
|
|
171
|
+
}
|
|
172
|
+
}, panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
173
|
+
data: panelProps.title.seeAll
|
|
174
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: (0, _classnames["default"])('stores-list', {
|
|
176
|
+
horizontal: panelProps.customize.layout === 'layout1'
|
|
177
|
+
})
|
|
178
|
+
}, _list.map(function (item) {
|
|
179
|
+
return /*#__PURE__*/_react["default"].createElement(_StoreItem["default"], {
|
|
180
|
+
key: item.id,
|
|
181
|
+
data: __assign({}, item),
|
|
182
|
+
layout: panelProps.customize.layout,
|
|
183
|
+
onItemClick: function onItemClick() {
|
|
184
|
+
return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
|
|
185
|
+
},
|
|
186
|
+
panelProps: panelProps.content
|
|
187
|
+
});
|
|
188
|
+
}))));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
Mobile.defaultProps = {
|
|
192
|
+
panelProps: {}
|
|
193
|
+
};
|
|
194
|
+
return Mobile;
|
|
195
|
+
}(_react["default"].Component);
|
|
196
|
+
|
|
197
|
+
var _default = Mobile;
|
|
198
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.m-stores-mobile {
|
|
2
|
+
margin-left: 0.4rem;
|
|
3
|
+
}
|
|
4
|
+
.m-stores-mobile .stores-title {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding-right: 0.4rem;
|
|
9
|
+
}
|
|
10
|
+
.m-stores-mobile .stores-list {
|
|
11
|
+
margin-right: 0.4rem;
|
|
12
|
+
}
|
|
13
|
+
.m-stores-mobile .stores-list.horizontal {
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
display: flex;
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
}
|
|
18
|
+
.m-stores-mobile.reversed-layout {
|
|
19
|
+
margin-left: 0;
|
|
20
|
+
margin-right: 0.4rem;
|
|
21
|
+
}
|
|
22
|
+
.m-stores-mobile.reversed-layout .stores-title {
|
|
23
|
+
padding-right: 0;
|
|
24
|
+
padding-left: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-stores-mobile.reversed-layout .sold,
|
|
27
|
+
.m-stores-mobile.reversed-layout .minOrder {
|
|
28
|
+
direction: ltr;
|
|
29
|
+
}
|
|
30
|
+
.m-stores-mobile.reversed-layout .flag {
|
|
31
|
+
right: -0.04rem !important;
|
|
32
|
+
left: unset !important;
|
|
33
|
+
}
|
|
34
|
+
.m-stores-mobile.reversed-layout .m-store-item-wrap {
|
|
35
|
+
margin-right: 0;
|
|
36
|
+
margin-left: 0.32rem;
|
|
37
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 _base = require("../../../../assets/images/base64");
|
|
11
|
+
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
14
|
+
var walletDataList = [{
|
|
15
|
+
name: 'Saldo',
|
|
16
|
+
icon: _base.walletSaldoIcon,
|
|
17
|
+
text: 'Rincian Saldo'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'Koin',
|
|
20
|
+
icon: _base.walletKoinIcon,
|
|
21
|
+
text: 'Rincian Koin'
|
|
22
|
+
}];
|
|
23
|
+
|
|
24
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
25
|
+
var _a;
|
|
26
|
+
|
|
27
|
+
var groupId = (0, _uuid.v4)();
|
|
28
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
29
|
+
return {
|
|
30
|
+
id: groupId,
|
|
31
|
+
type: 'WALLET',
|
|
32
|
+
groupSource: walletDataList.map(function (item) {
|
|
33
|
+
var itemId = (0, _uuid.v4)();
|
|
34
|
+
return {
|
|
35
|
+
id: itemId,
|
|
36
|
+
parentId: groupId,
|
|
37
|
+
logo: {
|
|
38
|
+
parentId: itemId,
|
|
39
|
+
id: (0, _uuid.v4)(),
|
|
40
|
+
open: true,
|
|
41
|
+
content: {
|
|
42
|
+
clickUrl: '',
|
|
43
|
+
h5ImgSrc: item.icon,
|
|
44
|
+
h5Name: ''
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
title: {
|
|
48
|
+
parentId: itemId,
|
|
49
|
+
id: (0, _uuid.v4)(),
|
|
50
|
+
open: true,
|
|
51
|
+
type: 'TEXT',
|
|
52
|
+
specialContent: [],
|
|
53
|
+
text: item.name,
|
|
54
|
+
content: {
|
|
55
|
+
sizeType: 'Customize font styles',
|
|
56
|
+
fontFamily: defaultFontFamily,
|
|
57
|
+
fontWeight: 400,
|
|
58
|
+
fontSize: 11,
|
|
59
|
+
color: '#232F46',
|
|
60
|
+
textAlign: 'center'
|
|
61
|
+
},
|
|
62
|
+
underline: {
|
|
63
|
+
open: false,
|
|
64
|
+
textDecorationColor: '',
|
|
65
|
+
textDecorationStyle: 'solid'
|
|
66
|
+
},
|
|
67
|
+
vertical: {}
|
|
68
|
+
},
|
|
69
|
+
amount: {
|
|
70
|
+
parentId: itemId,
|
|
71
|
+
id: (0, _uuid.v4)(),
|
|
72
|
+
open: true,
|
|
73
|
+
type: 'TEXT',
|
|
74
|
+
specialContent: [],
|
|
75
|
+
text: '****',
|
|
76
|
+
content: {
|
|
77
|
+
sizeType: 'Customize font styles',
|
|
78
|
+
fontFamily: defaultFontFamily,
|
|
79
|
+
fontWeight: 700,
|
|
80
|
+
fontSize: 14,
|
|
81
|
+
color: '#232F46',
|
|
82
|
+
textAlign: ''
|
|
83
|
+
},
|
|
84
|
+
underline: {
|
|
85
|
+
open: false,
|
|
86
|
+
textDecorationColor: '',
|
|
87
|
+
textDecorationStyle: 'solid'
|
|
88
|
+
},
|
|
89
|
+
vertical: {}
|
|
90
|
+
},
|
|
91
|
+
text: {
|
|
92
|
+
parentId: itemId,
|
|
93
|
+
id: (0, _uuid.v4)(),
|
|
94
|
+
open: true,
|
|
95
|
+
type: 'TEXT',
|
|
96
|
+
specialContent: [],
|
|
97
|
+
text: item.text,
|
|
98
|
+
content: {
|
|
99
|
+
sizeType: 'Customize font styles',
|
|
100
|
+
fontFamily: defaultFontFamily,
|
|
101
|
+
fontWeight: 400,
|
|
102
|
+
fontSize: 11,
|
|
103
|
+
color: '#232F46',
|
|
104
|
+
textAlign: ''
|
|
105
|
+
},
|
|
106
|
+
underline: {
|
|
107
|
+
open: false,
|
|
108
|
+
textDecorationColor: '',
|
|
109
|
+
textDecorationStyle: 'solid'
|
|
110
|
+
},
|
|
111
|
+
vertical: {}
|
|
112
|
+
},
|
|
113
|
+
tip: {
|
|
114
|
+
parentId: itemId,
|
|
115
|
+
id: (0, _uuid.v4)(),
|
|
116
|
+
open: true,
|
|
117
|
+
url: ''
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}),
|
|
121
|
+
spacing: {
|
|
122
|
+
pc: {
|
|
123
|
+
paddingTop: 12,
|
|
124
|
+
paddingBottom: 12,
|
|
125
|
+
paddingLeft: 10,
|
|
126
|
+
paddingRight: 10,
|
|
127
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
128
|
+
},
|
|
129
|
+
mobile: {
|
|
130
|
+
paddingTop: 12,
|
|
131
|
+
paddingBottom: 12,
|
|
132
|
+
paddingLeft: 10,
|
|
133
|
+
paddingRight: 10,
|
|
134
|
+
marginBottom: window.magicDesign.compSpacing
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
customize: {
|
|
138
|
+
layout: 'layout1'
|
|
139
|
+
},
|
|
140
|
+
background: {
|
|
141
|
+
opacity: 100,
|
|
142
|
+
color: '#FFF8F0',
|
|
143
|
+
image: '',
|
|
144
|
+
bgType: 'color'
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
exports.getDefaultJSON = getDefaultJSON;
|