Browse Source

处理ios无法复制的问题

黎海 2 years ago
parent
commit
5ce2d229f5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/pages/chat/index.jsx
  2. 2 2
      src/pages/chat/index.less

+ 2 - 2
src/pages/chat/index.jsx

@@ -269,7 +269,7 @@ export default class Albums_play extends Component {
269 269
                   item.name == 'mine' &&
270 270
                   <View className='mine-speak-info'>
271 271
                     <View className='mine-text'>
272
-                      <Text selectable className='mine-text-content'>
272
+                      <Text selectable userSelect className='mine-text-content'>
273 273
                         {item.userTexts}
274 274
                       </Text>
275 275
                       <View className='mine-text-tip'></View>
@@ -282,7 +282,7 @@ export default class Albums_play extends Component {
282 282
                   <View className='other-speak-info'>
283 283
                     <Image className='other-image' src={item.userImage}></Image>
284 284
                     <View className='other-text'>
285
-                      <Text selectable className='other-text-content'>
285
+                      <Text selectable userSelect className='other-text-content'>
286 286
                         {item.userTexts}
287 287
                       </Text>
288 288
                       <View className='other-text-tip'></View>

+ 2 - 2
src/pages/chat/index.less

@@ -115,7 +115,7 @@ page {
115 115
   display: flex;
116 116
   padding:  20px;
117 117
   .other-text{
118
-    background-color: #9EE770;
118
+    background-color: #f8f8f8;
119 119
     border-radius: 10px;
120 120
     padding: 20px;
121 121
     max-width: 485px;
@@ -132,7 +132,7 @@ page {
132 132
       height: 0;
133 133
       border-top: 20px solid transparent;
134 134
       border-left: 20px solid transparent;
135
-      border-right: 20px solid #9EE770;
135
+      border-right: 20px solid #f8f8f8;
136 136
       border-bottom: 20px solid transparent;
137 137
     }
138 138
   }