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();
|
||||
|
||||
+16
-5
@@ -13,7 +13,7 @@
|
||||
<up-image :src="select" width="26rpx" height="26rpx" ></up-image>
|
||||
</view>
|
||||
<view class="filter-divider"></view>
|
||||
<view class="filter-item">
|
||||
<view class="filter-item" @click="goLiveReplay">
|
||||
<text>会议回放</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -39,7 +39,7 @@
|
||||
<view class="meeting-list" v-if="meetingList.length > 0">
|
||||
<template v-for="(group, groupIndex) in groupedMeetings" :key="groupIndex">
|
||||
<view class="time-header">{{ group.monthYear }}</view>
|
||||
<view class="meetcell" v-for="(item, index) in group.items" :key="item.id || index">
|
||||
<view class="meetcell" v-for="(item, index) in group.items" :key="item.id || index" @click="goDetail(item)">
|
||||
<view class="meeting-item">
|
||||
<!-- 左侧日期标识 -->
|
||||
<view class="date-tag" :style="{backgroundColor: item.tagColor}">
|
||||
@@ -167,7 +167,7 @@
|
||||
import timeImg from "@/static/play_long.png"
|
||||
import docUrl from "@/utils/docUrl"
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
import navTo from '@/utils/navTo.js';
|
||||
// 弹窗状态
|
||||
const isTimePopupShow = ref(false);
|
||||
const isLocationPopupShow = ref(false);
|
||||
@@ -230,6 +230,12 @@
|
||||
monthList.value = months;
|
||||
console.log('生成的月份列表:', monthList.value);
|
||||
};
|
||||
const goDetail=(item)=>{
|
||||
const encoded = encodeURIComponent(item.path);
|
||||
uni.navigateTo({
|
||||
url: `/pages_app/webview/webview?url=${encoded}`
|
||||
});
|
||||
}
|
||||
// 省份数据
|
||||
const provinceList = ref([
|
||||
{ code: '', name: '全国' },
|
||||
@@ -268,7 +274,11 @@
|
||||
{ code: '香港', name: '香港特别行政区' },
|
||||
{ code: '澳门', name: '澳门特别行政区' }
|
||||
]);
|
||||
|
||||
const goLiveReplay = () => {
|
||||
navTo({
|
||||
url: '/pages_app/liveReplay/liveReplay'
|
||||
});
|
||||
};
|
||||
// 会议列表数据
|
||||
const meetingList = ref([]);
|
||||
|
||||
@@ -869,7 +879,7 @@ $shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
margin-top: 231rpx;
|
||||
position: relative;
|
||||
background-color: $white;
|
||||
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: calc(100vh - 433rpx);
|
||||
padding:40rpx;
|
||||
@@ -932,6 +942,7 @@ $shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
width:106rpx;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user