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

View File

@ -72,8 +72,10 @@ watch(()=>props.type,(newVal)=>{
placeholder.value='输入医生姓名' placeholder.value='输入医生姓名'
}else if(newVal==='hospital'){ }else if(newVal==='hospital'){
placeholder.value='输入医院名称' placeholder.value='输入医院名称'
}else if(newVal==='video' || newVal==='article' || newVal==='case' ){ }else if(newVal==='video' || newVal==='article' ){
placeholder.value='搜索疾病、症状、医院' placeholder.value='搜索疾病、症状、医院'
}else if(newVal==='case'){
placeholder.value='请输入疾病名称'
} }
},{immediate: true }) },{immediate: true })
@ -154,6 +156,7 @@ const search=()=>{
.name { .name {
margin-left: 16rpx; margin-left: 16rpx;
font-size: 30rpx; font-size: 30rpx;
margin-right: 157rpx;
color: #111827; color: #111827;
position: relative; position: relative;
.navbg{ .navbg{

View File

@ -30,8 +30,8 @@
<view class="desc" v-if="!hideType">检索到:<text class="red">{{searchInfo.search_video_num}}个视频</text></view> <view class="desc" v-if="!hideType">检索到:<text class="red">{{searchInfo.search_video_num}}个视频</text></view>
<view class="desc" v-if="keyWord">检索词:<text class="red">{{ keyWord }}</text></view> <view class="desc" v-if="keyWord">检索词:<text class="red">{{ keyWord }}</text></view>
</view> </view>
<view class="filterbox" :class="{active:canOpenCase,'on':hideType}"> <view class="filterbox" :class="{active:canOpenCase,'on':hideType,'isCase':isCase}">
<view class="type" v-if="!hideType" @click="swicthType">{{!isArticle?'视频':'文章'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view> <view class="type" v-if="!hideType && !isCase" @click="swicthType">{{!isArticle?'视频':'文章'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view>
<view class="casesdown" @click="openCase" v-if="canOpenCase">筛选<up--image :src="caseImg" width="31rpx" height="31rpx"></up--image></view> <view class="casesdown" @click="openCase" v-if="canOpenCase">筛选<up--image :src="caseImg" width="31rpx" height="31rpx"></up--image></view>
<up-dropdown class="u-dropdown" ref="uDropdownRef"> <up-dropdown class="u-dropdown" ref="uDropdownRef">
<up-dropdown-item <up-dropdown-item
@ -237,6 +237,7 @@ const hideType=ref(false)
const dropTitle=ref('发布时间'); const dropTitle=ref('发布时间');
const orderFilter=ref('1') const orderFilter=ref('1')
const uDropdownRef=ref(null); const uDropdownRef=ref(null);
const isCase=ref(false);
const options= ref([ const options= ref([
{ {
label: "发布时间", label: "发布时间",
@ -434,7 +435,9 @@ onLoad((options) => {
if(options.case_id){ if(options.case_id){
label_iden.value=options.case_id; label_iden.value=options.case_id;
navName.value= options.case_name+'临床病例库' navName.value= options.case_name+'临床病例库'
getStaticSick(label_iden.value) getStaticSick(label_iden.value);
//isCase.value=true;
//console.log(111113)
}else{ }else{
canOpenCase.value = true; canOpenCase.value = true;
} }
@ -809,7 +812,7 @@ const queryList = (pageNo, pageSize) => {
:deep(.u-dropdown__menu){ :deep(.u-dropdown__menu){
background: #fff; background: #fff;
z-index:1; z-index:1;
margin-left: 160rpx; margin-left: 150rpx;
} }
:deep(.u-dropdown__menu__item__text){ :deep(.u-dropdown__menu__item__text){
@ -931,6 +934,14 @@ const queryList = (pageNo, pageSize) => {
} }
} }
.filterbox.isCase{
:deep(.u-dropdown__menu){
background: #fff;
z-index:1;
margin-left: -30rpx;
}
}
.u-page { .u-page {
.deal { .deal {

View File

@ -33,19 +33,42 @@
<!-- <view class="type" @click="swicthType">{{!isArticle?'文章':'视频'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view> --> <!-- <view class="type" @click="swicthType">{{!isArticle?'文章':'视频'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view> -->
<up-dropdown class="u-dropdown" ref="uDropdownRef"> <up-dropdown class="u-dropdown" ref="uDropdownRef">
<up-dropdown-item <up-dropdown-item
v-model="order.push_date"
title="发布时间" :title="dropTitle"
>
<view class="dropcontent">
<up-radio-group
@change="change" @change="change"
:options="options" v-model="orderFilter"
></up-dropdown-item> iconPlacement="right"
placement="column"
>
<view
class="column"
v-for="item in option"
:key="item.value"
:class="[orderFilter==item.value?'active':'']"
>
<up-radio
activeColor="#3CC7C0"
:label="item.label"
:name="item.value"
></up-radio>
</view>
</up-radio-group>
</view>
</up-dropdown-item>
<!-- <up-dropdown-item <!-- <up-dropdown-item
v-model="order.read_num" v-model="order.read_num"
title="阅读量" title="阅读量"
@change="change" @change="changeRead"
:options="options" :options="options"
></up-dropdown-item> --> ></up-dropdown-item> -->
</up-dropdown> </up-dropdown>
</view> </view>
</template> </template>
<view class="listbox"> <view class="listbox">
@ -91,25 +114,30 @@ const keyWord = ref("");
const isArticle=ref(true) const isArticle=ref(true)
const type=ref('doctor') const type=ref('doctor')
const navName=ref('医生临床病例库'); const navName=ref('医生临床病例库');
const options= ref([ const orderFilter=ref(1);
const dropTitle=ref('更新时间')
const option= ref([
{ {
label: "正序", label: "更新时间",
value: 'asc', value: '1',
}, },
{ {
label: "倒序", label: "医生名称",
value: 'desc', value: '2',
},
{
label: "病例数",
value: '3',
}, },
]); ]);
const order=reactive({ const order=reactive({
read_num:'', updated_at:'desc'
push_date:''
}) })
onLoad((options) => { onLoad((options) => {
if(options.type=='hospital'){ if(options.type=='hospital'){
type.value ='hospital'; type.value ='hospital';
(option.value)[1].label="医院名称"
} }
keyWord.value=options.name; keyWord.value=options.name;
if(options.name){ if(options.name){
@ -129,6 +157,39 @@ onShow(()=>{
paging.value?.refresh(); paging.value?.refresh();
}) })
const change=(e)=>{ 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(); paging.value.reload();
} }
const formatdate=(date)=>{ const formatdate=(date)=>{
@ -193,13 +254,16 @@ const searchHospital = async(params) => {
let searchForm={ let searchForm={
hospital_name: keyWord.value, hospital_name: keyWord.value,
} }
if(!order.read_num){ if(!order.updated_at){
delete order.read_num delete order.updated_at
} }
if(!order.push_date){ if(!order.article_num){
delete order.push_date 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 searchForm.order=order
} }
api.searchHospital({ api.searchHospital({
@ -216,13 +280,16 @@ const searchDoctor = async(params) => {
let searchForm={ let searchForm={
doctor_name: keyWord.value, doctor_name: keyWord.value,
} }
if(!order.read_num){ if(!order.updated_at){
delete order.read_num delete order.updated_at
} }
if(!order.push_date){ if(!order.article_num){
delete order.push_date 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 searchForm.order=order
} }
api.searchDoctor({ api.searchDoctor({
@ -260,20 +327,49 @@ const goDetail=(id,name)=>{
*/ */
const changeWord=(value)=>{ const changeWord=(value)=>{
console.log(value); console.log(value);
if(value){
navName.value=value+'临床病例库'; if(type.value=='hospital'){
navName.value='医院临床病例库';
order.hospital_name='';
}else{
navName.value='医生临床病例库';
order.doctor_name='';
}
keyWord.value=value; keyWord.value=value;
dataList.value=[]; dataList.value=[];
order.read_num=''; order.updated_at='desc';
order.push_date=''; order.article_num='';
paging.value.reload(); paging.value.reload();
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.dropcontent{
padding-top: 40rpx;
padding-bottom: 20rpx;
background-color: #fff;
:deep(.u-radio){
margin-bottom: 6px!important;
margin-top: 16px!important;
}
.column {
padding: 0 30rpx;
border-top: 2rpx solid #e5e7eb;
:deep(.u-radio__text){
color: #333 !important;
}
}
.column.active{
:deep(.u-radio__text){
color: #3CC7C0 !important;
}
}
}
.databox { .databox {
height: 162rpx; height: 162rpx;
background: #ffffff; background: #ffffff;
@ -311,6 +407,7 @@ const changeWord=(value)=>{
position: relative; position: relative;
:deep(.u-dropdown__menu__item__text){ :deep(.u-dropdown__menu__item__text){
font-size: 14px!important; font-size: 14px!important;
color:rgb(60, 156, 255)!important;
} }
.type{ .type{
position: absolute; position: absolute;

View File

@ -33,25 +33,42 @@
<!-- <view class="type" @click="swicthType">{{!isArticle?'文章':'视频'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view> --> <!-- <view class="type" @click="swicthType">{{!isArticle?'文章':'视频'}}<up--image :src="switchImg" width="31rpx" height="31rpx"></up--image></view> -->
<up-dropdown class="u-dropdown" ref="uDropdownRef"> <up-dropdown class="u-dropdown" ref="uDropdownRef">
<up-dropdown-item <up-dropdown-item
v-model="order.push_date"
title="发布时间" :title="dropTitle"
>
<view class="dropcontent">
<up-radio-group
@change="changeDate" @change="changeDate"
:options="options" v-model="orderFilter"
></up-dropdown-item> iconPlacement="right"
<up-dropdown-item placement="column"
v-model="order.article_num" >
title="文章数量" <view
@change="changeRead" class="column"
:options="options" v-for="item in options"
></up-dropdown-item> :key="item.value"
:class="[orderFilter==item.value?'active':'']"
>
<up-radio
activeColor="#3CC7C0"
:label="item.label"
:name="item.value"
></up-radio>
</view>
</up-radio-group>
</view>
</up-dropdown-item>
<!-- <up-dropdown-item <!-- <up-dropdown-item
v-model="order.article_num" v-model="order.read_num"
title="阅读量" title="阅读量"
@change="change" @change="changeRead"
:options="options" :options="options"
></up-dropdown-item> --> ></up-dropdown-item> -->
</up-dropdown> </up-dropdown>
</view> </view>
</template> </template>
<view class="listbox"> <view class="listbox">
@ -96,22 +113,26 @@ const value = ref("");
const keyWord = ref(""); const keyWord = ref("");
const isArticle=ref(true) const isArticle=ref(true)
const type=ref('doctor') const type=ref('doctor')
const dropTitle=ref('更新时间');
const navName=ref('疾病临床病例库'); const navName=ref('疾病临床病例库');
const orderFilter=ref(1);
const options= ref([ const options= ref([
{ {
label: "正序", label: "更新时间",
value: 'asc', value: '1',
}, },
{ {
label: "倒序", label: "疾病名称",
value: 'desc', value: '2',
},
{
label: "病例数",
value: '3',
}, },
]); ]);
const order=reactive({ const order=reactive({
article_num:'', updated_at:'desc'
push_date:''
}) })
onLoad((options) => { onLoad((options) => {
@ -136,15 +157,27 @@ onShow(()=>{
paging.value?.refresh(); paging.value?.refresh();
}) })
const changeDate=(e)=>{ const changeDate=(e)=>{
console.log(e); if(e==1){
order.updated_at='desc';
order.label_name='';
order.article_num=''; 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(); paging.value.reload();
} }
const changeRead=(e)=>{
console.log(e);
order.push_date=''
paging.value.reload();
}
const formatdate=(date)=>{ const formatdate=(date)=>{
return dayjs(date).format('YYYY-MM-DD') return dayjs(date).format('YYYY-MM-DD')
} }
@ -156,10 +189,13 @@ const searchList = async(params) => {
if(!order.article_num){ if(!order.article_num){
delete order.article_num delete order.article_num
} }
if(!order.push_date){ if(!order.updated_at){
delete order.push_date 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 searchForm.order=order
} }
api.getSearchLabel({ api.getSearchLabel({
@ -191,20 +227,41 @@ const goDetail=(id,name)=>{
* @param value 输入的关键词 * @param value 输入的关键词
*/ */
const changeWord=(value)=>{ const changeWord=(value)=>{
console.log(value); navName.value='疾病临床病例库';
if(value){
navName.value=value+'临床病例库';
keyWord.value=value; keyWord.value=value;
dataList.value=[]; dataList.value=[];
order.updated_at='desc';
order.article_num=''; order.article_num='';
order.push_date=''; order.label_name='';
paging.value.reload(); paging.value.reload();
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.dropcontent{
padding-top: 40rpx;
padding-bottom: 20rpx;
background-color: #fff;
:deep(.u-radio){
margin-bottom: 6px!important;
margin-top: 16px!important;
}
.column {
padding: 0 30rpx;
border-top: 2rpx solid #e5e7eb;
:deep(.u-radio__text){
color: #333 !important;
}
}
.column.active{
:deep(.u-radio__text){
color: #3CC7C0 !important;
}
}
}
.votepop { .votepop {
.confirm { .confirm {
margin: 39rpx 30rpx 0; margin: 39rpx 30rpx 0;
@ -377,6 +434,10 @@ const changeWord=(value)=>{
margin-left:0rpx; margin-left:0rpx;
} }
:deep(.u-dropdown__menu__item__text){
font-size: 14px!important;
color:rgb(60, 156, 255)!important;
}
:deep(.u-dropdown__menu__item){ :deep(.u-dropdown__menu__item){
height:74rpx; height:74rpx;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7319,7 +7319,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "192.168.100.165,127.0.0.1"; const hosts = "192.168.100.165,127.0.0.1";
const port = "8090"; const port = "8090";
const id = "mp-weixin_4_6CBK"; const id = "mp-weixin_mYQj0H";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -41,8 +41,10 @@ const _sfc_main = {
placeholder.value = "输入医生姓名"; placeholder.value = "输入医生姓名";
} else if (newVal === "hospital") { } else if (newVal === "hospital") {
placeholder.value = "输入医院名称"; placeholder.value = "输入医院名称";
} else if (newVal === "video" || newVal === "article" || newVal === "case") { } else if (newVal === "video" || newVal === "article") {
placeholder.value = "搜索疾病、症状、医院"; placeholder.value = "搜索疾病、症状、医院";
} else if (newVal === "case") {
placeholder.value = "请输入疾病名称";
} }
}, { immediate: true }); }, { immediate: true });
common_vendor.watch(() => props.searchWord, (newVal) => { common_vendor.watch(() => props.searchWord, (newVal) => {

View File

@ -52,6 +52,7 @@
.namebox .name.data-v-4eb3cf28 { .namebox .name.data-v-4eb3cf28 {
margin-left: 16rpx; margin-left: 16rpx;
font-size: 30rpx; font-size: 30rpx;
margin-right: 157rpx;
color: #111827; color: #111827;
position: relative; position: relative;
} }

View File

@ -53,6 +53,7 @@ const _sfc_main = {
const dropTitle = common_vendor.ref("发布时间"); const dropTitle = common_vendor.ref("发布时间");
const orderFilter = common_vendor.ref("1"); const orderFilter = common_vendor.ref("1");
const uDropdownRef = common_vendor.ref(null); const uDropdownRef = common_vendor.ref(null);
const isCase = common_vendor.ref(false);
const options = common_vendor.ref([ const options = common_vendor.ref([
{ {
label: "发布时间", label: "发布时间",
@ -262,7 +263,7 @@ const _sfc_main = {
return common_vendor.dayjs(date).format("YYYY-MM-DD"); return common_vendor.dayjs(date).format("YYYY-MM-DD");
}; };
const goDetail = (id, isLink, src) => { 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) { if (isLink == 1) {
utils_navTo.navTo({ utils_navTo.navTo({
url: `/pages/web/web?src=${src}` url: `/pages/web/web?src=${src}`
@ -400,7 +401,7 @@ const _sfc_main = {
}); });
}; };
const queryList = (pageNo, pageSize) => { 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 = { const params = {
page: pageNo, page: pageNo,
page_size: pageSize page_size: pageSize
@ -431,8 +432,8 @@ const _sfc_main = {
}, keyWord.value ? { }, keyWord.value ? {
l: common_vendor.t(keyWord.value) l: common_vendor.t(keyWord.value)
} : {}) : {}, { } : {}) : {}, {
m: !hideType.value m: !hideType.value && !isCase.value
}, !hideType.value ? { }, !hideType.value && !isCase.value ? {
n: common_vendor.t(!isArticle.value ? "视频" : "文章"), n: common_vendor.t(!isArticle.value ? "视频" : "文章"),
o: common_vendor.p({ o: common_vendor.p({
src: common_vendor.unref(common_assets.switchImg), src: common_vendor.unref(common_assets.switchImg),
@ -477,7 +478,8 @@ const _sfc_main = {
}), }),
A: canOpenCase.value ? 1 : "", A: canOpenCase.value ? 1 : "",
B: hideType.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({ return common_vendor.e({
a: common_vendor.t(isArticle.value ? item.article_title : item.video_title), a: common_vendor.t(isArticle.value ? item.article_title : item.video_title),
b: common_vendor.f(item.author, (tag, k1, i1) => { 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) 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", name: "eye",
color: "#6B7280", color: "#6B7280",
size: "28rpx" size: "28rpx"
}), }),
E: common_vendor.p({ F: common_vendor.p({
name: "clock", name: "clock",
color: "#6B7280", color: "#6B7280",
size: "28rpx" size: "28rpx"
}), }),
F: common_vendor.sr(paging, "c10c040c-0", { G: common_vendor.sr(paging, "c10c040c-0", {
"k": "paging" "k": "paging"
}), }),
G: common_vendor.o(queryList), H: common_vendor.o(queryList),
H: common_vendor.o(($event) => dataList.value = $event), I: common_vendor.o(($event) => dataList.value = $event),
I: common_vendor.p({ J: common_vendor.p({
["inside-more"]: true, ["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!", ["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true, ["auto-show-back-to-top"]: true,
modelValue: dataList.value modelValue: dataList.value
}), }),
J: common_vendor.o(cancelCase), K: common_vendor.o(cancelCase),
K: common_vendor.o(confirmCase), L: common_vendor.o(confirmCase),
L: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name), M: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
M: common_vendor.p({ N: common_vendor.p({
name: "arrow-right" name: "arrow-right"
}), }),
N: common_vendor.o(($event) => openCaseLevel("1")), O: common_vendor.o(($event) => openCaseLevel("1")),
O: caseValue1.name && labelObj.list2.length > 0 P: caseValue1.name && labelObj.list2.length > 0
}, caseValue1.name && labelObj.list2.length > 0 ? { }, caseValue1.name && labelObj.list2.length > 0 ? {
P: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name), Q: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
Q: common_vendor.p({ R: common_vendor.p({
name: "arrow-right" 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 ? { }, caseValue2.name && labelObj.list3.length > 0 ? {
T: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name), U: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
U: common_vendor.p({ V: common_vendor.p({
name: "arrow-right" name: "arrow-right"
}), }),
V: common_vendor.o(($event) => openCaseLevel("3")) W: common_vendor.o(($event) => openCaseLevel("3"))
} : {}, { } : {}, {
W: freshKey.value, X: freshKey.value,
X: common_vendor.p({ Y: common_vendor.p({
current: level.value - 1, current: level.value - 1,
direction: "column" direction: "column"
}), }),
Y: common_vendor.f(labelObj.list1, (item, k0, i0) => { Z: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return { return {
a: "c10c040c-20-" + i0 + ",c10c040c-19", a: "c10c040c-20-" + i0 + ",c10c040c-19",
b: common_vendor.p({ b: common_vendor.p({
@ -564,16 +566,16 @@ const _sfc_main = {
c: item.app_iden c: item.app_iden
}; };
}), }),
Z: common_vendor.o(groupChange1), aa: common_vendor.o(groupChange1),
aa: common_vendor.o(($event) => caseValue1.value = $event), ab: common_vendor.o(($event) => caseValue1.value = $event),
ab: common_vendor.p({ ac: common_vendor.p({
name: "group1", name: "group1",
iconPlacement: "right", iconPlacement: "right",
placement: "column", placement: "column",
modelValue: caseValue1.value modelValue: caseValue1.value
}), }),
ac: level.value == 1, ad: level.value == 1,
ad: common_vendor.f(labelObj.list2, (item, k0, i0) => { ae: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return { return {
a: "c10c040c-22-" + i0 + ",c10c040c-21", a: "c10c040c-22-" + i0 + ",c10c040c-21",
b: common_vendor.p({ b: common_vendor.p({
@ -584,16 +586,16 @@ const _sfc_main = {
c: item.app_iden c: item.app_iden
}; };
}), }),
ae: common_vendor.o(groupChange2), af: common_vendor.o(groupChange2),
af: common_vendor.o(($event) => caseValue2.value = $event), ag: common_vendor.o(($event) => caseValue2.value = $event),
ag: common_vendor.p({ ah: common_vendor.p({
name: "group2", name: "group2",
iconPlacement: "right", iconPlacement: "right",
placement: "column", placement: "column",
modelValue: caseValue2.value modelValue: caseValue2.value
}), }),
ah: level.value == 2, ai: level.value == 2,
ai: common_vendor.f(labelObj.list3, (item, k0, i0) => { aj: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return { return {
a: "c10c040c-24-" + i0 + ",c10c040c-23", a: "c10c040c-24-" + i0 + ",c10c040c-23",
b: common_vendor.p({ b: common_vendor.p({
@ -604,17 +606,17 @@ const _sfc_main = {
c: item.app_iden c: item.app_iden
}; };
}), }),
aj: common_vendor.o(groupChange3), ak: common_vendor.o(groupChange3),
ak: common_vendor.o(($event) => caseValue3.value = $event), al: common_vendor.o(($event) => caseValue3.value = $event),
al: common_vendor.p({ am: common_vendor.p({
name: "group3", name: "group3",
iconPlacement: "right", iconPlacement: "right",
placement: "column", placement: "column",
modelValue: caseValue3.value modelValue: caseValue3.value
}), }),
am: level.value == 3, an: level.value == 3,
an: common_vendor.o(closeCase), ao: common_vendor.o(closeCase),
ao: common_vendor.p({ ap: common_vendor.p({
round: 10, round: 10,
zIndex: "9", zIndex: "9",
closeOnClickOverlay: false, closeOnClickOverlay: false,

File diff suppressed because one or more lines are too long

View File

@ -203,7 +203,7 @@
.filterbox.data-v-c10c040c .u-dropdown__menu { .filterbox.data-v-c10c040c .u-dropdown__menu {
background: #fff; background: #fff;
z-index: 1; z-index: 1;
margin-left: 160rpx; margin-left: 150rpx;
} }
.filterbox.data-v-c10c040c .u-dropdown__menu__item__text { .filterbox.data-v-c10c040c .u-dropdown__menu__item__text {
font-size: 14px !important; font-size: 14px !important;
@ -312,6 +312,11 @@
z-index: 1; z-index: 1;
margin-left: 170rpx; 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 { .u-page .deal.data-v-c10c040c {
margin-top: 20rpx; margin-top: 20rpx;
display: flex; display: flex;

View File

@ -4,18 +4,22 @@ const api_api = require("../../api/api.js");
const utils_navTo = require("../../utils/navTo.js"); const utils_navTo = require("../../utils/navTo.js");
const common_assets = require("../../common/assets.js"); const common_assets = require("../../common/assets.js");
if (!Array) { 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_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown"); const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image"); const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging"); 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_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_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__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"; const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) { 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 navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _sfc_main = { const _sfc_main = {
@ -30,35 +34,41 @@ const _sfc_main = {
common_vendor.ref(true); common_vendor.ref(true);
const type = common_vendor.ref("doctor"); const type = common_vendor.ref("doctor");
const navName = common_vendor.ref("医生临床病例库"); 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: "正序", label: "更新时间",
value: "asc" value: "1"
}, },
{ {
label: "倒序", label: "医生名称",
value: "desc" value: "2"
},
{
label: "病例数",
value: "3"
} }
]); ]);
const order = common_vendor.reactive({ const order = common_vendor.reactive({
read_num: "", updated_at: "desc"
push_date: ""
}); });
common_vendor.onLoad((options2) => { common_vendor.onLoad((options) => {
if (options2.type == "hospital") { if (options.type == "hospital") {
type.value = "hospital"; type.value = "hospital";
option.value[1].label = "医院名称";
} }
keyWord.value = options2.name; keyWord.value = options.name;
if (options2.name) { if (options.name) {
navName.value = options2.name + "临床病例库"; navName.value = options.name + "临床病例库";
} }
if ((options2.name = "医生") && !options2.id) { if ((options.name = "医生") && !options.id) {
keyWord.value = ""; keyWord.value = "";
} }
if (options2.order == "new") { if (options.order == "new") {
order.push_date = "asc"; order.push_date = "asc";
} }
if (options2.order == "read") { if (options.order == "read") {
order.read_num = "desc"; order.read_num = "desc";
} }
}); });
@ -67,6 +77,37 @@ const _sfc_main = {
(_a = paging.value) == null ? void 0 : _a.refresh(); (_a = paging.value) == null ? void 0 : _a.refresh();
}); });
const change = (e) => { 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(); paging.value.reload();
}; };
const formatdate = (date) => { const formatdate = (date) => {
@ -78,13 +119,16 @@ const _sfc_main = {
let searchForm = { let searchForm = {
hospital_name: keyWord.value hospital_name: keyWord.value
}; };
if (!order.read_num) { if (!order.updated_at) {
delete order.read_num; delete order.updated_at;
} }
if (!order.push_date) { if (!order.article_num) {
delete order.push_date; 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; searchForm.order = order;
} }
api_api.api.searchHospital({ api_api.api.searchHospital({
@ -101,13 +145,16 @@ const _sfc_main = {
let searchForm = { let searchForm = {
doctor_name: keyWord.value doctor_name: keyWord.value
}; };
if (!order.read_num) { if (!order.updated_at) {
delete order.read_num; delete order.updated_at;
} }
if (!order.push_date) { if (!order.article_num) {
delete order.push_date; 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; searchForm.order = order;
} }
api_api.api.searchDoctor({ api_api.api.searchDoctor({
@ -139,15 +186,19 @@ const _sfc_main = {
}); });
}; };
const changeWord = (value) => { const changeWord = (value) => {
common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:262", value); common_vendor.index.__f__("log", "at pages/searchList/searchList.vue:329", value);
if (value) { if (type.value == "hospital") {
navName.value = value + "临床病例库"; navName.value = "医院临床病例库";
order.hospital_name = "";
} else {
navName.value = "医生临床病例库";
order.doctor_name = "";
}
keyWord.value = value; keyWord.value = value;
dataList.value = []; dataList.value = [];
order.read_num = ""; order.updated_at = "desc";
order.push_date = ""; order.article_num = "";
paging.value.reload(); paging.value.reload();
}
}; };
return (_ctx, _cache) => { return (_ctx, _cache) => {
return { return {
@ -157,17 +208,32 @@ const _sfc_main = {
navName: navName.value, navName: navName.value,
type: type.value type: type.value
}), }),
c: common_vendor.o(change), c: common_vendor.f(option.value, (item, k0, i0) => {
d: common_vendor.o(($event) => order.push_date = $event), return {
e: common_vendor.p({ a: "5d2f7987-5-" + i0 + ",5d2f7987-4",
title: "发布时间", b: common_vendor.p({
options: options.value, activeColor: "#3CC7C0",
modelValue: order.push_date label: item.label,
name: item.value
}), }),
f: common_vendor.sr(uDropdownRef, "5d2f7987-2,5d2f7987-0", { c: item.value,
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
};
}),
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" "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" ? { return common_vendor.e(type.value == "hospital" ? {
a: common_vendor.t(item.basic_hospital.hospital_name) 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), 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)), g: common_vendor.t(formatdate(item.last_push_date)),
h: index, 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) 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", j: type.value == "hospital",
i: common_vendor.p({ k: common_vendor.p({
src: common_vendor.unref(common_assets.arrowrightImg), src: common_vendor.unref(common_assets.arrowrightImg),
width: "32rpx", width: "32rpx",
height: "32rpx" height: "32rpx"
}), }),
j: common_vendor.sr(paging, "5d2f7987-0", { l: common_vendor.sr(paging, "5d2f7987-0", {
"k": "paging" "k": "paging"
}), }),
k: common_vendor.o(queryList), m: common_vendor.o(queryList),
l: common_vendor.o(($event) => dataList.value = $event), n: common_vendor.o(($event) => dataList.value = $event),
m: common_vendor.p({ o: common_vendor.p({
["inside-more"]: true, ["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!", ["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true, ["auto-show-back-to-top"]: true,

View File

@ -2,6 +2,8 @@
"navigationBarTitleText": "肝胆相照临床病例库", "navigationBarTitleText": "肝胆相照临床病例库",
"navigationStyle": "custom", "navigationStyle": "custom",
"usingComponents": { "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-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown", "up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image", "up--image": "../../node-modules/uview-plus/components/u--image/u--image",

View File

@ -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>

View File

@ -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 { .databox.data-v-5d2f7987 {
height: 162rpx; height: 162rpx;
background: #ffffff; background: #ffffff;
@ -58,6 +77,7 @@
} }
.filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text { .filterbox.data-v-5d2f7987 .u-dropdown__menu__item__text {
font-size: 14px !important; font-size: 14px !important;
color: #3c9cff !important;
} }
.filterbox .type.data-v-5d2f7987 { .filterbox .type.data-v-5d2f7987 {
position: absolute; position: absolute;

View File

@ -4,18 +4,22 @@ const api_api = require("../../api/api.js");
const utils_navTo = require("../../utils/navTo.js"); const utils_navTo = require("../../utils/navTo.js");
const common_assets = require("../../common/assets.js"); const common_assets = require("../../common/assets.js");
if (!Array) { 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_dropdown_item2 = common_vendor.resolveComponent("up-dropdown-item");
const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown"); const _easycom_up_dropdown2 = common_vendor.resolveComponent("up-dropdown");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image"); const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging"); 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_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_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__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"; const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) { 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 navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _sfc_main = { const _sfc_main = {
@ -29,20 +33,25 @@ const _sfc_main = {
const keyWord = common_vendor.ref(""); const keyWord = common_vendor.ref("");
common_vendor.ref(true); common_vendor.ref(true);
const type = common_vendor.ref("doctor"); const type = common_vendor.ref("doctor");
const dropTitle = common_vendor.ref("更新时间");
const navName = common_vendor.ref("疾病临床病例库"); const navName = common_vendor.ref("疾病临床病例库");
const orderFilter = common_vendor.ref(1);
const options = common_vendor.ref([ const options = common_vendor.ref([
{ {
label: "正序", label: "更新时间",
value: "asc" value: "1"
}, },
{ {
label: "倒序", label: "疾病名称",
value: "desc" value: "2"
},
{
label: "病例数",
value: "3"
} }
]); ]);
const order = common_vendor.reactive({ const order = common_vendor.reactive({
article_num: "", updated_at: "desc"
push_date: ""
}); });
common_vendor.onLoad((options2) => { common_vendor.onLoad((options2) => {
if (options2.type == "hospital") { if (options2.type == "hospital") {
@ -67,13 +76,24 @@ const _sfc_main = {
(_a = paging.value) == null ? void 0 : _a.refresh(); (_a = paging.value) == null ? void 0 : _a.refresh();
}); });
const changeDate = (e) => { const changeDate = (e) => {
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:139", e); if (e == 1) {
order.updated_at = "desc";
order.label_name = "";
order.article_num = ""; order.article_num = "";
paging.value.reload(); dropTitle.value = "更新时间";
}; } else if (e == 2) {
const changeRead = (e) => { order.updated_at = "";
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:144", e); order.label_name = "desc";
order.push_date = ""; 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(); paging.value.reload();
}; };
const formatdate = (date) => { const formatdate = (date) => {
@ -86,10 +106,13 @@ const _sfc_main = {
if (!order.article_num) { if (!order.article_num) {
delete order.article_num; delete order.article_num;
} }
if (!order.push_date) { if (!order.updated_at) {
delete order.push_date; 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; searchForm.order = order;
} }
api_api.api.getSearchLabel({ api_api.api.getSearchLabel({
@ -116,15 +139,13 @@ const _sfc_main = {
}); });
}; };
const changeWord = (value) => { const changeWord = (value) => {
common_vendor.index.__f__("log", "at pages/sickList/sickList.vue:194", value); navName.value = "疾病临床病例库";
if (value) {
navName.value = value + "临床病例库";
keyWord.value = value; keyWord.value = value;
dataList.value = []; dataList.value = [];
order.updated_at = "desc";
order.article_num = ""; order.article_num = "";
order.push_date = ""; order.label_name = "";
paging.value.reload(); paging.value.reload();
}
}; };
return (_ctx, _cache) => { return (_ctx, _cache) => {
return { return {
@ -134,44 +155,52 @@ const _sfc_main = {
navName: navName.value, navName: navName.value,
type: "case" type: "case"
}), }),
c: common_vendor.o(changeDate), c: common_vendor.f(options.value, (item, k0, i0) => {
d: common_vendor.o(($event) => order.push_date = $event), return {
e: common_vendor.p({ a: "55f9e2cf-5-" + i0 + ",55f9e2cf-4",
title: "发布时间", b: common_vendor.p({
options: options.value, activeColor: "#3CC7C0",
modelValue: order.push_date label: item.label,
name: item.value
}), }),
f: common_vendor.o(changeRead), c: item.value,
g: common_vendor.o(($event) => order.article_num = $event), d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
h: common_vendor.p({ };
title: "文章数量",
options: options.value,
modelValue: order.article_num
}), }),
i: common_vendor.sr(uDropdownRef, "55f9e2cf-2,55f9e2cf-0", { d: common_vendor.o(changeDate),
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, "55f9e2cf-2,55f9e2cf-0", {
"k": "uDropdownRef" "k": "uDropdownRef"
}), }),
j: common_vendor.f(dataList.value, (item, index, i0) => { i: common_vendor.f(dataList.value, (item, index, i0) => {
return { return {
a: common_vendor.t(item.label_name), a: common_vendor.t(item.label_name),
b: common_vendor.t(item.video_num + item.article_num), 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)), d: common_vendor.t(formatdate(item.last_push_date)),
e: index, e: index,
f: common_vendor.o(($event) => goDetail(item.label_iden, item.label_name), 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), src: common_vendor.unref(common_assets.arrowrightImg),
width: "32rpx", width: "32rpx",
height: "32rpx" height: "32rpx"
}), }),
l: common_vendor.sr(paging, "55f9e2cf-0", { k: common_vendor.sr(paging, "55f9e2cf-0", {
"k": "paging" "k": "paging"
}), }),
m: common_vendor.o(queryList), l: common_vendor.o(queryList),
n: common_vendor.o(($event) => dataList.value = $event), m: common_vendor.o(($event) => dataList.value = $event),
o: common_vendor.p({ n: common_vendor.p({
["inside-more"]: true, ["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!", ["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true, ["auto-show-back-to-top"]: true,

View File

@ -2,6 +2,8 @@
"navigationBarTitleText": "肝胆相照临床病例库", "navigationBarTitleText": "肝胆相照临床病例库",
"navigationStyle": "custom", "navigationStyle": "custom",
"usingComponents": { "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-item": "../../node-modules/uview-plus/components/u-dropdown-item/u-dropdown-item",
"up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown", "up-dropdown": "../../node-modules/uview-plus/components/u-dropdown/u-dropdown",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image", "up--image": "../../node-modules/uview-plus/components/u--image/u--image",

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>

View File

@ -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 { .votepop .confirm.data-v-55f9e2cf {
margin: 39rpx 30rpx 0; margin: 39rpx 30rpx 0;
height: 92rpx; height: 92rpx;
@ -186,6 +205,10 @@
z-index: 1; z-index: 1;
margin-left: 0rpx; 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 { .u-page.data-v-55f9e2cf .u-dropdown__menu__item {
height: 74rpx; height: 74rpx;
padding: 0 20rpx; padding: 0 20rpx;