🎈 perf(添加我的页面底部版本信息):
This commit is contained in:
parent
d275657d21
commit
72a338655d
@ -276,4 +276,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom_version {
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { userassets, userorderStatistics } from '@/api/mine'
|
||||
import useLogin from '@/use/useLogin'
|
||||
import IconFont from '@/components/iconfont/iconfont'
|
||||
import MoveBtn from '@/components/moveBtn'
|
||||
import { BASE_URL } from '@/common/constant'
|
||||
|
||||
export default () => {
|
||||
const userInfo = useSelector(state => state.userInfo)
|
||||
@ -83,6 +84,9 @@ export default () => {
|
||||
Taro.stopPullDownRefresh()
|
||||
})
|
||||
|
||||
const [current_version, setCurrent_version] = useState(CURRENT_VERSION)
|
||||
const [current_env, setCurrent_env] = useState(CURRENT_ENV)
|
||||
|
||||
return (
|
||||
<View className={styles.user_main}>
|
||||
{!userInfo?.adminUserInfo?.phone && <Button className={styles.getPhoneButton} openType="getPhoneNumber" onGetPhoneNumber={mGetPhoneNumber}></Button>}
|
||||
@ -167,6 +171,10 @@ export default () => {
|
||||
})}
|
||||
</View>
|
||||
</View>
|
||||
<View className={styles.bottom_version}>
|
||||
<View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{current_version}</View>
|
||||
{current_env !== 'production' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{BASE_URL}</View>}
|
||||
</View>
|
||||
<Customer show={customer_service_show} onClose={customerClose} />
|
||||
</View>
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user