This commit is contained in:
zoujiandong 2025-07-21 09:45:24 +08:00
parent 9b4734acc5
commit 89d55643f6
50 changed files with 1269 additions and 885 deletions

View File

@ -41,4 +41,7 @@
.u-image{
background: none!important;
}
.u-steps-item__line{
height:36px!important;
}
</style>

View File

@ -43,7 +43,7 @@ import navTo from "@/utils/navTo.js";
import logoImg from "@/static/logo.png";
import headImg from "@/static/headImg.png";
import navbg from "@/static/navbg.png"
import { onMounted} from 'vue';
import { onMounted,ref} from 'vue';
const props = defineProps({
navName: {
type: String,

View File

@ -144,6 +144,9 @@
</view>
<tabBar :value="2"></tabBar>
<view class="publish" @click="goPublish">
<up-icon name="plus" color="#fff" size="18"></up-icon>
</view>
</template>
<script setup>
@ -230,6 +233,11 @@ const hotList=()=>{
}).then(res=>{
})
}
const goPublish=()=>{
navTo({
url:'/pages/publish/publish'
})
}
onShow(()=>{
getStatic();
goodList();
@ -238,6 +246,18 @@ onShow(()=>{
</script>
<style lang='scss' scoped>
.publish{
width: 92rpx;
height: 92rpx;
background: #3CC7C0;
border-radius: 50%;
position: fixed;
right:30rpx;
bottom:180rpx;
display: flex;
justify-content: center;
align-items: center;
}
.upage {
display: flex;
flex-direction: column;
@ -368,6 +388,7 @@ onShow(()=>{
border-bottom: 2rpx solid #f3f4f6;
.circle {
flex-shrink: 0;
margin-top: 15rpx;
width: 15rpx;
height: 15rpx;

View File

@ -41,7 +41,6 @@
<up--image
@click="toggleCollect"
:src="info.is_collect ? collectonImg : collectImg"
width="38rpx"
height="38rpx"
></up--image>

View File

@ -71,7 +71,7 @@
<view class="cell" v-for="item in new_articles" :key="item.article_id" @click="goDetail(item.article_id,item.is_link,item.is_link_url)">
<view class="circle"></view>
<view class="info">
<view class="name">{{item.article_title }}</view>
<view class="name ellipsis-two-lines">{{item.article_title }}</view>
<view class="tagsbox">
<view class="tag" v-for="tag in item.author" :key="tag.author_id">{{ tag.doctor_name }}</view>
</view>
@ -90,9 +90,9 @@
</view>
<view class="listbox">
<view class="cell" v-for="item in most_read_articles" :key="item.article_id" @click="goDetail(item.article_id,item.is_link,item.is_link_url)">
<view class="circle"></view>
<view class="circle "></view>
<view class="info">
<view class="name">{{item.article_title }}</view>
<view class="name ellipsis-two-lines">{{item.article_title }}</view>
<view class="tagsbox">
<view class="tag" v-for="tag in item.author" :key="tag.author_id">{{ tag.doctor_name }}</view>
</view>
@ -127,9 +127,7 @@
</view>
<tabBar></tabBar>
<view class="publish" @click="goPublish">
<u-icon name="plus" color="#fff" size="18"></u-icon>
</view>
</template>
<script setup>
@ -223,11 +221,7 @@ const goHospital=()=>{
url:'/pages/searchList/searchList?type=hospital&name=医院&id='
})
}
const goPublish=()=>{
navTo({
url:'/pages/publish/publish'
})
}
onShow(() => {
getStatic();
getData();
@ -282,6 +276,7 @@ onShow(() => {
margin-top: 18rpx;
width: 16rpx;
height: 16rpx;
flex-shrink: 0;
background: #3cc7c0;
border-radius: 50%;
}
@ -365,16 +360,5 @@ onShow(() => {
}
}
}
.publish{
width: 92rpx;
height: 92rpx;
background: #3CC7C0;
border-radius: 50%;
position: fixed;
right:30rpx;
bottom:180rpx;
display: flex;
justify-content: center;
align-items: center;
}
</style>

View File

@ -110,7 +110,7 @@
</view>
</view>
<view class="publish" @click="goPublish">
<u-icon name="plus" color="#fff" size="18"></u-icon>
<up-icon name="plus" color="#fff" size="18"></up-icon>
</view>
</div>
</template>

View File

@ -31,27 +31,49 @@
<view class="desc" v-if="keyWord">检索词:<text class="red">{{ keyWord }}</text></view>
</view>
<view class="filterbox" :class="{active:canOpenCase}">
<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>
<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
v-model="order.push_date"
title="发布时间"
@change="changeDate"
:options="options"
></up-dropdown-item>
<up-dropdown-item
:title="dropTitle"
>
<view class="dropcontent">
<up-radio-group
@change="changeDate"
v-model="orderFilter"
iconPlacement="right"
placement="column"
>
<view
class="column"
v-for="item in options"
: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
v-model="order.read_num"
title="阅读量"
@change="changeRead"
:options="options"
></up-dropdown-item>
></up-dropdown-item> -->
</up-dropdown>
</view>
</template>
<view class="item" v-for="(item, index) in dataList" :key="index" @click="isArticle?goDetail(item.article_id,item.is_link,item.is_link_url):goDetail(item.video_id,item.is_link,item.is_link_url)">
<view class="title ellipsis">{{isArticle?item.article_title:item.video_title }}</view>
<view class="title ellipsis-two-lines">{{isArticle?item.article_title:item.video_title }}</view>
<view class="tagsbox">
<view class="tag" v-for="tag in item.author" :key="tag.author_id">{{ tag.doctor_name }}</view>
</view>
@ -61,9 +83,9 @@
<up-icon name="eye" color="#6B7280" size="28rpx"></up-icon>
<view class="num">{{item.read_num }}</view>
</view>
<view class="collect">
<view class="collect" v-if="item.collect_num>0">
<up-icon name="heart" color="#6B7280" size="28rpx"></up-icon>
<view class="num">{{item.collect_num }}</view>
<view class="num" >{{item.collect_num }}</view>
</view>
</view>
<view class="time">
@ -77,26 +99,54 @@
<up-popup
:round="10"
zIndex="9"
:closeOnClickOverlay="false"
:show="showCase"
mode="bottom"
@close="closeCase"
>
<view class="votepop casepop">
<view class="titlebox">
<view class="left" @click="showCase = false">取消</view>
<view class="left continue" @click="continueCase" v-show="level != 3"
>继续选择</view
>
<view class="left" @click="cancelCase">取消</view>
<view class="right" @click="confirmCase">确定</view>
</view>
<view class="stepbox">
<up-steps :current="level-1" direction="column" :key="freshKey">
<up-steps-item >
<template v-slot:content>
<view class="slot-content" @click="openCaseLevel('1')">
<view class="left">{{!caseValue1.name?'请选择选项':caseValue1.name}}</view>
<u-icon name="arrow-right"></u-icon>
</view>
</template>
</up-steps-item>
<up-steps-item v-if="caseValue1.name && labelObj.list2.length>0">
<template v-slot:content>
<view class="slot-content" @click="openCaseLevel('2')">
<view class="left">{{!caseValue2.name?'请选择选项':caseValue2.name}}</view>
<u-icon name="arrow-right"></u-icon>
</view>
</template>
</up-steps-item>
<up-steps-item v-if="caseValue2.name && labelObj.list3.length>0">
<template v-slot:content>
<view class="slot-content" @click="openCaseLevel('3')">
<view class="left">{{!caseValue3.name?'请选择选项':caseValue3.name}}</view>
<u-icon name="arrow-right"></u-icon>
</view>
</template>
</up-steps-item>
</up-steps>
</view>
<scroll-view class="casecon" scroll-y="true">
<view v-show="level == 1" >
<up-radio-group
v-model="caseValue1"
v-model="caseValue1.value"
name="group1"
iconPlacement="right"
placement="column"
@change="groupChange1"
>
<view
class="column"
@ -113,7 +163,9 @@
</view>
<view v-show="level == 2" >
<up-radio-group
v-model="caseValue2"
name="group2"
@change="groupChange2"
v-model="caseValue2.value"
iconPlacement="right"
placement="column"
>
@ -132,8 +184,9 @@
</view>
<view v-show="level == 3" >
<up-radio-group
v-model="caseValue3"
name="group3"
@change="groupChange3"
v-model="caseValue3.value"
iconPlacement="right"
placement="column"
>
@ -165,8 +218,7 @@ import dayjs from "dayjs";
import switchImg from "@/static/switch.png";
import caseImg from "@/static/caseIcon.png";
import navTo from "@/utils/navTo.js";
const paging = ref(null);
const uDropdownRef=ref(null);
const dataList = ref([]);
const total = ref(0);
const keyWord = ref("");
@ -177,99 +229,165 @@ const hospital_name=ref('');
const doctor_id=ref('');
const doctor_name=ref('');
const numInfo=reactive({});
const searchInfo=reactive({})
const searchInfo=reactive({});
const freshKey=ref(0);
const navName=ref('肝胆相照临床病例库')
const dropTitle=ref('发布时间');
const orderFilter=ref('1')
const paging = ref(null);
const uDropdownRef=ref(null);
const options= ref([
{
label: "正序",
value: 'asc',
label: "发布时间",
value: '1',
},
{
label: "倒序",
value: 'desc',
label: "阅读次数",
value: '2',
},
]);
const isSearch=ref(true);
const order=reactive({
read_num:'',
push_date:''
push_date:'desc'
})
const showCase = ref(false);
const canOpenCase = ref(false);
const caseValue1 = ref("");
const caseValue2 = ref("");
const caseValue3 = ref("");
const caseValue1 = reactive({
value:'',
name:'',
});
const caseValue2 = reactive({
value:'',
name:'',
});
const caseValue3 = reactive({
value:'',
name:'',
});
const level = ref(1);
const labelObj = reactive({
list1: [],
list2: [],
list3: [],
list3: []
});
const openCaseLevel=(lev)=>{
freshKey.value++;
level.value=lev;
if(lev==1){
caseValue2.name='';
caseValue2.value='';
labelObj.list2=[]
}else if(lev==2){
labelObj.list3=[];
caseValue3.name='';
caseValue3.value=''
}
};
const groupChange1=(e)=>{
caseValue1.value=e;
for (var i = 0; i <labelObj.list1.length; i++) {
if(labelObj.list1[i].app_iden==caseValue1.value){
caseValue1.name=labelObj.list1[i].label_name;
break;
}
}
getCaseLabel(2,e)
}
const groupChange2=(e)=>{
caseValue2.value=e;
for (var i = 0; i <labelObj.list2.length; i++) {
if(labelObj.list2[i].app_iden==caseValue2.value){
caseValue2.name=labelObj.list2[i].label_name;
break;
}
}
getCaseLabel(3,e)
}
const groupChange3=(e)=>{
caseValue3.value=e;
level.value =3
for (var i = 0; i <labelObj.list3.length; i++) {
if(labelObj.list3[i].app_iden==caseValue3.value){
caseValue3.name=labelObj.list3[i].label_name;
break;
}
}
}
const getCaseLabel = (lev,pid=0) => {
api.getCaseLabel({
pId:pid
}).then((res) => {
level.value = lev;
if (lev == 1) {
labelObj.list1 = res.data.data;
labelObj.list1 = res.data.data;
//label_iden.value = caseValue1.value;
} else if (lev == 2) {
labelObj.list2 = res.data.data;
if(res.data.data.length==0){
level.value = 1
}
//label_iden.value = caseValue2.value;
} else if (lev == 3) {
labelObj.list3 = res.data.data;
}
level.value = lev;
if(res.data.data.length==0){
level.value = 2
}
//label_iden.value = caseValue3.value;
}
});
};
const openCase=()=>{
getCaseLabel(1,0)
showCase.value = true;
}
const cancelCase=()=>{
showCase.value=false;
level.value=1;
caseValue1.name='';
caseValue1.value='';
caseValue2.name='';
caseValue2.value='';
caseValue3.name='';
caseValue3.value='';
//labelObj.list1=[];
labelObj.list2=[];
labelObj.list3=[];
}
const confirmCase = () => {
if (level.value == 1 && caseValue1.value == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
uni.showToast({ title: "请选择疾病选项", icon: "none" });
return false;
}
if (level.value == 2 && caseValue2.value == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 3 && caseValue3.value == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
showCase.value = false;
};
if(level.value == 1){
label_iden.value = caseValue1.value
}
label_iden.value = caseValue1.value;
}
if(level.value == 2 ){
label_iden.value = caseValue2.value
if(!caseValue2.value){
label_iden.value = caseValue1.value;
}else{
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 == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 2 && caseValue2.value == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if (level.value == 3 && caseValue3.value == "") {
uni.showToast({ title: "请选择疾病", icon: "none" });
return false;
}
if(level.value == 1 ){
getCaseLabel(2,caseValue1.value);
}else if(level.value == 2 ){
getCaseLabel(3,caseValue2.value);
if(!caseValue3.value){
label_iden.value = caseValue2.value;
}else{
label_iden.value = caseValue3.value;
}
}
paging.value.reload();
showCase.value=false;
//cancelCase();
};
const closeCase = () => {
showCase.value = false;
@ -313,13 +431,23 @@ onLoad((options) => {
}else{
canOpenCase.value = true;
}
getCaseLabel(1,0)
});
onShow(()=>{
paging.value?.refresh();
})
const changeDate=(e)=>{
console.log(e);
order.read_num='';
if(e==1){
order.push_date='desc';
order.read_num='';
dropTitle.value="发布时间"
}else{
order.push_date='';
order.read_num="desc";
dropTitle.value="阅读次数"
}
orderFilter.value=e;
uDropdownRef.value.close();
paging.value.reload();
}
const changeRead=(e)=>{
@ -489,10 +617,41 @@ const queryList = (pageNo, pageSize) => {
</script>
<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;
}
}
}
.stepbox{
padding:10rpx 30rpx;
padding:15rpx 30rpx;
border-bottom: 2rpx dotted #f3f4f6;
:deep(.u-steps-item__content){
margin-top: -5rpx!important;
}
.slot-content{
width:100%;
margin-bottom: 25rpx;
justify-content: space-between;
align-items: center;
display: flex;
}
}
.bar {
width: 100%;
@ -592,7 +751,7 @@ const queryList = (pageNo, pageSize) => {
color: #2878ff !important;
}
}
.casecon {
.casecon{
flex:1;
max-height: calc(100vh - 800rpx);
overflow-y: scroll;
@ -608,6 +767,7 @@ const queryList = (pageNo, pageSize) => {
border-bottom: 2rpx solid #e5e7eb;
}
}
.databox {
height: 162rpx;
background: #ffffff;
@ -647,6 +807,7 @@ const queryList = (pageNo, pageSize) => {
}
:deep(.u-dropdown__menu__item__text){
font-size: 14px!important;
color:rgb(60, 156, 255)!important;
}
:deep(.u-dropdown__menu__item){

View File

@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\r\n\timport { onLaunch,onShow,onHide } from '@dcloudio/uni-app'\r\n\tonLaunch(()=>{\r\n\t\tconsole.log('App Launch')\r\n\t});\r\n\tonShow(()=>{\r\n\t\tconsole.log('App Show')\r\n\t\t\r\n\t});\r\n\tonHide(()=>{\r\n\t\tconsole.log('App Hide')\r\n\t});\r\n</script>\r\n\r\n<style>\r\n\t\r\n\t/*每个页面公共css */\r\n\t/* #ifdef H5 */\r\n\t*{\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\tuni-page-head {\r\n\t\tdisplay: none;\r\n\t}\r\n\t/* #endif */\r\n\twx-button:after{\r\n\t\tborder: none;\r\n\t}\r\n.ellipsis-two-lines {\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n}\r\n/* #ifdef H5 */\r\n.zp-container{\r\n\tz-index: 0!important;\r\n}\r\n/* #endif */\r\n.u-image{\r\n\tbackground: none!important;\r\n}\r\n</style>","import App from './App'\nimport uviewPlus, { setConfig } from 'uview-plus'\r\n// #ifdef H5\r\nimport VConsole from 'vconsole';\nconst vConsole = new VConsole();\r\n// #endif\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n \n app.use(uviewPlus, async() => {\t \n \t\treturn {\n \t\t\toptions: {\n \t\t\t\t// 修改$u.config对象的属性\n \t\t\t\tconfig: {\n \t\t\t\t\t// 修改默认单位为rpx相当于执行 uni.$u.config.unit = 'rpx'\n \t\t\t\t\tunit: 'rpx'\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t})\n\t\n return {\n app\n }\n}\n// #endif\n"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App","uviewPlus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAECA,kBAAAA,SAAS,MAAI;AACZC,oBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,IAC1B,CAAE;AACDC,kBAAAA,OAAO,MAAI;AACVD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IAExB,CAAE;AACDE,kBAAAA,OAAO,MAAI;AACVF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAE;;;;;ACOK,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,cAAAA,WAAW,YAAW;AAC5B,WAAO;AAAA,MACN,SAAS;AAAA;AAAA,QAER,QAAQ;AAAA;AAAA,UAEP,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACD;AAAA,EACL,CAAI;AAEF,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script setup>\r\n\timport { onLaunch,onShow,onHide } from '@dcloudio/uni-app'\r\n\tonLaunch(()=>{\r\n\t\tconsole.log('App Launch')\r\n\t});\r\n\tonShow(()=>{\r\n\t\tconsole.log('App Show')\r\n\t\t\r\n\t});\r\n\tonHide(()=>{\r\n\t\tconsole.log('App Hide')\r\n\t});\r\n</script>\r\n\r\n<style>\r\n\t\r\n\t/*每个页面公共css */\r\n\t/* #ifdef H5 */\r\n\t*{\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\tuni-page-head {\r\n\t\tdisplay: none;\r\n\t}\r\n\t/* #endif */\r\n\twx-button:after{\r\n\t\tborder: none;\r\n\t}\r\n.ellipsis-two-lines {\r\n display: -webkit-box;\r\n -webkit-box-orient: vertical;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n}\r\n/* #ifdef H5 */\r\n.zp-container{\r\n\tz-index: 0!important;\r\n}\r\n/* #endif */\r\n.u-image{\r\n\tbackground: none!important;\r\n}\r\n.u-steps-item__line{\r\n\theight:36px!important;\r\n}\r\n</style>","import App from './App'\nimport uviewPlus, { setConfig } from 'uview-plus'\r\n// #ifdef H5\r\nimport VConsole from 'vconsole';\nconst vConsole = new VConsole();\r\n// #endif\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n \n app.use(uviewPlus, async() => {\t \n \t\treturn {\n \t\t\toptions: {\n \t\t\t\t// 修改$u.config对象的属性\n \t\t\t\tconfig: {\n \t\t\t\t\t// 修改默认单位为rpx相当于执行 uni.$u.config.unit = 'rpx'\n \t\t\t\t\tunit: 'rpx'\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t})\n\t\n return {\n app\n }\n}\n// #endif\n"],"names":["onLaunch","uni","onShow","onHide","createSSRApp","App","uviewPlus"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAECA,kBAAAA,SAAS,MAAI;AACZC,oBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,IAC1B,CAAE;AACDC,kBAAAA,OAAO,MAAI;AACVD,oBAAAA,MAAA,MAAA,OAAA,gBAAY,UAAU;AAAA,IAExB,CAAE;AACDE,kBAAAA,OAAO,MAAI;AACVF,oBAAAA,MAAA,MAAA,OAAA,iBAAY,UAAU;AAAA,IACxB,CAAE;;;;;ACOK,SAAS,YAAY;AAC1B,QAAM,MAAMG,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,cAAAA,WAAW,YAAW;AAC5B,WAAO;AAAA,MACN,SAAS;AAAA;AAAA,QAER,QAAQ;AAAA;AAAA,UAEP,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACD;AAAA,EACL,CAAI;AAEF,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"file":"backDetailNav.js","sources":["components/backDetailNav/backDetailNav.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9jb21wb25lbnRzL2JhY2tEZXRhaWxOYXYvYmFja0RldGFpbE5hdi52dWU"],"sourcesContent":["<template>\r\n <view class=\"navbox\">\r\n <view class=\"bg\"></view>\r\n <view class=\"namebox\">\r\n <view class=\"back\" @click=\"goBack\">\r\n <u-icon name=\"arrow-left\" color=\"#000\" size=\"24\"></u-icon>\r\n </view>\r\n <view class=\"logo\" @click=\"goHome\">\r\n <up--image\r\n :src=\"logoImg\"\r\n width=\"62rpx\"\r\n height=\"62rpx\"\r\n radius=\"50%\"\r\n\r\n ></up--image>\r\n </view>\r\n <view class=\"name\" @click=\"goHome\">\r\n\t\t\t{{ navName }}\r\n\t\t\t<view class=\"navbg\">\r\n\t\t\t\t\t\t <up--image\r\n\t\t\t\t\t\t :src=\"navbg\"\r\n\t\t\t\t\t\t width=\"100rpx\"\r\n\t\t\t\t\t\t height=\"31rpx\"\t\t \r\n\t\t\t\t\t\t ></up--image>\r\n\t\t\t</view>\r\n\t </view>\r\n\t <view class=\"user\" @click=\"goMy\">\r\n\t\t <up--image\r\n\t\t :src=\"useImg?useImg:headImg\"\r\n\t\t width=\"62rpx\"\r\n\t\t height=\"62rpx\"\r\n\t\t radius=\"50%\"\r\n\t\t \r\n\t\t ></up--image>\r\n\t </view>\r\n </view>\r\n \r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport navTo from \"@/utils/navTo.js\";\r\nimport logoImg from \"@/static/logo.png\";\r\nimport headImg from \"@/static/headImg.png\";\r\nimport navbg from \"@/static/navbg.png\"\r\nimport { onMounted} from 'vue';\nconst props = defineProps({\r\n navName: {\r\n type: String,\r\n default: \"我的\",\r\n }\r\n\r\n});\r\nconst useImg=ref('')\r\nconst goBack = () => {\r\n uni.navigateBack({\r\n delta: 1,\r\n });\r\n};\r\n\r\nconst goHome=()=>{\r\n\tuni.reLaunch({\r\n\t\turl:'/pages/index/index'\r\n\t })\r\n\t};\r\nconst goMy=()=>{\r\n\tnavTo({\r\n\t\turl:'/pages/my/my'\r\n\t})\r\n};\r\nonMounted(()=>{\r\n\tlet userInfo=uni.getStorageSync('userInfo');\r\n\tif(userInfo && userInfo.avatar){\r\n\t\tuseImg.value=userInfo.avatar;\r\n\t}\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.navbox {\r\n padding-bottom: 20rpx;\r\n background-color: #f9fafb;\r\n position: relative;\r\n height:200rpx;\r\n background: radial-gradient(\r\n 60% 90% at 4% 2%,\r\n #43c9c3 0%,\r\n rgba(255, 255, 255, 0) 100%\r\n );\r\n}\r\n.bg {\r\n z-index: 0;\r\n top: 0;\r\n bottom: 0;\r\n width: 100%;\r\n position: absolute;\r\n background: radial-gradient(\r\n 43% 90% at 84% 6%,\r\n #ffd6c9 0%,\r\n rgba(255, 255, 255, 0) 100%\r\n );\r\n}\r\n.namebox {\r\n padding-top: 102rpx;\r\n margin: 0rpx 30rpx 0rpx;\r\n display: flex;\r\n align-items: center;\r\n display: flex;\r\n align-items: center;\r\n .logo{\r\n margin-left: 35rpx;\r\n }\r\n .back{\r\n position: absolute;\r\n left: 0;\r\n }\r\n .user{\r\n\t margin-left:55rpx;\r\n }\r\n .name {\r\n margin-left: 16rpx;\r\n font-size: 30rpx;\r\n color: #111827;\r\n\tposition: relative;\r\n\t.navbg{\r\n\t\tposition: absolute;\r\n\t\t z-index:-1;\r\n\t\t top:10rpx;\r\n\t\t left:18rpx;\r\n\t\t \r\n\t\t \r\n\t}\r\n }\r\n}\r\n.search {\r\n margin: 40rpx 30rpx 0rpx;\r\n display: flex;\r\n\r\n align-items: center;\r\n justify-content: space-between;\r\n .searchwrap {\r\n display: flex;\r\n align-items: center;\r\n flex: 1;\r\n padding-left: 28rpx;\r\n margin-right: 23rpx;\r\n height: 80rpx;\r\n background: #fbfbfb;\r\n box-shadow: 0px 4rpx 10rpx 0px rgba(153, 153, 153, 0.5);\r\n border-radius: 40rpx;\r\n\r\n .ipt {\r\n margin-left: 15rpx;\r\n font-size: 28rpx;\r\n }\r\n }\r\n}\r\n</style>","import Component from 'D:/GitWorkPlace/caseDataBase/components/backDetailNav/backDetailNav.vue'\nwx.createComponent(Component)"],"names":["uni","navTo","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqDA,UAAM,SAAO,IAAI,EAAE;AACnB,UAAM,SAAS,MAAM;AACnBA,oBAAAA,MAAI,aAAa;AAAA,QACf,OAAO;AAAA,MACX,CAAG;AAAA,IACH;AAEA,UAAM,SAAO,MAAI;AAChBA,oBAAAA,MAAI,SAAS;AAAA,QACZ,KAAI;AAAA,MACN,CAAI;AAAA,IACJ;AACA,UAAM,OAAK,MAAI;AACdC,wBAAM;AAAA,QACL,KAAI;AAAA,MACN,CAAE;AAAA,IACF;AACAC,kBAAAA,UAAU,MAAI;AACb,UAAI,WAASF,cAAAA,MAAI,eAAe,UAAU;AAC1C,UAAG,YAAY,SAAS,QAAO;AAC9B,eAAO,QAAM,SAAS;AAAA,MACtB;AAAA,IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1ED,GAAG,gBAAgB,SAAS;"}
{"version":3,"file":"backDetailNav.js","sources":["components/backDetailNav/backDetailNav.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9jb21wb25lbnRzL2JhY2tEZXRhaWxOYXYvYmFja0RldGFpbE5hdi52dWU"],"sourcesContent":["<template>\r\n <view class=\"navbox\">\r\n <view class=\"bg\"></view>\r\n <view class=\"namebox\">\r\n <view class=\"back\" @click=\"goBack\">\r\n <u-icon name=\"arrow-left\" color=\"#000\" size=\"24\"></u-icon>\r\n </view>\r\n <view class=\"logo\" @click=\"goHome\">\r\n <up--image\r\n :src=\"logoImg\"\r\n width=\"62rpx\"\r\n height=\"62rpx\"\r\n radius=\"50%\"\r\n\r\n ></up--image>\r\n </view>\r\n <view class=\"name\" @click=\"goHome\">\r\n\t\t\t{{ navName }}\r\n\t\t\t<view class=\"navbg\">\r\n\t\t\t\t\t\t <up--image\r\n\t\t\t\t\t\t :src=\"navbg\"\r\n\t\t\t\t\t\t width=\"100rpx\"\r\n\t\t\t\t\t\t height=\"31rpx\"\t\t \r\n\t\t\t\t\t\t ></up--image>\r\n\t\t\t</view>\r\n\t </view>\r\n\t <view class=\"user\" @click=\"goMy\">\r\n\t\t <up--image\r\n\t\t :src=\"useImg?useImg:headImg\"\r\n\t\t width=\"62rpx\"\r\n\t\t height=\"62rpx\"\r\n\t\t radius=\"50%\"\r\n\t\t \r\n\t\t ></up--image>\r\n\t </view>\r\n </view>\r\n \r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport navTo from \"@/utils/navTo.js\";\r\nimport logoImg from \"@/static/logo.png\";\r\nimport headImg from \"@/static/headImg.png\";\r\nimport navbg from \"@/static/navbg.png\"\r\nimport { onMounted,ref} from 'vue';\nconst props = defineProps({\r\n navName: {\r\n type: String,\r\n default: \"我的\",\r\n }\r\n\r\n});\r\nconst useImg=ref('')\r\nconst goBack = () => {\r\n uni.navigateBack({\r\n delta: 1,\r\n });\r\n};\r\n\r\nconst goHome=()=>{\r\n\tuni.reLaunch({\r\n\t\turl:'/pages/index/index'\r\n\t })\r\n\t};\r\nconst goMy=()=>{\r\n\tnavTo({\r\n\t\turl:'/pages/my/my'\r\n\t})\r\n};\r\nonMounted(()=>{\r\n\tlet userInfo=uni.getStorageSync('userInfo');\r\n\tif(userInfo && userInfo.avatar){\r\n\t\tuseImg.value=userInfo.avatar;\r\n\t}\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.navbox {\r\n padding-bottom: 20rpx;\r\n background-color: #f9fafb;\r\n position: relative;\r\n height:200rpx;\r\n background: radial-gradient(\r\n 60% 90% at 4% 2%,\r\n #43c9c3 0%,\r\n rgba(255, 255, 255, 0) 100%\r\n );\r\n}\r\n.bg {\r\n z-index: 0;\r\n top: 0;\r\n bottom: 0;\r\n width: 100%;\r\n position: absolute;\r\n background: radial-gradient(\r\n 43% 90% at 84% 6%,\r\n #ffd6c9 0%,\r\n rgba(255, 255, 255, 0) 100%\r\n );\r\n}\r\n.namebox {\r\n padding-top: 102rpx;\r\n margin: 0rpx 30rpx 0rpx;\r\n display: flex;\r\n align-items: center;\r\n display: flex;\r\n align-items: center;\r\n .logo{\r\n margin-left: 35rpx;\r\n }\r\n .back{\r\n position: absolute;\r\n left: 0;\r\n }\r\n .user{\r\n\t margin-left:55rpx;\r\n }\r\n .name {\r\n margin-left: 16rpx;\r\n font-size: 30rpx;\r\n color: #111827;\r\n\tposition: relative;\r\n\t.navbg{\r\n\t\tposition: absolute;\r\n\t\t z-index:-1;\r\n\t\t top:10rpx;\r\n\t\t left:18rpx;\r\n\t\t \r\n\t\t \r\n\t}\r\n }\r\n}\r\n.search {\r\n margin: 40rpx 30rpx 0rpx;\r\n display: flex;\r\n\r\n align-items: center;\r\n justify-content: space-between;\r\n .searchwrap {\r\n display: flex;\r\n align-items: center;\r\n flex: 1;\r\n padding-left: 28rpx;\r\n margin-right: 23rpx;\r\n height: 80rpx;\r\n background: #fbfbfb;\r\n box-shadow: 0px 4rpx 10rpx 0px rgba(153, 153, 153, 0.5);\r\n border-radius: 40rpx;\r\n\r\n .ipt {\r\n margin-left: 15rpx;\r\n font-size: 28rpx;\r\n }\r\n }\r\n}\r\n</style>","import Component from 'D:/GitWorkPlace/caseDataBase/components/backDetailNav/backDetailNav.vue'\nwx.createComponent(Component)"],"names":["ref","uni","navTo","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqDA,UAAM,SAAOA,cAAG,IAAC,EAAE;AACnB,UAAM,SAAS,MAAM;AACnBC,oBAAAA,MAAI,aAAa;AAAA,QACf,OAAO;AAAA,MACX,CAAG;AAAA,IACH;AAEA,UAAM,SAAO,MAAI;AAChBA,oBAAAA,MAAI,SAAS;AAAA,QACZ,KAAI;AAAA,MACN,CAAI;AAAA,IACJ;AACA,UAAM,OAAK,MAAI;AACdC,wBAAM;AAAA,QACL,KAAI;AAAA,MACN,CAAE;AAAA,IACF;AACAC,kBAAAA,UAAU,MAAI;AACb,UAAI,WAASF,cAAAA,MAAI,eAAe,UAAU;AAC1C,UAAG,YAAY,SAAS,QAAO;AAC9B,eAAO,QAAM,SAAS;AAAA,MACtB;AAAA,IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1ED,GAAG,gBAAgB,SAAS;"}

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

File diff suppressed because one or more lines are too long

View File

@ -13,4 +13,7 @@ wx-button:after{
.u-image{
background: none!important;
}
.u-steps-item__line{
height:36px!important;
}
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@ const _sfc_main = {
}
},
setup(__props) {
const useImg = ref("");
const useImg = common_vendor.ref("");
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
@ -66,7 +66,7 @@ const _sfc_main = {
}),
g: common_vendor.o(goHome),
h: common_vendor.p({
src: common_vendor.unref(useImg) ? common_vendor.unref(useImg) : common_vendor.unref(common_assets.headImg),
src: useImg.value ? useImg.value : common_vendor.unref(common_assets.headImg),
width: "62rpx",
height: "62rpx",
radius: "50%"

View File

@ -3,7 +3,7 @@ const common_vendor = require("../../../../common/vendor.js");
const base64Avatar = "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z";
const _sfc_main = {
name: "u-avatar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21],
data() {
return {
// 如果配置randomBgColor参数为true在图标或者文字的模式下会随机从中取出一个颜色值当做背景色

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-badge",
mixins: [common_vendor.mpMixin, common_vendor.props$32, common_vendor.mixin],
mixins: [common_vendor.mpMixin, common_vendor.props$34, common_vendor.mixin],
computed: {
// 是否将badge中心与父组件右上角重合
boxStyle() {

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-cell-group",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$28],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$30],
methods: {
addStyle: common_vendor.addStyle
}

View File

@ -5,7 +5,7 @@ const _sfc_main = {
data() {
return {};
},
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$22],
computed: {
titleTextStyle() {
return common_vendor.addStyle(this.titleStyle);

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-gap",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$31],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$33],
computed: {
gapStyle() {
const style = {

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-line",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$29],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$31],
computed: {
lineStyle() {
const style = {};

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-link",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$35],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$37],
computed: {
linkStyle() {
const style = {

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-list-item",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$23],
data() {
return {
// 节点信息

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-list",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$22],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$24],
watch: {
scrollIntoView(n) {
this.scrollIntoViewById(n);

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-loading-icon",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$30],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$32],
data() {
return {
// Array.form可以通过一个伪数组对象创建指定长度的数组

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-picker",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
data() {
return {
// 上一次选择的列索引

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-safe-bottom",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$26],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$28],
data() {
return {
safeAreaBottomHeight: 0,

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-status-bar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$25],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$27],
data() {
return {
isH5: false

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-tabbar-item",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$23],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$25],
data() {
return {
isActive: false,

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-tabbar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$24],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$26],
data() {
return {
placeholderHeight: 0

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "up-text",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$34],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$35],
emits: ["click"],
computed: {
wrapStyle() {

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-toolbar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$33],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$36],
emits: ["confirm", "cancel"],
created() {
},

View File

@ -33,7 +33,7 @@ const _sfc_main = {
}
},
// 将mixin挂在到组件中实际上为一个vue格式对象。
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transitionMixin, common_vendor.props$27],
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transitionMixin, common_vendor.props$29],
watch: {
show: {
handler(newVal) {

View File

@ -74,6 +74,11 @@ const _sfc_main = {
most_read_articles.value = res.data.data;
});
};
const goPublish = () => {
utils_navTo.navTo({
url: "/pages/publish/publish"
});
};
common_vendor.onShow(() => {
getStatic();
goodList();
@ -196,7 +201,13 @@ const _sfc_main = {
}),
p: common_vendor.p({
value: 2
})
}),
q: common_vendor.p({
name: "plus",
color: "#fff",
size: "18"
}),
r: common_vendor.o(goPublish)
});
};
}

View File

@ -1 +1 @@
<view class="upage data-v-4b2e7592"><nav-bar wx:if="{{a}}" class="data-v-4b2e7592" u-i="4b2e7592-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="databox data-v-4b2e7592"><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{b}}</view><view class="name data-v-4b2e7592">病例数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{c}}</view><view class="name data-v-4b2e7592">互动数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{d}}</view><view class="name data-v-4b2e7592">浏览量</view></view></view><view class="bar data-v-4b2e7592"></view><view class="box data-v-4b2e7592"><view wx:if="{{e}}" class="special mostread data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">精选病例</view><view class="more data-v-4b2e7592" bindtap="{{g}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{f}}" class="data-v-4b2e7592" u-i="4b2e7592-1" bind:__l="__l" u-p="{{f}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="cell data-v-4b2e7592" bindtap="{{item.c}}"><view class="circle data-v-4b2e7592"></view><view class="title ellipsis-two-lines data-v-4b2e7592">{{item.a}}</view></view></view></view><view class="bar data-v-4b2e7592"></view><view class="record special data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">最新收录</view><view class="more data-v-4b2e7592" bindtap="{{j}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{i}}" class="data-v-4b2e7592" u-i="4b2e7592-2" bind:__l="__l" u-p="{{i}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{k}}" wx:for-item="item" wx:key="B" class="cell data-v-4b2e7592"><view class="title ellipsis-two-lines data-v-4b2e7592" bindtap="{{item.b}}">{{item.a}}</view><view class="doctor data-v-4b2e7592" bindtap="{{item.g}}"><up--image wx:if="{{item.d}}" class="data-v-4b2e7592" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up--image><view class="name data-v-4b2e7592">{{item.e}}{{item.f}}</view></view><view class="content data-v-4b2e7592" bindtap="{{item.i}}">{{item.h}}</view><view wx:if="{{item.j}}" class="imgbox data-v-4b2e7592" bindtap="{{item.l}}"><view wx:for="{{item.k}}" wx:for-item="unit" wx:key="c" class="imgcell data-v-4b2e7592"><up--image wx:if="{{unit.b}}" class="data-v-4b2e7592" u-s="{{['d']}}" u-i="{{unit.a}}" bind:__l="__l" u-p="{{unit.b}}"><view class="data-v-4b2e7592" slot="error" style="font-size:24rpx">加载失败</view></up--image></view></view><view class="videocon data-v-4b2e7592"><view wx:if="{{item.m}}" class="imgbox data-v-4b2e7592"><video wx:for="{{item.n}}" wx:for-item="videoCell" wx:key="a" class="myVideo data-v-4b2e7592" src="{{videoCell.b}}" binderror="{{videoCell.c}}" controls></video></view></view><view wx:if="{{item.o}}" class="tagbox data-v-4b2e7592" bindtap="{{item.q}}"><view wx:for="{{item.p}}" wx:for-item="cell" wx:key="b" class="tag data-v-4b2e7592">{{cell.a}}</view></view><view class="deal data-v-4b2e7592" bindtap="{{item.A}}"><view class="left data-v-4b2e7592"><view class="eyebox item data-v-4b2e7592"><up-icon wx:if="{{l}}" class="data-v-4b2e7592" u-i="{{item.r}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-4b2e7592">{{item.s}}</view></view><view class="collect item data-v-4b2e7592"><up-icon wx:if="{{m}}" class="data-v-4b2e7592" u-i="{{item.t}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-4b2e7592">{{item.v}}</view></view><view class="chat item data-v-4b2e7592"><up-icon wx:if="{{n}}" class="data-v-4b2e7592" u-i="{{item.w}}" bind:__l="__l" u-p="{{n}}"></up-icon><view class="num data-v-4b2e7592">{{item.x}}</view></view></view><view class="time data-v-4b2e7592"><up-icon wx:if="{{o}}" class="data-v-4b2e7592" u-i="{{item.y}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-4b2e7592">{{item.z}}</view></view></view></view></view></view></view></view><tab-bar wx:if="{{p}}" class="data-v-4b2e7592" u-i="4b2e7592-9" bind:__l="__l" u-p="{{p}}"></tab-bar>
<view class="upage data-v-4b2e7592"><nav-bar wx:if="{{a}}" class="data-v-4b2e7592" u-i="4b2e7592-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="databox data-v-4b2e7592"><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{b}}</view><view class="name data-v-4b2e7592">病例数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{c}}</view><view class="name data-v-4b2e7592">互动数</view></view><view class="cell data-v-4b2e7592"><view class="num data-v-4b2e7592">{{d}}</view><view class="name data-v-4b2e7592">浏览量</view></view></view><view class="bar data-v-4b2e7592"></view><view class="box data-v-4b2e7592"><view wx:if="{{e}}" class="special mostread data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">精选病例</view><view class="more data-v-4b2e7592" bindtap="{{g}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{f}}" class="data-v-4b2e7592" u-i="4b2e7592-1" bind:__l="__l" u-p="{{f}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="cell data-v-4b2e7592" bindtap="{{item.c}}"><view class="circle data-v-4b2e7592"></view><view class="title ellipsis-two-lines data-v-4b2e7592">{{item.a}}</view></view></view></view><view class="bar data-v-4b2e7592"></view><view class="record special data-v-4b2e7592"><view class="titlebox data-v-4b2e7592"><view class="title data-v-4b2e7592">最新收录</view><view class="more data-v-4b2e7592" bindtap="{{j}}"><view class="morename data-v-4b2e7592">查看更多</view><u-icon wx:if="{{i}}" class="data-v-4b2e7592" u-i="4b2e7592-2" bind:__l="__l" u-p="{{i}}"></u-icon></view></view><view class="list data-v-4b2e7592"><view wx:for="{{k}}" wx:for-item="item" wx:key="B" class="cell data-v-4b2e7592"><view class="title ellipsis-two-lines data-v-4b2e7592" bindtap="{{item.b}}">{{item.a}}</view><view class="doctor data-v-4b2e7592" bindtap="{{item.g}}"><up--image wx:if="{{item.d}}" class="data-v-4b2e7592" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up--image><view class="name data-v-4b2e7592">{{item.e}}{{item.f}}</view></view><view class="content data-v-4b2e7592" bindtap="{{item.i}}">{{item.h}}</view><view wx:if="{{item.j}}" class="imgbox data-v-4b2e7592" bindtap="{{item.l}}"><view wx:for="{{item.k}}" wx:for-item="unit" wx:key="c" class="imgcell data-v-4b2e7592"><up--image wx:if="{{unit.b}}" class="data-v-4b2e7592" u-s="{{['d']}}" u-i="{{unit.a}}" bind:__l="__l" u-p="{{unit.b}}"><view class="data-v-4b2e7592" slot="error" style="font-size:24rpx">加载失败</view></up--image></view></view><view class="videocon data-v-4b2e7592"><view wx:if="{{item.m}}" class="imgbox data-v-4b2e7592"><video wx:for="{{item.n}}" wx:for-item="videoCell" wx:key="a" class="myVideo data-v-4b2e7592" src="{{videoCell.b}}" binderror="{{videoCell.c}}" controls></video></view></view><view wx:if="{{item.o}}" class="tagbox data-v-4b2e7592" bindtap="{{item.q}}"><view wx:for="{{item.p}}" wx:for-item="cell" wx:key="b" class="tag data-v-4b2e7592">{{cell.a}}</view></view><view class="deal data-v-4b2e7592" bindtap="{{item.A}}"><view class="left data-v-4b2e7592"><view class="eyebox item data-v-4b2e7592"><up-icon wx:if="{{l}}" class="data-v-4b2e7592" u-i="{{item.r}}" bind:__l="__l" u-p="{{l}}"></up-icon><view class="num data-v-4b2e7592">{{item.s}}</view></view><view class="collect item data-v-4b2e7592"><up-icon wx:if="{{m}}" class="data-v-4b2e7592" u-i="{{item.t}}" bind:__l="__l" u-p="{{m}}"></up-icon><view class="num data-v-4b2e7592">{{item.v}}</view></view><view class="chat item data-v-4b2e7592"><up-icon wx:if="{{n}}" class="data-v-4b2e7592" u-i="{{item.w}}" bind:__l="__l" u-p="{{n}}"></up-icon><view class="num data-v-4b2e7592">{{item.x}}</view></view></view><view class="time data-v-4b2e7592"><up-icon wx:if="{{o}}" class="data-v-4b2e7592" u-i="{{item.y}}" bind:__l="__l" u-p="{{o}}"></up-icon><view class="num data-v-4b2e7592">{{item.z}}</view></view></view></view></view></view></view></view><tab-bar wx:if="{{p}}" class="data-v-4b2e7592" u-i="4b2e7592-9" bind:__l="__l" u-p="{{p}}"></tab-bar><view class="publish data-v-4b2e7592" bindtap="{{r}}"><up-icon wx:if="{{q}}" class="data-v-4b2e7592" u-i="4b2e7592-10" bind:__l="__l" u-p="{{q}}"></up-icon></view>

View File

@ -23,6 +23,18 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.publish.data-v-4b2e7592 {
width: 92rpx;
height: 92rpx;
background: #3CC7C0;
border-radius: 50%;
position: fixed;
right: 30rpx;
bottom: 180rpx;
display: flex;
justify-content: center;
align-items: center;
}
.upage.data-v-4b2e7592 {
display: flex;
flex-direction: column;
@ -131,6 +143,7 @@
border-bottom: 2rpx solid #f3f4f6;
}
.special .list .cell .circle.data-v-4b2e7592 {
flex-shrink: 0;
margin-top: 15rpx;
width: 15rpx;
height: 15rpx;

View File

@ -147,7 +147,7 @@ const _sfc_main = {
};
const getUserPoint = () => {
api_api.api.getUserPoint().then((res) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:735", res.data.data);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:734", res.data.data);
point.value = res.data.data;
});
};
@ -327,18 +327,18 @@ const _sfc_main = {
};
const close = () => {
showCommentDialog.value = false;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:933", "close");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:932", "close");
};
const openDeal = () => {
showDeal.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:938", "open");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:937", "open");
};
const closeDeal = () => {
showDeal.value = false;
};
const openMore = () => {
showMore.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:946", "open");
common_vendor.index.__f__("log", "at pages/detail/detail.vue:945", "open");
};
const closeMore = () => {
showMore.value = false;
@ -376,12 +376,12 @@ const _sfc_main = {
success(res) {
if (res.statusCode === 204) {
let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1297", url);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1296", url);
imgList.value = [url];
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1302", err);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1301", err);
}
});
});
@ -400,8 +400,8 @@ const _sfc_main = {
return "unknown";
};
const afterRead = (file, lists, name) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1321", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1322", name);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1320", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1321", name);
handleUpload(file);
};
const delImg = (index) => {

View File

@ -87,11 +87,6 @@ const _sfc_main = {
url: "/pages/searchList/searchList?type=hospital&name=医院&id="
});
};
const goPublish = () => {
utils_navTo.navTo({
url: "/pages/publish/publish"
});
};
common_vendor.onShow(() => {
getStatic();
getData();
@ -195,13 +190,7 @@ const _sfc_main = {
b: item.doctor_id,
c: common_vendor.o(($event) => goListBy(item.doctor_id, item.doctor_name, "doctor"), item.doctor_id)
};
}),
z: common_vendor.p({
name: "plus",
color: "#fff",
size: "18"
}),
A: common_vendor.o(goPublish)
})
};
};
}

View File

@ -1 +1 @@
<nav-bar wx:if="{{a}}" class="data-v-1cf27b2a" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="page data-v-1cf27b2a"><view class="databox data-v-1cf27b2a"><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{b}}</view><view class="name data-v-1cf27b2a">文章</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{c}}</view><view class="name data-v-1cf27b2a">视频</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{d}}</view><view class="name data-v-1cf27b2a">阅读量</view></view></view><view class="kubox data-v-1cf27b2a"><view class="row data-v-1cf27b2a"><up--image wx:if="{{f}}" class="data-v-1cf27b2a" bindclick="{{e}}" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{f}}"></up--image><up--image wx:if="{{h}}" class="data-v-1cf27b2a" bindclick="{{g}}" u-i="1cf27b2a-2" bind:__l="__l" u-p="{{h}}"></up--image></view><view class="row data-v-1cf27b2a" style="margin-top:30rpx"><up--image wx:if="{{j}}" class="data-v-1cf27b2a" bindclick="{{i}}" u-i="1cf27b2a-3" bind:__l="__l" u-p="{{j}}"></up--image><up--image wx:if="{{l}}" class="data-v-1cf27b2a" bindclick="{{k}}" u-i="1cf27b2a-4" bind:__l="__l" u-p="{{l}}"></up--image></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最新上线</view><view class="more data-v-1cf27b2a" bindtap="{{n}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{m}}" class="data-v-1cf27b2a" u-i="1cf27b2a-5" bind:__l="__l" u-p="{{m}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最多阅读</view><view class="more data-v-1cf27b2a" bindtap="{{q}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{p}}" class="data-v-1cf27b2a" u-i="1cf27b2a-6" bind:__l="__l" u-p="{{p}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{r}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医院病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{t}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{s}}" class="data-v-1cf27b2a" u-i="1cf27b2a-7" bind:__l="__l" u-p="{{s}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{v}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医生病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{x}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{w}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8" bind:__l="__l" u-p="{{w}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{y}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view></view><tab-bar class="data-v-1cf27b2a" u-i="1cf27b2a-9" bind:__l="__l"></tab-bar><view class="publish data-v-1cf27b2a" bindtap="{{A}}"><u-icon wx:if="{{z}}" class="data-v-1cf27b2a" u-i="1cf27b2a-10" bind:__l="__l" u-p="{{z}}"></u-icon></view>
<nav-bar wx:if="{{a}}" class="data-v-1cf27b2a" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{a}}"></nav-bar><view class="page data-v-1cf27b2a"><view class="databox data-v-1cf27b2a"><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{b}}</view><view class="name data-v-1cf27b2a">文章</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{c}}</view><view class="name data-v-1cf27b2a">视频</view></view><view class="cell data-v-1cf27b2a"><view class="num data-v-1cf27b2a">{{d}}</view><view class="name data-v-1cf27b2a">阅读量</view></view></view><view class="kubox data-v-1cf27b2a"><view class="row data-v-1cf27b2a"><up--image wx:if="{{f}}" class="data-v-1cf27b2a" bindclick="{{e}}" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{f}}"></up--image><up--image wx:if="{{h}}" class="data-v-1cf27b2a" bindclick="{{g}}" u-i="1cf27b2a-2" bind:__l="__l" u-p="{{h}}"></up--image></view><view class="row data-v-1cf27b2a" style="margin-top:30rpx"><up--image wx:if="{{j}}" class="data-v-1cf27b2a" bindclick="{{i}}" u-i="1cf27b2a-3" bind:__l="__l" u-p="{{j}}"></up--image><up--image wx:if="{{l}}" class="data-v-1cf27b2a" bindclick="{{k}}" u-i="1cf27b2a-4" bind:__l="__l" u-p="{{l}}"></up--image></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最新上线</view><view class="more data-v-1cf27b2a" bindtap="{{n}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{m}}" class="data-v-1cf27b2a" u-i="1cf27b2a-5" bind:__l="__l" u-p="{{m}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name ellipsis-two-lines data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="newsbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">最多阅读</view><view class="more data-v-1cf27b2a" bindtap="{{q}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{p}}" class="data-v-1cf27b2a" u-i="1cf27b2a-6" bind:__l="__l" u-p="{{p}}"></u-icon></view></view><view class="listbox data-v-1cf27b2a"><view wx:for="{{r}}" wx:for-item="item" wx:key="c" class="cell data-v-1cf27b2a" bindtap="{{item.d}}"><view class="circle data-v-1cf27b2a"></view><view class="info data-v-1cf27b2a"><view class="name ellipsis-two-lines data-v-1cf27b2a">{{item.a}}</view><view class="tagsbox data-v-1cf27b2a"><view wx:for="{{item.b}}" wx:for-item="tag" wx:key="b" class="tag data-v-1cf27b2a">{{tag.a}}</view></view></view></view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医院病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{t}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{s}}" class="data-v-1cf27b2a" u-i="1cf27b2a-7" bind:__l="__l" u-p="{{s}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{v}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view><view class="recbox data-v-1cf27b2a"><view class="titlebox data-v-1cf27b2a"><view class="title data-v-1cf27b2a">医生病例库推荐</view><view class="more data-v-1cf27b2a" bindtap="{{x}}"><view class="morename data-v-1cf27b2a">查看更多</view><u-icon wx:if="{{w}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8" bind:__l="__l" u-p="{{w}}"></u-icon></view></view><view class="list data-v-1cf27b2a"><view wx:for="{{y}}" wx:for-item="item" wx:key="b" class="cell data-v-1cf27b2a" bindtap="{{item.c}}">{{item.a}}</view></view></view></view><tab-bar class="data-v-1cf27b2a" u-i="1cf27b2a-9" bind:__l="__l"></tab-bar>

View File

@ -70,6 +70,7 @@
margin-top: 18rpx;
width: 16rpx;
height: 16rpx;
flex-shrink: 0;
background: #3cc7c0;
border-radius: 50%;
}
@ -148,16 +149,4 @@
margin-top: 18rpx;
font-size: 28rpx;
color: #4b5563;
}
.publish.data-v-1cf27b2a {
width: 92rpx;
height: 92rpx;
background: #3CC7C0;
border-radius: 50%;
position: fixed;
right: 30rpx;
bottom: 180rpx;
display: flex;
justify-content: center;
align-items: center;
}

View File

@ -6,12 +6,14 @@ const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
(_easycom_up__image2 + _easycom_u_icon2)();
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
(_easycom_up__image2 + _easycom_u_icon2 + _easycom_up_icon2)();
}
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
if (!Math) {
(dNav + _easycom_up__image + _easycom_u_icon)();
(dNav + _easycom_up__image + _easycom_u_icon + _easycom_up_icon)();
}
const dNav = () => "../../components/backNav/backNav.js";
const _sfc_main = {

View File

@ -4,6 +4,7 @@
"usingComponents": {
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"d-nav": "../../components/backNav/backNav"
}
}

View File

@ -1 +1 @@
<view class="upage data-v-2f1ef635"><d-nav class="data-v-2f1ef635" u-i="2f1ef635-0" bind:__l="__l"></d-nav><view class="con data-v-2f1ef635"><view class="infobox data-v-2f1ef635"><up--image wx:if="{{a}}" class="data-v-2f1ef635" u-i="2f1ef635-1" bind:__l="__l" u-p="{{a}}"></up--image><view class="info data-v-2f1ef635"><view class="name data-v-2f1ef635">{{b}}{{c}} </view><view class="hospital data-v-2f1ef635">{{d}}</view></view></view><view class="databox data-v-2f1ef635"><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{e}}</view><view class="name data-v-2f1ef635">文章</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{f}}</view><view class="name data-v-2f1ef635">视频</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{g}}</view><view class="name data-v-2f1ef635">阅读量</view></view></view><view class="listbox data-v-2f1ef635"><view class="titlename data-v-2f1ef635">我的临床病例库</view><view wx:if="{{h}}" class="cell data-v-2f1ef635" bindtap="{{k}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{i}}" class="data-v-2f1ef635" u-i="2f1ef635-2" bind:__l="__l" u-p="{{i}}"></up--image><view class="title data-v-2f1ef635">我的病例库</view></view><u-icon wx:if="{{j}}" class="data-v-2f1ef635" u-i="2f1ef635-3" bind:__l="__l" u-p="{{j}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{n}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{l}}" class="data-v-2f1ef635" u-i="2f1ef635-4" bind:__l="__l" u-p="{{l}}"></up--image><view class="title data-v-2f1ef635">临床病例库收录证书下载</view></view><u-icon wx:if="{{m}}" class="data-v-2f1ef635" u-i="2f1ef635-5" bind:__l="__l" u-p="{{m}}"></u-icon></view><view wx:if="{{o}}" class="cell data-v-2f1ef635" bindtap="{{s}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{p}}" class="data-v-2f1ef635" u-i="2f1ef635-6" bind:__l="__l" u-p="{{p}}"></up--image><view class="title data-v-2f1ef635">{{q}}临床病例库</view></view><u-icon wx:if="{{r}}" class="data-v-2f1ef635" u-i="2f1ef635-7" bind:__l="__l" u-p="{{r}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{w}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{t}}" class="data-v-2f1ef635" u-i="2f1ef635-8" bind:__l="__l" u-p="{{t}}"></up--image><view class="title data-v-2f1ef635">我的病例交流</view></view><u-icon wx:if="{{v}}" class="data-v-2f1ef635" u-i="2f1ef635-9" bind:__l="__l" u-p="{{v}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{z}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{x}}" class="data-v-2f1ef635" u-i="2f1ef635-10" bind:__l="__l" u-p="{{x}}"></up--image><view class="title data-v-2f1ef635">我的参与互动</view></view><u-icon wx:if="{{y}}" class="data-v-2f1ef635" u-i="2f1ef635-11" bind:__l="__l" u-p="{{y}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{C}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{A}}" class="data-v-2f1ef635" u-i="2f1ef635-12" bind:__l="__l" u-p="{{A}}"></up--image><view class="title data-v-2f1ef635">浏览与收藏</view></view><u-icon wx:if="{{B}}" class="data-v-2f1ef635" u-i="2f1ef635-13" bind:__l="__l" u-p="{{B}}"></u-icon></view></view></view><view class="publish data-v-2f1ef635" bindtap="{{E}}"><u-icon wx:if="{{D}}" class="data-v-2f1ef635" u-i="2f1ef635-14" bind:__l="__l" u-p="{{D}}"></u-icon></view></view>
<view class="upage data-v-2f1ef635"><d-nav class="data-v-2f1ef635" u-i="2f1ef635-0" bind:__l="__l"></d-nav><view class="con data-v-2f1ef635"><view class="infobox data-v-2f1ef635"><up--image wx:if="{{a}}" class="data-v-2f1ef635" u-i="2f1ef635-1" bind:__l="__l" u-p="{{a}}"></up--image><view class="info data-v-2f1ef635"><view class="name data-v-2f1ef635">{{b}}{{c}} </view><view class="hospital data-v-2f1ef635">{{d}}</view></view></view><view class="databox data-v-2f1ef635"><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{e}}</view><view class="name data-v-2f1ef635">文章</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{f}}</view><view class="name data-v-2f1ef635">视频</view></view><view class="cell data-v-2f1ef635"><view class="num data-v-2f1ef635">{{g}}</view><view class="name data-v-2f1ef635">阅读量</view></view></view><view class="listbox data-v-2f1ef635"><view class="titlename data-v-2f1ef635">我的临床病例库</view><view wx:if="{{h}}" class="cell data-v-2f1ef635" bindtap="{{k}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{i}}" class="data-v-2f1ef635" u-i="2f1ef635-2" bind:__l="__l" u-p="{{i}}"></up--image><view class="title data-v-2f1ef635">我的病例库</view></view><u-icon wx:if="{{j}}" class="data-v-2f1ef635" u-i="2f1ef635-3" bind:__l="__l" u-p="{{j}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{n}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{l}}" class="data-v-2f1ef635" u-i="2f1ef635-4" bind:__l="__l" u-p="{{l}}"></up--image><view class="title data-v-2f1ef635">临床病例库收录证书下载</view></view><u-icon wx:if="{{m}}" class="data-v-2f1ef635" u-i="2f1ef635-5" bind:__l="__l" u-p="{{m}}"></u-icon></view><view wx:if="{{o}}" class="cell data-v-2f1ef635" bindtap="{{s}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{p}}" class="data-v-2f1ef635" u-i="2f1ef635-6" bind:__l="__l" u-p="{{p}}"></up--image><view class="title data-v-2f1ef635">{{q}}临床病例库</view></view><u-icon wx:if="{{r}}" class="data-v-2f1ef635" u-i="2f1ef635-7" bind:__l="__l" u-p="{{r}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{w}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{t}}" class="data-v-2f1ef635" u-i="2f1ef635-8" bind:__l="__l" u-p="{{t}}"></up--image><view class="title data-v-2f1ef635">我的病例交流</view></view><u-icon wx:if="{{v}}" class="data-v-2f1ef635" u-i="2f1ef635-9" bind:__l="__l" u-p="{{v}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{z}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{x}}" class="data-v-2f1ef635" u-i="2f1ef635-10" bind:__l="__l" u-p="{{x}}"></up--image><view class="title data-v-2f1ef635">我的参与互动</view></view><u-icon wx:if="{{y}}" class="data-v-2f1ef635" u-i="2f1ef635-11" bind:__l="__l" u-p="{{y}}"></u-icon></view><view class="cell data-v-2f1ef635" bindtap="{{C}}"><view class="left data-v-2f1ef635"><up--image wx:if="{{A}}" class="data-v-2f1ef635" u-i="2f1ef635-12" bind:__l="__l" u-p="{{A}}"></up--image><view class="title data-v-2f1ef635">浏览与收藏</view></view><u-icon wx:if="{{B}}" class="data-v-2f1ef635" u-i="2f1ef635-13" bind:__l="__l" u-p="{{B}}"></u-icon></view></view></view><view class="publish data-v-2f1ef635" bindtap="{{E}}"><up-icon wx:if="{{D}}" class="data-v-2f1ef635" u-i="2f1ef635-14" bind:__l="__l" u-p="{{D}}"></up-icon></view></view>

View File

@ -5,32 +5,36 @@ const common_assets = require("../../common/assets.js");
const utils_navTo = require("../../utils/navTo.js");
if (!Array) {
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
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_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item");
const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
(_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)();
(_easycom_up__image2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_dropdown_item2 + _easycom_up_dropdown2 + _easycom_up_icon2 + _easycom_z_paging2 + _easycom_u_icon2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_up_popup2)();
}
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.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_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_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_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_steps_item = () => "../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js";
const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-steps/u-steps.js";
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(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)();
(navBarSearch + _easycom_up__image + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_dropdown_item + _easycom_up_dropdown + _easycom_up_icon + _easycom_z_paging + _easycom_u_icon + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_popup)();
}
const navBarSearch = () => "../../components/navBarSearch/navBarSearch.js";
const _sfc_main = {
__name: "search",
setup(__props) {
const paging = common_vendor.ref(null);
const uDropdownRef = common_vendor.ref(null);
const dataList = common_vendor.ref([]);
const total = common_vendor.ref(0);
const keyWord = common_vendor.ref("");
@ -42,95 +46,149 @@ const _sfc_main = {
const doctor_name = common_vendor.ref("");
const numInfo = common_vendor.reactive({});
const searchInfo = common_vendor.reactive({});
const freshKey = common_vendor.ref(0);
const navName = common_vendor.ref("肝胆相照临床病例库");
const dropTitle = common_vendor.ref("发布时间");
const orderFilter = common_vendor.ref("1");
const paging = common_vendor.ref(null);
const uDropdownRef = common_vendor.ref(null);
const options = common_vendor.ref([
{
label: "正序",
value: "asc"
label: "发布时间",
value: "1"
},
{
label: "倒序",
value: "desc"
label: "阅读次数",
value: "2"
}
]);
const isSearch = common_vendor.ref(true);
const order = common_vendor.reactive({
read_num: "",
push_date: ""
push_date: "desc"
});
const showCase = common_vendor.ref(false);
const canOpenCase = common_vendor.ref(false);
const caseValue1 = common_vendor.ref("");
const caseValue2 = common_vendor.ref("");
const caseValue3 = common_vendor.ref("");
const caseValue1 = common_vendor.reactive({
value: "",
name: ""
});
const caseValue2 = common_vendor.reactive({
value: "",
name: ""
});
const caseValue3 = common_vendor.reactive({
value: "",
name: ""
});
const level = common_vendor.ref(1);
const labelObj = common_vendor.reactive({
list1: [],
list2: [],
list3: []
});
const openCaseLevel = (lev) => {
freshKey.value++;
level.value = lev;
if (lev == 1) {
caseValue2.name = "";
caseValue2.value = "";
labelObj.list2 = [];
} else if (lev == 2) {
labelObj.list3 = [];
caseValue3.name = "";
caseValue3.value = "";
}
};
const groupChange1 = (e) => {
caseValue1.value = e;
for (var i = 0; i < labelObj.list1.length; i++) {
if (labelObj.list1[i].app_iden == caseValue1.value) {
caseValue1.name = labelObj.list1[i].label_name;
break;
}
}
getCaseLabel(2, e);
};
const groupChange2 = (e) => {
caseValue2.value = e;
for (var i = 0; i < labelObj.list2.length; i++) {
if (labelObj.list2[i].app_iden == caseValue2.value) {
caseValue2.name = labelObj.list2[i].label_name;
break;
}
}
getCaseLabel(3, e);
};
const groupChange3 = (e) => {
caseValue3.value = e;
level.value = 3;
for (var i = 0; i < labelObj.list3.length; i++) {
if (labelObj.list3[i].app_iden == caseValue3.value) {
caseValue3.name = labelObj.list3[i].label_name;
break;
}
}
};
const getCaseLabel = (lev, pid = 0) => {
api_api.api.getCaseLabel({
pId: pid
}).then((res) => {
level.value = lev;
if (lev == 1) {
labelObj.list1 = res.data.data;
} else if (lev == 2) {
labelObj.list2 = res.data.data;
if (res.data.data.length == 0) {
level.value = 1;
}
} else if (lev == 3) {
labelObj.list3 = res.data.data;
if (res.data.data.length == 0) {
level.value = 2;
}
}
level.value = lev;
});
};
const openCase = () => {
getCaseLabel(1, 0);
showCase.value = true;
};
const cancelCase = () => {
showCase.value = false;
level.value = 1;
caseValue1.name = "";
caseValue1.value = "";
caseValue2.name = "";
caseValue2.value = "";
caseValue3.name = "";
caseValue3.value = "";
labelObj.list2 = [];
labelObj.list3 = [];
};
const confirmCase = () => {
if (level.value == 1 && caseValue1.value == "") {
common_vendor.index.showToast({ title: "请选择疾病", icon: "none" });
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 (!caseValue2.value) {
label_iden.value = caseValue1.value;
} else {
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);
if (!caseValue3.value) {
label_iden.value = caseValue2.value;
} else {
label_iden.value = caseValue3.value;
}
}
paging.value.reload();
showCase.value = false;
};
const closeCase = () => {
showCase.value = false;
@ -172,26 +230,31 @@ const _sfc_main = {
} else {
canOpenCase.value = true;
}
getCaseLabel(1, 0);
});
common_vendor.onShow(() => {
var _a;
(_a = paging.value) == null ? void 0 : _a.refresh();
});
const changeDate = (e) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:321", e);
order.read_num = "";
paging.value.reload();
};
const changeRead = (e) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:326", e);
order.push_date = "";
if (e == 1) {
order.push_date = "desc";
order.read_num = "";
dropTitle.value = "发布时间";
} else {
order.push_date = "";
order.read_num = "desc";
dropTitle.value = "阅读次数";
}
orderFilter.value = e;
uDropdownRef.value.close();
paging.value.reload();
};
const formatdate = (date) => {
return common_vendor.dayjs(date).format("YYYY-MM-DD");
};
const goDetail = (id, isLink, src) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:334", isLink);
common_vendor.index.__f__("log", "at pages/search/search.vue:462", isLink);
if (isLink == 1) {
utils_navTo.navTo({
url: `/pages/web/web?src=${src}`
@ -329,7 +392,7 @@ const _sfc_main = {
});
};
const queryList = (pageNo, pageSize) => {
common_vendor.index.__f__("log", "at pages/search/search.vue:482", 666666);
common_vendor.index.__f__("log", "at pages/search/search.vue:610", 666666);
const params = {
page: pageNo,
page_size: pageSize
@ -357,7 +420,7 @@ const _sfc_main = {
}, keyWord.value ? {
k: common_vendor.t(keyWord.value)
} : {}) : {}, {
l: common_vendor.t(!isArticle.value ? "文章" : "视频"),
l: common_vendor.t(!isArticle.value ? "视频" : "文章"),
m: common_vendor.p({
src: common_vendor.unref(common_assets.switchImg),
width: "31rpx",
@ -373,26 +436,34 @@ const _sfc_main = {
}),
q: common_vendor.o(openCase)
} : {}, {
r: common_vendor.o(changeDate),
s: common_vendor.o(($event) => order.push_date = $event),
t: common_vendor.p({
title: "发布时间",
options: options.value,
modelValue: order.push_date
r: common_vendor.f(options.value, (item, k0, i0) => {
return {
a: "c10c040c-7-" + i0 + ",c10c040c-6",
b: common_vendor.p({
activeColor: "#3CC7C0",
label: item.label,
name: item.value
}),
c: item.value,
d: common_vendor.n(orderFilter.value == item.value ? "active" : "")
};
}),
v: common_vendor.o(changeRead),
w: common_vendor.o(($event) => order.read_num = $event),
x: common_vendor.p({
title: "阅读量",
options: options.value,
modelValue: order.read_num
s: common_vendor.o(changeDate),
t: common_vendor.o(($event) => orderFilter.value = $event),
v: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: orderFilter.value
}),
y: common_vendor.sr(uDropdownRef, "c10c040c-4,c10c040c-0", {
w: common_vendor.p({
title: dropTitle.value
}),
x: common_vendor.sr(uDropdownRef, "c10c040c-4,c10c040c-0", {
"k": "uDropdownRef"
}),
z: canOpenCase.value ? 1 : "",
A: common_vendor.f(dataList.value, (item, index, i0) => {
return {
y: canOpenCase.value ? 1 : "",
z: 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) => {
return {
@ -400,49 +471,76 @@ const _sfc_main = {
b: tag.author_id
};
}),
c: "c10c040c-7-" + i0 + ",c10c040c-0",
c: "c10c040c-8-" + i0 + ",c10c040c-0",
d: common_vendor.t(item.read_num),
e: "c10c040c-8-" + i0 + ",c10c040c-0",
f: common_vendor.t(item.collect_num),
g: "c10c040c-9-" + i0 + ",c10c040c-0",
h: common_vendor.t(formatdate(item.push_date)),
i: index,
j: 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)
};
e: item.collect_num > 0
}, item.collect_num > 0 ? {
f: "c10c040c-9-" + i0 + ",c10c040c-0",
g: common_vendor.p({
name: "heart",
color: "#6B7280",
size: "28rpx"
}),
h: common_vendor.t(item.collect_num)
} : {}, {
i: "c10c040c-10-" + i0 + ",c10c040c-0",
j: common_vendor.t(formatdate(item.push_date)),
k: 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)
});
}),
B: common_vendor.p({
A: common_vendor.p({
name: "eye",
color: "#6B7280",
size: "28rpx"
}),
C: common_vendor.p({
name: "heart",
color: "#6B7280",
size: "28rpx"
}),
D: common_vendor.p({
B: common_vendor.p({
name: "clock",
color: "#6B7280",
size: "28rpx"
}),
E: common_vendor.sr(paging, "c10c040c-0", {
C: common_vendor.sr(paging, "c10c040c-0", {
"k": "paging"
}),
F: common_vendor.o(queryList),
G: common_vendor.o(($event) => dataList.value = $event),
H: common_vendor.p({
D: common_vendor.o(queryList),
E: common_vendor.o(($event) => dataList.value = $event),
F: common_vendor.p({
["inside-more"]: true,
["loading-more-no-more-text"]: "咱也是有底线的!",
["auto-show-back-to-top"]: true,
modelValue: dataList.value
}),
I: common_vendor.o(($event) => showCase.value = false),
J: common_vendor.o(continueCase),
K: level.value != 3,
L: common_vendor.o(confirmCase),
M: common_vendor.f(labelObj.list1, (item, k0, i0) => {
G: common_vendor.o(cancelCase),
H: common_vendor.o(confirmCase),
I: common_vendor.t(!caseValue1.name ? "请选择选项" : caseValue1.name),
J: common_vendor.p({
name: "arrow-right"
}),
K: common_vendor.o(($event) => openCaseLevel("1")),
L: caseValue1.name && labelObj.list2.length > 0
}, caseValue1.name && labelObj.list2.length > 0 ? {
M: common_vendor.t(!caseValue2.name ? "请选择选项" : caseValue2.name),
N: common_vendor.p({
name: "arrow-right"
}),
O: common_vendor.o(($event) => openCaseLevel("2"))
} : {}, {
P: caseValue2.name && labelObj.list3.length > 0
}, caseValue2.name && labelObj.list3.length > 0 ? {
Q: common_vendor.t(!caseValue3.name ? "请选择选项" : caseValue3.name),
R: common_vendor.p({
name: "arrow-right"
}),
S: common_vendor.o(($event) => openCaseLevel("3"))
} : {}, {
T: freshKey.value,
U: common_vendor.p({
current: level.value - 1,
direction: "column"
}),
V: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "c10c040c-12-" + i0 + ",c10c040c-11",
a: "c10c040c-20-" + i0 + ",c10c040c-19",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@ -451,16 +549,18 @@ const _sfc_main = {
c: item.app_iden
};
}),
N: common_vendor.o(($event) => caseValue1.value = $event),
O: common_vendor.p({
W: common_vendor.o(groupChange1),
X: common_vendor.o(($event) => caseValue1.value = $event),
Y: common_vendor.p({
name: "group1",
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.value
}),
P: level.value == 1,
Q: common_vendor.f(labelObj.list2, (item, k0, i0) => {
Z: level.value == 1,
aa: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "c10c040c-14-" + i0 + ",c10c040c-13",
a: "c10c040c-22-" + i0 + ",c10c040c-21",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@ -469,16 +569,18 @@ const _sfc_main = {
c: item.app_iden
};
}),
R: common_vendor.o(($event) => caseValue2.value = $event),
S: common_vendor.p({
ab: common_vendor.o(groupChange2),
ac: common_vendor.o(($event) => caseValue2.value = $event),
ad: common_vendor.p({
name: "group2",
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.value
}),
T: level.value == 2,
U: common_vendor.f(labelObj.list3, (item, k0, i0) => {
ae: level.value == 2,
af: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "c10c040c-16-" + i0 + ",c10c040c-15",
a: "c10c040c-24-" + i0 + ",c10c040c-23",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@ -487,17 +589,20 @@ const _sfc_main = {
c: item.app_iden
};
}),
V: common_vendor.o(($event) => caseValue3.value = $event),
W: common_vendor.p({
ag: common_vendor.o(groupChange3),
ah: common_vendor.o(($event) => caseValue3.value = $event),
ai: common_vendor.p({
name: "group3",
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.value
}),
X: level.value == 3,
Y: common_vendor.o(closeCase),
Z: common_vendor.p({
aj: level.value == 3,
ak: common_vendor.o(closeCase),
al: common_vendor.p({
round: 10,
zIndex: "9",
closeOnClickOverlay: false,
show: showCase.value,
mode: "bottom"
})

View File

@ -3,12 +3,15 @@
"navigationStyle": "custom",
"usingComponents": {
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
"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-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"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",
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"up-steps-item": "../../node-modules/uview-plus/components/u-steps-item/u-steps-item",
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
"nav-bar-search": "../../components/navBarSearch/navBarSearch"
}

File diff suppressed because one or more lines are too long

View File

@ -23,10 +23,39 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.dropcontent.data-v-c10c040c {
padding-top: 40rpx;
padding-bottom: 20rpx;
background-color: #fff;
}
.dropcontent.data-v-c10c040c .u-radio {
margin-bottom: 6px !important;
margin-top: 16px !important;
}
.dropcontent .column.data-v-c10c040c {
padding: 0 30rpx;
border-top: 2rpx solid #e5e7eb;
}
.dropcontent .column.data-v-c10c040c .u-radio__text {
color: #333 !important;
}
.dropcontent .column.active.data-v-c10c040c .u-radio__text {
color: #3CC7C0 !important;
}
.stepbox.data-v-c10c040c {
padding: 10rpx 30rpx;
padding: 15rpx 30rpx;
border-bottom: 2rpx dotted #f3f4f6;
}
.stepbox.data-v-c10c040c .u-steps-item__content {
margin-top: -5rpx !important;
}
.stepbox .slot-content.data-v-c10c040c {
width: 100%;
margin-bottom: 25rpx;
justify-content: space-between;
align-items: center;
display: flex;
}
.bar.data-v-c10c040c {
width: 100%;
background: #f9fafb;
@ -178,6 +207,7 @@
}
.filterbox.data-v-c10c040c .u-dropdown__menu__item__text {
font-size: 14px !important;
color: #3c9cff !important;
}
.filterbox.data-v-c10c040c .u-dropdown__menu__item {
height: 74rpx;