Explorar el Código

feat: 发送消息判空

linwenxin hace 1 año
padre
commit
41c8174709
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/pages/message/msgView.vue

+ 2 - 2
src/pages/message/msgView.vue

@@ -77,7 +77,7 @@
           </view> -->
           <!-- 发送消息 -->
           <view class="text_input_mount" @click="send">
-            <image style="width: 60%; height: 60%;" mode="aspectFill" src="/static/tabBar/icon_issue01.png"></image>
+            <image style="width: 50%; height: 53%;" mode="aspectFill" src="/static/tabBar/icon_issue01.png"></image>
           </view>
         </view>
       </view>
@@ -241,7 +241,7 @@
         this.scrollTop = e.detail.scrollTop
       },
       send() {
-        if (this.pam.goodsId && this.$store.state.user.userId) {
+        if (this.pam.goodsId && this.$store.state.user.userId && this.message) {
           api.postJson('/user/talk/send', {
             message: this.message,
             userId: this.$store.state.user.userId,