Browse Source

聊天页按钮显示位置上移

许静 5 years ago
parent
commit
70723ea313
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/pages/im/index.js

+ 6
- 6
src/pages/im/index.js View File

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