2024-05-08 23:18:30 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="page">
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<u-navbar :is-back="false" title="我的" :border-bottom="false" :background="bgc" title-color='#2E4975'
|
|
|
|
|
title-size='36' height='45'></u-navbar>
|
|
|
|
|
<view class="cont">
|
|
|
|
|
<view class="info_top">
|
|
|
|
|
<view class="phone">
|
|
|
|
|
{{maskedPhoneNumber}}
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<!-- <view class="type">
|
|
|
|
|
去实名
|
|
|
|
|
</view> -->
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="balance_box">
|
|
|
|
|
<view class="tit">
|
|
|
|
|
账户余额(元)
|
|
|
|
|
</view>
|
|
|
|
|
<view class="balance">
|
|
|
|
|
{{AccountInfo.balance}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="bot">
|
|
|
|
|
<view class="txt">
|
|
|
|
|
累计提现:{{AccountInfo.totalWithdrawAmount}}
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="btn">
|
|
|
|
|
立即提现
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="tits">
|
|
|
|
|
金额明细
|
2024-07-10 18:01:47 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="tab" style="margin-bottom: 28rpx;">
|
|
|
|
|
<view class="tab_li" @click="changeList(0)">
|
|
|
|
|
全部
|
|
|
|
|
<view class="bot_line" :class="tabindex==0?'act':''"></view>
|
2024-07-10 18:01:47 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="tab_li" @click="changeList(1)">
|
|
|
|
|
收入
|
|
|
|
|
<view class="bot_line" :class="tabindex==1?'act':''"></view>
|
2024-07-10 18:01:47 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="tab_li" @click="changeList(2)">
|
|
|
|
|
提现
|
|
|
|
|
<view class="bot_line" :class="tabindex==2?'act':''"></view>
|
2024-07-10 18:01:47 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="order_box">
|
|
|
|
|
<view class="order_li" v-for="(item,index) in list " :key="index">
|
|
|
|
|
<view class="lis">
|
|
|
|
|
<view class="txt1">
|
|
|
|
|
{{typeReturn(item.busType)}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="txt2" v-if="item.type==1">
|
|
|
|
|
+{{item.amount}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="txt2" v-if="item.type==2" style="color:#F76D6D;">
|
|
|
|
|
-{{item.amount}}
|
|
|
|
|
</view>
|
2024-09-03 18:02:16 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="lis">
|
|
|
|
|
<view class="txt3">
|
|
|
|
|
7月14日 15:22
|
|
|
|
|
</view>
|
|
|
|
|
<view class="txt3">
|
|
|
|
|
余额: {{item.afterBalance}}
|
|
|
|
|
</view>
|
2024-09-03 18:02:16 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
<view class="lis">
|
|
|
|
|
<view class="txt3">
|
|
|
|
|
订单编号:12326812310248512
|
|
|
|
|
</view>
|
|
|
|
|
<view class="txt3">
|
|
|
|
|
查看详情
|
|
|
|
|
</view>
|
2024-09-03 18:02:16 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-08-01 17:06:10 +08:00
|
|
|
|
</view>
|
2024-10-09 18:01:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tab-bar :indexs='1'></tab-bar>
|
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
bgc: {
|
|
|
|
|
backgroundColor: "#F7FAFE",
|
2024-05-08 23:18:30 +08:00
|
|
|
|
},
|
2024-10-09 18:01:47 +08:00
|
|
|
|
AccountInfo:{},
|
|
|
|
|
tabindex:0,
|
|
|
|
|
list:[]
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
this.getAccountInfo()
|
|
|
|
|
this.getList()
|
2024-05-08 23:18:30 +08:00
|
|
|
|
},
|
2024-10-09 18:01:47 +08:00
|
|
|
|
watch: {
|
|
|
|
|
|
2024-06-24 17:59:49 +08:00
|
|
|
|
},
|
2024-10-09 18:01:47 +08:00
|
|
|
|
computed: {
|
|
|
|
|
maskedPhoneNumber() {
|
|
|
|
|
const phone = this.AccountInfo.phonenumber;
|
|
|
|
|
if (phone && phone.length === 11) {
|
|
|
|
|
return phone.slice(0, 3) + '****' + phone.slice(7); // 替换第4到7位为*
|
|
|
|
|
}
|
|
|
|
|
return phone; // 如果电话号码长度不符合,返回原号码
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
methods: {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
typeReturn(type){
|
|
|
|
|
if(type==1){
|
|
|
|
|
return '订单收入'
|
|
|
|
|
}else if(type==2){
|
|
|
|
|
return '续租订单收入'
|
|
|
|
|
}else if(type==4){
|
|
|
|
|
return '订单退款'
|
|
|
|
|
}else if(type==5){
|
|
|
|
|
return '提现'
|
|
|
|
|
}else if(type==6){
|
|
|
|
|
return '提现失败'
|
|
|
|
|
}else if(type==8){
|
|
|
|
|
return '短信扣费'
|
2024-09-03 18:02:16 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-09 18:01:47 +08:00
|
|
|
|
getList(){
|
|
|
|
|
let data={
|
|
|
|
|
type:this.tabindex
|
2024-09-03 18:02:16 +08:00
|
|
|
|
}
|
2024-10-09 18:01:47 +08:00
|
|
|
|
this.$u.get(`appAdmin/myChangeBalanceList?`,data).then((res) => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.list=res.data
|
2024-09-03 18:02:16 +08:00
|
|
|
|
} else {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
2024-09-05 18:00:43 +08:00
|
|
|
|
});
|
2024-08-01 17:06:10 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-10-09 18:01:47 +08:00
|
|
|
|
changeList(num){
|
|
|
|
|
this.tabindex=num
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
getAccountInfo(){
|
|
|
|
|
this.$u.get(`appAdmin/myAccountInfo`).then((res) => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.AccountInfo=res.data
|
2024-09-05 18:00:43 +08:00
|
|
|
|
} else {
|
2024-07-12 18:02:05 +08:00
|
|
|
|
uni.showToast({
|
2024-10-09 18:01:47 +08:00
|
|
|
|
title: res.msg,
|
2024-07-12 18:02:05 +08:00
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
2024-05-08 23:18:30 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
page {
|
2024-10-09 18:01:47 +08:00
|
|
|
|
background-color: #F7FAFE;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page {
|
|
|
|
|
width: 750rpx;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
padding-bottom: 200rpx;
|
|
|
|
|
.cont {
|
|
|
|
|
padding-left: 47rpx;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.order_box {
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
width: 658rpx;
|
|
|
|
|
padding: 0rpx 36rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
|
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.order_li {
|
|
|
|
|
padding: 30rpx 26rpx;
|
|
|
|
|
border-bottom: 1rpx solid #D8D8D8;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.lis {
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
width: 100%;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
.text1 {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.txt2 {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #5CA8FA;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.txt3 {
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.txt4 {
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #5CA8FA;
|
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.order_li:last-child {
|
|
|
|
|
border-bottom: 1rpx solid #fff;
|
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.tits {
|
|
|
|
|
margin-top: 42rpx;
|
|
|
|
|
margin-bottom: 22rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.tab {
|
|
|
|
|
margin-left: 28rpx;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
display: flex;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
flex-wrap: nowrap;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.tab_li {
|
|
|
|
|
margin-right: 60rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
|
|
|
|
|
.bot_line {
|
|
|
|
|
margin-top: 6rpx;
|
|
|
|
|
margin-left: 6rpx;
|
|
|
|
|
width: 58rpx;
|
|
|
|
|
height: 8rpx;
|
|
|
|
|
background: #F7FAFE;
|
|
|
|
|
border-radius: 5rpx 5rpx 5rpx 5rpx;
|
|
|
|
|
}
|
|
|
|
|
.act{
|
|
|
|
|
background: #5CA8FA;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-02 18:02:31 +08:00
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.balance_box {
|
|
|
|
|
padding: 34rpx 38rpx;
|
|
|
|
|
margin-top: 50rpx;
|
|
|
|
|
width: 658rpx;
|
|
|
|
|
height: 334rpx;
|
|
|
|
|
background-image: url('https://lxnapi.ccttiot.com/bike/img/static/uhzF0Q3YKytXYOhotXmi');
|
|
|
|
|
background-size: cover;
|
|
|
|
|
/* 背景图片等比缩放以覆盖整个容器 */
|
|
|
|
|
background-position: center;
|
|
|
|
|
|
|
|
|
|
.bot {
|
|
|
|
|
margin-top: 56rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
justify-content: space-between;
|
2024-06-24 17:59:49 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.txt {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #FFFFFF;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-06-24 17:59:49 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 182rpx;
|
|
|
|
|
height: 64rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 35rpx 35rpx 35rpx 35rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #5CA8FA;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.tit {
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #FFFFFF;
|
2024-07-10 18:01:47 +08:00
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.balance {
|
|
|
|
|
margin-top: 14rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 72rpx;
|
|
|
|
|
color: #FFFFFF;
|
2024-07-10 18:01:47 +08:00
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-07-10 18:01:47 +08:00
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.info_top {
|
2024-07-10 18:01:47 +08:00
|
|
|
|
display: flex;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.phone {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-07-10 18:01:47 +08:00
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-10-09 18:01:47 +08:00
|
|
|
|
.type {
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
background: #5CA8FA;
|
|
|
|
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
|
|
|
|
padding: 6rpx 26rpx;
|
2024-07-10 18:01:47 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
2024-10-09 18:01:47 +08:00
|
|
|
|
color: #FFFFFF;
|
2024-07-10 18:01:47 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-05 18:00:43 +08:00
|
|
|
|
|
2024-06-24 17:59:49 +08:00
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-10-09 18:01:47 +08:00
|
|
|
|
|
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|