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
+1 -1
View File
@@ -7319,7 +7319,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() {
const hosts = "192.168.100.165,127.0.0.1";
const port = "8090";
const id = "mp-weixin_4_6CBK";
const id = "mp-weixin_mYQj0H";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();
@@ -41,8 +41,10 @@ const _sfc_main = {
placeholder.value = "输入医生姓名";
} else if (newVal === "hospital") {
placeholder.value = "输入医院名称";
} else if (newVal === "video" || newVal === "article" || newVal === "case") {
} else if (newVal === "video" || newVal === "article") {
placeholder.value = "搜索疾病、症状、医院";
} else if (newVal === "case") {
placeholder.value = "请输入疾病名称";
}
}, { immediate: true });
common_vendor.watch(() => props.searchWord, (newVal) => {
@@ -52,6 +52,7 @@
.namebox .name.data-v-4eb3cf28 {
margin-left: 16rpx;
font-size: 30rpx;
margin-right: 157rpx;
color: #111827;
position: relative;
}
+45 -43
View File
@@ -53,6 +53,7 @@ const _sfc_main = {
const dropTitle = common_vendor.ref("发布时间");
const orderFilter = common_vendor.ref("1");
const uDropdownRef = common_vendor.ref(null);
const isCase = common_vendor.ref(false);
const options = common_vendor.ref([
{
label: "发布时间",
@@ -262,7 +263,7 @@ const _sfc_main = {
return common_vendor.dayjs(date).format("YYYY-MM-DD");
};
const goDetail = (id, isLink, src) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:469", isLink);
common_vendor.index.__f__("log", "at pages/search/search.vue:472", isLink);
if (isLink == 1) {
utils_navTo.navTo({
url: `/pages/web/web?src=${src}`
@@ -400,7 +401,7 @@ const _sfc_main = {
});
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:617", 666666);
common_vendor.index.__f__("log", "at pages/search/search.vue:620", 666666);
const params = {
page: pageNo,
page_size: pageSize
@@ -431,8 +432,8 @@ const _sfc_main = {
}, keyWord.value ? {
l: common_vendor.t(keyWord.value)
} : {}) : {}, {
m: !hideType.value
}, !hideType.value ? {
m: !hideType.value && !isCase.value
}, !hideType.value && !isCase.value ? {
n: common_vendor.t(!isArticle.value ? "视频" : "文章"),
o: common_vendor.p({
src: common_vendor.unref(common_assets.switchImg),
@@ -477,7 +478,8 @@ const _sfc_main = {
}),
A: canOpenCase.value ? 1 : "",
B: hideType.value ? 1 : "",
C: common_vendor.f(dataList.value, (item, index, i0) => {
C: isCase.value ? 1 : "",
D: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(isArticle.value ? item.article_title : item.video_title),
b: common_vendor.f(item.author, (tag, k1, i1) => {
@@ -504,56 +506,56 @@ const _sfc_main = {
l: common_vendor.o(($event) => isArticle.value ? goDetail(item.article_id, item.is_link, item.is_link_url) : goDetail(item.video_id, item.is_link, item.is_link_url), index)
});
}),
D: common_vendor.p({
E: common_vendor.p({
name: "eye",
color: "#6B7280",
size: "28rpx"
}),
E: common_vendor.p({
F: common_vendor.p({
name: "clock",
color: "#6B7280",
size: "28rpx"
}),
F: common_vendor.sr(paging, "c10c040c-0", {
G: common_vendor.sr(paging, "c10c040c-0", {
"k": "paging"
}),
G: common_vendor.o(queryList),
H: common_vendor.o(($event) => dataList.value = $event),
I: common_vendor.p({
H: common_vendor.o(queryList),
I: common_vendor.o(($event) => dataList.value = $event),
J: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
modelValue: dataList.value
}),
J: common_vendor.o(cancelCase),
K: common_vendor.o(confirmCase),
L: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
M: common_vendor.p({
K: common_vendor.o(cancelCase),
L: common_vendor.o(confirmCase),
M: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
N: common_vendor.p({
name: "arrow-right"
}),
N: common_vendor.o(($event) => openCaseLevel("1")),
O: caseValue1.name && labelObj.list2.length > 0
O: common_vendor.o(($event) => openCaseLevel("1")),
P: caseValue1.name && labelObj.list2.length > 0
}, caseValue1.name && labelObj.list2.length > 0 ? {
P: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
Q: common_vendor.p({
Q: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
R: common_vendor.p({
name: "arrow-right"
}),
R: common_vendor.o(($event) => openCaseLevel("2"))
S: common_vendor.o(($event) => openCaseLevel("2"))
} : {}, {
S: caseValue2.name && labelObj.list3.length > 0
T: caseValue2.name && labelObj.list3.length > 0
}, caseValue2.name && labelObj.list3.length > 0 ? {
T: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
U: common_vendor.p({
U: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
V: common_vendor.p({
name: "arrow-right"
}),
V: common_vendor.o(($event) => openCaseLevel("3"))
W: common_vendor.o(($event) => openCaseLevel("3"))
} : {}, {
W: freshKey.value,
X: common_vendor.p({
X: freshKey.value,
Y: common_vendor.p({
current: level.value - 1,
direction: "column"
}),
Y: common_vendor.f(labelObj.list1, (item, k0, i0) => {
Z: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "c10c040c-20-" + i0 + ",c10c040c-19",
b: common_vendor.p({
@@ -564,16 +566,16 @@ const _sfc_main = {
c: item.app_iden
};
}),
Z: common_vendor.o(groupChange1),
aa: common_vendor.o(($event) => caseValue1.value = $event),
ab: common_vendor.p({
aa: common_vendor.o(groupChange1),
ab: common_vendor.o(($event) => caseValue1.value = $event),
ac: common_vendor.p({
name: "group1",
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.value
}),
ac: level.value == 1,
ad: common_vendor.f(labelObj.list2, (item, k0, i0) => {
ad: level.value == 1,
ae: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "c10c040c-22-" + i0 + ",c10c040c-21",
b: common_vendor.p({
@@ -584,16 +586,16 @@ const _sfc_main = {
c: item.app_iden
};
}),
ae: common_vendor.o(groupChange2),
af: common_vendor.o(($event) => caseValue2.value = $event),
ag: common_vendor.p({
af: common_vendor.o(groupChange2),
ag: common_vendor.o(($event) => caseValue2.value = $event),
ah: common_vendor.p({
name: "group2",
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.value
}),
ah: level.value == 2,
ai: common_vendor.f(labelObj.list3, (item, k0, i0) => {
ai: level.value == 2,
aj: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "c10c040c-24-" + i0 + ",c10c040c-23",
b: common_vendor.p({
@@ -604,17 +606,17 @@ const _sfc_main = {
c: item.app_iden
};
}),
aj: common_vendor.o(groupChange3),
ak: common_vendor.o(($event) => caseValue3.value = $event),
al: common_vendor.p({
ak: common_vendor.o(groupChange3),
al: common_vendor.o(($event) => caseValue3.value = $event),
am: common_vendor.p({
name: "group3",
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.value
}),
am: level.value == 3,
an: common_vendor.o(closeCase),
ao: common_vendor.p({
an: level.value == 3,
ao: common_vendor.o(closeCase),
ap: common_vendor.p({
round: 10,
zIndex: "9",
closeOnClickOverlay: false,
File diff suppressed because one or more lines are too long
+6 -1
View File
@@ -203,7 +203,7 @@
.filterbox.data-v-c10c040c .u-dropdown__menu {
background: #fff;
z-index: 1;
margin-left: 160rpx;
margin-left: 150rpx;
}
.filterbox.data-v-c10c040c .u-dropdown__menu__item__text {
font-size: 14px !important;
@@ -312,6 +312,11 @@
z-index: 1;
margin-left: 170rpx;
}
.filterbox.isCase.data-v-c10c040c .u-dropdown__menu {
background: #fff;
z-index: 1;
margin-left: -30rpx;
}
.u-page .deal.data-v-c10c040c {
margin-top: 20rpx;
display: flex;
+116 -50
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 = {
@@ -30,35 +34,41 @@ const _sfc_main = {
common_vendor.ref(true);
const type = common_vendor.ref("doctor");
const navName = common_vendor.ref("医生临床病例库");
const options = common_vendor.ref([
const orderFilter = common_vendor.ref(1);
const dropTitle = common_vendor.ref("更新时间");
const option = common_vendor.ref([
{
label: "正序",
value: "asc"
label: "更新时间",
value: "1"
},
{
label: "倒序",
value: "desc"
label: "医生名称",
value: "2"
},
{
label: "病例数",
value: "3"
}
]);
const order = common_vendor.reactive({
read_num: "",
push_date: ""
updated_at: "desc"
});
common_vendor.onLoad((options2) => {
if (options2.type == "hospital") {
common_vendor.onLoad((options) => {
if (options.type == "hospital") {
type.value = "hospital";
option.value[1].label = "医院名称";
}
keyWord.value = options2.name;
if (options2.name) {
navName.value = options2.name + "临床病例库";
keyWord.value = options.name;
if (options.name) {
navName.value = options.name + "临床病例库";
}
if ((options2.name = "医生") && !options2.id) {
if ((options.name = "医生") && !options.id) {
keyWord.value = "";
}
if (options2.order == "new") {
if (options.order == "new") {
order.push_date = "asc";
}
if (options2.order == "read") {
if (options.order == "read") {
order.read_num = "desc";
}
});
@@ -67,6 +77,37 @@ const _sfc_main = {
(_a = paging.value) == null ? void 0 : _a.refresh();
});
const change = (e) => {
if (e == 1) {
order.updated_at = "desc";
if (type.value = "hospital") {
order.hospital_name = "";
} else {
order.doctor_name = "";
}
order.article_num = "";
dropTitle.value = "更新时间";
} else if (e == 2) {
order.updated_at = "";
order.article_num = "";
if (type.value = "hospital") {
order.hospital_name = "desc";
dropTitle.value = "医院名称";
} else {
order.doctor_name = "asc";
dropTitle.value = "医生名称";
}
} else if (e == 3) {
order.updated_at = "";
if (type.value = "hospital") {
order.hospital_name = "";
} else {
order.doctor_name = "";
}
order.article_num = "desc";
dropTitle.value = "病例数";
}
orderFilter.value = e;
uDropdownRef.value.close();
paging.value.reload();
};
const formatdate = (date) => {
@@ -78,13 +119,16 @@ const _sfc_main = {
let searchForm = {
hospital_name: keyWord.value
};
if (!order.read_num) {
delete order.read_num;
if (!order.updated_at) {
delete order.updated_at;
}
if (!order.push_date) {
delete order.push_date;
if (!order.article_num) {
delete order.article_num;
}
if (order.read_num || order.push_date) {
if (!order.hospital_name) {
delete order.hospital_name;
}
if (order.updated_at || order.article_num || order.hospital_name) {
searchForm.order = order;
}
api_api.api.searchHospital({
@@ -101,13 +145,16 @@ const _sfc_main = {
let searchForm = {
doctor_name: keyWord.value
};
if (!order.read_num) {
delete order.read_num;
if (!order.updated_at) {
delete order.updated_at;
}
if (!order.push_date) {
delete order.push_date;
if (!order.article_num) {
delete order.article_num;
}
if (order.read_num || order.push_date) {
if (!order.doctor_name) {
delete order.doctor_name;
}
if (order.updated_at || order.article_num || order.doctor_name) {
searchForm.order = order;
}
api_api.api.searchDoctor({
@@ -139,15 +186,19 @@ const _sfc_main = {
});
};
const changeWord = (value) => {
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:262", value);
if (value) {
navName.value = value + "临床病例库";
keyWord.value = value;
dataList.value = [];
order.read_num = "";
order.push_date = "";
paging.value.reload();
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:329", value);
if (type.value == "hospital") {
navName.value = "医院临床病例库";
order.hospital_name = "";
} else {
navName.value = "医生临床病例库";
order.doctor_name = "";
}
keyWord.value = value;
dataList.value = [];
order.updated_at = "desc";
order.article_num = "";
paging.value.reload();
};
return (_ctx, _cache) => {
return {
@@ -157,17 +208,32 @@ const _sfc_main = {
navName: navName.value,
type: type.value
}),
c: common_vendor.o(change),
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(option.value, (item, k0, i0) => {
return {
a: "5d2f7987-5-" + i0 + ",5d2f7987-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.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
d: common_vendor.o(change),
e: common_vendor.o(($event) => orderFilter.value = $event),
f: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: orderFilter.value
}),
g: common_vendor.p({
title: dropTitle.value
}),
h: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", {
"k": "uDropdownRef"
}),
g: common_vendor.f(dataList.value, (item, index, i0) => {
i: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e(type.value == "hospital" ? {
a: common_vendor.t(item.basic_hospital.hospital_name)
} : {
@@ -181,24 +247,24 @@ const _sfc_main = {
};
}),
e: common_vendor.t(item.video_num + item.article_num),
f: "5d2f7987-4-" + i0 + ",5d2f7987-0",
f: "5d2f7987-6-" + i0 + ",5d2f7987-0",
g: common_vendor.t(formatdate(item.last_push_date)),
h: index,
i: common_vendor.o(($event) => type.value == "hospital" ? goDetail(item.basic_hospital.hospital_id, item.basic_hospital.hospital_name) : goDetail(item.case_clinical_doctor.doctor_id, item.case_clinical_doctor.doctor_name), index)
});
}),
h: type.value == "hospital",
i: common_vendor.p({
j: type.value == "hospital",
k: common_vendor.p({
src: common_vendor.unref(common_assets.arrowrightImg),
width: "32rpx",
height: "32rpx"
}),
j: common_vendor.sr(paging, "5d2f7987-0", {
l: common_vendor.sr(paging, "5d2f7987-0", {
"k": "paging"
}),
k: common_vendor.o(queryList),
l: common_vendor.o(($event) => dataList.value = $event),
m: common_vendor.p({
m: common_vendor.o(queryList),
n: common_vendor.o(($event) => dataList.value = $event),
o: 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 class="u-page data-v-5d2f7987"><z-paging wx:if="{{m}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{k}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-5d2f7987" bindchangeWord="{{a}}" u-i="5d2f7987-1,5d2f7987-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-5d2f7987"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-5d2f7987" u-r="uDropdownRef" u-i="5d2f7987-2,5d2f7987-0" bind:__l="__l"><up-dropdown-item wx:if="{{e}}" class="data-v-5d2f7987" bindchange="{{c}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-dropdown-item></up-dropdown></view></view><view class="listbox data-v-5d2f7987"><view wx:for="{{g}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{h}}" class="title ellipsis data-v-5d2f7987">{{item.a}}</view><view wx:else class="title ellipsis data-v-5d2f7987">{{item.b}}({{item.c}})</view><view class="tagsbox data-v-5d2f7987"><view wx:for="{{item.d}}" wx:for-item="tag" wx:key="b" class="tag data-v-5d2f7987">{{tag.a}}</view></view><view class="deal data-v-5d2f7987"><view class="left data-v-5d2f7987"><view class="count data-v-5d2f7987"> 病例数:{{item.e}}<up--image wx:if="{{i}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{i}}"></up--image></view></view><view class="time data-v-5d2f7987"><view class="num data-v-5d2f7987">更新时间:{{item.g}}</view></view></view></view></view></z-paging></view>
<view class="u-page data-v-5d2f7987"><z-paging wx:if="{{o}}" class="r data-v-5d2f7987" u-s="{{['top','d']}}" u-r="paging" bindquery="{{m}}" u-i="5d2f7987-0" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="top"><nav-bar-search wx:if="{{b}}" class="data-v-5d2f7987" bindchangeWord="{{a}}" u-i="5d2f7987-1,5d2f7987-0" bind:__l="__l" u-p="{{b}}"></nav-bar-search><view class="filterbox data-v-5d2f7987"><up-dropdown u-s="{{['d']}}" class="u-dropdown r data-v-5d2f7987" u-r="uDropdownRef" u-i="5d2f7987-2,5d2f7987-0" bind:__l="__l"><up-dropdown-item wx:if="{{g}}" class="data-v-5d2f7987" u-s="{{['d']}}" u-i="5d2f7987-3,5d2f7987-2" bind:__l="__l" u-p="{{g}}"><view class="dropcontent data-v-5d2f7987"><up-radio-group wx:if="{{f}}" class="data-v-5d2f7987" u-s="{{['d']}}" bindchange="{{d}}" u-i="5d2f7987-4,5d2f7987-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['column', 'data-v-5d2f7987', item.d]}}"><up-radio wx:if="{{item.b}}" class="data-v-5d2f7987" 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-5d2f7987"><view wx:for="{{i}}" wx:for-item="item" wx:key="h" class="item data-v-5d2f7987" bindtap="{{item.i}}"><view wx:if="{{j}}" class="title ellipsis data-v-5d2f7987">{{item.a}}</view><view wx:else class="title ellipsis data-v-5d2f7987">{{item.b}}({{item.c}})</view><view class="tagsbox data-v-5d2f7987"><view wx:for="{{item.d}}" wx:for-item="tag" wx:key="b" class="tag data-v-5d2f7987">{{tag.a}}</view></view><view class="deal data-v-5d2f7987"><view class="left data-v-5d2f7987"><view class="count data-v-5d2f7987"> 病例数:{{item.e}}<up--image wx:if="{{k}}" class="data-v-5d2f7987" u-i="{{item.f}}" bind:__l="__l" u-p="{{k}}"></up--image></view></view><view class="time data-v-5d2f7987"><view class="num data-v-5d2f7987">更新时间:{{item.g}}</view></view></view></view></view></z-paging></view>
@@ -23,6 +23,25 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.dropcontent.data-v-5d2f7987 {
padding-top: 40rpx;
padding-bottom: 20rpx;
background-color: #fff;
}
.dropcontent.data-v-5d2f7987 .u-radio {
margin-bottom: 6px !important;
margin-top: 16px !important;
}
.dropcontent .column.data-v-5d2f7987 {
padding: 0 30rpx;
border-top: 2rpx solid #e5e7eb;
}
.dropcontent .column.data-v-5d2f7987 .u-radio__text {
color: #333 !important;
}
.dropcontent .column.active.data-v-5d2f7987 .u-radio__text {
color: #3CC7C0 !important;
}
.databox.data-v-5d2f7987 {
height: 162rpx;
background: #ffffff;
@@ -58,6 +77,7 @@
}
.filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text {
font-size: 14px !important;
color: #3c9cff !important;
}
.filterbox .type.data-v-5d2f7987 {
position: absolute;
+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;