Selaa lähdekoodia

Change setting

[baozhangchao] 3 vuotta sitten
vanhempi
commit
38c2e535cc

+ 17
- 0
src/components/Button/index.jsx Näytä tiedosto

1
+import Taro from '@tarojs/taro';
2
+import { View, SwiperItem, Button } from '@tarojs/components';
3
+import './style.less'
4
+
5
+export default (props) => {
6
+  const { disabled, marginTop, marginButtom, title, onClick, width } = props;
7
+
8
+  return (
9
+    <View slot='button' style={{ margin: `${marginTop || '4'}em 0 ${marginButtom || '2'}em 0` }}>
10
+      <Button onClick={onClick || ''} disabled={disabled || false} style={{ backgroundColor: !disabled ? '#fbd804' : '#858585', width: `${width || ''}vw`, borderRadius: '40px', color: '#000', border: '0px' }} class='weui-btn' type='primary' formType='submit'>{title || '确定'}</Button>
11
+    </View>
12
+  )
13
+}
14
+
15
+
16
+
17
+

+ 0
- 0
src/components/Button/style.less Näytä tiedosto


+ 1
- 1
src/pages/ApplicationList/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '申请列表',
2
   navigationBarTitleText: '申请列表',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 2
- 3
src/pages/ApplicationList/index.jsx Näytä tiedosto

6
 import './style.less'
6
 import './style.less'
7
 
7
 
