🎈 perf(个人页面补充预存款与账期页面跳转):

This commit is contained in:
czm 2022-12-13 15:03:36 +08:00
parent c7da1a1b25
commit b99586c9d5
2 changed files with 11 additions and 4 deletions

View File

@ -277,6 +277,11 @@
} }
} }
.bottom_version { .bottom_version {
padding-top: 20px; padding: 20px 0;
font-size: 24px;
display: flex;
flex-direction: column;
align-items: center;
color: #ccc;
} }
} }

View File

@ -36,10 +36,12 @@ export default () => {
{ {
label: '预存货款(元)', label: '预存货款(元)',
value: formatPriceDiv(priceState?.data?.wallet_money || 0, 100, true), value: formatPriceDiv(priceState?.data?.wallet_money || 0, 100, true),
url: '/pages/depositBeforehand/index',
}, },
{ {
label: '账期货款(元)', label: '账期货款(元)',
value: formatPriceDiv(priceState?.data.credit_line || 0, 100, true), value: formatPriceDiv(priceState?.data.credit_line || 0, 100, true),
url: '/pages/creditLine/index',
}, },
] ]
}, [priceState]) }, [priceState])
@ -123,7 +125,7 @@ export default () => {
{userInfo?.adminUserInfo?.order_access_status == 3 && <View className={styles.price_count}> {userInfo?.adminUserInfo?.order_access_status == 3 && <View className={styles.price_count}>
<View className={styles.price_count_list}> <View className={styles.price_count_list}>
{priceList?.map((item, index) => { {priceList?.map((item, index) => {
return <View key={index} className={styles.list_item} > return <View key={index} className={styles.list_item} onClick={() => goLink(item.url)}>
<Text className={styles.list_item_title}>{item.label}</Text> <Text className={styles.list_item_title}>{item.label}</Text>
<View className={styles.list_item_number}><Text>¥</Text> {item.value}</View> <View className={styles.list_item_number}><Text>¥</Text> {item.value}</View>
</View> </View>
@ -172,8 +174,8 @@ export default () => {
</View> </View>
</View> </View>
<View className={styles.bottom_version}> <View className={styles.bottom_version}>
<View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{current_version}</View> <View >{current_version}</View>
{current_env !== 'production' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{BASE_URL}</View>} {current_env !== 'production' && <View >{BASE_URL}</View>}
</View> </View>
<Customer show={customer_service_show} onClose={customerClose} /> <Customer show={customer_service_show} onClose={customerClose} />
</View> </View>