|
@@ -10,6 +10,7 @@ import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
|
10
|
10
|
import NoData from '@/components/NoData'
|
11
|
11
|
import ToggleRole from '@/components/toggleRole/ToggleRole'
|
12
|
12
|
import './spreadMoney.less'
|
|
13
|
+import { View } from '@tarojs/components';
|
13
|
14
|
|
14
|
15
|
const getList = (id) => (params) => getAccount(id, params)
|
15
|
16
|
|
|
@@ -50,50 +51,45 @@ export default (props) => {
|
50
|
51
|
}
|
51
|
52
|
|
52
|
53
|
return (
|
53
|
|
- <view>
|
54
|
|
-
|
55
|
|
- <view style={{ padding: '0 15px 0 15px', height: '100%' }}>
|
|
54
|
+ <view style={{ padding: '0 15px 0 15px', height: '100%', display: 'flex', flexDirection: 'column' }}>
|
|
55
|
+ <View style={{ flex: 'none' }}>
|
56
|
56
|
<ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
|
57
|
|
-
|
58
|
|
- <view className='storexx'>
|
59
|
|
-
|
60
|
|
- <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
|
61
|
|
- <view onClick={ShowMoldeOn} className='User-info-cutover'>
|
62
|
|
- <image className='User-info-cutover-image' src={cutoverUser} />
|
63
|
|
- </view>
|
64
|
|
- <view className='tip'>(计算收入以核销为准)</view>
|
65
|
|
- <view className='money'>
|
66
|
|
- <view className='sleft'>
|
67
|
|
- <view className='lword'>全年推广收入(税前)</view>
|
68
|
|
- <view className='yearMoney'>
|
69
|
|
- <text>{isyear ? (shopMoney?.totalCharges / 100).toFixed(2) : '******'}</text>元
|
70
|
|
- <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
|
71
|
|
- </view>
|
|
57
|
+ </View>
|
|
58
|
+ <view className='storexx' style={{ flex: 'none' }}>
|
|
59
|
+ <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
|
|
60
|
+ <view onClick={ShowMoldeOn} className='User-info-cutover'>
|
|
61
|
+ <image className='User-info-cutover-image' src={cutoverUser} />
|
|
62
|
+ </view>
|
|
63
|
+ <view className='tip'>(计算收入以核销为准)</view>
|
|
64
|
+ <view className='money'>
|
|
65
|
+ <view className='sleft'>
|
|
66
|
+ <view className='lword'>全年推广收入(税前)</view>
|
|
67
|
+ <view className='yearMoney'>
|
|
68
|
+ <text>{isyear ? (shopMoney?.totalCharges / 100).toFixed(2) : '******'}</text>元
|
|
69
|
+ <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
|
72
|
70
|
</view>
|
73
|
|
- <view className='line' />
|
74
|
|
- <view className='sright'>
|
75
|
|
- <view className='rword'>当月推广收入(税前)</view>
|
76
|
|
- <view className='monthMoney'>
|
77
|
|
- <text>{isMomth ? (shopMoney?.currentCharges / 100).toFixed(2) : '******'}</text>元
|
78
|
|
- <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
|
79
|
|
- </view></view>
|
80
|
71
|
</view>
|
|
72
|
+ <view className='line' />
|
|
73
|
+ <view className='sright'>
|
|
74
|
+ <view className='rword'>当月推广收入(税前)</view>
|
|
75
|
+ <view className='monthMoney'>
|
|
76
|
+ <text>{isMomth ? (shopMoney?.currentCharges / 100).toFixed(2) : '******'}</text>元
|
|
77
|
+ <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
|
|
78
|
+ </view></view>
|
81
|
79
|
</view>
|
82
|
|
-
|
83
|
|
- <view className='title'>推广收入记录</view>
|
84
|
|
- <view style={{ height: '50vh' }}>
|
85
|
|
-
|
86
|
|
- <List
|
87
|
|
- style={{ height: '100%' }}
|
88
|
|
- request={reqestAPI}
|
89
|
|
- params={queryParams}
|
90
|
|
- noData={<NoData />}
|
91
|
|
- refresherEnabled
|
92
|
|
- render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
|
93
|
|
- >
|
94
|
|
- </List>
|
95
|
|
- </view>
|
96
|
80
|
</view>
|
97
|
|
- </view >
|
|
81
|
+ <view className='title' style={{ flex: 'none' }}>推广收入记录</view>
|
|
82
|
+ <view style={{ flex: 1, overflow: 'hidden' }}>
|
|
83
|
+ <List
|
|
84
|
+ style={{ height: '100%' }}
|
|
85
|
+ request={reqestAPI}
|
|
86
|
+ params={queryParams}
|
|
87
|
+ noData={<NoData />}
|
|
88
|
+ refresherEnabled
|
|
89
|
+ render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
|
|
90
|
+ >
|
|
91
|
+ </List>
|
|
92
|
+ </view>
|
|
93
|
+ </view>
|
98
|
94
|
)
|
99
|
95
|
}
|