@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,353 @@
|
|
|
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
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _components = require("../../../../../meta-comp/components");
|
|
17
|
+
|
|
18
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
19
|
+
|
|
20
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
21
|
+
|
|
22
|
+
var _common = require("../../../../../common");
|
|
23
|
+
|
|
24
|
+
var _constants = require("../../../../../constants");
|
|
25
|
+
|
|
26
|
+
var _locale = require("../../../../../locale");
|
|
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 __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
73
|
+
function adopt(value) {
|
|
74
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
75
|
+
resolve(value);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
80
|
+
function fulfilled(value) {
|
|
81
|
+
try {
|
|
82
|
+
step(generator.next(value));
|
|
83
|
+
} catch (e) {
|
|
84
|
+
reject(e);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function rejected(value) {
|
|
89
|
+
try {
|
|
90
|
+
step(generator["throw"](value));
|
|
91
|
+
} catch (e) {
|
|
92
|
+
reject(e);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function step(result) {
|
|
97
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
105
|
+
var _ = {
|
|
106
|
+
label: 0,
|
|
107
|
+
sent: function sent() {
|
|
108
|
+
if (t[0] & 1) throw t[1];
|
|
109
|
+
return t[1];
|
|
110
|
+
},
|
|
111
|
+
trys: [],
|
|
112
|
+
ops: []
|
|
113
|
+
},
|
|
114
|
+
f,
|
|
115
|
+
y,
|
|
116
|
+
t,
|
|
117
|
+
g;
|
|
118
|
+
return g = {
|
|
119
|
+
next: verb(0),
|
|
120
|
+
"throw": verb(1),
|
|
121
|
+
"return": verb(2)
|
|
122
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
123
|
+
return this;
|
|
124
|
+
}), g;
|
|
125
|
+
|
|
126
|
+
function verb(n) {
|
|
127
|
+
return function (v) {
|
|
128
|
+
return step([n, v]);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function step(op) {
|
|
133
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
134
|
+
|
|
135
|
+
while (_) {
|
|
136
|
+
try {
|
|
137
|
+
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;
|
|
138
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
139
|
+
|
|
140
|
+
switch (op[0]) {
|
|
141
|
+
case 0:
|
|
142
|
+
case 1:
|
|
143
|
+
t = op;
|
|
144
|
+
break;
|
|
145
|
+
|
|
146
|
+
case 4:
|
|
147
|
+
_.label++;
|
|
148
|
+
return {
|
|
149
|
+
value: op[1],
|
|
150
|
+
done: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
case 5:
|
|
154
|
+
_.label++;
|
|
155
|
+
y = op[1];
|
|
156
|
+
op = [0];
|
|
157
|
+
continue;
|
|
158
|
+
|
|
159
|
+
case 7:
|
|
160
|
+
op = _.ops.pop();
|
|
161
|
+
|
|
162
|
+
_.trys.pop();
|
|
163
|
+
|
|
164
|
+
continue;
|
|
165
|
+
|
|
166
|
+
default:
|
|
167
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
168
|
+
_ = 0;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
173
|
+
_.label = op[1];
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
178
|
+
_.label = t[1];
|
|
179
|
+
t = op;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (t && _.label < t[2]) {
|
|
184
|
+
_.label = t[2];
|
|
185
|
+
|
|
186
|
+
_.ops.push(op);
|
|
187
|
+
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (t[2]) _.ops.pop();
|
|
192
|
+
|
|
193
|
+
_.trys.pop();
|
|
194
|
+
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
op = body.call(thisArg, _);
|
|
199
|
+
} catch (e) {
|
|
200
|
+
op = [6, e];
|
|
201
|
+
y = 0;
|
|
202
|
+
} finally {
|
|
203
|
+
f = t = 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (op[0] & 5) throw op[1];
|
|
208
|
+
return {
|
|
209
|
+
value: op[0] ? op[1] : void 0,
|
|
210
|
+
done: true
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
var MerchantSalesMobile =
|
|
216
|
+
/** @class */
|
|
217
|
+
function (_super) {
|
|
218
|
+
__extends(MerchantSalesMobile, _super);
|
|
219
|
+
|
|
220
|
+
function MerchantSalesMobile() {
|
|
221
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
222
|
+
|
|
223
|
+
_this.state = {
|
|
224
|
+
list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
|
|
225
|
+
return (0, _storeUtil.getMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
226
|
+
}, [])
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
_this.getData = function () {
|
|
230
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
231
|
+
var res, list;
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
switch (_a.label) {
|
|
234
|
+
case 0:
|
|
235
|
+
return [4
|
|
236
|
+
/*yield*/
|
|
237
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
|
|
238
|
+
pageIndex: 1,
|
|
239
|
+
pageSize: 50,
|
|
240
|
+
qryStorePage: 'Y',
|
|
241
|
+
storeOfferCnt: 0,
|
|
242
|
+
campaignType: '2,14'
|
|
243
|
+
}, 'POST')];
|
|
244
|
+
|
|
245
|
+
case 1:
|
|
246
|
+
res = _a.sent();
|
|
247
|
+
list = (0, _commonUtil.ensure)(function () {
|
|
248
|
+
return res.storePage.list;
|
|
249
|
+
}, []);
|
|
250
|
+
this.setState({
|
|
251
|
+
list: list
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
if (!(0, _coreUtil.isDesignMode)()) {
|
|
255
|
+
(0, _storeUtil.setMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, list);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return [2
|
|
259
|
+
/*return*/
|
|
260
|
+
];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
return _this;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
MerchantSalesMobile.prototype.componentDidMount = function () {
|
|
270
|
+
this.getData();
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
MerchantSalesMobile.prototype.render = function () {
|
|
274
|
+
var _a;
|
|
275
|
+
|
|
276
|
+
var panelProps = this.props.panelProps;
|
|
277
|
+
var needReverse = ((0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE)) === 'ba';
|
|
278
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
|
+
className: (0, _classnames["default"])('m-location-mobile', (_a = {}, _a['reversed-layout'] = needReverse, _a))
|
|
280
|
+
}, panelProps.content.logo.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
281
|
+
color: panelProps.content.logo.color,
|
|
282
|
+
size: 20,
|
|
283
|
+
type: "icon-basket-logo"
|
|
284
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
285
|
+
className: "search-row"
|
|
286
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
287
|
+
className: "search-input"
|
|
288
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
289
|
+
placeholder: (0, _locale.i18n)('SEARCH_FOR_PRODUCT_OR_SHOP'),
|
|
290
|
+
type: "text"
|
|
291
|
+
}), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
292
|
+
className: "m-icon-search",
|
|
293
|
+
color: "#545454",
|
|
294
|
+
fontWeight: 600,
|
|
295
|
+
size: 24,
|
|
296
|
+
type: "icon-search-short"
|
|
297
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
298
|
+
color: "#FF8650",
|
|
299
|
+
size: 20,
|
|
300
|
+
type: "icon-star-circle"
|
|
301
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
302
|
+
className: "rate-num"
|
|
303
|
+
}, "800")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
304
|
+
className: "address-wrap",
|
|
305
|
+
onClick: function onClick() {}
|
|
306
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
307
|
+
className: "address-bg",
|
|
308
|
+
style: {
|
|
309
|
+
backgroundColor: panelProps.content.locationBg.open ? panelProps.content.locationBg.color : 'transparent'
|
|
310
|
+
}
|
|
311
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
312
|
+
color: "#545454",
|
|
313
|
+
size: 22,
|
|
314
|
+
type: "icon-map-marker-star"
|
|
315
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
316
|
+
className: "text"
|
|
317
|
+
}, panelProps.content.address.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
318
|
+
className: "address one_row",
|
|
319
|
+
data: __assign(__assign({}, panelProps.content.address), {
|
|
320
|
+
text: (0, _locale.i18n)('DISPLAY_LOCATION_ADDRESS')
|
|
321
|
+
})
|
|
322
|
+
}), panelProps.content.customer.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
323
|
+
className: "customer one_row",
|
|
324
|
+
data: __assign(__assign({}, panelProps.content.customer), {
|
|
325
|
+
text: (0, _locale.i18n)('CUSTOMER_NAME_AND_PHONE_NUMBER')
|
|
326
|
+
})
|
|
327
|
+
})), panelProps.content.arrowIcon.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
328
|
+
className: "reversed-icon",
|
|
329
|
+
color: panelProps.content.arrowIcon.color,
|
|
330
|
+
size: 18,
|
|
331
|
+
type: "icon-chevron-right"
|
|
332
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
333
|
+
className: "list"
|
|
334
|
+
}, [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13].slice(0, 10).map(function (item) {
|
|
335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
336
|
+
className: "item"
|
|
337
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
338
|
+
alt: "",
|
|
339
|
+
src: ""
|
|
340
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
341
|
+
className: "one_row no-reversed"
|
|
342
|
+
}, "Supermarkets"));
|
|
343
|
+
})));
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
MerchantSalesMobile.defaultProps = {
|
|
347
|
+
panelProps: {}
|
|
348
|
+
};
|
|
349
|
+
return MerchantSalesMobile;
|
|
350
|
+
}(_react["default"].Component);
|
|
351
|
+
|
|
352
|
+
var _default = MerchantSalesMobile;
|
|
353
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.m-location-mobile {
|
|
2
|
+
text-align: center;
|
|
3
|
+
padding: 0.4rem 0;
|
|
4
|
+
}
|
|
5
|
+
.m-location-mobile .search-row {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin: 0.2rem 0.4rem;
|
|
9
|
+
}
|
|
10
|
+
.m-location-mobile .search-row .search-input {
|
|
11
|
+
background-color: #F2F2F2;
|
|
12
|
+
border-radius: 0.08rem;
|
|
13
|
+
margin-right: 0.32rem;
|
|
14
|
+
flex: auto;
|
|
15
|
+
padding: 0.16rem 0.24rem;
|
|
16
|
+
}
|
|
17
|
+
.m-location-mobile .search-row .search-input input {
|
|
18
|
+
width: 84%;
|
|
19
|
+
margin-right: 0.2rem;
|
|
20
|
+
border: none;
|
|
21
|
+
outline: none;
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
.m-location-mobile .search-row .search-input .m-icon-search {
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
.m-location-mobile .search-row .rate-num {
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-size: 0.28rem;
|
|
30
|
+
font-family: Inter;
|
|
31
|
+
color: #545454;
|
|
32
|
+
margin-left: 0.1rem;
|
|
33
|
+
}
|
|
34
|
+
.m-location-mobile .address-wrap {
|
|
35
|
+
border-top: 0.02rem solid #F0F0F0;
|
|
36
|
+
}
|
|
37
|
+
.m-location-mobile .address-wrap .address-bg {
|
|
38
|
+
margin: 0.2rem 0.4rem 0 0.4rem;
|
|
39
|
+
background-color: #F2F2F2;
|
|
40
|
+
display: flex;
|
|
41
|
+
padding: 0.16rem;
|
|
42
|
+
border-radius: 0.08rem;
|
|
43
|
+
}
|
|
44
|
+
.m-location-mobile .address-wrap .text {
|
|
45
|
+
flex: auto;
|
|
46
|
+
margin: 0 0.2rem;
|
|
47
|
+
text-align: left;
|
|
48
|
+
max-width: 80%;
|
|
49
|
+
}
|
|
50
|
+
.m-location-mobile .list {
|
|
51
|
+
margin: 0.4rem 0.4rem 0 0.4rem;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
gap: 0.38rem;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
max-height: 3.1rem;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
.m-location-mobile .list .item {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
width: 1rem;
|
|
62
|
+
background: url('./img/img-circle.png');
|
|
63
|
+
background-repeat: no-repeat;
|
|
64
|
+
background-size: 100%;
|
|
65
|
+
}
|
|
66
|
+
.m-location-mobile .list .item > img {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
width: 1rem;
|
|
69
|
+
height: 1rem;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
}
|
|
72
|
+
.m-location-mobile .list .item > span {
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-size: 0.16rem;
|
|
75
|
+
color: #000;
|
|
76
|
+
max-width: 1rem;
|
|
77
|
+
display: block;
|
|
78
|
+
margin-top: 0.1rem;
|
|
79
|
+
}
|
|
80
|
+
.m-location-mobile.reversed-layout .search-input {
|
|
81
|
+
margin-right: 0;
|
|
82
|
+
margin-left: 0.32rem;
|
|
83
|
+
}
|
|
84
|
+
.m-location-mobile.reversed-layout .search-input input {
|
|
85
|
+
margin-right: 0;
|
|
86
|
+
margin-left: 0.2rem;
|
|
87
|
+
}
|
|
88
|
+
.m-location-mobile.reversed-layout .address-wrap .text {
|
|
89
|
+
text-align: right;
|
|
90
|
+
}
|