Explorar el Código

昵称校验换位置 屏蔽报告详情下拉刷新

Karsa hace 3 años
padre
commit
94f8bda657

+ 14 - 15
src/views/hzyb/components/leaveMessage/index.vue

@@ -31,10 +31,18 @@ const isHideRealName = ref(true);
 //判断是否可以实名
 const checkNickHandle = (val) => {
 	
-	if(haveNick.value){
-		isHideRealName.value = val
-	} else {
-		isHideRealName.value = true;
+	isHideRealName.value = haveNick.value ? val : true;
+
+}
+
+//显示写留言框
+const isShowMessagebox = ref(false);
+const message_content = ref('');
+//展开留言框
+const writeOrCancelMessage = () => {
+	isShowMessagebox.value = !isShowMessagebox.value;
+
+	if(!haveNick.value && isShowMessagebox.value === true){
 		Dialog.confirm({
 			title: '',
 			message: '检测到您还未设置头像和昵称,您的留言将发布为匿名,是否立即去设置?',
@@ -50,16 +58,6 @@ const checkNickHandle = (val) => {
 				
 			});
 	}
-
-
-}
-
-//显示写留言框
-const isShowMessagebox = ref(false);
-const message_content = ref('');
-//展开留言框
-const writeOrCancelMessage = () => {
-	isShowMessagebox.value = ! isShowMessagebox.value;
 }
 /* 发布留言 */
 const publishMessageHandle = async() => {
@@ -193,7 +191,7 @@ const delMessageHandle = ({ comment_id }) => {
 						<Checkbox v-model="isHideRealName" icon-size="15px" shape="square" checked-color="#E3B377" @change="checkNickHandle"/>
 						<span class="label">匿名发布</span>
 
-						<icon name="question-o" color="#E3B377" @click="Toast({ message: '匿名发布的留言将用默认头像和默认昵称,用户需设置头像和昵称后才能取消匿名',  position: 'bottom' })"/>
+						<icon name="question-o" color="#E3B377" @click="Toast({ message: '匿名发布的留言将使用默认头像和默认昵称,用户需设置头像和昵称后才能取消匿名',  position: 'bottom' })"/>
 					</div>
 					<Button type="primary" :disabled="!message_content" @click="publishMessageHandle">发布</Button>
 				</div>
@@ -297,6 +295,7 @@ const delMessageHandle = ({ comment_id }) => {
 			border-radius: 8px;
 			border: 1px solid #E3B377;
 			height: 400px;
+			overflow-y: auto;
 		}
 		.write-bottom {
 			display: flex;

+ 1 - 1
src/views/hzyb/report/ChapterDetail.vue

@@ -1,5 +1,5 @@
 <template>
-<van-pull-refresh v-model="loading" @refresh="onRefresh" style="min-height:100vh">
+<van-pull-refresh v-model="loading" disabled style="min-height:100vh">
   <div class="chapter-detail-page" v-if="info" :style="{paddingBottom:$store.state.hzyb.audioData.url&&'80px'}">
     <div :class="['main-box',!info.auth_ok&&'main-box-noauth']">
       <div class="title">【第{{info.report_chapter_item.stage}}期 | {{info.report_chapter_item.classify_name_first}}  | {{info.report_chapter_item.type_name}}】{{info.report_chapter_item.title}}</div>

+ 1 - 1
src/views/hzyb/report/Detail.vue

@@ -1,5 +1,5 @@
 <template>
-<van-pull-refresh v-model="loading" @refresh="onRefresh" style="min-height:100vh">
+<van-pull-refresh v-model="loading" disabled style="min-height:100vh">
     <div class="report-detail-page" v-if="info" :style="{paddingBottom:$store.state.hzyb.audioData.url&&'80px'}">
         <!-- 晨报、周报章节 -->
         <div class="chapter-list-wrap" v-if="['晨报','周报'].includes(info.report_info.classify_name_first)">