xujing 5 лет назад
Родитель
Сommit
859afdecab
2 измененных файлов: 5 добавлений и 3 удалений
  1. 3
    3
      src/components/achievePhone/index.js
  2. 2
    0
      src/components/achievePhone/index.scss

+ 3
- 3
src/components/achievePhone/index.js Просмотреть файл

@@ -11,7 +11,7 @@ export default class Index extends Component {
11 11
   state = {}
12 12
 
13 13
   componentDidMount() {
14
-    const { user = {}} = this.props
14
+    const { user = {} } = this.props
15 15
     if (user.phone && typeof this.props.onSuccess === 'function') {
16 16
       this.props.onSuccess();
17 17
     }
@@ -30,7 +30,7 @@ export default class Index extends Component {
30 30
         }
31 31
 
32 32
         return
33
-      } else {        
33
+      } else {
34 34
         if (typeof this.props.onSuccess === 'function') {
35 35
           this.props.onSuccess(phoneNumber);
36 36
         }
@@ -86,7 +86,7 @@ export default class Index extends Component {
86 86
     )
87 87
   }
88 88
   render() {
89
-    const { user = {}} = this.props
89
+    const { user = {} } = this.props
90 90
 
91 91
     return (
92 92
       <Block>

+ 2
- 0
src/components/achievePhone/index.scss Просмотреть файл

@@ -1,6 +1,8 @@
1 1
 .bg_img{
2 2
   width: 100vw;
3 3
   height: 100vh;
4
+  position: fixed;
5
+  z-index: 99;
4 6
 }
5 7
 .phone-page{
6 8
   position: fixed;