8
 export default (props) => {
8
 export default (props) => {
9
-  const id = Taro.getCurrentInstance().router.params.id;
10
   const [applionList, setApplionList] = useState([])
9
   const [applionList, setApplionList] = useState([])
11
   const [applionLoading, setApplionLoading] = useState(false)
10
   const [applionLoading, setApplionLoading] = useState(false)
12
 
11
 
47
 
46
 
48
 
47
 
49
   return (
48
   return (
50
-    <ScrollView scrollY style={{ height: '100vh' }}>
49
+    <>
51
       {
50
       {
52
         applionLoading ? <mp-loading extClass="page-loading-circle" type="circle" show={applionLoading} /> :
51
         applionLoading ? <mp-loading extClass="page-loading-circle" type="circle" show={applionLoading} /> :
53
 
52
 
70
         申请驳回,费用将原路退回支付账户!
69
         申请驳回,费用将原路退回支付账户!
71
       </View>
70
       </View>
72
 
71
 
73
-    </ScrollView>
72
+    </>
74
   )
73
   )
75
 }
74
 }

+ 1
- 1
src/pages/LicenseInfo/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '证件详情',
2
   navigationBarTitleText: '证件详情',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 1
- 1
src/pages/NoticeInfo/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '公告详情',
2
   navigationBarTitleText: '公告详情',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 5
- 4
src/pages/NoticeInfo/index.jsx Näytä tiedosto

1
 import { View, RichText, ScrollView } from '@tarojs/components'
1
 import { View, RichText, ScrollView } from '@tarojs/components'
2
-import Taro from '@tarojs/taro'
2
+import Taro, { useRouter } from '@tarojs/taro'
3
 import { useEffect, useState } from 'react'
3
 import { useEffect, useState } from 'react'
4
 import { getNoticeInfo } from '../../services/dogAPI'
4
 import { getNoticeInfo } from '../../services/dogAPI'
5
 
5
 
6
 import './style.less'
6
 import './style.less'
7
 
7
 
8
 export default (props) => {
8
 export default (props) => {
9
-  const id = Taro.getCurrentInstance().router.params.id;
9
+  const value = useRouter();
10
+  const { id } = value.params
10
   const [content, setContent] = useState()
11
   const [content, setContent] = useState()
11
   useEffect(() => {
12
   useEffect(() => {
12
     if (id) {
13
     if (id) {
21
   const htmlSnip = content?.content.replace(/<\/p>/g, '</p><p style="height: 1em">&nbsp;</p>')
22
   const htmlSnip = content?.content.replace(/<\/p>/g, '</p><p style="height: 1em">&nbsp;</p>')
22
 
23
 
23
   return (
24
   return (
24
-    <ScrollView scrollY style={{ height: '100vh' }}>
25
+    <>
25
       <View className='noticeInfo'>
26
       <View className='noticeInfo'>
26
         <View className='title'>{content?.title}</View>
27
         <View className='title'>{content?.title}</View>
27
         <View className='date'>{content?.createDate}</View>
28
         <View className='date'>{content?.createDate}</View>
28
         <RichText nodes={htmlSnip}></RichText>
29
         <RichText nodes={htmlSnip}></RichText>
29
       </View>
30
       </View>
30
-    </ScrollView>
31
+    </>
31
   )
32
   )
32
 }
33
 }
33
 
34
 

+ 1
- 1
src/pages/dogCardDetail/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '犬证详情',
2
   navigationBarTitleText: '犬证详情',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 2
- 2
src/pages/dogCardDetail/index.jsx Näytä tiedosto

30
 
30
 
31
 
31
 
32
   return (
32
   return (
33
-    <ScrollView scrollY style={{ height: '100vh' }}>
33
+    <>
34
       <View className='dogCardDetail'>
34
       <View className='dogCardDetail'>
35
         <View className='card'>
35
         <View className='card'>
36
           <View className='title'>电&nbsp;&nbsp;&nbsp;子&nbsp;&nbsp;&nbsp;版&nbsp;&nbsp;&nbsp;犬&nbsp;&nbsp;&nbsp;证</View>
36
           <View className='title'>电&nbsp;&nbsp;&nbsp;子&nbsp;&nbsp;&nbsp;版&nbsp;&nbsp;&nbsp;犬&nbsp;&nbsp;&nbsp;证</View>
89
           </View>
89
           </View>
90
         </View >
90
         </View >
91
       </View >
91
       </View >
92
-    </ScrollView >
92
+    </>
93
   )
93
   )
94
 }
94
 }
95
 
95
 

+ 1
- 1
src/pages/dogLicenseList/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '证件列表',
2
   navigationBarTitleText: '证件列表',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 2
- 2
src/pages/dogLicenseList/index.jsx Näytä tiedosto

45
   }
45
   }
46
 
46
 
47
   return (
47
   return (
48
-    <ScrollView scrollY style={{ height: '100vh' }}>
48
+    <>
49
       {
49
       {
50
         dogCardList.map((item, index) => {
50
         dogCardList.map((item, index) => {
51
           return (
51
           return (
53
           )
53
           )
54
         })
54
         })
55
       }
55
       }
56
-    </ScrollView>
56
+    </>
57
   )
57
   )
58
 }
58
 }
59
 
59
 

+ 1
- 1
src/pages/dogList/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '我的狗狗',
2
   navigationBarTitleText: '我的狗狗',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 5
- 7
src/pages/dogList/index.jsx Näytä tiedosto

1
-import { View, ScrollView, Image, Button } from '@tarojs/components'
1
+import { View, ScrollView, Image } from '@tarojs/components'
2
 import Taro, { useDidShow } from '@tarojs/taro';
2
 import Taro, { useDidShow } from '@tarojs/taro';
3
 import ViewIcon from '../../components/ViewIcon';
3
 import ViewIcon from '../../components/ViewIcon';
4
 import { useEffect, useState } from 'react';
4
 import { useEffect, useState } from 'react';
5
+import Button from '../../components/Button';
5
 import './style.less'
6
 import './style.less'
6
 import { addDogList } from '../../services/dogAPI';
7
 import { addDogList } from '../../services/dogAPI';
7
 import { useModel } from '../../store';
8
 import { useModel } from '../../store';
51
   }
52
   }
52
 
53
 
53
   return (
54
   return (
54
-    <ScrollView scrollY style={{ height: '100vh' }}>
55
+    <>
55
       {
56
       {
56
         dogs.map((item, index) => {
57
         dogs.map((item, index) => {
57
           return (
58
           return (
59
           )
60
           )
60
         })
61
         })
61
       }
62
       }
62
-
63
-      <View slot='button' style={{ margin: '4em 0 2em 0' }} onClick={() => goLicenseInfo()}>
64
-        <Button style={{ width: '50vw', backgroundColor: '#fbd804', borderRadius: '40px', color: '#000', border: '0px' }} class='weui-btn' type='primary' loading={false} formType='submit'>+ 添加狗狗</Button>
65
-      </View>
66
-    </ScrollView>
63
+      <Button title='+ 添加狗狗' width='50' onClick={() => goLicenseInfo()} />
64
+    </>
67
   )
65
   )
68
 }
66
 }
69
 
67
 

