6.9
This commit is contained in:
+48
-13
@@ -4,36 +4,36 @@
|
||||
<view class="con">
|
||||
<view class="infobox">
|
||||
<up--image
|
||||
:src="headImg"
|
||||
:src="userInfo.avatar?userInfo.avatar:headImg"
|
||||
width="154rpx"
|
||||
height="154rpx"
|
||||
radius="50%"
|
||||
></up--image>
|
||||
<view class="info">
|
||||
<view class="name">
|
||||
张三(主任医师)
|
||||
{{userInfo.user_name}}({{userInfo.title}})
|
||||
</view>
|
||||
<view class="hospital">首都医科大学附属北京**医院</view>
|
||||
<view class="hospital">{{ userInfo.hospital_name }}</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="databox">
|
||||
<view class="cell">
|
||||
<view class="num">11</view>
|
||||
<view class="num">{{ numInfo.article_num }}</view>
|
||||
<view class="name">文章</view>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<view class="num">22</view>
|
||||
<view class="num">{{ numInfo.video_num }}</view>
|
||||
<view class="name">视频</view>
|
||||
</view>
|
||||
<view class="cell">
|
||||
<view class="num">333</view>
|
||||
<view class="num">{{numInfo.video_read_num + numInfo.article_read_num }}</view>
|
||||
<view class="name">阅读量</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="listbox">
|
||||
<view class="titlename">我的临床病例库</view>
|
||||
<view class="cell" @click="goDoctor">
|
||||
<view class="cell" @click="goDoctor(userInfo.doctor_id,userInfo.user_name)" v-if="numInfo.article_num>0">
|
||||
<view class="left">
|
||||
<u-icon name="chat-fill" color="#000" size="28"></u-icon>
|
||||
<view class="title">我的病例库</view>
|
||||
@@ -47,10 +47,10 @@
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#9CA3AF" size="18"></u-icon>
|
||||
</view>
|
||||
<view class="cell" @click="goHospital">
|
||||
<view class="cell" @click="goHospital(userInfo.hospital_id,userInfo.hospital_name)" v-if="hospitalInfo.video_read_num>0 || hospitalInfo.article_read_num>0">
|
||||
<view class="left">
|
||||
<u-icon name="chat-fill" color="#000" size="28"></u-icon>
|
||||
<view class="title">XXXX医院临床病例库</view>
|
||||
<view class="title">{{userInfo.hospital_name}}临床病例库</view>
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#9CA3AF" size="18"></u-icon>
|
||||
</view>
|
||||
@@ -88,19 +88,54 @@
|
||||
<script setup>
|
||||
import dNav from "@/components/backNav/backNav.vue";
|
||||
import headImg from "@/static/headImg.png";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
import api from "@/api/api";
|
||||
import { ref,reactive} from "vue";
|
||||
const userInfo=reactive({})
|
||||
const numInfo=reactive({})
|
||||
const hospitalInfo=reactive({})
|
||||
const getInfo=()=>{
|
||||
api.getUserInfo().then(res=>{
|
||||
const result=res.data.data;
|
||||
Object.assign(userInfo,result);
|
||||
console.log(result)
|
||||
if(userInfo.doctor_id){
|
||||
getNum(userInfo.doctor_id)
|
||||
}
|
||||
if(userInfo.hospital_id){
|
||||
getHospitalNum(userInfo.hospital_id)
|
||||
};
|
||||
})
|
||||
}
|
||||
const getNum=(id)=>{
|
||||
api.getStaticDoctor(id).then(res=>{
|
||||
const result=res.data.data;
|
||||
Object.assign(numInfo,result);
|
||||
})
|
||||
}
|
||||
|
||||
const getHospitalNum=(id)=>{
|
||||
api.getStaticHospital(id).then(res=>{
|
||||
const result=res.data.data;
|
||||
Object.assign(hospitalInfo,result);
|
||||
})
|
||||
}
|
||||
onLoad(()=>{
|
||||
getInfo()
|
||||
})
|
||||
const goCert = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/certList/certList",
|
||||
});
|
||||
};
|
||||
const goDoctor=()=>{
|
||||
const goDoctor=(id,name)=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/searchList/searchList?type=doctor'
|
||||
url:'/pages/searchList/searchList?type=doctor&id='+id+'&name='+name
|
||||
})
|
||||
}
|
||||
const goHospital=()=>{
|
||||
const goHospital=(id,name)=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/searchList/searchList?type=hospital'
|
||||
url:'/pages/searchList/searchList?type=hospital&id='+id+'&name='+name
|
||||
})
|
||||
}
|
||||
const mySpecial=()=>{
|
||||
|
||||
Reference in New Issue
Block a user