This commit is contained in:
zoujiandong
2025-07-24 10:55:36 +08:00
parent c758477084
commit 464761e3f9
22 changed files with 563 additions and 239 deletions
+76 -47
View File
@@ -4,18 +4,22 @@ const api_api = require("../../api/api.js");
const utils_navTo = require("../../utils/navTo.js");
const common_assets = require("../../common/assets.js");
if (!Array) {
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
(_easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_z_paging2)();
}
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_dropdown_item = () => "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item.js";
const _easycom_up_dropdown = () => "../../node-modules/uview-plus/components/u-dropdown/u-dropdown.js";
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
(navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
(navBarSearch + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_z_paging)();
}
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _sfc_main = {
@@ -29,20 +33,25 @@ const _sfc_main = {
const keyWord = common_vendor.ref("");
common_vendor.ref(true);
const type = common_vendor.ref("doctor");
const dropTitle = common_vendor.ref("更新时间");
const navName = common_vendor.ref("疾病临床病例库");
const orderFilter = common_vendor.ref(1);
const options = common_vendor.ref([
{
label: "正序",
value: "asc"
label: "更新时间",
value: "1"
},
{
label: "倒序",
value: "desc"
label: "疾病名称",
value: "2"
},
{
label: "病例数",
value: "3"
}
]);
const order = common_vendor.reactive({
article_num: "",
push_date: ""
updated_at: "desc"
});
common_vendor.onLoad((options2) => {
if (options2.type == "hospital") {
@@ -67,13 +76,24 @@ const _sfc_main = {
(_a = paging.value) == null ? void 0 : _a.refresh();
});
const changeDate = (e) => {
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:139", e);
order.article_num = "";
paging.value.reload();
};
const changeRead = (e) => {
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:144", e);
order.push_date = "";
if (e == 1) {
order.updated_at = "desc";
order.label_name = "";
order.article_num = "";
dropTitle.value = "更新时间";
} else if (e == 2) {
order.updated_at = "";
order.label_name = "desc";
order.article_num = "";
dropTitle.value = "疾病名称";
} else if (e == 3) {
order.updated_at = "";
order.label_name = "";
order.article_num = "desc";
dropTitle.value = "病例数";
}
orderFilter.value = e;
uDropdownRef.value.close();
paging.value.reload();
};
const formatdate = (date) => {
@@ -86,10 +106,13 @@ const _sfc_main = {
if (!order.article_num) {
delete order.article_num;
}
if (!order.push_date) {
delete order.push_date;
if (!order.updated_at) {
delete order.updated_at;
}
if (order.article_num || order.push_date) {
if (!order.label_name) {
delete order.label_name;
}
if (order.article_num || order.updated_at || order.label_name) {
searchForm.order = order;
}
api_api.api.getSearchLabel({
@@ -116,15 +139,13 @@ const _sfc_main = {
});
};
const changeWord = (value) => {
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:194", value);
if (value) {
navName.value = value + "临床病例库";
keyWord.value = value;
dataList.value = [];
order.article_num = "";
order.push_date = "";
paging.value.reload();
}
navName.value = "疾病临床病例库";
keyWord.value = value;
dataList.value = [];
order.updated_at = "desc";
order.article_num = "";
order.label_name = "";
paging.value.reload();
};
return (_ctx, _cache) => {
return {
@@ -134,44 +155,52 @@ const _sfc_main = {
navName: navName.value,
type: "case"
}),
c: common_vendor.o(changeDate),
d: common_vendor.o(($event) => order.push_date = $event),
e: common_vendor.p({
title: "发布时间",
options: options.value,
modelValue: order.push_date
c: common_vendor.f(options.value, (item, k0, i0) => {
return {
a: "55f9e2cf-5-" + i0 + ",55f9e2cf-4",
b: common_vendor.p({
activeColor: "#3CC7C0",
label: item.label,
name: item.value
}),
c: item.value,
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
};
}),
f: common_vendor.o(changeRead),
g: common_vendor.o(($event) => order.article_num = $event),
h: common_vendor.p({
title: "文章数量",
options: options.value,
modelValue: order.article_num
d: common_vendor.o(changeDate),
e: common_vendor.o(($event) => orderFilter.value = $event),
f: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: orderFilter.value
}),
i: common_vendor.sr(uDropdownRef, "55f9e2cf-2,55f9e2cf-0", {
g: common_vendor.p({
title: dropTitle.value
}),
h: common_vendor.sr(uDropdownRef, "55f9e2cf-2,55f9e2cf-0", {
"k": "uDropdownRef"
}),
j: common_vendor.f(dataList.value, (item, index, i0) => {
i: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.label_name),
b: common_vendor.t(item.video_num + item.article_num),
c: "55f9e2cf-5-" + i0 + ",55f9e2cf-0",
c: "55f9e2cf-6-" + i0 + ",55f9e2cf-0",
d: common_vendor.t(formatdate(item.last_push_date)),
e: index,
f: common_vendor.o(($event) => goDetail(item.label_iden, item.label_name), index)
};
}),
k: common_vendor.p({
j: common_vendor.p({
src: common_vendor.unref(common_assets.arrowrightImg),
width: "32rpx",
height: "32rpx"
}),
l: common_vendor.sr(paging, "55f9e2cf-0", {
k: common_vendor.sr(paging, "55f9e2cf-0", {
"k": "paging"
}),
m: common_vendor.o(queryList),
n: common_vendor.o(($event) => dataList.value = $event),
o: common_vendor.p({
l: common_vendor.o(queryList),
m: common_vendor.o(($event) => dataList.value = $event),
n: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
@@ -2,6 +2,8 @@
"navigationBarTitleText": "肝胆相照临床病例库",
"navigationStyle": "custom",
"usingComponents": {
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
"up-dropdown-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
+1 -1
View File
@@ -1 +1 @@
<view class="u-page data-v-55f9e2cf"><z-paging wx:if="{{o}}" class="r data-v-55f9e2cf" u-s="{{['top','d']}}" u-r="paging" bindquery="{{m}}" u-i="55f9e2cf-0" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-55f9e2cf" bindchangeWord="{{a}}" u-i="55f9e2cf-1,55f9e2cf-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-55f9e2cf"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-55f9e2cf" u-r="uDropdownRef" u-i="55f9e2cf-2,55f9e2cf-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-55f9e2cf" bindchange="{{c}}" u-i="55f9e2cf-3,55f9e2cf-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item><up-dropdown-item wx:if="{{h}}" class="data-v-55f9e2cf" bindchange="{{f}}" u-i="55f9e2cf-4,55f9e2cf-2" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-55f9e2cf"><view wx:for="{{j}}" wx:for-item="item" wx:key="e" class="item data-v-55f9e2cf" bindtap="{{item.f}}"><view class="title ellipsis data-v-55f9e2cf">{{item.a}}</view><view class="deal data-v-55f9e2cf"><view class="left data-v-55f9e2cf"><view class="count data-v-55f9e2cf"> 病例数:{{item.b}}<up--image wx:if="{{k}}" class="data-v-55f9e2cf" u-i="{{item.c}}" bind:__l="__l" u-p="{{k}}"></up--image></view></view><view class="time data-v-55f9e2cf"><view class="num data-v-55f9e2cf">更新时间:{{item.d}}</view></view></view></view></view></z-paging></view>
<view class="u-page data-v-55f9e2cf"><z-paging wx:if="{{n}}" class="r data-v-55f9e2cf" u-s="{{['top','d']}}" u-r="paging" bindquery="{{l}}" u-i="55f9e2cf-0" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-55f9e2cf" bindchangeWord="{{a}}" u-i="55f9e2cf-1,55f9e2cf-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-55f9e2cf"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-55f9e2cf" u-r="uDropdownRef" u-i="55f9e2cf-2,55f9e2cf-0" bind:__l="__l"><up-dropdown-item wx:if="{{g}}" class="data-v-55f9e2cf" u-s="{{['d']}}" u-i="55f9e2cf-3,55f9e2cf-2" bind:__l="__l" u-p="{{g}}"><view class="dropcontent data-v-55f9e2cf"><up-radio-group wx:if="{{f}}" class="data-v-55f9e2cf" u-s="{{['d']}}" bindchange="{{d}}" u-i="55f9e2cf-4,55f9e2cf-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['column', 'data-v-55f9e2cf', item.d]}}"><up-radio wx:if="{{item.b}}" class="data-v-55f9e2cf" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-radio></view></up-radio-group></view></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-55f9e2cf"><view wx:for="{{i}}" wx:for-item="item" wx:key="e" class="item data-v-55f9e2cf" bindtap="{{item.f}}"><view class="title ellipsis data-v-55f9e2cf">{{item.a}}</view><view class="deal data-v-55f9e2cf"><view class="left data-v-55f9e2cf"><view class="count data-v-55f9e2cf"> 病例数:{{item.b}}<up--image wx:if="{{j}}" class="data-v-55f9e2cf" u-i="{{item.c}}" bind:__l="__l" u-p="{{j}}"></up--image></view></view><view class="time data-v-55f9e2cf"><view class="num data-v-55f9e2cf">更新时间:{{item.d}}</view></view></view></view></view></z-paging></view>
@@ -23,6 +23,25 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.dropcontent.data-v-55f9e2cf {
padding-top: 40rpx;
padding-bottom: 20rpx;
background-color: #fff;
}
.dropcontent.data-v-55f9e2cf .u-radio {
margin-bottom: 6px !important;
margin-top: 16px !important;
}
.dropcontent .column.data-v-55f9e2cf {
padding: 0 30rpx;
border-top: 2rpx solid #e5e7eb;
}
.dropcontent .column.data-v-55f9e2cf .u-radio__text {
color: #333 !important;
}
.dropcontent .column.active.data-v-55f9e2cf .u-radio__text {
color: #3CC7C0 !important;
}
.votepop .confirm.data-v-55f9e2cf {
margin: 39rpx 30rpx 0;
height: 92rpx;
@@ -186,6 +205,10 @@
z-index: 1;
margin-left: 0rpx;
}
.u-page.data-v-55f9e2cf .u-dropdown__menu__item__text {
font-size: 14px !important;
color: #3c9cff !important;
}
.u-page.data-v-55f9e2cf .u-dropdown__menu__item {
height: 74rpx;
padding: 0 20rpx;