+ 1
- 1
src/pages/index/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '码上办证',
2
   navigationBarTitleText: '码上办证',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 2
- 5
src/pages/index/index.jsx Näytä tiedosto

49
   }
49
   }
50
 
50
 
51
   return (
51
   return (
52
-    <ScrollView scrollY style={{
53
-      height: '100vh'
54
-    }}
55
-    >
52
+    <>
56
       <View className='index-page-box'>
53
       <View className='index-page-box'>
57
         <View style={{ padding: '16px', boxSizing: 'border-box' }}>
54
         <View style={{ padding: '16px', boxSizing: 'border-box' }}>
58
           <Banner list={bannerList} />
55
           <Banner list={bannerList} />
119
 
116
 
120
         </View>
117
         </View>
121
       </View>
118
       </View>
122
-    </ScrollView>
119
+    </>
123
   )
120
   )
124
 }
121
 }
125
 
122
 

+ 1
- 1
src/pages/main/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '个人中心',
2
   navigationBarTitleText: '个人中心',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 1
- 1
src/pages/noticeList/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: "公告列表",
2
   navigationBarTitleText: "公告列表",
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 4
- 4
src/pages/noticeList/index.jsx Näytä tiedosto

9
     Taro.navigateTo({ url: '/pages/noticeInfo/index' })
9
     Taro.navigateTo({ url: '/pages/noticeInfo/index' })
10
   }
10
   }
11
   return (
11
   return (
12
-    <ScrollView scrollY style={{ height: '100vh' }}>
12
+    <>
13
       <View className='noticeList'>
13
       <View className='noticeList'>
14
         <View className='notice-item-row' onClick={onClick}>
14
         <View className='notice-item-row' onClick={onClick}>
15
           <Image className='notice' src={noticeIcon} mode='aspectFit' />
15
           <Image className='notice' src={noticeIcon} mode='aspectFit' />
74
             <View className='notice-item-time'>2022.05.26 16:21</View>
74
             <View className='notice-item-time'>2022.05.26 16:21</View>
75
           </View>
75
           </View>
76
           <Image className='action' src={more} mode='aspectFit' />
76
           <Image className='action' src={more} mode='aspectFit' />
77
-        </View>      
77
+        </View>
78
         <View className='notice-item-row' onClick={onClick}>
78
         <View className='notice-item-row' onClick={onClick}>
79
           <Image className='notice' src={noticeIcon} mode='aspectFit' />
79
           <Image className='notice' src={noticeIcon} mode='aspectFit' />
80
           <View className='notice-item-body'>
80
           <View className='notice-item-body'>
90
             <View className='notice-item-time'>2022.05.26 16:21</View>
90
             <View className='notice-item-time'>2022.05.26 16:21</View>
91
           </View>
91
           </View>
92
           <Image className='action' src={more} mode='aspectFit' />
92
           <Image className='action' src={more} mode='aspectFit' />
93
-        </View>      
93
+        </View>
94
       </View>
94
       </View>
95
-    </ScrollView>
95
+    </>
96
   )
96
   )
97
 }
97
 }

+ 1
- 1
src/pages/payPage/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '订单确认',
2
   navigationBarTitleText: '订单确认',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 8
- 8
src/pages/payPage/index.jsx Näytä tiedosto

1
-import { ScrollView, View, Button } from '@tarojs/components'
2
-import Taro, { reLaunch } from '@tarojs/taro';
1
+import { ScrollView, View } from '@tarojs/components'
2
+import Taro, { reLaunch, useRouter } from '@tarojs/taro';
3
 import { useState, useEffect } from 'react';
3
 import { useState, useEffect } from 'react';
4
 import { getOrder } from '@/services/dogAPI';
4
 import { getOrder } from '@/services/dogAPI';
5
+import Button from '../../components/Button';
5
 import './style.less'
6
 import './style.less'
6
 
7
 
