@fonixtree/magic-design 1.0.185 → 1.0.187
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 +4 -1
- package/es/composite-comp/common/components/ProductItem/index.less +6 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +4 -1
- package/lib/composite-comp/common/components/ProductItem/index.less +6 -2
- package/package.json +1 -1
|
@@ -156,6 +156,7 @@ function (_super) {
|
|
|
156
156
|
})) || []; // ad 卡片
|
|
157
157
|
|
|
158
158
|
if (data.type === 'ad') {
|
|
159
|
+
console.log('data', data);
|
|
159
160
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
161
|
className: "m-product-item-advertise",
|
|
161
162
|
onClick: function onClick() {
|
|
@@ -178,11 +179,13 @@ function (_super) {
|
|
|
178
179
|
_react["default"].createElement("div", {
|
|
179
180
|
className: "video-wrap"
|
|
180
181
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
182
|
+
key: data.id + "-" + data.url + "}",
|
|
181
183
|
opts: {
|
|
182
184
|
source: data.url,
|
|
183
185
|
controlBarHide: true,
|
|
184
186
|
autoplay: true,
|
|
185
|
-
loop: true
|
|
187
|
+
loop: true,
|
|
188
|
+
speed: 1
|
|
186
189
|
},
|
|
187
190
|
videoId: data.id
|
|
188
191
|
})));
|
|
@@ -156,6 +156,7 @@ function (_super) {
|
|
|
156
156
|
})) || []; // ad 卡片
|
|
157
157
|
|
|
158
158
|
if (data.type === 'ad') {
|
|
159
|
+
console.log('data', data);
|
|
159
160
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
161
|
className: "m-product-item-advertise",
|
|
161
162
|
onClick: function onClick() {
|
|
@@ -178,11 +179,13 @@ function (_super) {
|
|
|
178
179
|
_react["default"].createElement("div", {
|
|
179
180
|
className: "video-wrap"
|
|
180
181
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
182
|
+
key: data.id + "-" + data.url + "}",
|
|
181
183
|
opts: {
|
|
182
184
|
source: data.url,
|
|
183
185
|
controlBarHide: true,
|
|
184
186
|
autoplay: true,
|
|
185
|
-
loop: true
|
|
187
|
+
loop: true,
|
|
188
|
+
speed: 1
|
|
186
189
|
},
|
|
187
190
|
videoId: data.id
|
|
188
191
|
})));
|