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.
@@ -3,7 +3,6 @@ import './index.less';
3
3
  interface Props {
4
4
  productType: string;
5
5
  from: Ad.From;
6
- position: string;
7
6
  dealerId: number;
8
7
  env?: Global.Env;
9
8
  }
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__*/_jsx("a", {
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: currentItem.title
121
+ children: [/*#__PURE__*/_jsx(SoundOutlined, {
122
+ className: "iconSound"
123
+ }), " ", currentItem.title]
124
124
  })
125
125
  }), /*#__PURE__*/_jsx(Image, {
126
126
  style: {
@@ -5,4 +5,8 @@
5
5
  .reload{
6
6
  color: #C00;
7
7
  }
8
+ .iconSound{
9
+ color: #999;
10
+ padding-right: 8px;
11
+ }
8
12
  }
@@ -1,6 +1,5 @@
1
1
  export declare function list(body: {
2
2
  productType: string;
3
3
  from: 'web' | 'client';
4
- position: string;
5
4
  dealerId: number;
6
5
  }, options?: Global.RequestOptions): Promise<Ad.List[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.13",
3
+ "version": "2.2.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",