|
@@ -0,0 +1,197 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="wallet">
|
|
|
|
|
+ <div class="top">
|
|
|
|
|
+ <div class="text1">我的积分</div>
|
|
|
|
|
+ <div class="text2">
|
|
|
|
|
+ <img src="../../assets/svgs/icon_jiage.svg" alt="" />
|
|
|
|
|
+ <span>465.26</span>
|
|
|
|
|
+ </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>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import { ref } from "vue";
|
|
|
|
|
+export default {
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ const showPopover = ref(false);
|
|
|
|
|
+
|
|
|
|
|
+ // 通过 actions 属性来定义菜单选项
|
|
|
|
|
+ const actions = [
|
|
|
|
|
+ { text: "选项一" },
|
|
|
|
|
+ { text: "选项二" },
|
|
|
|
|
+ { text: "选项三" },
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ return {
|
|
|
|
|
+ actions,
|
|
|
|
|
+ showPopover,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ 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 {
|
|
|
|
|
+ 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: #ffffff;
|
|
|
|
|
+ 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: #ffffff;
|
|
|
|
|
+ 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: #ffffff;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 16px;
|
|
|
|
|
+ right: 16px;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ height: 1px;
|
|
|
|
|
+ background-color: #202122;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|