This commit is contained in:
zoujiandong
2025-07-18 13:30:14 +08:00
parent 293b3e6a35
commit 9b4734acc5
58 changed files with 1790 additions and 311 deletions
+28 -19
View File
@@ -27,6 +27,7 @@ const _sfc_main = {
common_vendor.ref("");
const keyWord = common_vendor.ref("");
const isArticle = common_vendor.ref(true);
const isSearch = common_vendor.ref(false);
const navName = common_vendor.ref("肝胆相照临床病例库");
const type1 = common_vendor.ref(0);
const type2 = common_vendor.ref(1);
@@ -81,14 +82,15 @@ const _sfc_main = {
return common_vendor.dayjs(date).format("YYYY-MM-DD");
};
const goDetail = (id) => {
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:129", 11111);
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:130", id);
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:135", 11111);
common_vendor.index.__f__("log", "at pages/myCollect/myCollect.vue:136", id);
let type = isArticle.value ? "article" : "video";
utils_navTo.navTo({
url: `/pages/detail/detail?id=${id}&type=${type}`
});
};
const changeWord = (val) => {
isSearch.value = true;
keyWord.value = val;
paging.value.reload();
};
@@ -130,30 +132,37 @@ const _sfc_main = {
type1.value == 1 ? searchRead(params) : searchCollect(params);
};
return (_ctx, _cache) => {
return {
return common_vendor.e({
a: common_vendor.o(changeWord),
b: common_vendor.p({
searchWord: keyWord.value,
navName: navName.value
}),
c: common_vendor.o(changetype1),
d: common_vendor.o(($event) => type1.value = $event),
e: common_vendor.p({
c: isSearch.value
}, isSearch.value ? common_vendor.e({
d: common_vendor.t(total.value),
e: keyWord.value
}, keyWord.value ? {
f: common_vendor.t(keyWord.value)
} : {}) : {}, {
g: common_vendor.o(changetype1),
h: common_vendor.o(($event) => type1.value = $event),
i: common_vendor.p({
title: type1.value == 0 ? "收藏" : "浏览",
options: options.value,
modelValue: type1.value
}),
f: common_vendor.o(changetype2),
g: common_vendor.o(($event) => type2.value = $event),
h: common_vendor.p({
j: common_vendor.o(changetype2),
k: common_vendor.o(($event) => type2.value = $event),
l: common_vendor.p({
title: title2.value,
options: options1.value,
modelValue: type2.value
}),
i: common_vendor.sr(uDropdownRef, "1cf734f5-2,1cf734f5-0", {
m: common_vendor.sr(uDropdownRef, "1cf734f5-2,1cf734f5-0", {
"k": "uDropdownRef"
}),
j: common_vendor.f(dataList.value, (item, index, i0) => {
n: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.data.title),
b: common_vendor.f(item.data.author, (tag, k1, i1) => {
@@ -172,33 +181,33 @@ const _sfc_main = {
j: item.collect_id
};
}),
k: common_vendor.p({
o: common_vendor.p({
name: "eye",
color: "#6B7280",
size: "28rpx"
}),
l: common_vendor.p({
p: common_vendor.p({
name: "heart",
color: "#6B7280",
size: "28rpx"
}),
m: common_vendor.p({
q: common_vendor.p({
name: "clock",
color: "#6B7280",
size: "28rpx"
}),
n: common_vendor.sr(paging, "1cf734f5-0", {
r: common_vendor.sr(paging, "1cf734f5-0", {
"k": "paging"
}),
o: common_vendor.o(queryList),
p: common_vendor.o(($event) => dataList.value = $event),
q: common_vendor.p({
s: common_vendor.o(queryList),
t: common_vendor.o(($event) => dataList.value = $event),
v: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
modelValue: dataList.value
})
};
});
};
}
};
@@ -1 +1 @@
<view class="u-page data-v-1cf734f5"><z-paging wx:if="{{q}}" class="r data-v-1cf734f5" u-s="{{['top','d']}}" u-r="paging" bindquery="{{o}}" u-i="1cf734f5-0" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-1cf734f5" bindchangeWord="{{a}}" u-i="1cf734f5-1,1cf734f5-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-1cf734f5"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-1cf734f5" u-r="uDropdownRef" u-i="1cf734f5-2,1cf734f5-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-1cf734f5" bindchange="{{c}}" u-i="1cf734f5-3,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item><up-dropdown-item wx:if="{{h}}" class="data-v-1cf734f5" bindchange="{{f}}" u-i="1cf734f5-4,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-dropdown-item></up-dropdown></view></view><view wx:for="{{j}}" wx:for-item="item" wx:key="j" class="item data-v-1cf734f5" bindtap="{{item.i}}"><view class="title ellipsis data-v-1cf734f5">{{item.a}}</view><view class="tagsbox data-v-1cf734f5"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf734f5">{{tag.a}}</view></view><view class="deal data-v-1cf734f5"><view class="left data-v-1cf734f5"><view class="eyebox data-v-1cf734f5"><up-icon wx:if="{{k}}" class="data-v-1cf734f5" u-i="{{item.c}}" bind:__l="__l" u-p="{{k}}"></up-icon><view class="num data-v-1cf734f5">{{item.d}}</view></view><view class="collect data-v-1cf734f5"><up-icon wx:if="{{l}}" class="data-v-1cf734f5" u-i="{{item.e}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-1cf734f5">{{item.f}}</view></view></view><view class="time data-v-1cf734f5"><up-icon wx:if="{{m}}" class="data-v-1cf734f5" u-i="{{item.g}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-1cf734f5">{{item.h}}</view></view></view></view></z-paging></view>
<view class="u-page data-v-1cf734f5"><z-paging wx:if="{{v}}" class="r data-v-1cf734f5" u-s="{{['top','d']}}" u-r="paging" bindquery="{{s}}" u-i="1cf734f5-0" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-1cf734f5" bindchangeWord="{{a}}" u-i="1cf734f5-1,1cf734f5-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view wx:if="{{c}}" class="detail data-v-1cf734f5"><view class="desc data-v-1cf734f5">检索到:<text class="red data-v-1cf734f5">{{d}}篇</text></view><view wx:if="{{e}}" class="desc data-v-1cf734f5">检索词:<text class="red data-v-1cf734f5">{{f}}</text></view></view><view class="filterbox data-v-1cf734f5"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-1cf734f5" u-r="uDropdownRef" u-i="1cf734f5-2,1cf734f5-0" bind:__l="__l"><up-dropdown-item wx:if="{{i}}" class="data-v-1cf734f5" bindchange="{{g}}" u-i="1cf734f5-3,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-dropdown-item><up-dropdown-item wx:if="{{l}}" class="data-v-1cf734f5" bindchange="{{j}}" u-i="1cf734f5-4,1cf734f5-2" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></up-dropdown-item></up-dropdown></view></view><view wx:for="{{n}}" wx:for-item="item" wx:key="j" class="item data-v-1cf734f5" bindtap="{{item.i}}"><view class="title ellipsis data-v-1cf734f5">{{item.a}}</view><view class="tagsbox data-v-1cf734f5"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf734f5">{{tag.a}}</view></view><view class="deal data-v-1cf734f5"><view class="left data-v-1cf734f5"><view class="eyebox data-v-1cf734f5"><up-icon wx:if="{{o}}" class="data-v-1cf734f5" u-i="{{item.c}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-1cf734f5">{{item.d}}</view></view><view class="collect data-v-1cf734f5"><up-icon wx:if="{{p}}" class="data-v-1cf734f5" u-i="{{item.e}}" bind:__l="__l" u-p="{{p}}"></up-icon><view class="num data-v-1cf734f5">{{item.f}}</view></view></view><view class="time data-v-1cf734f5"><up-icon wx:if="{{q}}" class="data-v-1cf734f5" u-i="{{item.g}}" bind:__l="__l" u-p="{{q}}"></up-icon><view class="num data-v-1cf734f5">{{item.h}}</view></view></view></view></z-paging></view>