This commit is contained in:
zoujiandong
2025-08-03 16:29:54 +08:00
parent 43abd1f3d6
commit 6e320c3944
74 changed files with 1954 additions and 974 deletions
+14 -8
View File
@@ -57,7 +57,10 @@ const _sfc_main = {
const searchList = async () => {
let searchForm = {
page: 1,
page_size: 10
page_size: 10,
order: {
push_date: "desc"
}
};
api_api.api.searchExchage({
...searchForm
@@ -72,7 +75,10 @@ const _sfc_main = {
const goodList = () => {
api_api.api.searchExchageGood({
is_selected: 1,
limit: 5
order: {
push_date: "desc"
},
limit: 3
}).then((res) => {
most_read_articles.value = res.data.data;
});
@@ -104,7 +110,7 @@ const _sfc_main = {
color: "#3CC7C0"
}),
g: common_vendor.o(($event) => goList("read")),
h: common_vendor.f(most_read_articles.value.slice(0, 3), (item, k0, i0) => {
h: common_vendor.f(most_read_articles.value, (item, k0, i0) => {
return {
a: common_vendor.t(item.exchange_title),
b: item.exchange_id,
@@ -136,7 +142,7 @@ const _sfc_main = {
i: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
j: item.exchange_content_image && item.exchange_content_image.length > 0
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
k: common_vendor.f(item.exchange_content_image, (unit, k1, i1) => {
k: common_vendor.f(item.exchange_content_image.splice(0, 3), (unit, k1, i1) => {
return {
a: "4b2e7592-4-" + i0 + "-" + i1,
b: common_vendor.p({
@@ -152,7 +158,7 @@ const _sfc_main = {
} : {}, {
m: item.exchange_content_video && item.exchange_content_video.length > 0
}, item.exchange_content_video && item.exchange_content_video.length > 0 ? {
n: common_vendor.f(item.exchange_content_video, (videoCell, index, i1) => {
n: common_vendor.f(item.exchange_content_video.slice(0, 1), (videoCell, index, i1) => {
return {
a: index,
b: videoCell,
@@ -162,9 +168,9 @@ const _sfc_main = {
o: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
} : {}, {
p: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
q: item.label && item.label.length > 0
}, item.label && item.label.length > 0 ? {
r: common_vendor.f(item.label, (cell, k1, i1) => {
q: item.exchange_label
}, item.exchange_label ? {
r: common_vendor.f(item.exchange_label, (cell, k1, i1) => {
return {
a: common_vendor.t(cell.label_name),
b: cell.exchange_label_id