From f5d67b69142c78be1ee996f53b6bb8e4c954761c Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: 星期三, 15 十一月 2023 10:06:38 +0800
Subject: [PATCH] 页面跳转修改

---
 pages/tabBar/responsivity/showMeasures.vue |   46 +++++++++++++++++++++++++++++-----------------
 1 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/pages/tabBar/responsivity/showMeasures.vue b/pages/tabBar/responsivity/showMeasures.vue
index 6364cf7..73eabe1 100644
--- a/pages/tabBar/responsivity/showMeasures.vue
+++ b/pages/tabBar/responsivity/showMeasures.vue
@@ -6,32 +6,32 @@
 			<view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
 			<!-- 真正的导航栏内容 -->
 			<view class="navBar">
-				<u-icon name="arrow-left" color="black" size="17" @click="goBack" />
+				<u-icon name="arrow-left" color="black" style="margin-left: 10px;" size="17" @click="goBack" />
 				<view class="barText">响应措施反馈</view>
 			</view>
 		</view>
 		<view class="measureCard">
 			<view class="head">
-				<u-form :model="form" ref="uForm" label-width="100px">
+				<u-form :model="form" ref="uForm" label-width="80px">
 					<u-form-item label="信息标题 :" >{{form.title}}</u-form-item>
 					<u-form-item label="发布单位 :">{{form.publishingUnit}}</u-form-item>
 					<u-form-item label="发布时间 :">{{form.publishingTime}}</u-form-item>
 					<u-form-item label="反馈时间 :">{{form.measureSubmitTime}}</u-form-item>
 				</u-form>
 			</view>
-			<view class="first">
-				<text style="font-size: 16px;margin-bottom: 20px;font-weight: 600;">基础措施</text>
-				<view v-for="(item, index) in measureList" :key="index" style="margin-left: 18px;margin-bottom:10px; font-size:16px;">
+			<view class="first" v-if="measureList">
+				<text style="font-size: 18px;margin-bottom: 20px;font-weight: 600;">基础措施</text>
+				<view v-for="(item, index) in measureList" :key="index" style="margin-left: 18px;margin-bottom:10px; font-size:15px;">
 					<text style="margin-top: 15px;">{{item}}</text>
 				</view>
 			</view>
-			<view class="second">
-				<text style="font-size: 16px;margin-bottom: 20px;font-weight: 600;">补充措施</text>
+			<view class="second"  v-if="measures!=null">
+				<text style="font-size: 18px;margin-bottom: 20px;font-weight: 600;">补充措施</text>
 				<u--textarea style="margin-top: -5px;" v-model="measures" disabled placeholder="请输入内容" ></u--textarea>
 			</view>
 			<view class="third">
 				<view v-for="(item, index) in images" :key="index">
-					<u-image @click="previewSqs(item,index)" style="margin: 5px; 5px" width="230rpx" height="230rpx" :src="item.url"></u-image>
+					<u-image @click="previewSqs(item,index)" style="margin: 5px; 5px" width="180rpx" height="180rpx" :src="item.url"></u-image>
 				</view>
 			</view>
 		</view>
@@ -67,18 +67,30 @@
 			this.form = test;
 			this.measures = this.form.responseMeasure;
 			this.measureList = this.form.baseMeasures;
-			this.images = this.form.attachments.map((item) => {
-			  return {url: VUE_APP_BASE_URL + item.attachment};
-			});
+			if(this.form.attachments && this.form.attachments.length>0){
+				this.images = this.form.attachments.map((item) => {
+				  return {url: VUE_APP_BASE_URL + item.attachment};
+				});
+			}else {
+				this.images = [];
+			}
 			console.log("img",this.images)
 			this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
 			uni.hideTabBar();
 		},
 		methods: {
 			goBack() {
-				uni.navigateBack({
-				    url:'/pages/tabBar/responsivity/villageResponsivity'
-				});
+				console.log(uni.getStorageSync('backMeasures'),'222222')
+				if(uni.getStorageSync('backMeasures') == 'detail'){
+					uni.navigateTo({
+					  url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(uni.getStorageSync("fdetailData")))
+					})
+				}else if (uni.getStorageSync('backMeasures') == 'county'){
+					uni.navigateTo({
+					  url: '/pages/tabBar/responsivity/countyResponsivity'
+					})
+				}
+
 			},
 			//预览图片
 			previewSqs(item,index) {
@@ -105,14 +117,14 @@
   height: 50px;
   display: flex;
   flex-direction: row;
-  justify-content: center;
+  /* justify-content: center; */
   align-items: center;
   box-shadow: 0 3px 12px rgba(0,0,0,0.05);
 }
 .barText{
   /* margin-left: 20px; */
   text-align: center;
-  width: 85%;
+  width: 90%;
   font-size: 16px;
   /* text-align: center; */
   font-weight: 600;
@@ -145,7 +157,7 @@
 .second{
 	display: flex;
 	flex-direction: column;
-	margin-top: 50px;
+	margin-top: 30px;
 }
 .third{
 	display: flex;

--
Gitblit v1.9.2