success.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div class="point-success">
  3. <div class="background">
  4. <span class="icon"></span>
  5. <span class="text">支付成功</span>
  6. </div>
  7. <div class="container">
  8. <div class="menu">
  9. <span class="text1">回到首页</span> <span class="text2">查看订单</span>
  10. </div>
  11. <div class="show">
  12. <product-list />
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import ProductList from "../../components/ProductList";
  19. export default {
  20. head() {
  21. return {
  22. title: "积分主页",
  23. };
  24. },
  25. data() {
  26. return {
  27. images: [],
  28. list: [],
  29. loading: false, //加载状态
  30. finished: false, //是否完成加载
  31. refreshing: false, //是否正在上拉刷新
  32. };
  33. },
  34. components: {
  35. ProductList,
  36. },
  37. beforeCreate() {},
  38. created() {},
  39. beforeMount() {},
  40. mounted() {
  41. console.log(this);
  42. },
  43. beforeUpdate() {},
  44. updated() {},
  45. beforeDestroy() {},
  46. destroyed() {},
  47. methods: {
  48. // onLoad() {
  49. // var that = this;
  50. // that.$axios
  51. // .get("/getIntegralWaresInfoList", {
  52. // params: {
  53. // stationId: "1",
  54. // },
  55. // })
  56. // .then((res) => {
  57. // if (res.data.retCode == 0) {
  58. // that.list = res.data.data; //追加数据
  59. // // 加载状态结束
  60. // that.loading = false;
  61. // that.finished = true;
  62. // console.log(that.list);
  63. // }
  64. // });
  65. // },
  66. // onRefresh() {
  67. // // 清空列表数据
  68. // that.finished = true;
  69. // // 重新加载数据
  70. // // 将 loading 设置为 true,表示处于加载状态
  71. // that.loading = true;
  72. // that.onLoad();
  73. // },
  74. },
  75. };
  76. </script>
  77. <style>
  78. .point-success {
  79. position: relative;
  80. }
  81. .point-success .background {
  82. background-color: #f3b335;
  83. width: 100%;
  84. height: 3.8rem;
  85. position: relative;
  86. background: url("../../static/point/bj2@2x.png") no-repeat 0px 0px;
  87. background-size: 100% 100%;
  88. z-index: -1;
  89. position: relative;
  90. }
  91. .point-success .background .icon {
  92. display: inline-block;
  93. width: 0.48rem;
  94. height: 0.48rem;
  95. background: url("../../static/point/1_e10_cg@2x.png");
  96. background-size: 100% 100%;
  97. position: absolute;
  98. top: 1.13rem;
  99. left: 2.41rem;
  100. }
  101. .point-success .background .text {
  102. width: 2rem;
  103. height: 0.7rem;
  104. font-size: 0.5rem;
  105. font-family: PingFangSC-Regular, PingFang SC;
  106. font-weight: 400;
  107. color: #ffffff;
  108. line-height: 0.7rem;
  109. position: absolute;
  110. top: 1rem;
  111. left: 3.09rem;
  112. }
  113. .point-success .container {
  114. margin-top: -13.33vw;
  115. width: 100%;
  116. padding: 0 4vw;
  117. box-sizing: border-box;
  118. display: flex;
  119. flex-direction: column;
  120. z-index: 99;
  121. }
  122. .point-success .container .menu {
  123. width: 100%;
  124. height: 1.1rem;
  125. background: #ffffff;
  126. box-shadow: 0rem 0.02rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  127. border-radius: 0.1rem;
  128. display: flex;
  129. flex-direction: row;
  130. justify-content: space-around;
  131. align-items: center;
  132. }
  133. .point-success .container .menu span {
  134. width: 1.28rem;
  135. height: 0.45rem;
  136. font-size: 0.32rem;
  137. font-family: PingFangSC-Regular, PingFang SC;
  138. font-weight: 400;
  139. color: #111111;
  140. line-height: 0.45rem;
  141. }
  142. </style>