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
+192 -33
View File
@@ -5,21 +5,27 @@ const api_api = require("../../api/api.js");
const utils_navTo = require("../../utils/navTo.js");
if (!Array) {
const _easycom_navBarSearch2 = common_vendor.resolveComponent("navBarSearch");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
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_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
(_easycom_navBarSearch2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up__image2 + _easycom_up_icon2 + _easycom_z_paging2)();
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
(_easycom_navBarSearch2 + _easycom_up__image2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_popup2)();
}
const _easycom_navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.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_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
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_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_navBarSearch + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up__image + _easycom_up_icon + _easycom_z_paging)();
(_easycom_navBarSearch + _easycom_up__image + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_popup)();
}
const _sfc_main = {
__name: "specialList",
@@ -30,7 +36,7 @@ const _sfc_main = {
const dataList = common_vendor.ref([]);
const total = common_vendor.ref(0);
const keyWord = common_vendor.ref("");
const showNum = common_vendor.ref(false);
const showNum = common_vendor.ref(true);
const options = common_vendor.ref([
{
label: "正序",
@@ -45,6 +51,84 @@ const _sfc_main = {
read_num: "",
push_date: ""
});
const label_iden = common_vendor.ref("");
const showCase = common_vendor.ref(false);
common_vendor.ref(false);
const caseValue1 = common_vendor.ref("");
const caseValue2 = common_vendor.ref("");
const caseValue3 = common_vendor.ref("");
const level = common_vendor.ref(1);
const labelObj = common_vendor.reactive({
list1: [],
list2: [],
list3: []
});
const getCaseLabel = (lev, pid = 0) => {
api_api.api.getCaseLabel({
pId: pid
}).then((res) => {
if (lev == 1) {
labelObj.list1 = res.data.data;
} else if (lev == 2) {
labelObj.list2 = res.data.data;
} else if (lev == 3) {
labelObj.list3 = res.data.data;
}
level.value = lev;
});
};
const openCase = () => {
getCaseLabel(1, 0);
showCase.value = true;
};
const confirmCase = () => {
if (level.value == 1 && caseValue1.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 2 && caseValue2.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 3 && caseValue3.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
showCase.value = false;
if (level.value == 1) {
label_iden.value = caseValue1.value;
}
if (level.value == 2) {
label_iden.value = caseValue2.value;
}
if (level.value == 3) {
label_iden.value = caseValue3.value;
}
paging.value.reload();
};
const continueCase = () => {
if (level.value == 1 && caseValue1.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 2 && caseValue2.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 3 && caseValue3.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 1) {
getCaseLabel(2, caseValue1.value);
} else if (level.value == 2) {
getCaseLabel(3, caseValue2.value);
}
paging.value.reload();
};
const closeCase = () => {
showCase.value = false;
};
const formatdate = (date) => {
return common_vendor.dayjs(date).format("YYYY-MM-DD");
};
@@ -64,12 +148,12 @@ const _sfc_main = {
(_a = paging.value) == null ? void 0 : _a.refresh();
});
const changeDate = (e) => {
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:205", e);
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:368", e);
order.read_num = "";
paging.value.reload();
};
const changeRead = (e) => {
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:210", e);
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:373", e);
order.push_date = "";
paging.value.reload();
};
@@ -92,7 +176,7 @@ const _sfc_main = {
});
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:232", 666666);
common_vendor.index.__f__("log", "at pages/specialList/specialList.vue:395", 666666);
const params = {
page: pageNo,
page_size: pageSize
@@ -102,7 +186,8 @@ const _sfc_main = {
const searchList = async (params) => {
let searchForm = {
keyword: keyWord.value,
user_id: user_id.value
user_id: user_id.value,
label_iden: label_iden.value
};
if (Number(is_selected.value)) {
searchForm.is_selected = Number(is_selected.value);
@@ -110,6 +195,9 @@ const _sfc_main = {
if (!order.read_num) {
delete order.read_num;
}
if (!label_iden.value) {
delete searchForm.label_iden;
}
if (!order.push_date) {
delete order.push_date;
}
@@ -132,33 +220,39 @@ const _sfc_main = {
b: common_vendor.p({
navName: "肝胆相照精选病例交流"
}),
c: total.value > 0 && showNum.value
}, total.value > 0 && showNum.value ? common_vendor.e({
c: showNum.value
}, showNum.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(changeDate),
h: common_vendor.o(($event) => order.push_date = $event),
i: common_vendor.p({
g: common_vendor.p({
src: common_vendor.unref(common_assets.caseImg),
width: "31rpx",
height: "31rpx"
}),
h: common_vendor.o(openCase),
i: common_vendor.o(changeDate),
j: common_vendor.o(($event) => order.push_date = $event),
k: common_vendor.p({
title: "发布时间",
options: options.value,
modelValue: order.push_date
}),
j: common_vendor.o(changeRead),
k: common_vendor.o(($event) => order.read_num = $event),
l: common_vendor.p({
l: common_vendor.o(changeRead),
m: common_vendor.o(($event) => order.read_num = $event),
n: common_vendor.p({
title: "阅读量",
options: options.value,
modelValue: order.read_num
}),
m: common_vendor.sr("uDropdownRef", "b2cb78f4-2,b2cb78f4-0"),
n: common_vendor.f(dataList.value, (item, k0, i0) => {
o: common_vendor.sr("uDropdownRef", "b2cb78f4-3,b2cb78f4-0"),
p: common_vendor.f(dataList.value, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(item.exchange_title),
b: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
c: "b2cb78f4-5-" + i0 + ",b2cb78f4-0",
c: "b2cb78f4-6-" + i0 + ",b2cb78f4-0",
d: common_vendor.p({
src: item.avatar ? item.avatar : common_vendor.unref(common_assets.headImg),
width: "46rpx",
@@ -174,7 +268,7 @@ const _sfc_main = {
}, item.exchange_content_image && item.exchange_content_image.length > 0 ? {
k: common_vendor.f(item.exchange_content_image, (unit, k1, i1) => {
return {
a: "b2cb78f4-6-" + i0 + "-" + i1 + ",b2cb78f4-0",
a: "b2cb78f4-7-" + i0 + "-" + i1 + ",b2cb78f4-0",
b: common_vendor.p({
src: unit,
radius: "10",
@@ -205,48 +299,113 @@ const _sfc_main = {
}),
q: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id)
} : {}, {
r: "b2cb78f4-7-" + i0 + ",b2cb78f4-0",
r: "b2cb78f4-8-" + i0 + ",b2cb78f4-0",
s: common_vendor.t(item.read_num),
t: "b2cb78f4-8-" + i0 + ",b2cb78f4-0",
t: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
v: common_vendor.t(item.collect_num),
w: "b2cb78f4-9-" + i0 + ",b2cb78f4-0",
w: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
x: common_vendor.t(item.comment_num),
y: "b2cb78f4-10-" + i0 + ",b2cb78f4-0",
y: "b2cb78f4-11-" + i0 + ",b2cb78f4-0",
z: common_vendor.t(formatdate(item.push_date)),
A: common_vendor.o(($event) => goDetail(item.exchange_id), item.exchange_id),
B: item.exchange_id
});
}),
o: common_vendor.p({
q: common_vendor.p({
name: "eye",
color: "#4B5563",
size: "28rpx"
}),
p: common_vendor.p({
r: common_vendor.p({
name: "heart",
color: "#4B5563",
size: "28rpx"
}),
q: common_vendor.p({
s: common_vendor.p({
name: "chat",
color: "#4B5563",
size: "28rpx"
}),
r: common_vendor.p({
t: common_vendor.p({
name: "clock",
color: "#4B5563",
size: "28rpx"
}),
s: common_vendor.sr(paging, "b2cb78f4-0", {
v: common_vendor.sr(paging, "b2cb78f4-0", {
"k": "paging"
}),
t: common_vendor.o(queryList),
v: common_vendor.o(($event) => dataList.value = $event),
w: common_vendor.p({
w: common_vendor.o(queryList),
x: common_vendor.o(($event) => dataList.value = $event),
y: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
modelValue: dataList.value
}),
z: common_vendor.o(($event) => showCase.value = false),
A: common_vendor.o(continueCase),
B: level.value != 3,
C: common_vendor.o(confirmCase),
D: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "b2cb78f4-14-" + i0 + ",b2cb78f4-13",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
E: common_vendor.o(($event) => caseValue1.value = $event),
F: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.value
}),
G: level.value == 1,
H: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "b2cb78f4-16-" + i0 + ",b2cb78f4-15",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
I: common_vendor.o(($event) => caseValue2.value = $event),
J: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.value
}),
K: level.value == 2,
L: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "b2cb78f4-18-" + i0 + ",b2cb78f4-17",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
name: item.app_iden
}),
c: item.app_iden
};
}),
M: common_vendor.o(($event) => caseValue3.value = $event),
N: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.value
}),
O: level.value == 3,
P: common_vendor.o(closeCase),
Q: common_vendor.p({
round: 10,
zIndex: "9",
show: showCase.value,
mode: "bottom"
})
});
};
@@ -3,10 +3,13 @@
"navigationStyle": "custom",
"usingComponents": {
"nav-bar-search": "../../components/navBarSearch/navBarSearch",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
"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",
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"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-popup": "../../node-modules/uview-plus/components/u-popup/u-popup"
}
}
File diff suppressed because one or more lines are too long
@@ -73,7 +73,7 @@
.upage.data-v-b2cb78f4 .u-dropdown__menu {
background: #fff;
z-index: 1;
margin-left: 0rpx;
margin-left: 160rpx;
}
.upage.data-v-b2cb78f4 .u-dropdown__menu__item {
height: 74rpx;
@@ -234,4 +234,127 @@
margin-top: 18rpx;
font-size: 28rpx;
color: #4b5563;
}
.casesdown.data-v-b2cb78f4 {
font-size: 14px;
color: #606266;
position: absolute;
left: 30rpx;
top: 24rpx;
display: flex;
justify-content: center;
align-items: center;
background: #F3F4F6;
border-radius: 15rpx;
height: 74rpx;
padding: 0 25rpx;
z-index: 2;
}
.votepop .confirm.data-v-b2cb78f4 {
margin: 39rpx 30rpx 0;
height: 92rpx;
background: #3cc7c0;
border-radius: 15rpx;
display: flex;
align-items: center;
font-size: 31rpx;
color: #ffffff;
justify-content: center;
}
.votepop .del.data-v-b2cb78f4 {
margin: 30rpx 30rpx 30rpx;
height: 92rpx;
background: #fff;
border-radius: 15rpx;
font-size: 31rpx;
color: #666666;
display: flex;
align-items: center;
justify-content: center;
}
.votepop .tips.data-v-b2cb78f4 {
margin-top: 30rpx;
font-size: 27rpx;
color: #9ca3af;
line-height: 38rpx;
padding: 0 30rpx;
}
.votepop .add.data-v-b2cb78f4 {
margin: 0 30rpx;
display: flex;
align-items: center;
height: 92rpx;
justify-content: center;
background: #f5f5f5;
border-radius: 15rpx;
font-size: 31rpx;
color: #4b5563;
}
.votepop .add .desc.data-v-b2cb78f4 {
margin-left: 10rpx;
}
.votepop .titlebox.data-v-b2cb78f4 {
padding: 0 30rpx;
margin: 0 !important;
height: 86rpx;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #f3f4f6;
}
.votepop .titlebox .left.data-v-b2cb78f4 {
font-size: 31rpx;
color: #4b5563;
}
.votepop .titlebox .right.data-v-b2cb78f4 {
font-size: 31rpx;
color: #3cc7c0;
}
.votepop .votecon.data-v-b2cb78f4 {
max-height: calc(100vh - 530rpx);
overflow-y: scroll;
}
.votepop .votecon .row.data-v-b2cb78f4 {
display: flex;
align-items: center;
}
.votepop .votecon .row .iconbox.data-v-b2cb78f4 {
margin-left: 15rpx;
align-items: center;
}
.votepop .votecon .titlebox.data-v-b2cb78f4 {
border: none;
margin: 30rpx 0 20rpx !important;
}
.votepop .votecon .titlebox .title.data-v-b2cb78f4 {
font-size: 31rpx;
color: #111827;
}
.votepop .votecon .titlebox .desc.data-v-b2cb78f4 {
font-size: 27rpx;
color: #9ca3af;
}
.casepop.data-v-b2cb78f4 {
display: flex;
flex-direction: column;
max-height: calc(100vh - 400rpx);
}
.casepop .continue.data-v-b2cb78f4 {
color: #2878ff !important;
}
.casecon.data-v-b2cb78f4 {
flex: 1;
max-height: calc(100vh - 800rpx);
overflow-y: scroll;
padding-top: 22rpx;
padding-bottom: 20rpx;
min-height: 350rpx;
}
.casecon.data-v-b2cb78f4 .u-radio {
margin-bottom: 10px !important;
margin-top: 0px !important;
}
.casecon .column.data-v-b2cb78f4 {
padding: 0 30rpx;
border-bottom: 2rpx solid #e5e7eb;
}