瀏覽代碼

聊天页按钮显示位置上移

许静 5 年之前
父節點
當前提交
70723ea313
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. 6
    6
      src/pages/im/index.js

+ 6
- 6
src/pages/im/index.js 查看文件

@@ -78,7 +78,7 @@ export default class Chat extends Component {
78 78
       const { sendId, sendName, receiverId, receiverName } = this.$router.params
79 79
       const me = this.props.userInfo.person
80 80
       const { personId: mineId } = me
81
-            
81
+
82 82
       // 系统异常
83 83
       if (!sendId || !receiverId) {
84 84
         Taro.showToast({
@@ -134,11 +134,11 @@ export default class Chat extends Component {
134 134
         this.setState({ chatting, me }, () => {
135 135
           this.loadList(res => {
136 136
             this.toBottom()
137
-  
137
+
138 138
             const { records } = res
139 139
             const newMsg = records[0]
140 140
             const isCardMsg = newMsg && newMsg.messageType === MESSAGETYPE.CARD
141
-  
141
+
142 142
             // 如果最新一条消息不是卡片类型 则自动发送卡片信息
143 143
             if (!isCardMsg) {
144 144
               setTimeout(() => {
@@ -149,7 +149,7 @@ export default class Chat extends Component {
149 149
         });
150 150
       })
151 151
 
152
-      socket.wss.onMessage(res => {    
152
+      socket.wss.onMessage(res => {
153 153
         const data = JSON.parse(res.data)
154 154
 
155 155
         console.log('receive message ==>', data)
@@ -369,7 +369,7 @@ export default class Chat extends Component {
369 369
       console.log('发送成功')
370 370
       this.appendData(payload)
371 371
     })
372
- 
372
+
373 373
     this.setState({
374 374
       inputText: '',
375 375
       // msgList: list
@@ -504,7 +504,7 @@ export default class Chat extends Component {
504 504
           <Text className="text">常见问题</Text>
505 505
         </View>
506 506
 
507
-        {/* <BackHomeBtn style={{ right: '3%' }}></BackHomeBtn> */}
507
+        <BackHomeBtn style={{ right: '3%', bottom: '20%' }}></BackHomeBtn>
508 508
         {
509 509
           visiblePrompt && (
510 510
             <View className="prompt" onClick={this.togglePromptVisible.bind(this, false)}>