balance.vue
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<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>