success.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div class="container">
  3. <div class="icon"></div>
  4. <div class="text">充值成功</div>
  5. <div class="menu">
  6. <nuxt-link class="text1" to="/point" tag="span">回到首页</nuxt-link>
  7. <nuxt-link class="text2" to="/point/list" tag="span">查看订单</nuxt-link>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. import ProductList from "../../components/ProductList";
  13. import { mapState, mapActions } from "vuex";
  14. export default {
  15. head() {
  16. return {
  17. title: "个人中心",
  18. };
  19. },
  20. data() {
  21. return {
  22. images: [],
  23. list: [],
  24. loading: false, // 加载状态
  25. finished: false, // 是否完成加载
  26. refreshing: false, // 是否正在上拉刷新
  27. };
  28. },
  29. components: {
  30. ProductList,
  31. },
  32. computed: {
  33. ...mapState({
  34. pointInfo: (state) => state.point.pointInfo,
  35. }),
  36. },
  37. mounted() {
  38. // this.getPointInfo();
  39. },
  40. methods: {
  41. ...mapActions({
  42. getPointInfo: "point/getPointInfo",
  43. }),
  44. },
  45. };
  46. </script>
  47. <style>
  48. .container {
  49. width: 100vw;
  50. height: 100vh;
  51. position: relative;
  52. }
  53. .container .icon {
  54. background: url("~static/personal/cg@2x.png") no-repeat 0px 0px;
  55. background-size: 100% 100%;
  56. width: 1.81rem;
  57. height: 1.81rem;
  58. position: absolute;
  59. left: 2.85rem;
  60. top: 1.6rem;
  61. }
  62. .container .text {
  63. width: 1.6rem;
  64. height: 0.56rem;
  65. font-size: 0.4rem;
  66. font-family: PingFangSC-Regular, PingFang SC;
  67. font-weight: 400;
  68. color: #111111;
  69. line-height: 0.56rem;
  70. text-align: center;
  71. position: absolute;
  72. top: 3.71rem;
  73. left: 2.95rem;
  74. }
  75. .container .menu {
  76. width: 80vw;
  77. height: 1.1rem;
  78. background: #ffffff;
  79. box-shadow: 0rem 0.02rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  80. border-radius: 0.1rem;
  81. display: flex;
  82. flex-direction: row;
  83. justify-content: space-around;
  84. align-items: center;
  85. position: absolute;
  86. top: 50vh;
  87. left: 10vw;
  88. }
  89. .container .menu span {
  90. height: 0.45rem;
  91. font-size: 0.32rem;
  92. font-family: PingFangSC-Regular, PingFang SC;
  93. font-weight: 400;
  94. color: #111111;
  95. line-height: 0.45rem;
  96. }
  97. </style>