component-shipinlv 2.2.13 → 2.2.16
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/dist/Ad/index.d.ts
CHANGED
package/dist/Ad/index.js
CHANGED
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import { useRequest } from "@umijs/hooks";
|
5
5
|
import * as AdController from "../service/api/AdController";
|
6
6
|
import React, { useRef, useState } from 'react';
|
7
|
-
import { LoadingOutlined, WarningOutlined } from "@ant-design/icons";
|
7
|
+
import { LoadingOutlined, SoundOutlined, WarningOutlined } from "@ant-design/icons";
|
8
8
|
import "./index.less";
|
9
9
|
import { Image } from "antd";
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -12,7 +12,6 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
var Ad = function Ad(_ref) {
|
13
13
|
var productType = _ref.productType,
|
14
14
|
from = _ref.from,
|
15
|
-
position = _ref.position,
|
16
15
|
dealerId = _ref.dealerId,
|
17
16
|
env = _ref.env;
|
18
17
|
var listDataRef = useRef([]);
|
@@ -44,7 +43,6 @@ var Ad = function Ad(_ref) {
|
|
44
43
|
return AdController.list({
|
45
44
|
productType: productType,
|
46
45
|
from: from,
|
47
|
-
position: position,
|
48
46
|
dealerId: dealerId
|
49
47
|
}, {
|
50
48
|
env: env
|
@@ -102,7 +100,7 @@ var Ad = function Ad(_ref) {
|
|
102
100
|
children: [/*#__PURE__*/_jsx(WarningOutlined, {
|
103
101
|
className: "reload"
|
104
102
|
}), " \u91CD\u8BD5"]
|
105
|
-
}) : loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : /*#__PURE__*/_jsx("div", {
|
103
|
+
}) : loading ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : currentItem.id > 0 && /*#__PURE__*/_jsx("div", {
|
106
104
|
className: "adList",
|
107
105
|
onMouseEnter: function onMouseEnter() {
|
108
106
|
return clearTimeout(timerRef.current);
|
@@ -110,7 +108,7 @@ var Ad = function Ad(_ref) {
|
|
110
108
|
onMouseLeave: function onMouseLeave() {
|
111
109
|
return onLoop();
|
112
110
|
},
|
113
|
-
children: /*#__PURE__*/
|
111
|
+
children: /*#__PURE__*/_jsxs("a", {
|
114
112
|
href: currentItem.url,
|
115
113
|
target: "_blank",
|
116
114
|
onClick: function onClick(e) {
|
@@ -120,7 +118,9 @@ var Ad = function Ad(_ref) {
|
|
120
118
|
return false;
|
121
119
|
}
|
122
120
|
},
|
123
|
-
children:
|
121
|
+
children: [/*#__PURE__*/_jsx(SoundOutlined, {
|
122
|
+
className: "iconSound"
|
123
|
+
}), " ", currentItem.title]
|
124
124
|
})
|
125
125
|
}), /*#__PURE__*/_jsx(Image, {
|
126
126
|
style: {
|
package/dist/Ad/index.less
CHANGED