Merge branch 'feature/comment-0620-ch' into msb_test

fix/0701-ch
ch 2 years ago
commit b2d1f2d9c0

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-20 16:36:14
* @LastEditors: ch
* @LastEditTime: 2022-06-28 16:33:46
* @LastEditTime: 2022-06-29 18:04:39
* @Description: file content
-->
<template>
@ -51,9 +51,9 @@ export default {
computed:{
isVerify(){
if(this.type === COMMENT.TYPE.COMMENT){
return !this.rate || !this.commentContent;
return !this.rate || !this.commentContent.trim();
}else{
return !this.commentContent;
return !this.commentContent.trim();
}
},
isEdit (){

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-21 18:19:13
* @LastEditors: ch
* @LastEditTime: 2022-06-28 20:07:56
* @LastEditTime: 2022-06-29 18:08:32
* @Description: file content
-->
<template>
@ -50,7 +50,7 @@
<view class="reply-comment">
<view class="reply-comment--box">
<input class="reply-comment--input" maxlength="500" v-model="commentContent" :placeholder="placeholder" />
<UiButton type="gradual" :disable="!commentContent" @click="handleSubmit"></UiButton>
<UiButton type="gradual" :disable="!commentContent.trim()" @click="handleSubmit"></UiButton>
</view>
</view>
</template>

Loading…
Cancel
Save