diff --git a/src/pages/HotManage/components/BannerList/index.jsx b/src/pages/HotManage/components/BannerList/index.jsx index 224b802..5dff803 100644 --- a/src/pages/HotManage/components/BannerList/index.jsx +++ b/src/pages/HotManage/components/BannerList/index.jsx @@ -53,7 +53,7 @@ const BannerList = (props) => { title: "标题", dataIndex: "title", key: "title", - width: 240, + width: 140, }, { title: "跳转链接", @@ -65,7 +65,21 @@ const BannerList = (props) => { {data && data.map((hyperlink, index) => (
-

{index ? "H5:" : "App:"}

+

+ {hyperlink.action === "outward" + ? "外部链接:" + : hyperlink.action === "webViewHeaderInward" + ? "应用内打开内链(带头):" + : hyperlink.action === "webViewHeaderOutward" + ? "应用内打开外链(带头):" + : hyperlink.action === "webViewWithOutHeaderInward" + ? "应用内打开内链(不带头):" + : hyperlink.action === "webViewWithOutHeaderOutward" + ? "应用内打开外链(不带头):" + : index + ? "H5:" + : "App:"} +

{hyperlink.url}
))} @@ -147,6 +161,9 @@ const BannerList = (props) => { filterMode: "tree", onFilter: (value, record) => record.status == value, + sorter: (a, b) => a.status - b.status, + defaultSortOrder: "ascend", + sortDirections: ["ascend", "descend"], render: (item) => { return ( @@ -732,7 +749,7 @@ const BannerList = (props) => { {it}:} value={selectedStreamer?.mid} - /> */} + /> ))} diff --git a/src/pages/HotManage/components/HotList/index.jsx b/src/pages/HotManage/components/HotList/index.jsx index b801c9c..f880bd3 100644 --- a/src/pages/HotManage/components/HotList/index.jsx +++ b/src/pages/HotManage/components/HotList/index.jsx @@ -70,9 +70,17 @@ const HotList = (props) => {

{hyperlink.action === "outward" ? "外部链接:" + : hyperlink.action === "webViewHeaderInward" + ? "应用内打开内链(带头):" + : hyperlink.action === "webViewHeaderOutward" + ? "应用内打开外链(带头):" + : hyperlink.action === "webViewWithOutHeaderInward" + ? "应用内打开内链(不带头):" + : hyperlink.action === "webViewWithOutHeaderOutward" + ? "应用内打开外链(不带头):" : index - ? "App:" - : "H5:"} + ? "H5:" + : "App:"}

{hyperlink.action === "outward" ? ( @@ -146,7 +154,9 @@ const HotList = (props) => { ], filterMode: "tree", onFilter: (value, record) => record.status == value, - + sorter: (a, b) => a.status - b.status, + defaultSortOrder: "ascend", + sortDirections: ["ascend", "descend"], render: (item) => { return ( @@ -237,6 +247,7 @@ const HotList = (props) => { link, ueser_id, id, + mid, } = value; let newHyperlinks = []; @@ -306,6 +317,7 @@ const HotList = (props) => { hyperlinks: newHyperlinks, image: image?.images ? image : { image_ids: displayImageId }, user_id: "", + mid: selectedStreamer?.inputType === "outter" ? mid : null, }; if (id) { delete dataObj.st; @@ -756,22 +768,27 @@ const HotList = (props) => { label="ID" name="mid" layout="horizontal" - style={{ margin: 0 }} + style={{ + margin: 0, + display: + selectedStreamer?.inputType === "inner" ? "none" : "block", + }} > { @@ -914,19 +931,27 @@ const HotList = (props) => { options={[ { value: "inward", - label: "内部跳转", + label: "达人空间跳转", }, { value: "outward", - label: "外部浏览器跳转", + label: "打开新的浏览器页面", }, { - value: "webViewHeader", - label: "带头的WebView", + value: "webViewHeaderOutward", + label: "应用内打开外链(带头)", }, { - value: "webViewWithOutHeader", - label: "不带头的WebView", + value: "webViewHeaderInward", + label: "应用内打开内链(带头)", + }, + { + value: "webViewWithOutHeaderOutward", + label: "应用内打开外链(不带头)", + }, + { + value: "webViewWithOutHeaderInward", + label: "应用内打开内链(不带头)", }, ]} /> @@ -936,13 +961,14 @@ const HotList = (props) => {
{ direction="vertical" className="w-full" style={{ - display: pathMethod !== "inward" ? "block" : "none", + display: pathMethod == "inward" ? "block" : "none", }} >