balance.vue 1.9 KB
<template>
	<view>
		<!-- 导航栏区域 -->
		<view class="navBarWrap">
			<image @click="back" src="../../../static/image/Group_10@2x.png" mode=""></image>
			<view class="changeBg">
				钱包余额
			</view>
			<view class="navBarRight" @click="href('accountDetail')">
				账单
			</view>
		</view>
		<view class="topLine"></view>
		<view class="topImg">
			<image src="../../../static/image/wallet/zhifubao-3_1@2x.png" mode=""></image>
		</view>
		<view class="balanceTxt">
			当前余额
		</view>
		<view class="balanceNum">
			¥77777
		</view>
		<view class="bottomBtn">
			<view class="btn" @click="href('recharge')" style="background: #35655f;color: #fff;">
				充值
			</view>
			<view class="btn" @click="href('turnOut')" style="border: 2rpx solid #35655f;color: #35655f;">
				转出
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		methods:{
			href(url){
				this.$href(url)
			},
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	/* 导航栏区域 */
	.navBarWrap{height: 88rpx;padding: 0 24rpx;display: flex;align-items: center;justify-content: space-between;
		padding-top: var(--status-bar-height);
		background: #fff;
		font-size: 34rpx;
		image{width: 48rpx;height: 48rpx;}
		.navBarRight{
			display: flex;
			align-items: center;
			.changeBg{
				flex: 1;
				text-align: center;
				line-height: 52rpx;
				color: #323232;
			}
		}
	} 
	.topLine{height: 2rpx;background: rgba(25,24,51,0.06);}
	.topImg{
		padding-top: 70rpx;
		display: flex;
		justify-content: center;
		image{width: 180rpx;height: 180rpx;}
	}
	.balanceTxt{
		padding-top: 38rpx;
		font-size: 36rpx;
		text-align: center;
	}
	.balanceNum{
		padding-top: 28rpx;
		font-size: 48rpx;
		text-align: center;
	}
	.bottomBtn{
		padding: 96rpx 32rpx 0 32rpx;
		.btn{
			margin-top: 32rpx;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 28rpx;
			text-align: center;
			border-radius: 50rpx;
		}
	}
</style>