|
|
@@ -1,192 +1,111 @@
|
|
|
<template>
|
|
|
<div class="wallet">
|
|
|
- <div class="top">
|
|
|
- <div class="text1">个人账户余额</div>
|
|
|
- <div class="text2">
|
|
|
- <img src="@assets/svgs/icon_jiage.svg" alt="" />
|
|
|
- <span>0</span>
|
|
|
- </div>
|
|
|
+ <div class="wallet-card">
|
|
|
+ <div class="label">账户余额(元)</div>
|
|
|
+ <div class="value">{{ userBalance.balance }}</div>
|
|
|
<div class="btns">
|
|
|
- <van-button @click="wait" plain round color="#939599" size="mini">提现</van-button>
|
|
|
- <van-button @click="wait" plain round type="primary" size="mini">充值</van-button>
|
|
|
+ <div class="btn btn-card" @click="$router.push({ name: 'mineBanks' })">我的银行卡</div>
|
|
|
+ <div class="btn btn-record">充值记录</div>
|
|
|
</div>
|
|
|
- <img src="@assets/svgs/topBg.svg" class="top-img" alt="" />
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="title">
|
|
|
- <span>收入明细</span>
|
|
|
- <van-popover v-model:show="showPopover" :actions="actions" theme="dark" @select="onSelect">
|
|
|
- <template #reference>
|
|
|
- <van-button
|
|
|
- class="select"
|
|
|
- size="mini"
|
|
|
- color="#1C1E25"
|
|
|
- icon-position="right"
|
|
|
- :icon="require('@assets/svgs/icon_shaixuan_sanjiao.svg')"
|
|
|
- >2021年9月</van-button
|
|
|
- >
|
|
|
- </template>
|
|
|
- </van-popover>
|
|
|
</div>
|
|
|
- <div class="list">
|
|
|
- <!-- <div class="info">
|
|
|
- <div class="info-text">
|
|
|
- <div class="text1">提现</div>
|
|
|
- <div class="text2">奶盖</div>
|
|
|
- <div class="text2">09-03 09:56</div>
|
|
|
- </div>
|
|
|
- <div class="text3">-320</div>
|
|
|
+ <div class="recharge-card">
|
|
|
+ <div class="title">选择金额</div>
|
|
|
+ <div class="amount">
|
|
|
+ <div class="item" v-for="item in amountOptions" :key="item">{{ item }}</div>
|
|
|
</div>
|
|
|
- <div class="info">
|
|
|
- <div class="info-text">
|
|
|
- <div class="text1">提现</div>
|
|
|
- <div class="text2">奶盖</div>
|
|
|
- <div class="text2">09-03 09:56</div>
|
|
|
- </div>
|
|
|
- <div class="text3">-320</div>
|
|
|
- </div> -->
|
|
|
- <van-empty :image="require('@assets/kong_png_yongyoude (1).png')" description="暂时没有任何记录哦~" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
-import { ref } from 'vue';
|
|
|
export default {
|
|
|
- setup() {
|
|
|
- const showPopover = ref(false);
|
|
|
-
|
|
|
- // 通过 actions 属性来定义菜单选项
|
|
|
- const actions = [{ text: '2021年9月' }];
|
|
|
-
|
|
|
+ data() {
|
|
|
return {
|
|
|
- actions,
|
|
|
- showPopover
|
|
|
+ userBalance: {
|
|
|
+ balance: 0
|
|
|
+ },
|
|
|
+ amountOptions: [100, 500, 1000, 2000, 5000, 10000]
|
|
|
};
|
|
|
- },
|
|
|
- methods: {
|
|
|
- onSelect(action) {
|
|
|
- console.log(action);
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="less" scoped>
|
|
|
-.top {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- padding: 50px 16px 53px;
|
|
|
- background-color: @bg3;
|
|
|
- position: relative;
|
|
|
- .text1 {
|
|
|
- font-size: 13px;
|
|
|
- color: #939599;
|
|
|
- line-height: 18px;
|
|
|
- }
|
|
|
- .text2 {
|
|
|
- span {
|
|
|
+.wallet {
|
|
|
+ background: @bg3;
|
|
|
+ padding-top: 16px;
|
|
|
+ .wallet-card {
|
|
|
+ height: 138px;
|
|
|
+ margin: 0 16px;
|
|
|
+ background: #404569;
|
|
|
+ background-image: url(../../assets/bg_wallet.png);
|
|
|
+ background-size: 182px 94px;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position-x: right;
|
|
|
+ background-position-y: top;
|
|
|
+ border-radius: 9px;
|
|
|
+ color: white;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ .flex-col();
|
|
|
+ .label {
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 24px;
|
|
|
+ margin: 16px 0 0 16px;
|
|
|
+ }
|
|
|
+ .value {
|
|
|
+ font-family: OSP-DIN, OSP;
|
|
|
font-size: 36px;
|
|
|
- font-family: DIN;
|
|
|
- font-weight: bold;
|
|
|
- color: #fdfb60;
|
|
|
- line-height: 44px;
|
|
|
- background: linear-gradient(135deg, #fdfb60 0%, #ff8f3e 100%);
|
|
|
- background-clip: text;
|
|
|
- -webkit-background-clip: text;
|
|
|
- -webkit-text-fill-color: transparent;
|
|
|
+ line-height: 30px;
|
|
|
+ margin: 4px 0 0 16px;
|
|
|
+ flex-grow: 1;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .btns {
|
|
|
- margin-top: 20px;
|
|
|
- .van-button {
|
|
|
- width: 90px;
|
|
|
-
|
|
|
- &.van-button--primary {
|
|
|
- border: solid 0px transparent;
|
|
|
- padding: 1px;
|
|
|
- background-image: linear-gradient(@bg, @bg), linear-gradient(135deg, #fdfb60, #ff8f3e);
|
|
|
- background-origin: border-box;
|
|
|
- box-sizing: border-box;
|
|
|
- background-clip: content-box, border-box;
|
|
|
+ .btns {
|
|
|
+ color: @text3;
|
|
|
+ font-size: 14px;
|
|
|
+ background: #292a52;
|
|
|
+ .flex();
|
|
|
+ .btn {
|
|
|
+ flex-basis: 0;
|
|
|
+ flex-grow: 1;
|
|
|
+ height: 44px;
|
|
|
+ .flex();
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: color 0.1s;
|
|
|
+ &:active {
|
|
|
+ color: fade(@text3, 20%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btn-card {
|
|
|
+ position: relative;
|
|
|
+ &:after {
|
|
|
+ content: '';
|
|
|
+ width: 1px;
|
|
|
+ height: 20px;
|
|
|
+ background: @text3;
|
|
|
+ border-radius: 1px;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .van-button + .van-button {
|
|
|
- margin-left: 32px;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.top-img {
|
|
|
- display: block;
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
-}
|
|
|
-
|
|
|
-.title {
|
|
|
- padding: 20px 16px;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: @text0;
|
|
|
- line-height: 22px;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
-}
|
|
|
-.select {
|
|
|
- min-width: 100px;
|
|
|
- height: 32px;
|
|
|
- color: #939599 !important;
|
|
|
-
|
|
|
- /deep/.van-icon__image {
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- display: block;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.info {
|
|
|
- display: flex;
|
|
|
- padding: 0 16px;
|
|
|
- height: 90px;
|
|
|
- align-items: center;
|
|
|
- position: relative;
|
|
|
- .info-text {
|
|
|
- flex-grow: 1;
|
|
|
- .text1 {
|
|
|
- font-size: 14px;
|
|
|
- color: @text0;
|
|
|
- line-height: 20px;
|
|
|
- margin-bottom: 4px;
|
|
|
+ .recharge-card {
|
|
|
+ margin: 16px 16px 0 16px;
|
|
|
+ padding-top: 16px;
|
|
|
+ .title {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
-
|
|
|
- .text2 {
|
|
|
- font-size: 12px;
|
|
|
- color: #969799;
|
|
|
- line-height: 17px;
|
|
|
- margin-bottom: 2px;
|
|
|
+ .amount {
|
|
|
+ margin: 16px 16px 0 0;
|
|
|
+ .item {
|
|
|
+ background: #393d62;
|
|
|
+ flex: 1 1 150px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .text3 {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: @text0;
|
|
|
- line-height: 24px;
|
|
|
- }
|
|
|
-
|
|
|
- &::before {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- left: 16px;
|
|
|
- right: 16px;
|
|
|
- top: 0;
|
|
|
- height: 1px;
|
|
|
- background-color: #202122;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|