You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
2.9 KiB

<template>
<view class="content">
<headerTopsTips></headerTopsTips>
<uni-nav-bar left-icon="left" title="我的钱包" rightText="余额明细" backgroundColor="#e6eafa" @clickLeft="handlegoback"
@clickRight="handleright" />
<view class="tops_per">
<view class="t_1">
我的余额 ()
</view>
<view class="t_2">
{{wallet_info.balance / 100}}
</view>
<view class="t_3">
<view>
余额说明
</view>
</view>
</view>
<view class="btn_s">
<button style="background: #000; color: #fff;">充值</button>
</view>
<!-- <view class="roll_up">
<view class="roll_up_son">
<view>我的用车卷</view>
<view class="small_view">
<text style="margin-right: 10rpx;">0 > </text>
</view>
</view>
</view>
<view class="roll_up">
<view class="roll_up_son">
<view>我的押金</view>
<view class="small_view">
<text style="margin-right: 10rpx;">99元退押金 > </text>
</view>
</view>
</view>
<view class="roll_up">
<view class="roll_up_son" style="border-bottom: unset;">
<view>我的红包</view>
<view class="small_view">
<text style="margin-right: 10rpx;">红包卷活动 > </text>
</view>
</view>
</view> -->
</view>
</template>
<script setup>
import headerTopsTips from '@/pages/components/header_tops_tips.vue'
import walletApi from '@/sheep/api/home/wallet';
import {
onLoad
} from '@dcloudio/uni-app';
import {
ref
} from 'vue'
onLoad(() => {
getwallet()
})
const wallet_info = ref(undefined)
async function getwallet() {
// console.log('1')
const response = await walletApi.getwallet()
// console.log(response, 'response')
wallet_info.value = response.data
}
function handlegoback() {
uni.navigateBack()
}
function handleright() {
uni.navigateTo({
url: '/pages/home/detail/index'
})
}
</script>
<style lang="scss" scoped>
.content {
background: #eeeeee;
height: 100vh;
}
.tops_per {
height: 260rpx;
background: #fff;
padding: 20rpx 0;
box-sizing: border-box;
text-align: center;
// border-top: 1px solid #787878;
.t_1 {
font-size: 9px;
color: #787878;
}
.t_2 {
margin-top: 15rpx;
font-size: 28px;
font-weight: 600;
}
.t_3 {
display: flex;
justify-content: center;
margin-top: 20rpx;
>view {
width: 120rpx;
height: 40rpx;
font-size: 9px;
border-radius: 40rpx;
border: 1px solid #787878;
display: flex;
align-items: center;
justify-content: center;
}
}
}
.btn_s {
padding: 30rpx;
}
.roll_up {
padding: 0 25rpx;
box-sizing: border-box;
background: #fff;
display: flex;
flex-direction: column;
>view {
border-bottom: 1px solid #787878;
display: flex;
justify-content: space-between;
align-items: center;
height: 80rpx;
padding-right: 15rpx;
.small_view {
font-size: 12px;
display: flex;
align-items: center;
}
}
}
</style>