| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <template>
- <view>
- <view class="bg-img" style="background-image: url('/static/bgimg.png');height: 310upx;"></view>
- <view class="container" style="margin: -80upx 30upx 30upx 30upx;">
- <view class="padding">
- <text class="text-bold text-black padding-right-sm">账户热力值</text>
- <text class="text-bold" style="color: #f87a3a;">可兑换到账{{data.totalWithDraw}}元</text>
- </view>
- <view class="padding-lr flex justify-between align-center">
- <view>
- <text
- style="font-size: 60upx;font-family: PingFang SC;font-weight: 800;color: #F3484E;">{{data.usableHotValue}}</text>
- <text class="padding-left-xs"
- style="font-size: 24upx;font-family: PingFang SC;font-weight: 800;color: #878787;">热力值</text>
- </view>
- <button class="cu-btn round text-white" style="background-color: #f75757;width: 140upx;">提现</button>
- </view>
- <view style="margin: 10upx 20upx;">
- <u-line color="#e0e0e0"></u-line>
- </view>
- <view style="padding: 20upx 0upx 0upx 30upx;">
- <text class="title">已提现:</text>
- <text class="number">{{data.withdrawed}}</text>
- <text class="title padding-left-xs">元</text>
- </view>
- <view style="padding: 10upx 0upx 20upx 30upx;">
- <text class="title">可提现:</text>
- <text class="number">{{data.usableWithdraw}}</text>
- <text class="title padding-left-xs">元</text>
- </view>
- </view>
- <view class="container margin-lr">
- <view class="padding flex align-center">
- <view class="cuIcon-text text-bold padding-right-xs" style="font-size: 38upx;"></view>
- <view class="title">提现明细</view>
- </view>
- <view v-for="(item, index) in list" :key="index" class="flex align-center justify-between">
- <view class="padding-lr">
- <view class="title">{{item.note}}</view>
- <view style="font-size: 24upx;font-family: PingFang SC;font-weight: bold;color: #686868;">
- {{item.createTime}}</view>
- </view>
- <view class="padding-right">
- <text style="font-size: 36upx;font-family: PingFang SC;font-weight: bold;color: #F3484E;">+{{ +item.hotValue}}</text>
- <text class="text-bold padding-left-xs">元</text>
- </view>
- </view>
- <view style="padding: 20upx;">
- <u-line color="#e0e0e0"></u-line>
- </view>
- </view>
- <view style="height: 30upx;"></view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- userId: '1',
- data: {},
- list:[]
- }
- },
- onLoad() {
- this.getBonus()
- this.getList()
- },
- methods: {
- getBonus() {
- this.$u.api.user.getBonus({
- userId: this.userId
- }).then(res => {
- this.data = res
- })
- },
- getList(){
- let params={
- userId:this.userId
- }
- this.$u.api.user.withdrawrecords(params).then(res => {
- this.list=res.records
- })
- }
- }
- }
- </script>
- <style>
- .container {
- background-color: #FFFFFF;
- border-radius: 16upx;
- box-shadow: 0px 3px 79px 0px rgba(132, 132, 132, 0.22);
- }
- .title {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 800;
- color: #000000;
- }
- .number {
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: 800;
- color: #F3484E;
- }
- </style>
|