@fonixtree/magic-design 1.0.77 → 1.0.79
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/composite-comp/common/components/ProductItem/index.js +2 -2
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -3
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -11
- package/lib/composite-comp/common/components/ProductItem/index.js +2 -2
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +4 -3
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -3
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -11
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
}
|
|
241
241
|
})), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
242
|
className: "sold-count"
|
|
243
|
-
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.
|
|
243
|
+
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgressVisible) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
244
244
|
className: "progress-wrap"
|
|
245
245
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
246
246
|
className: "text"
|
|
@@ -250,7 +250,7 @@ function (_super) {
|
|
|
250
250
|
className: "progress",
|
|
251
251
|
style: {
|
|
252
252
|
width: salePercent + "%",
|
|
253
|
-
backgroundColor: (_e = panelProps.
|
|
253
|
+
backgroundColor: (_e = panelProps.salesProgressVisible) === null || _e === void 0 ? void 0 : _e.color
|
|
254
254
|
}
|
|
255
255
|
})))));
|
|
256
256
|
};
|
|
@@ -13,8 +13,6 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
16
|
var _star = _interopRequireDefault(require("../imgs/star.svg"));
|
|
19
17
|
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
@@ -241,7 +239,10 @@ function (_super) {
|
|
|
241
239
|
|
|
242
240
|
_this.searchProduct = function () {
|
|
243
241
|
var storeId = window.magicDesign.storeId;
|
|
244
|
-
(0,
|
|
242
|
+
(0, _commonUtil.navigateTo)('/product/list', {
|
|
243
|
+
q: _this.state.inputVal,
|
|
244
|
+
storeId: storeId
|
|
245
|
+
}); // clickUrl(`/product/list?q=${this.state.inputVal}&storeId=${storeId}`);
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
_this.clickCollect = function () {
|
package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -127,9 +127,9 @@ function (_super) {
|
|
|
127
127
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
128
|
className: "label"
|
|
129
129
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
130
|
-
checked: (_a = panelProps.
|
|
130
|
+
checked: (_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open,
|
|
131
131
|
onChange: function onChange(v) {
|
|
132
|
-
panelProps.
|
|
132
|
+
panelProps.salesProgressVisible = {
|
|
133
133
|
open: v
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -145,7 +145,7 @@ function (_super) {
|
|
|
145
145
|
productName: {},
|
|
146
146
|
activityPrice: {},
|
|
147
147
|
salesPrice: {},
|
|
148
|
-
|
|
148
|
+
salesProgressVisible: {
|
|
149
149
|
open: false
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
-
var _a, _b;
|
|
74
|
+
var _a, _b, _c;
|
|
75
75
|
|
|
76
76
|
var panelProps = this.props.panelProps;
|
|
77
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -129,28 +129,24 @@ function (_super) {
|
|
|
129
129
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
130
|
className: "label"
|
|
131
131
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
132
|
-
checked: (_a = panelProps.
|
|
132
|
+
checked: (_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open,
|
|
133
133
|
onChange: function onChange(v) {
|
|
134
|
-
panelProps.
|
|
135
|
-
open: v
|
|
136
|
-
};
|
|
134
|
+
panelProps.salesProgressVisible.open = v;
|
|
137
135
|
|
|
138
136
|
_this.reRender();
|
|
139
137
|
}
|
|
140
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
})), ((_b = panelProps.salesProgressVisible) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
139
|
className: "content"
|
|
142
140
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
143
141
|
className: "name"
|
|
144
142
|
}, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
145
143
|
colorType: "rgba",
|
|
146
144
|
onChange: function onChange(v) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
(_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.color = v;
|
|
145
|
+
panelProps.salesProgressVisible.color = v;
|
|
150
146
|
|
|
151
147
|
_this.reRender();
|
|
152
148
|
},
|
|
153
|
-
value: (
|
|
149
|
+
value: (_c = panelProps.salesProgressVisible) === null || _c === void 0 ? void 0 : _c.color
|
|
154
150
|
}))));
|
|
155
151
|
};
|
|
156
152
|
|
|
@@ -161,7 +157,7 @@ function (_super) {
|
|
|
161
157
|
productName: {},
|
|
162
158
|
activityPrice: {},
|
|
163
159
|
salesPrice: {},
|
|
164
|
-
|
|
160
|
+
salesProgressVisible: {
|
|
165
161
|
open: false,
|
|
166
162
|
color: '#000'
|
|
167
163
|
}
|
|
@@ -240,7 +240,7 @@ function (_super) {
|
|
|
240
240
|
}
|
|
241
241
|
})), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
242
|
className: "sold-count"
|
|
243
|
-
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.
|
|
243
|
+
}, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgressVisible) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
244
244
|
className: "progress-wrap"
|
|
245
245
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
246
246
|
className: "text"
|
|
@@ -250,7 +250,7 @@ function (_super) {
|
|
|
250
250
|
className: "progress",
|
|
251
251
|
style: {
|
|
252
252
|
width: salePercent + "%",
|
|
253
|
-
backgroundColor: (_e = panelProps.
|
|
253
|
+
backgroundColor: (_e = panelProps.salesProgressVisible) === null || _e === void 0 ? void 0 : _e.color
|
|
254
254
|
}
|
|
255
255
|
})))));
|
|
256
256
|
};
|
|
@@ -13,8 +13,6 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
|
-
|
|
18
16
|
var _star = _interopRequireDefault(require("../imgs/star.svg"));
|
|
19
17
|
|
|
20
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
@@ -241,7 +239,10 @@ function (_super) {
|
|
|
241
239
|
|
|
242
240
|
_this.searchProduct = function () {
|
|
243
241
|
var storeId = window.magicDesign.storeId;
|
|
244
|
-
(0,
|
|
242
|
+
(0, _commonUtil.navigateTo)('/product/list', {
|
|
243
|
+
q: _this.state.inputVal,
|
|
244
|
+
storeId: storeId
|
|
245
|
+
}); // clickUrl(`/product/list?q=${this.state.inputVal}&storeId=${storeId}`);
|
|
245
246
|
};
|
|
246
247
|
|
|
247
248
|
_this.clickCollect = function () {
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -127,9 +127,9 @@ function (_super) {
|
|
|
127
127
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
128
|
className: "label"
|
|
129
129
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
130
|
-
checked: (_a = panelProps.
|
|
130
|
+
checked: (_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open,
|
|
131
131
|
onChange: function onChange(v) {
|
|
132
|
-
panelProps.
|
|
132
|
+
panelProps.salesProgressVisible = {
|
|
133
133
|
open: v
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -145,7 +145,7 @@ function (_super) {
|
|
|
145
145
|
productName: {},
|
|
146
146
|
activityPrice: {},
|
|
147
147
|
salesPrice: {},
|
|
148
|
-
|
|
148
|
+
salesProgressVisible: {
|
|
149
149
|
open: false
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
AComponent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
-
var _a, _b;
|
|
74
|
+
var _a, _b, _c;
|
|
75
75
|
|
|
76
76
|
var panelProps = this.props.panelProps;
|
|
77
77
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -129,28 +129,24 @@ function (_super) {
|
|
|
129
129
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
130
|
className: "label"
|
|
131
131
|
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
132
|
-
checked: (_a = panelProps.
|
|
132
|
+
checked: (_a = panelProps.salesProgressVisible) === null || _a === void 0 ? void 0 : _a.open,
|
|
133
133
|
onChange: function onChange(v) {
|
|
134
|
-
panelProps.
|
|
135
|
-
open: v
|
|
136
|
-
};
|
|
134
|
+
panelProps.salesProgressVisible.open = v;
|
|
137
135
|
|
|
138
136
|
_this.reRender();
|
|
139
137
|
}
|
|
140
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
})), ((_b = panelProps.salesProgressVisible) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
139
|
className: "content"
|
|
142
140
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
143
141
|
className: "name"
|
|
144
142
|
}, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
145
143
|
colorType: "rgba",
|
|
146
144
|
onChange: function onChange(v) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
(_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.color = v;
|
|
145
|
+
panelProps.salesProgressVisible.color = v;
|
|
150
146
|
|
|
151
147
|
_this.reRender();
|
|
152
148
|
},
|
|
153
|
-
value: (
|
|
149
|
+
value: (_c = panelProps.salesProgressVisible) === null || _c === void 0 ? void 0 : _c.color
|
|
154
150
|
}))));
|
|
155
151
|
};
|
|
156
152
|
|
|
@@ -161,7 +157,7 @@ function (_super) {
|
|
|
161
157
|
productName: {},
|
|
162
158
|
activityPrice: {},
|
|
163
159
|
salesPrice: {},
|
|
164
|
-
|
|
160
|
+
salesProgressVisible: {
|
|
165
161
|
open: false,
|
|
166
162
|
color: '#000'
|
|
167
163
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|