张延森 4 年之前
父節點
當前提交
0d7d8f59e1
共有 2 個文件被更改,包括 14 次插入14 次删除
  1. 2
    2
      src/components/MainPage/index.vue
  2. 12
    12
      src/components/MainPage/page.scss

+ 2
- 2
src/components/MainPage/index.vue 查看文件

8
         <view class="flex-h">
8
         <view class="flex-h">
9
           <text @tap="ShowPhoneAuthPopup = false; toIndexPage()">拒绝</text>
9
           <text @tap="ShowPhoneAuthPopup = false; toIndexPage()">拒绝</text>
10
           <view class="flex-item"></view>
10
           <view class="flex-item"></view>
11
-          <text>确定</text>
11
+          <text>允许</text>
12
           <button class="autu-btn" open-type="getPhoneNumber" @getphonenumber="GetUserPhone">获取授权</button>
12
           <button class="autu-btn" open-type="getPhoneNumber" @getphonenumber="GetUserPhone">获取授权</button>
13
         </view>
13
         </view>
14
       </view>
14
       </view>
83
     ]),
83
     ]),
84
     toIndexPage () {
84
     toIndexPage () {
85
       Taro.reLaunch({
85
       Taro.reLaunch({
86
-        url: '/pages/index/index'
86
+        url: '/pages/Index/index'
87
       })
87
       })
88
     },
88
     },
89
     Init () {
89
     Init () {

+ 12
- 12
src/components/MainPage/page.scss 查看文件

52
             background: #ccc;
52
             background: #ccc;
53
           }
53
           }
54
         }
54
         }
55
-        // > button {
56
-        //   display: block;
57
-        //   width: 200px;
58
-        //   position: absolute;
59
-        //   right: 60px;
60
-        //   line-height: 80px;
61
-        //   height: 80px;
62
-        //   max-height: 80px;
63
-        //   top: 0;
64
-        //   z-index: 2;
65
-        //   opacity: 0;
66
-        // }
55
+        > button {
56
+          display: block;
57
+          width: 200px;
58
+          position: absolute;
59
+          right: 60px;
60
+          line-height: 80px;
61
+          height: 80px;
62
+          max-height: 80px;
63
+          top: 0;
64
+          z-index: 2;
65
+          opacity: 0;
66
+        }
67
       }
67
       }
68
     }
68
     }
69
   }
69
   }