1002884655 il y a 4 ans
Parent
révision
bb11ca90ab
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 3
    3
      src/layouts/index.jsx
  2. 1
    1
      src/layouts/index.less

+ 3
- 3
src/layouts/index.jsx Voir le fichier

@@ -1,7 +1,7 @@
1 1
 import React, { useState, useEffect } from 'react'
2 2
 import Taro from '@tarojs/taro'
3 3
 import { useModel } from '@/store'
4
-import { Text } from '@tarojs/components'
4
+import { Text , ScrollView } from '@tarojs/components'
5 5
 import Spin from '@/components/Spin'
6 6
 import GetUserPhone from '@/components/GetUserPhone/index'
7 7
 import GetUserIcon from '@/components/GetUserIcon/index'
@@ -134,12 +134,12 @@ export default function (props) {
134 134
         <view className={ShowAddLayer ? 'AddRenZhengLayer active' : 'AddRenZhengLayer'}>
135 135
           <view className='centerLabel'>
136 136
             <view>
137
-              <scroll-view scroll-y='true'>
137
+              <ScrollView scroll-y='true'>
138 138
                 {
139 139
                   ShowAddLayer &&
140 140
                   <AddYeZhuRenZheng Close={() => { setShowAddLayer(false) }}></AddYeZhuRenZheng>
141 141
                 }
142
-              </scroll-view>
142
+              </ScrollView>
143 143
             </view>
144 144
           </view>
145 145
         </view>

+ 1
- 1
src/layouts/index.less Voir le fichier

@@ -55,7 +55,7 @@
55 55
       position: relative;
56 56
       overflow: hidden;
57 57
 
58
-      >scroll-view {
58
+      scroll-view {
59 59
         padding: 30px 0;
60 60
         background: #fff;
61 61
         border-radius: 10px;