@fonixtree/magic-design 2.0.98 → 2.0.99
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 +19 -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/common/PopUpModal/index.less +79 -0
- package/es/common/PopUpModal1/style.less +56 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/es/common/ProductFilterModal/index.less +72 -0
- package/es/common/Tag/index.less +16 -0
- package/es/common/index.js +16 -0
- package/es/composite-comp/common/components/MonpayProductItem/index.js +1 -1
- package/es/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/es/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/es/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/es/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/es/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/es/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +1 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +1 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +7 -3
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +143 -35
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +59 -5
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +5 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +5 -1
- package/es/constants/component-types.js +14 -2
- package/es/constants/index.js +34 -3
- package/es/locale/en/en.json +10 -0
- package/es/locale/es/es.json +10 -0
- package/es/locale/id/id.json +10 -0
- package/lib/assets/fonts/magic-box-iconfont.css +19 -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/common/PopUpModal/index.less +79 -0
- package/lib/common/PopUpModal1/style.less +56 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/imgs/notFound.png +0 -0
- package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +129 -0
- package/lib/common/ProductFilterModal/index.less +72 -0
- package/lib/common/Tag/index.less +16 -0
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +1 -1
- package/lib/composite-comp/monpay/components/Bundle/defaultJSON.js +77 -0
- package/lib/composite-comp/monpay/components/Bundle/index.js +86 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +107 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleProdItem/index.less +61 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.js +493 -0
- package/lib/composite-comp/monpay/components/Bundle/mobile/index.less +7 -0
- package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +80 -0
- package/lib/composite-comp/monpay/components/InterestProducts/index.js +86 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +192 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.less +159 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +348 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.less +21 -0
- package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +99 -0
- package/lib/composite-comp/monpay/components/MerchantSales/index.js +86 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.js +104 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/ProductItem/index.less +34 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/card.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/img/sale.png +0 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +302 -0
- package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.less +14 -0
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.less +1 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +1 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +7 -3
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.less +49 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +143 -35
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +59 -5
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +5 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +114 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +73 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +109 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.less +41 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.js +95 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigTitle/index.less +7 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +73 -0
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +5 -1
- package/lib/constants/component-types.js +14 -2
- package/lib/constants/index.js +34 -3
- package/lib/locale/en/en.json +10 -0
- package/lib/locale/es/es.json +10 -0
- package/lib/locale/id/id.json +10 -0
- package/package.json +1 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/pc/imgs/defImg3.png +0 -0
|
@@ -0,0 +1,302 @@
|
|
|
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 _ProductItem = _interopRequireDefault(require("./ProductItem"));
|
|
13
|
+
|
|
14
|
+
var _card = _interopRequireDefault(require("./img/card.png"));
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
+
|
|
18
|
+
var _components = require("../../../../../meta-comp/components");
|
|
19
|
+
|
|
20
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
21
|
+
|
|
22
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
53
|
+
function adopt(value) {
|
|
54
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
55
|
+
resolve(value);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
60
|
+
function fulfilled(value) {
|
|
61
|
+
try {
|
|
62
|
+
step(generator.next(value));
|
|
63
|
+
} catch (e) {
|
|
64
|
+
reject(e);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function rejected(value) {
|
|
69
|
+
try {
|
|
70
|
+
step(generator["throw"](value));
|
|
71
|
+
} catch (e) {
|
|
72
|
+
reject(e);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function step(result) {
|
|
77
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
85
|
+
var _ = {
|
|
86
|
+
label: 0,
|
|
87
|
+
sent: function sent() {
|
|
88
|
+
if (t[0] & 1) throw t[1];
|
|
89
|
+
return t[1];
|
|
90
|
+
},
|
|
91
|
+
trys: [],
|
|
92
|
+
ops: []
|
|
93
|
+
},
|
|
94
|
+
f,
|
|
95
|
+
y,
|
|
96
|
+
t,
|
|
97
|
+
g;
|
|
98
|
+
return g = {
|
|
99
|
+
next: verb(0),
|
|
100
|
+
"throw": verb(1),
|
|
101
|
+
"return": verb(2)
|
|
102
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
103
|
+
return this;
|
|
104
|
+
}), g;
|
|
105
|
+
|
|
106
|
+
function verb(n) {
|
|
107
|
+
return function (v) {
|
|
108
|
+
return step([n, v]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function step(op) {
|
|
113
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
+
|
|
115
|
+
while (_) {
|
|
116
|
+
try {
|
|
117
|
+
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;
|
|
118
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
119
|
+
|
|
120
|
+
switch (op[0]) {
|
|
121
|
+
case 0:
|
|
122
|
+
case 1:
|
|
123
|
+
t = op;
|
|
124
|
+
break;
|
|
125
|
+
|
|
126
|
+
case 4:
|
|
127
|
+
_.label++;
|
|
128
|
+
return {
|
|
129
|
+
value: op[1],
|
|
130
|
+
done: false
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
case 5:
|
|
134
|
+
_.label++;
|
|
135
|
+
y = op[1];
|
|
136
|
+
op = [0];
|
|
137
|
+
continue;
|
|
138
|
+
|
|
139
|
+
case 7:
|
|
140
|
+
op = _.ops.pop();
|
|
141
|
+
|
|
142
|
+
_.trys.pop();
|
|
143
|
+
|
|
144
|
+
continue;
|
|
145
|
+
|
|
146
|
+
default:
|
|
147
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
148
|
+
_ = 0;
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
153
|
+
_.label = op[1];
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
158
|
+
_.label = t[1];
|
|
159
|
+
t = op;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (t && _.label < t[2]) {
|
|
164
|
+
_.label = t[2];
|
|
165
|
+
|
|
166
|
+
_.ops.push(op);
|
|
167
|
+
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (t[2]) _.ops.pop();
|
|
172
|
+
|
|
173
|
+
_.trys.pop();
|
|
174
|
+
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
op = body.call(thisArg, _);
|
|
179
|
+
} catch (e) {
|
|
180
|
+
op = [6, e];
|
|
181
|
+
y = 0;
|
|
182
|
+
} finally {
|
|
183
|
+
f = t = 0;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (op[0] & 5) throw op[1];
|
|
188
|
+
return {
|
|
189
|
+
value: op[0] ? op[1] : void 0,
|
|
190
|
+
done: true
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
var defaultData = [{
|
|
196
|
+
imgUrlContent: {
|
|
197
|
+
url: _card["default"]
|
|
198
|
+
},
|
|
199
|
+
offerName: 'Product Name'
|
|
200
|
+
}, {
|
|
201
|
+
imgUrlContent: {
|
|
202
|
+
url: _card["default"]
|
|
203
|
+
},
|
|
204
|
+
offerName: 'Product Name'
|
|
205
|
+
}, {
|
|
206
|
+
imgUrlContent: {
|
|
207
|
+
url: _card["default"]
|
|
208
|
+
},
|
|
209
|
+
offerName: 'Product Name'
|
|
210
|
+
}];
|
|
211
|
+
|
|
212
|
+
var MerchantSalesMobile =
|
|
213
|
+
/** @class */
|
|
214
|
+
function (_super) {
|
|
215
|
+
__extends(MerchantSalesMobile, _super);
|
|
216
|
+
|
|
217
|
+
function MerchantSalesMobile() {
|
|
218
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
219
|
+
|
|
220
|
+
_this.state = {
|
|
221
|
+
list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
|
|
222
|
+
return (0, _storeUtil.getMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
223
|
+
}, [])
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
_this.getData = function () {
|
|
227
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
|
+
var maxProdNum, res, list;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0:
|
|
232
|
+
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
233
|
+
return [4
|
|
234
|
+
/*yield*/
|
|
235
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/offers', {
|
|
236
|
+
pageIndex: 1,
|
|
237
|
+
pageSize: maxProdNum,
|
|
238
|
+
sortType: '1',
|
|
239
|
+
intelligentType: '',
|
|
240
|
+
intelligentValue: '',
|
|
241
|
+
aggregation: false,
|
|
242
|
+
storeId: window.magicDesign.storeId >= 0 ? window.magicDesign.storeId : ''
|
|
243
|
+
}, 'POST')];
|
|
244
|
+
|
|
245
|
+
case 1:
|
|
246
|
+
res = _a.sent();
|
|
247
|
+
list = res.pageInfo.list;
|
|
248
|
+
this.setState({
|
|
249
|
+
list: list
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
if (!(0, _coreUtil.isDesignMode)()) {
|
|
253
|
+
(0, _storeUtil.setMagicStore)("merchantSales_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, list);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return [2
|
|
257
|
+
/*return*/
|
|
258
|
+
];
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
return _this;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
MerchantSalesMobile.prototype.componentDidMount = function () {
|
|
268
|
+
this.getData();
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
MerchantSalesMobile.prototype.render = function () {
|
|
272
|
+
var panelProps = this.props.panelProps;
|
|
273
|
+
var list = this.state.list;
|
|
274
|
+
|
|
275
|
+
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
276
|
+
|
|
277
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
278
|
+
className: "monpay-merchant-sales-mobile"
|
|
279
|
+
}, panelProps.title.headerImage.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
280
|
+
className: "headerImg",
|
|
281
|
+
data: panelProps.title.headerImage
|
|
282
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
283
|
+
className: "merchant-sales-list"
|
|
284
|
+
}, _list.map(function (item) {
|
|
285
|
+
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
286
|
+
key: item.productId,
|
|
287
|
+
data: item,
|
|
288
|
+
onItemClick: function onItemClick() {
|
|
289
|
+
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}))));
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
MerchantSalesMobile.defaultProps = {
|
|
296
|
+
panelProps: {}
|
|
297
|
+
};
|
|
298
|
+
return MerchantSalesMobile;
|
|
299
|
+
}(_react["default"].Component);
|
|
300
|
+
|
|
301
|
+
var _default = MerchantSalesMobile;
|
|
302
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.monpay-merchant-sales-mobile {
|
|
2
|
+
padding: 0.4rem;
|
|
3
|
+
}
|
|
4
|
+
.monpay-merchant-sales-mobile .headerImg {
|
|
5
|
+
display: block;
|
|
6
|
+
margin-bottom: 0.4rem;
|
|
7
|
+
}
|
|
8
|
+
.monpay-merchant-sales-mobile .merchant-sales-list {
|
|
9
|
+
margin-top: 0.32rem;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
}
|
|
@@ -7,6 +7,10 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _headerImage = _interopRequireDefault(require("./mobile/imgs/headerImage.jpg"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
10
14
|
var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
12
16
|
var imageId = (0, _uuid.v4)();
|
|
@@ -165,8 +169,8 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
165
169
|
content: {
|
|
166
170
|
h5Name: '',
|
|
167
171
|
pcName: '',
|
|
168
|
-
h5ImgSrc:
|
|
169
|
-
pcImgSrc:
|
|
172
|
+
h5ImgSrc: _headerImage["default"],
|
|
173
|
+
pcImgSrc: _headerImage["default"],
|
|
170
174
|
clickUrl: ''
|
|
171
175
|
},
|
|
172
176
|
hover: {
|
|
@@ -178,7 +182,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
184
|
},
|
|
181
|
-
groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1')
|
|
185
|
+
groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1')],
|
|
182
186
|
content: {
|
|
183
187
|
label: {
|
|
184
188
|
id: (0, _uuid.v4)(),
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.searchCondWrap {
|
|
2
|
+
height: 1.12rem;
|
|
3
|
+
padding-left: 0.4rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
background-color: #FFF;
|
|
8
|
+
}
|
|
9
|
+
.searchCondWrap .leftWrap {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
width: 2.8rem;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
padding-right: 0.16rem;
|
|
16
|
+
}
|
|
17
|
+
.searchCondWrap .rightWrap {
|
|
18
|
+
display: flex;
|
|
19
|
+
overflow: scroll;
|
|
20
|
+
}
|
|
21
|
+
.searchCondWrap .sortItem {
|
|
22
|
+
height: 0.64rem;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 0 0.24rem;
|
|
27
|
+
border: 0.02rem solid #E4E4E4;
|
|
28
|
+
color: #848484;
|
|
29
|
+
border-radius: 0.52rem;
|
|
30
|
+
font-size: 0.24rem;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
width: fit-content;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
.searchCondWrap .sortItem .filterText {
|
|
36
|
+
margin-right: 0.08rem;
|
|
37
|
+
height: 0.24rem;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
line-height: 0.24rem;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
.searchCondWrap .sortItem + .sortItem {
|
|
44
|
+
margin-left: 0.2rem;
|
|
45
|
+
}
|
|
46
|
+
.searchCondWrap .activeItem {
|
|
47
|
+
color: #FF8650;
|
|
48
|
+
border-color: #FF8650;
|
|
49
|
+
}
|