Browse Source

去除特殊字符

许静 5 years ago
parent
commit
f70f09622c
2 changed files with 8 additions and 8 deletions
  1. 3
    3
      src/pages/agent/client/index.js
  2. 5
    5
      src/pages/card/index.js

+ 3
- 3
src/pages/agent/client/index.js View File

125
                         </View>
125
                         </View>
126
                         <View className='client__top'>
126
                         <View className='client__top'>
127
                           <View className='client__infor'>
127
                           <View className='client__infor'>
128
-                            <Text className='client__name'>{item.name}  &emsp;</Text>
128
+                            <Text className='client__name'>{item.name} </Text>
129
                             <Image className='sex' src={item.sex == 1 ? require('@assets/person/guest/man.png') : require('@assets/person/guest/women.png')} mode='widthFix'></Image>
129
                             <Image className='sex' src={item.sex == 1 ? require('@assets/person/guest/man.png') : require('@assets/person/guest/women.png')} mode='widthFix'></Image>
130
                           </View>
130
                           </View>
131
 
131
 
132
 
132
 
133
                         </View>
133
                         </View>
134
 
134
 
135
-                        <View className='phone'>手机:&emsp;{item.phone}</View>
136
-                        <View className='phone'>意向楼盘:&emsp;{item.intention ? item.intention : '暂无'}</View>
135
+                        <View className='phone'>手机: {item.phone}</View>
136
+                        <View className='phone'>意向楼盘: {item.intention ? item.intention : '暂无'}</View>
137
 
137
 
138
                       </View>
138
                       </View>
139
                       <View className='time'>{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>
139
                       <View className='time'>{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>

+ 5
- 5
src/pages/card/index.js View File

25
 
25
 
26
 export default class Index extends Component {
26
 export default class Index extends Component {
27
   config = {
27
   config = {
28
-    navigationBarTitleText: '个人主页' 
28
+    navigationBarTitleText: '个人主页'
29
   }
29
   }
30
   state = {
30
   state = {
31
     cardId: null,
31
     cardId: null,
43
       const router = Taro.getStorageSync('router')
43
       const router = Taro.getStorageSync('router')
44
       const id = this.$router.params.id || router.query.id || '4604a792d575eb8187711625bd88832c'
44
       const id = this.$router.params.id || router.query.id || '4604a792d575eb8187711625bd88832c'
45
 
45
 
46
-      if(router.query.id){
46
+      if (router.query.id) {
47
         this.setState({
47
         this.setState({
48
           cardId: id,
48
           cardId: id,
49
           modalStatus: true
49
           modalStatus: true
50
         }, this.loadCardDetail)
50
         }, this.loadCardDetail)
51
-      }else{
51
+      } else {
52
         this.setState({
52
         this.setState({
53
           cardId: id,
53
           cardId: id,
54
           modalStatus: false
54
           modalStatus: false
510
                 <View className='detailed__main'>
510
                 <View className='detailed__main'>
511
                   <View className='detailed__tel' onClick={this.makePhoneCall}>
511
                   <View className='detailed__tel' onClick={this.makePhoneCall}>
512
                     <View className='detailed__tel__txt'>
512
                     <View className='detailed__tel__txt'>
513
-                      <Text className='tel__txt' space='ensp'>手机&emsp;</Text> {cardInfo.phone}
513
+                      <Text className='tel__txt' space='ensp'>手机 </Text> {cardInfo.phone}
514
                     </View>
514
                     </View>
515
                     <Text className='iconfont icon-dianhua tel__img'></Text>
515
                     <Text className='iconfont icon-dianhua tel__img'></Text>
516
                   </View>
516
                   </View>
517
                   <View className='detailed__add' onClick={this.getLocation}>
517
                   <View className='detailed__add' onClick={this.getLocation}>
518
                     <View className='detailed__add__txt'>
518
                     <View className='detailed__add__txt'>
519
-                      <Text className='add__txt' space='ensp'>地址&emsp;</Text> {cardInfo.address}
519
+                      <Text className='add__txt' space='ensp'>地址 </Text> {cardInfo.address}
520
                     </View>
520
                     </View>
521
                     <Text className='iconfont icon-daohangdizhi add__img'></Text>
521
                     <Text className='iconfont icon-daohangdizhi add__img'></Text>
522
                   </View>
522
                   </View>