jhzh
2024-05-20 f8e9af35a267b7b9a2bf605187a11536889a6e38
src/page/user/cashlist.vue
@@ -1,117 +1,129 @@
<template>
  <div class="wrapper">
    <!-- <div class="header">
      <mt-header title="提现记录">
        <router-link to="/user" slot="left">
          <mt-button icon="back">我的</mt-button>
        </router-link>
      </mt-header>
    </div> -->
    <div class="text-center">
      <div class="btn-group">
        <a href="#/cash" class="with-draw-btn">提现</a>
        <a href="javascript:;" class="with-draw-detai-btn on">记录</a>
      </div>
    </div>
    <van-nav-bar
      :placeholder="true"
      :safe-area-inset-top="true"
      :title="$t('hj162')"
      left-arrow
      @click-left="$router.go(-1)"
    >
    </van-nav-bar>
    <div>
      <div class="box page-part transaction">
        <div class="box-contain clearfix">
          <cashList></cashList>
        </div>
      <!-- <div class="box page-part transaction"> -->
      <div class="box-contain clearfix">
        <cashList></cashList>
      </div>
      <!-- </div> -->
    </div>
  </div>
</template>
<script>
import cashList from './compontents/cash-list'
import cashList from "./compontents/cash-list";
export default {
  components: {
    cashList
    cashList,
  },
  props: {},
  data () {
  data() {
    return {
      number: ''
    }
      number: "",
    };
  },
  watch: {},
  computed: {},
  created () {},
  mounted () {
    if (this.$state.theme =='red') {
        document.body.classList.remove('black-bg')
        document.body.classList.add('red-bg')
  created() {},
  mounted() {
    if (this.$state.theme == "red") {
      document.body.classList.remove("black-bg");
      document.body.classList.add("red-bg");
    }
  },
  beforeDestroy () {
    if (this.$state.theme =='red') {
      document.body.classList.remove('red-bg')
      document.body.classList.add('black-bg')
  beforeDestroy() {
    if (this.$state.theme == "red") {
      document.body.classList.remove("red-bg");
      document.body.classList.add("black-bg");
    }
  },
  methods: {
    toSure () {
    toSure() {
      // 确定
    }
  }
}
    },
  },
};
</script>
<style lang="less" scoped>
  .mint-header {
    // background: #f4f4f4;
    margin-bottom: 0.2rem;
  }
/deep/ .van-nav-bar__content {
  height: 65px;
}
/deep/ .van-nav-bar__title {
  font-family: "DINPro";
  width: 100%;
  height: 1.17333rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: normal;
  font-weight: 500;
  font-size: 0.48rem;
  color: #14181f;
}
  .btn-group {
    // background: #f4f4f4;
.mint-header {
  // background: #f4f4f4;
  margin-bottom: 0.2rem;
}
.wrapper {
  padding-bottom: 100px;
}
.btn-group {
  // background: #f4f4f4;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 0.5rem;
  a {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 0.5rem;
    a {
      display: inline-block;
      text-align: center;
      font-size: 0.29rem;
      height: 0.7rem;
      line-height: 0.6rem;
      width: 1.44rem;
      margin: 0;
      margin-top: 0;
      padding: 0;
    }
    .with-draw-btn {
      position: relative;
      right: -10px;
      width: 1.51rem;
      border-top-left-radius: 0.695rem;
      border-bottom-left-radius: 0.695rem;
    }
    .with-draw-detai-btn {
      border-top-right-radius: 0.695rem;
      border-bottom-right-radius: 0.695rem;
    }
    .on {
      color: #fff;
    }
    font-size: 0.29rem;
    height: 0.7rem;
    line-height: 0.6rem;
    width: 1.44rem;
    margin: 0;
    margin-top: 0;
    padding: 0;
  }
  .transaction {
    margin-top: 0.2rem;
    color: rgba(100, 100, 100, 0.78);
    .transaction-title {
      padding: 0.15rem 0.3rem;
    }
    .empty {
      height: 2.8rem;
      line-height: 2.8rem;
    }
  .with-draw-btn {
    position: relative;
    right: -10px;
    width: 1.51rem;
    border-top-left-radius: 0.695rem;
    border-bottom-left-radius: 0.695rem;
  }
  .with-draw-detai-btn {
    border-top-right-radius: 0.695rem;
    border-bottom-right-radius: 0.695rem;
  }
  .on {
    color: #fff;
  }
}
.transaction {
  margin-top: 0.2rem;
  color: rgba(100, 100, 100, 0.78);
  .transaction-title {
    padding: 0.15rem 0.3rem;
  }
  .empty {
    height: 2.8rem;
    line-height: 2.8rem;
  }
}
</style>