xujing 5 年之前
父節點
當前提交
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
   state = {}
11
   state = {}
12
 
12
 
13
   componentDidMount() {
13
   componentDidMount() {
14
-    const { user = {}} = this.props
14
+    const { user = {} } = this.props
15
     if (user.phone && typeof this.props.onSuccess === 'function') {
15
     if (user.phone && typeof this.props.onSuccess === 'function') {
16
       this.props.onSuccess();
16
       this.props.onSuccess();
17
     }
17
     }
30
         }
30
         }
31
 
31
 
32
         return
32
         return
33
-      } else {        
33
+      } else {
34
         if (typeof this.props.onSuccess === 'function') {
34
         if (typeof this.props.onSuccess === 'function') {
35
           this.props.onSuccess(phoneNumber);
35
           this.props.onSuccess(phoneNumber);
36
         }
36
         }
86
     )
86
     )
87
   }
87
   }
88
   render() {
88
   render() {
89
-    const { user = {}} = this.props
89
+    const { user = {} } = this.props
90
 
90
 
91
     return (
91
     return (
92
       <Block>
92
       <Block>

+ 2
- 0
src/components/achievePhone/index.scss 查看文件

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