6.9
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<navBar></navBar>
|
||||
<navBar :type="'home'"></navBar>
|
||||
<view class="page">
|
||||
<view class="databox">
|
||||
<view class="cell">
|
||||
@@ -151,8 +151,6 @@ const numInfo=reactive({})
|
||||
|
||||
const getData = async() => {
|
||||
const {data}=await api.getHomeData();
|
||||
console.log(11111);
|
||||
console.log(data);
|
||||
if(data.code==200){
|
||||
most_read_articles.value=data.data.most_read_articles;
|
||||
new_articles.value=data.data.new_articles;
|
||||
@@ -175,12 +173,12 @@ const goList=(type)=>{
|
||||
};
|
||||
const searchDoctor=()=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/searchList/searchList?type=doctor'
|
||||
url:'/pages/searchList/searchList?type=doctor&name=医生&id='
|
||||
})
|
||||
}
|
||||
const goHospital=()=>{
|
||||
uni.navigateTo({
|
||||
url:'/pages/searchList/searchList?type=hospital'
|
||||
url:'/pages/searchList/searchList?type=hospital&name=医院&id='
|
||||
})
|
||||
}
|
||||
onLoad(() => {
|
||||
|
||||
Reference in New Issue
Block a user