From dbccfc04eb5a927d690bb75277f614e63d4544c9 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Wed, 21 Jan 2026 15:54:13 +0800
Subject: [PATCH] 适配64位
---
pages/tabBar/notice/detail.vue | 52 +++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 41 insertions(+), 11 deletions(-)
diff --git a/pages/tabBar/notice/detail.vue b/pages/tabBar/notice/detail.vue
index 45b62ed..785b51a 100644
--- a/pages/tabBar/notice/detail.vue
+++ b/pages/tabBar/notice/detail.vue
@@ -30,6 +30,7 @@
</u-tag>
</view>
</view>
+ <text class="textTop"><b>发布时间:</b>{{detailData.publishingTime}}</text>
<text class="textTop" v-if="detailData.forwardPath" style="display: flex;"><b>发布单位:</b>
<text v-for="(item,index) in detailData.forwardPath">
<text v-if="index !=detailData.forwardPath.length-1">
@@ -39,19 +40,22 @@
</text>
</text>
<text class="textTop" v-else><b>发布单位:</b>{{detailData.publishingUnit}}</text>
- <text class="textTop"><b>短信内容:</b><i style="background-color: rgb(240, 248, 255);">{{detailData.content}}发布单位:{{detailData.publishingUnit}}</i></text>
+ <text class="textTop"><b>短信内容:</b><i style="background-color: rgb(240, 248, 255);">{{detailData.content}}<!-- 发布单位:{{detailData.publishingUnit}} --></i></text>
<view :style="{ height: directViewUrl ? '560px' : '' }" style="margin-top: 20px;">
<text class="textTop" style="width: 76px;" ><b>附件内容:</b></text>
<view style="width: 100%; height: 550px;" v-if="directViewUrl">
<iframe :src="directViewUrl" class="frameStyle"></iframe>
</view>
- <view style="width: 100%; height: 550px;" v-if="urls.length > 0">
+ <view style="width: 100%; height: auto" v-if="urls.length > 0">
<view v-for="(item, index) in urls" :key="index" >
<view style="display: flex;margin-top: 10px;" @click="openFile(item)" >
<u-icon name="attach" color="#2979ff" size="20"></u-icon> <span>{{item.name}}</span>
</view>
</view>
</view>
+ <span v-if="!(directViewUrl || urls.length > 0)">
+ 无
+ </span>
<!-- <view class="attache" v-if="isAllImg == 'no'">
<view v-for="(item, index) in detailData.attachments" :key="index" >
@@ -106,17 +110,17 @@
<view v-if="detailData.role == 'leader' && detailData.reviewStatus == 1" class="btn">
<u-button
style="background-color:rgb(6, 202, 23);color: white;width: 180px;"
- @click="approved"
+ @click="$noMoreClicks(approved)"
>审核通过</u-button>
<u-button
style="background-color:rgb(247, 108, 125);color: white;width: 180px;"
- @click="reject"
+ @click="$noMoreClicks(reject)"
>审核驳回</u-button>
</view>
<view v-if="detailData.role == 'infoPeople' && detailData.reviewStatus == 2" class="btn">
<u-button
style="background-color:rgb(6, 202, 23);color: white;width: 180px;"
- @click="infoSend"
+ @click="$noMoreClicks(infoSend)"
>确认发布</u-button>
</view>
<!-- //村级显示 -->
@@ -159,7 +163,9 @@
directViewUrl: '',
cityMessage: '响应措施反馈',
measureData: {},
- urls: []
+ urls: [],
+ backFlag: '',
+ noClick:true,
}
},
onLoad:function(options){
@@ -231,13 +237,33 @@
if(this.unitType == 4 && this.role == '工作人员'){
this.getMeasures();
}
-
+ // this.backFlag = uni.getStorageSync('backFlag')
+ // console.log(this.backFlag,'1111')
},
methods: {
goBack() {
- uni.navigateBack({
- url:'./notice/notice'
- });
+ console.log(uni.getStorageSync('backFlag'),'1111')
+ if(uni.getStorageSync('backFlag') == 'notice'){
+ uni.switchTab({
+ url: '/pages/tabBar/notice/notice'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'info') {
+ uni.switchTab({
+ url: '/pages/tabBar/information/information'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'examine') {
+ uni.switchTab({
+ url: '/pages/tabBar/examine/examine'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'current') {
+ uni.switchTab({
+ url: '/pages/tabBar/current/current'
+ })
+ }else if ( uni.getStorageSync('backFlag') == 'response'){
+ uni.switchTab({
+ url: '/pages/tabBar/response/response'
+ })
+ }
},
loginOut() {
uni.clearStorageSync();
@@ -262,6 +288,8 @@
},
goMeasures() {
if(this.cityMessage == '查看措施反馈' ){
+ uni.setStorageSync('backMeasures','detail')
+ this.measureData.id = this.detailData.id
uni.navigateTo({
url: `/pages/tabBar/responsivity/showMeasures?data=` + encodeURIComponent(JSON.stringify(this.measureData))
})
@@ -374,6 +402,7 @@
box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.barText{
+ margin-left: -20px;
flex: 1;
/* margin-left: 20px; */
text-align: center;
@@ -415,7 +444,8 @@
margin-left: 15px;
}
.detailCard{
- flex-grow: 1;
+ // flex-grow: 1;
+ // height: 65%;
display: flex;
flex-direction: column;
background: #fff;
--
Gitblit v1.9.2