7
 export default (props) => {
8
 export default (props) => {
8
-  const id = Taro.getCurrentInstance().router.params.id;
9
+  const value = useRouter();
10
+  const { id } = value.params
9
   const [orderInfo, setOrderInfo] = useState()
11
   const [orderInfo, setOrderInfo] = useState()
10
   const [payLoading, setPayLoading] = useState(false)
12
   const [payLoading, setPayLoading] = useState(false)
11
   useEffect(() => {
13
   useEffect(() => {
53
   }
55
   }
54
 
56
 
55
   return (
57
   return (
56
-    <ScrollView scrollY style={{ height: '100vh' }}>
58
+    <>
57
       {
59
       {
58
         payLoading ? <mp-loading extClass="page-loading-circle" type="circle" show={payLoading} /> :
60
         payLoading ? <mp-loading extClass="page-loading-circle" type="circle" show={payLoading} /> :
59
           <>
61
           <>
75
                 <View className='payPageBox-payItemBox-leftText'>总金额: <View style={{ color: 'red' }}>{orderInfo?.order?.charges / 100}</View>元</View>
77
                 <View className='payPageBox-payItemBox-leftText'>总金额: <View style={{ color: 'red' }}>{orderInfo?.order?.charges / 100}</View>元</View>
76
               </View>
78
               </View>
77
             </View>
79
             </View>
78
-            <View slot='button' style={{ margin: '4em 0 2em 0' }}>
79
-              <Button style={{ backgroundColor: '#fbd804', borderRadius: '40px', color: '#000', border: '0px' }} class='weui-btn' type='primary' loading={false} onClick={pay}>支付</Button>
80
-            </View>
80
+            <Button title='支付' onClick={pay} />
81
           </>
81
           </>
82
       }
82
       }
83
 
83
 
84
-    </ScrollView>
84
+    </>
85
   )
85
   )
86
 }
86
 }

+ 1
- 1
src/pages/setDogInfo/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '狗狗信息',
2
   navigationBarTitleText: '狗狗信息',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 5
- 6
src/pages/setDogInfo/index.jsx Näytä tiedosto

1
-import { View, Button, Picker, Input, ScrollView } from '@tarojs/components'
1
+import { View, Picker, Input, ScrollView } from '@tarojs/components'
2
 import Taro, { useRouter } from '@tarojs/taro';
2
 import Taro, { useRouter } from '@tarojs/taro';
3
 import { useState, useEffect } from 'react';
3
 import { useState, useEffect } from 'react';
4
 import Form from '@/components/Form';
4
 import Form from '@/components/Form';
6
 import { addDogInfo, getDogInfo, getDogType, setDogInfo } from '@/services/dogAPI';
6
 import { addDogInfo, getDogInfo, getDogType, setDogInfo } from '@/services/dogAPI';
7
 import { useModel } from '@/store'
7
 import { useModel } from '@/store'
8
 import { handleFile } from '@/utils/request';
8
 import { handleFile } from '@/utils/request';
9
+import Button from '../../components/Button';
9
 import './style.less'
10
 import './style.less'
10
 
11
 
11
 const rules = {
12
 const rules = {
94
   }
95
   }
95
 
96
 
96
   return (
97
   return (
97
-    <ScrollView scrollY style={{ height: '100vh' }}>
98
+    <>
98
       <View class='page' >
99
       <View class='page' >
99
         <Form rules={rules} onSubmit={formSubmit}>
100
         <Form rules={rules} onSubmit={formSubmit}>
100
           <FormItem title='狗狗名称' required>
101
           <FormItem title='狗狗名称' required>
122
           <FormItem title='狗狗照片' required>
123
           <FormItem title='狗狗照片' required>
123
             <uploader name='image' value={formData?.image} onFile={handleFile} />
124
             <uploader name='image' value={formData?.image} onFile={handleFile} />
124
           </FormItem>
125
           </FormItem>
125
-          <View slot='button' style={{ margin: '4em 0 2em 0' }}>
126
-            <Button style={{ backgroundColor: '#fbd804', borderRadius: '40px', color: '#000', border: '0px' }} class='weui-btn' type='primary' loading={false} formType='submit'>确定</Button>
127
-          </View>
126
+          <Button title='添加' />
128
         </Form>
127
         </Form>
129
       </View>
128
       </View>
130
-    </ScrollView >
129
+    </>
131
   )
130
   )
132
 }
131
 }

+ 1
- 1
src/pages/setDogLicense/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '办证申请',
2
   navigationBarTitleText: '办证申请',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 7
- 7
src/pages/setDogLicense/index.jsx Näytä tiedosto

