From 7f1e749f9a60d36edb04e06610fb111567d404bf Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Mon, 08 Jan 2024 17:46:26 +0800
Subject: [PATCH] 走访日志功能更新,修复部分问题

---
 components/myIssue/myIssue.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/components/myIssue/myIssue.vue b/components/myIssue/myIssue.vue
index 13cef04..b0778e2 100644
--- a/components/myIssue/myIssue.vue
+++ b/components/myIssue/myIssue.vue
@@ -12,7 +12,9 @@
 		</view>
 		<textarea v-if="textareaShow" @blur="blur" v-model="infoReceive.content" :placeholder="textareaPlaceholder" />
 		<view class="issue-btn-box">
-			<button v-if="submitShow" class="submit-btn bgc-main c-ff" @click="doSubmit">{{submitText}}</button>
+			<button v-if="submitShow" class="submit-btn bgc-main c-ff"
+				:disabled="infoReceive.content && infoReceive.score?false:true"
+				@click="doSubmit">{{submitText}}</button>
 			<slot name="submit"></slot>
 		</view>
 	</view>
@@ -97,7 +99,8 @@
 				infoReceive: {
 					score: 0,
 					content: ""
-				}
+				},
+				canSubmit: false
 			}
 
 		},
@@ -136,7 +139,9 @@
 			 * @name 提交
 			 */
 			doSubmit() {
+
 				this.$emit('submit', this.infoReceive)
+
 			}
 		},
 		created() {
@@ -151,7 +156,7 @@
 	$fontSize: 28upx;
 
 	.issue {
-		background-color: $backgroundC;
+		/* background-color: $backgroundC; */
 
 		&-head {
 			background-color: $white;
@@ -213,6 +218,12 @@
 				/* background-color: #3682FF; */
 				line-height: 80upx
 			}
+
+			button[disabled] {
+				color: #fff !important;
+				border-color: #999 !important;
+				background-color: #999 !important;
+			}
 		}
 	}
 

--
Gitblit v1.9.3