This commit is contained in:
zoujiandong
2025-06-16 19:01:04 +08:00
parent c1309bc9fc
commit bbc99ec0dd
26 changed files with 488 additions and 260 deletions
+20 -18
View File
@@ -3,11 +3,11 @@
<navBar :navName="'肝胆相照病例交流园地'" :type="'caseTalk'"></navBar>
<view class="databox">
<view class="cell">
<view class="num">{{ numInfo.exchange_collect_num}}</view>
<view class="num">{{ numInfo.exchange_num}}</view>
<view class="name">病例数</view>
</view>
<view class="cell">
<view class="num">{{ numInfo.exchange_num }}</view>
<view class="num">{{numInfo.exchange_collect_num}}</view>
<view class="name">互动数</view>
</view>
<view class="cell">
@@ -36,7 +36,7 @@
<view class="record special">
<view class="titlebox">
<view class="title">最新收录</view>
<view class="more" @click="goList('mew')">
<view class="more" @click="goList('new')">
<view class="morename">查看更多</view>
<u-icon name="arrow-right" size="16" color="#3CC7C0"></u-icon>
</view>
@@ -46,12 +46,12 @@
class="cell"
v-for="(item) in new_articles"
:key="item.exchange_id"
@click="goDetail(item.exchange_id)"
>
<view class="title ellipsis-two-lines">{{
<view class="title ellipsis-two-lines" @click="goDetail(item.exchange_id)">{{
item.exchange_title
}}</view>
<view class="doctor">
<view class="doctor" @click="goDetail(item.exchange_id)">
<up--image
:src="item.avatar ? item.avatar : headImg"
width="46rpx"
@@ -62,17 +62,18 @@
>{{ item.user_name }}{{ item.hospital_name }}</view
>
</view>
<view class="content"> {{ item.exchange_content }} </view>
<view class="content" @click="goDetail(item.exchange_id)"> {{ item.exchange_content }} </view>
<view
class="imgbox"
@click="goDetail(item.exchange_id)"
v-if="
item.exchange_content_images &&
item.exchange_content_images.length > 0
item.exchange_content_image &&
item.exchange_content_image.length > 0
"
>
<view
class="imgcell"
v-if="unit in item.exchange_content_images"
v-for="unit in item.exchange_content_image"
>
<up--image
:src="unit"
@@ -102,7 +103,7 @@
></video>
</view>
</view>
<view class="tagbox" v-if="item.label && item.label.length > 0">
<view class="tagbox" @click="goDetail(item.exchange_id)" v-if="item.label && item.label.length > 0">
<view
class="tag"
v-for="cell in item.label"
@@ -110,7 +111,7 @@
>{{ cell.label_name }}</view
>
</view>
<view class="deal">
<view class="deal" @click="goDetail(item.exchange_id)">
<view class="left">
<view class="eyebox item">
<up-icon name="eye" color="#4B5563" size="28rpx"></up-icon>
@@ -148,9 +149,10 @@
import tabBar from "@/components/tabBar/tabBar.vue";
import headImg from "@/static/headImg.png";
import dayjs from "dayjs";
import navTo from "@/utils/navTo.js";
import api from "@/api/api";
import { reactive,ref } from 'vue';
import { onLoad } from "@dcloudio/uni-app";
import { onShow } from "@dcloudio/uni-app";
const numInfo=reactive({})
const most_read_articles=ref([]);
const new_articles=ref([]);
@@ -160,17 +162,17 @@
return dayjs(date).format('YYYY-MM-DD')
};
// const goList = () => {
// uni.navigateTo({
// navTo({
// url: '/pages/specialList/specialList'
// })
// };
const goList=(type)=>{
if(type=='read'){
uni.navigateTo({
navTo({
url:'/pages/specialList/specialList?is_selected=1'
})
}else{
uni.navigateTo({
navTo({
url:'/pages/specialList/specialList'
})
}
@@ -183,7 +185,7 @@
})
}
const goDetail = (id) => {
uni.navigateTo({
navTo({
url: `/pages/detail/detail?id=${id}&type=exchange`,
});
};
@@ -226,7 +228,7 @@ const hotList=()=>{
}).then(res=>{
})
}
onLoad(()=>{
onShow(()=>{
getStatic();
goodList();
searchList();