1
-import { View, Button, Text, RadioGroup, Picker, Image, Input, Radio, Label, ScrollView, Slot } from '@tarojs/components'
1
+import { View, Text, RadioGroup, Picker, Image, Input, Radio, Label, ScrollView, Slot } from '@tarojs/components'
2
 import Taro, { useDidShow, useRouter } from '@tarojs/taro';
2
 import Taro, { useDidShow, useRouter } from '@tarojs/taro';
3
 import { useEffect, useState } from 'react';
3
 import { useEffect, useState } from 'react';
4
 import Form from '@/components/Form';
4
 import Form from '@/components/Form';
7
 import { addDogList, addlication, getDogInfo } from '@/services/dogAPI';
7
 import { addDogList, addlication, getDogInfo } from '@/services/dogAPI';
8
 import { handleFile } from '@/utils/request';
8
 import { handleFile } from '@/utils/request';
9
 import { useModel } from '@/store';
9
 import { useModel } from '@/store';
10
+import Button from '../../components/Button';
10
 
11
 
11
 import './style.less'
12
 import './style.less'
12
 import { getCardLicenseInfo } from '../../services/dogAPI';
13
 import { getCardLicenseInfo } from '../../services/dogAPI';
14
 export default (props) => {
15
 export default (props) => {
15
   const { dogs, person } = useModel('userData')
16
   const { dogs, person } = useModel('userData')
16
   const [formData, setFormData] = useState()
17
   const [formData, setFormData] = useState()
17
-  const routerPetId = Taro.getCurrentInstance().router.params.petId;
18
+  const value = useRouter();
19
+  const { petId } = value.params
18
 
20
 
19
   const [dogDate, setDogDate] = useState({ immunizationDate: null, petBirthday: null, petSex: [], petType: [] })
21
   const [dogDate, setDogDate] = useState({ immunizationDate: null, petBirthday: null, petSex: [], petType: [] })
20
   const [mainDog, setMainDog] = useState([])
22
   const [mainDog, setMainDog] = useState([])
195
   }
197
   }
196
 
198
 
197
   return (
199
   return (
198
-    <ScrollView scrollY style={{ height: '100vh' }} >
200
+    <>
199
       <AuthProfile />
201
       <AuthProfile />
200
       <View class='page' >
202
       <View class='page' >
201
         <Form onSubmit={formSubmit} rules={rules} >
203
         <Form onSubmit={formSubmit} rules={rules} >
294
 
296
 
295
             </mp-cells>
297
             </mp-cells>
296
           </mp-form>
298
           </mp-form>
297
-          <View slot='button' style={{ margin: '4em 0 2em 0' }}>
298
-            <Button disabled={dogStatus} style={{ backgroundColor: !dogStatus ? '#fbd804' : '#858585', borderRadius: '40px', color: '#000', border: '0px' }} class='weui-btn' type='primary' loading={false} formType='submit'>确定</Button>
299
-          </View>
299
+          <Button disabled={dogStatus} title='确定' />
300
         </Form>
300
         </Form>
301
       </View>
301
       </View>
302
-    </ScrollView >
302
+    </>
303
   )
303
   )
304
 }
304
 }
305
 
305
 

+ 1
- 1
src/pages/setUser/index.config.js Näytä tiedosto

1
 export default {
1
 export default {
2
   navigationBarTitleText: '犬主信息',
2
   navigationBarTitleText: '犬主信息',
3
-  disableScroll: true,
3
+  disableScroll: false,
4
   navigationBarBackgroundColor: "#FBD804",
4
   navigationBarBackgroundColor: "#FBD804",
5
   navigationBarTextStyle: "black",
5
   navigationBarTextStyle: "black",
6
   backgroundColor: "#FBD804",
6
   backgroundColor: "#FBD804",

+ 2
- 2
src/pages/setUser/index.jsx Näytä tiedosto

60
   }
60
   }
61
 
61
 
62
   return (
62
   return (
63
-    <ScrollView scrollY style={{ height: '100vh' }}>
63
+    <>
64
       <View class='page' >
64
       <View class='page' >
65
         <Form rules={rules} onSubmit={formSubmit}>
65
         <Form rules={rules} onSubmit={formSubmit}>
66
           <FormItem title='姓名' required>
66
           <FormItem title='姓名' required>
83
           </View>
83
           </View>
84
         </Form>
84
         </Form>
85
       </View>
85
       </View>
86
-    </ScrollView >
86
+    </>
87
   )
87
   )
88
 }
88
 }