|
@@ -3,15 +3,15 @@
|
|
<MtaNavbar></MtaNavbar>
|
|
<MtaNavbar></MtaNavbar>
|
|
<view class="dljt-container-box">
|
|
<view class="dljt-container-box">
|
|
<!-- 详情页面 -->
|
|
<!-- 详情页面 -->
|
|
- <view class="dljt-page-title">校园动态</view>
|
|
|
|
|
|
+ <view class="dljt-page-title">党群工作</view>
|
|
<view class="dljt-page-content-box">
|
|
<view class="dljt-page-content-box">
|
|
<!-- 导航 -->
|
|
<!-- 导航 -->
|
|
<view class="dljt-breadcrumb-box">
|
|
<view class="dljt-breadcrumb-box">
|
|
- <view class="breadcrumb-text">首页</view>
|
|
|
|
|
|
+ <view class="breadcrumb-text" @click="handleGo('shouye')">首页</view>
|
|
<icon class="breadcrumb-jt"></icon>
|
|
<icon class="breadcrumb-jt"></icon>
|
|
- <view class="breadcrumb-text">校园动态</view>
|
|
|
|
|
|
+ <view class="breadcrumb-text" @click="handleGo('dangqun')">党群工作</view>
|
|
<icon class="breadcrumb-jt"></icon>
|
|
<icon class="breadcrumb-jt"></icon>
|
|
- <view class="breadcrumb-active">学院新闻</view>
|
|
|
|
|
|
+ <view class="breadcrumb-active">党建工作</view>
|
|
</view>
|
|
</view>
|
|
<view class="dljt-detail-box">
|
|
<view class="dljt-detail-box">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
@@ -22,12 +22,12 @@
|
|
<MtaMpHtml class="dljt-editor-box" :content="data.info.content" ></MtaMpHtml>
|
|
<MtaMpHtml class="dljt-editor-box" :content="data.info.content" ></MtaMpHtml>
|
|
|
|
|
|
<!-- PDF -->
|
|
<!-- PDF -->
|
|
- <MtaPDFVue class="dljt-pdf-box" :pdfUrl="pdfUrl"></MtaPDFVue>
|
|
|
|
|
|
+ <!-- <MtaPDFVue class="dljt-pdf-box" :pdfUrl="pdfUrl"></MtaPDFVue> -->
|
|
|
|
|
|
<!-- 文件下载 -->
|
|
<!-- 文件下载 -->
|
|
- <div class="return-footer-box">
|
|
|
|
|
|
+ <!-- <div class="return-footer-box" v-if="">
|
|
<view class="dljt-down-btn" @click="handleDownFile"></view>
|
|
<view class="dljt-down-btn" @click="handleDownFile"></view>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -57,7 +57,6 @@
|
|
info: null,
|
|
info: null,
|
|
id: null
|
|
id: null
|
|
})
|
|
})
|
|
- const isFullscreen = ref(false)
|
|
|
|
const formatDate = computed(() => {
|
|
const formatDate = computed(() => {
|
|
if (data.info && data.info.createTime) {
|
|
if (data.info && data.info.createTime) {
|
|
return formatDateToYearMonthDay(data.info.createTime)
|
|
return formatDateToYearMonthDay(data.info.createTime)
|
|
@@ -65,7 +64,6 @@
|
|
return []
|
|
return []
|
|
})
|
|
})
|
|
|
|
|
|
- const pdfUrl = "https://kf3.mtavip.com/api/upload/resource/uploadFile60eebb8881e94278bc46bedba12aece6.pdf"
|
|
|
|
|
|
|
|
onLoad(({
|
|
onLoad(({
|
|
id
|
|
id
|
|
@@ -74,30 +72,18 @@
|
|
pageInit();
|
|
pageInit();
|
|
})
|
|
})
|
|
|
|
|
|
- onMounted(() => {
|
|
|
|
- // 监听全屏变化
|
|
|
|
- document.addEventListener('fullscreenchange', handleFullscreenChange)
|
|
|
|
- document.addEventListener('webkitfullscreenchange', handleFullscreenChange)
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- onUnmounted(() => {
|
|
|
|
- document.removeEventListener('fullscreenchange', handleFullscreenChange)
|
|
|
|
- document.removeEventListener('webkitfullscreenchange', handleFullscreenChange)
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- function handleFullscreen(e) {
|
|
|
|
- // 处理全屏事件
|
|
|
|
- isFullscreen.value = e.detail.fullscreen
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function handleFullscreenChange() {
|
|
|
|
- // 检查当前是否处于全屏状态
|
|
|
|
- const fullscreenElement = document.fullscreenElement ||
|
|
|
|
- document.webkitFullscreenElement
|
|
|
|
- if (!fullscreenElement) {
|
|
|
|
- // 如果退出全屏
|
|
|
|
- isFullscreen.value = false
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ function handleGo(code) {
|
|
|
|
+ if (code == 'shouye') {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (code == 'dangqun') {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/dqgzDangjiangongzuo/dqgzDangjiangongzuo'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
function handleDownFile() {
|
|
function handleDownFile() {
|