From 117da08d652db513d8889924ea12b13aed68fba2 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 16 七月 2024 14:59:09 +0800 Subject: [PATCH] 提交 --- pages/tabBar/notice/measures.vue | 47 +++++++++++++++++++++++++++++++---------------- 1 files changed, 31 insertions(+), 16 deletions(-) diff --git a/pages/tabBar/notice/measures.vue b/pages/tabBar/notice/measures.vue index dedf4ce..d168f4b 100644 --- a/pages/tabBar/notice/measures.vue +++ b/pages/tabBar/notice/measures.vue @@ -6,13 +6,13 @@ <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" size="17" style="margin-left: 10px;" @click="goBack" /> <view class="barText">响应措施反馈</view> </view> </view> <view class="measureCard"> <view class="first"> - <text style="font-size: 16px;margin-bottom: 20px;">基础措施</text> + <text style="font-size: 16px;margin-bottom: 20px;"><text style="color: red;">*</text>基础措施</text> <u-checkbox-group v-model="checkboxValue1" placement="column" @@ -43,13 +43,16 @@ :maxCount="10" style="margin-top: -10px;" ></u-upload> - <view class="pic" v-for="(item,index) in nameList" :key="index"> - {{item.name}} - </view> + <!-- <view :class="{pic: nameList.length>0}"> + <view class="picItem" v-for="(item,index) in nameList" :key="index"> + <image src="../../../static/pic.png"> + {{item.name}} + </view> + </view> --> </view> </view> <view class="measures"> - <u-button class="measureBtn" type="primary" @click="submit">提交</u-button> + <u-button class="measureBtn" type="primary" @click="$noMoreClicks(submit)">提交</u-button> </view> </view> </template> @@ -76,7 +79,8 @@ measureIds : [], baseUrl: VUE_APP_BASE_URL, list: [], - showBtn: false + showBtn: false, + noClick:true, } }, onLoad(options) { @@ -101,9 +105,10 @@ }).catch(err=>{}) }, goBack() { - uni.navigateBack({ - url:'./detail/detail' - }); + console.log("fdetailData",uni.getStorageSync("fdetailData")) + uni.navigateTo({ + url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(uni.getStorageSync("fdetailData"))) + }) }, checkboxChange(n) { @@ -114,7 +119,7 @@ console.log('change', this.measureIds); }, submit() { - if(this.measureIds.length <0) { + if(this.measureIds.length <= 0) { uni.showToast({ icon: "none", title: '请勾选基础措施' @@ -132,12 +137,13 @@ icon: "none", title: '提交成功' }); - this.goBack(); + uni.navigateTo({ + url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(this.detailData)) + }) }else{ uni.$u.toast(res.msg) } }) - }, // 删除图片 deletePic(event) { @@ -204,7 +210,7 @@ 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); } @@ -244,7 +250,7 @@ .second{ display: flex; flex-direction: column; - margin-top: 50px; + margin-top: 30px; } .third{ display: flex; @@ -259,10 +265,19 @@ display: flex; flex-direction: column; background-color: rgb(242,242,242); + padding: 5px 8px; +} +.picItem{ + font-weight: 500; margin-top: 5px; font-size: 14px; + display: flex; + image{ + width: 20px; + height: 20px; + margin-right:3px; + } } - .measures{ margin-top: 50px 12px 0; padding: 0 12px; -- Gitblit v1.9.2