李志伟 3 years ago
parent
commit
8ca5bf3de2
1 changed files with 23 additions and 23 deletions
  1. 23
    23
      src/hotel/components/Income/income.jsx

+ 23
- 23
src/hotel/components/Income/income.jsx View File

@@ -1,4 +1,6 @@
1 1
 import { useState, useMemo } from 'react'
2
+import Taro from '@tarojs/taro'
3
+import { View, Image } from '@tarojs/components';
2 4
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
3 5
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
4 6
 import sImg from '@/assets/icons/landlord/money2.png'
@@ -28,32 +30,30 @@ export default (props) => {
28 30
     isMomth ? setMonth(false) : setMonth(true)
29 31
   }
30 32
   return (
31
-    <view>
32
-      <view style={{ padding: '30rpx', height: '100%' }}>
33
-        <view className='storexx'>
34
-          <view className='storeName'>店名:{hotel.hotelName}</view>
35
-          <view className='money'>
36
-            <view className='sleft'>
37
-              <view className='lword'>全年收入(税前)</view>
38
-              <view className='yearMoney'>
39
-                <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
40
-                <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
41
-              </view>
33
+    <view style={{ padding: '30rpx', height: '100%',display:'flex',flexDirection:'column' }}>
34
+      <view className='storexx' style={{flex:'none'}}>
35
+        <view className='storeName'>店名:{hotel.hotelName}</view>
36
+        <view className='money'>
37
+          <view className='sleft'>
38
+            <view className='lword'>全年收入(税前)</view>
39
+            <view className='yearMoney'>
40
+              <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
41
+              <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
42 42
             </view>
43
-            <view className='line' />
44
-            <view className='sright'>
45
-              <view className='rword'>当月收入(税前)</view>
46
-              <view className='monthMoney'>
47
-                <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
48
-                <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
49
-              </view></view>
50 43
           </view>
44
+          <view className='line' />
45
+          <view className='sright'>
46
+            <view className='rword'>当月收入(税前)</view>
47
+            <view className='monthMoney'>
48
+              <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
49
+              <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
50
+            </view></view>
51 51
         </view>
52
-
53
-        <view className='title' >推广收入记录</view>
54
-
52
+      </view>
53
+      <view className='title' style={{flex:'none'}}>推广收入记录</view>
54
+      <View style={{flex:'auto',overflow:'hidden',position:'relative'}}>
55 55
         <List
56
-          style={{ height: 'calc(100vh - 375px)' }}
56
+          style={{ height: '100%' }}
57 57
           request={fetchAPI}
58 58
           params={queryParams}
59 59
           noData={<NoData />}
@@ -70,7 +70,7 @@ export default (props) => {
70 70
           )}
71 71
         >
72 72
         </List>
73
-      </view>
73
+      </View>
74 74
     </view>
75 75
   )
76 76
 }