9.16下午更新 包含im
This commit is contained in:
+22
-16
@@ -56,7 +56,7 @@
|
||||
<view class="grid-section">
|
||||
<uni-grid :column="4" :highlight="true" >
|
||||
<uni-grid-item v-for="(item, index) in gridList" :key="index">
|
||||
<view class="grid-item" @click="onClick(index)">
|
||||
<view class="grid-item" @click="onClick(index,item.text)">
|
||||
<up-image :src="item.icon" width="75rpx" height="75rpx" ></up-image>
|
||||
<text class="grid-text">{{ item.text }}</text>
|
||||
</view>
|
||||
@@ -254,6 +254,7 @@
|
||||
import sign from "@/static/home_qiandao_icon.png"
|
||||
import signImg from "@/static/sign_in_bng_big.png"
|
||||
import dayjs from 'dayjs'
|
||||
//import imLogin from "@/utils/IM.js"
|
||||
const expertDetail=reactive({})
|
||||
const showSign=ref(false)
|
||||
const signInfo=reactive({
|
||||
@@ -446,28 +447,31 @@
|
||||
const onReplayClick = (item) => {
|
||||
console.log('点击精彩回放:', item);
|
||||
navTo({
|
||||
url: '/pages_course/course_detail/course_detail?id=' + item.id
|
||||
url: '/pages_app/videoDetail/videoDetail?id='+item.id
|
||||
})
|
||||
};
|
||||
|
||||
// 网格点击事件
|
||||
const onClick = (index) => {
|
||||
const onClick = (index,name) => {
|
||||
console.log(name)
|
||||
console.log('点击了第' + index + '个');
|
||||
let url=''
|
||||
if(index==0){
|
||||
if(name=='我的患者'){
|
||||
url='/pages_app/patientMsg/patientMsg'
|
||||
}else if(index==1){
|
||||
}else if(name=='肝胆视频'){
|
||||
url='/pages_app/video/video'
|
||||
}else if(index==2){
|
||||
}else if(name=='公益咨询'){
|
||||
url='/pages_app/consult/consult'
|
||||
}else if(index==3){
|
||||
}else if(name=='指南杂志'){
|
||||
url='/pages_app/zhinan/zhinan'
|
||||
}else if(index==4){
|
||||
url='/pages_app/news/news'
|
||||
}else if(index==5){
|
||||
}else if(name=='肝胆新闻'){
|
||||
url='/pages_app/newsList/newsList'
|
||||
}else if(name=='肝胆课件'){
|
||||
url='/pages_app/ppt/ppt'
|
||||
}else if(index==6){
|
||||
}else if(name=='精品课'){
|
||||
url='/pages_course/course/course'
|
||||
}else if(name=='积分商城'){
|
||||
url='/pages_goods/pointMall/pointMall'
|
||||
}else{
|
||||
url='/pages_app/myApplication/myApplication'
|
||||
}
|
||||
@@ -831,16 +835,18 @@
|
||||
// 页面加载
|
||||
onLoad(() => {
|
||||
console.log('首页加载完成');
|
||||
});
|
||||
|
||||
// 页面显示
|
||||
onShow(() => {
|
||||
console.log('首页显示');
|
||||
// 获取首页数据
|
||||
getHomeData();
|
||||
// 页面加载完成后测试tabbar功能
|
||||
testTabbar();
|
||||
|
||||
});
|
||||
|
||||
// 页面显示
|
||||
onShow(() => {
|
||||
//imLogin();
|
||||
console.log('首页显示');
|
||||
|
||||
// 5秒后获取tabbar状态
|
||||
setTimeout(() => {
|
||||
getTabbarStatus();
|
||||
|
||||
Reference in New Issue
Block a user