success.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. import wx from 'weixin-js-sdk';
  20. export default {
  21. head() {
  22. return {
  23. title: "支付成功",
  24. };
  25. },
  26. data() {
  27. return {
  28. images: [],
  29. list: [],
  30. loading: false, //加载状态
  31. finished: false, //是否完成加载
  32. refreshing: false, //是否正在上拉刷新
  33. };
  34. },
  35. components: {
  36. ProductList,
  37. },
  38. beforeCreate() {},
  39. created() {},
  40. beforeMount() {},
  41. mounted() {
  42. console.log("测试一下微信jdk");
  43. wx.config({
  44. debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  45. appId: 'wxc8189d3b3a7283e0', // 必填,公众号的唯一标识
  46. timestamp: 11, // 必填,生成签名的时间戳
  47. nonceStr: '', // 必填,生成签名的随机串
  48. signature: '',// 必填,签名
  49. jsApiList: [] // 必填,需要使用的JS接口列表
  50. });
  51. },
  52. beforeUpdate() {},
  53. updated() {},
  54. beforeDestroy() {},
  55. destroyed() {},
  56. methods: {
  57. // onLoad() {
  58. // var that = this;
  59. // that.$axios
  60. // .get("/getIntegralWaresInfoList", {
  61. // params: {
  62. // stationId: "1",
  63. // },
  64. // })
  65. // .then((res) => {
  66. // if (res.data.retCode == 0) {
  67. // that.list = res.data.data; //追加数据
  68. // // 加载状态结束
  69. // that.loading = false;
  70. // that.finished = true;
  71. // console.log(that.list);
  72. // }
  73. // });
  74. // },
  75. // onRefresh() {
  76. // // 清空列表数据
  77. // that.finished = true;
  78. // // 重新加载数据
  79. // // 将 loading 设置为 true,表示处于加载状态
  80. // that.loading = true;
  81. // that.onLoad();
  82. // },
  83. },
  84. };
  85. </script>
  86. <style>
  87. .point-success {
  88. position: relative;
  89. }
  90. .point-success .background {
  91. background-color: #f3b335;
  92. width: 100%;
  93. height: 3.8rem;
  94. position: relative;
  95. background: url("../../static/point/bj2@2x.png") no-repeat 0px 0px;
  96. background-size: 100% 100%;
  97. z-index: -1;
  98. position: relative;
  99. }
  100. .point-success .background .icon {
  101. display: inline-block;
  102. width: 0.48rem;
  103. height: 0.48rem;
  104. background: url("../../static/point/1_e10_cg@2x.png");
  105. background-size: 100% 100%;
  106. position: absolute;
  107. top: 1.13rem;
  108. left: 2.41rem;
  109. }
  110. .point-success .background .text {
  111. width: 2rem;
  112. height: 0.7rem;
  113. font-size: 0.5rem;
  114. font-family: PingFangSC-Regular, PingFang SC;
  115. font-weight: 400;
  116. color: #ffffff;
  117. line-height: 0.7rem;
  118. position: absolute;
  119. top: 1rem;
  120. left: 3.09rem;
  121. }
  122. .point-success .container {
  123. margin-top: -13.33vw;
  124. width: 100%;
  125. padding: 0 4vw;
  126. box-sizing: border-box;
  127. display: flex;
  128. flex-direction: column;
  129. z-index: 99;
  130. }
  131. .point-success .container .menu {
  132. width: 100%;
  133. height: 1.1rem;
  134. background: #ffffff;
  135. box-shadow: 0rem 0.02rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  136. border-radius: 0.1rem;
  137. display: flex;
  138. flex-direction: row;
  139. justify-content: space-around;
  140. align-items: center;
  141. }
  142. .point-success .container .menu span {
  143. width: 1.28rem;
  144. height: 0.45rem;
  145. font-size: 0.32rem;
  146. font-family: PingFangSC-Regular, PingFang SC;
  147. font-weight: 400;
  148. color: #111111;
  149. line-height: 0.45rem;
  150. }
  151. </style>