|
|
@@ -1,192 +1,11 @@
|
|
|
<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="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>
|
|
|
- <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>
|
|
|
- <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>
|
|
|
+ <div></div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
-import { ref } from 'vue';
|
|
|
-export default {
|
|
|
- setup() {
|
|
|
- const showPopover = ref(false);
|
|
|
+import { defineComponent } from '@vue/composition-api';
|
|
|
|
|
|
- // 通过 actions 属性来定义菜单选项
|
|
|
- const actions = [{ text: '2021年9月' }];
|
|
|
-
|
|
|
- return {
|
|
|
- actions,
|
|
|
- showPopover
|
|
|
- };
|
|
|
- },
|
|
|
- methods: {
|
|
|
- onSelect(action) {
|
|
|
- console.log(action);
|
|
|
- }
|
|
|
- }
|
|
|
-};
|
|
|
+export default defineComponent({
|
|
|
+ setup() {}
|
|
|
+});
|
|
|
</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 {
|
|
|
- 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;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .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;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .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;
|
|
|
- }
|
|
|
-
|
|
|
- .text2 {
|
|
|
- font-size: 12px;
|
|
|
- color: #969799;
|
|
|
- line-height: 17px;
|
|
|
- margin-bottom: 2px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .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>
|
|
|
+<style lang="less" scoped></style>
|