feat: 添加去变现功能

This commit is contained in:
2026-06-01 16:12:25 +08:00
parent c2388e1396
commit d2f77335d1
5 changed files with 403 additions and 2 deletions
+21 -2
View File
@@ -10,11 +10,12 @@
{{ $fen2yuan(money_obj?.balance || 0) }}
</view>
<view class="line" />
<view class="flex m-t-22">
<view class="flex m-t-22 withdraw_row">
<view class="title"> 可提现金额 </view>
<view class="num m-l-34" @click="jumpPage('提现', '/pages/home/pay/withdraw')">
{{ $fen2yuan(money_obj?.withdrawAmount || 0) }}
</view>
<view class="withdraw_btn" @click="jumpPage('变现', '/pages/home/liquidation')">去变现</view>
</view>
</view>
</view>
@@ -35,7 +36,7 @@
<script setup>
import { ref } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { onLoad } from '@dcloudio/uni-app';
import * as api from '@/sheep/api/home/pay';
import * as apiIndex from '@/sheep/api/index/index';
import goods from '@/components/goods/goods.vue';
@@ -116,6 +117,24 @@
rgba(255, 255, 255, 0) 100%
);
}
.withdraw_row {
align-items: center;
}
.withdraw_btn {
margin-left: auto;
height: 44rpx;
padding: 0 18rpx;
line-height: 44rpx;
font-size: 24rpx;
font-weight: 500;
color: #ffffff;
border: 2rpx solid rgba(255, 255, 255, 0.55);
border-radius: 22rpx;
background: rgba(255, 255, 255, 0.16);
box-sizing: border-box;
}
}
}