success.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <div class="point-success">
  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. import wx from "weixin-js-sdk";
  15. export default {
  16. head() {
  17. return {
  18. title: "支付成功",
  19. };
  20. },
  21. data() {
  22. return {};
  23. },
  24. components: {
  25. ProductList,
  26. },
  27. created(){
  28. this.getAppId(1);
  29. },
  30. mounted() {
  31. this.getSdkConfig(["openLocation", "getNetworkType"]).then((res) => {
  32. console.log("测试一下微信jdk");
  33. });
  34. },
  35. methods: {
  36. ...mapActions({
  37. getSdkConfig: "authen/getSdkConfig",
  38. getAppId:"authen/getAppId"
  39. }),
  40. },
  41. };
  42. </script>
  43. <style>
  44. .point-success {
  45. width: 100vw;
  46. height: 100vh;
  47. position: relative;
  48. }
  49. .point-success .icon {
  50. background: url("~static/point/cg@2xhuang.png") no-repeat 0px 0px;
  51. background-size: 100% 100%;
  52. width: 1.81rem;
  53. height: 1.81rem;
  54. position: absolute;
  55. left: 2.85rem;
  56. top: 1.6rem;
  57. }
  58. .point-success .text {
  59. height: 0.56rem;
  60. font-size: 0.4rem;
  61. font-family: PingFangSC-Regular, PingFang SC;
  62. font-weight: 400;
  63. color: #111111;
  64. line-height: 0.56rem;
  65. text-align: center;
  66. position: absolute;
  67. top: 3.71rem;
  68. left: 2.95rem;
  69. }
  70. .point-success .menu {
  71. width: 80vw;
  72. height: 1.1rem;
  73. background: #ffffff;
  74. box-shadow: 0rem 0.02rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  75. border-radius: 0.1rem;
  76. display: flex;
  77. flex-direction: row;
  78. justify-content: space-around;
  79. align-items: center;
  80. position: absolute;
  81. top: 50vh;
  82. left: 10vw;
  83. }
  84. .point-success .menu span {
  85. height: 0.45rem;
  86. font-size: 0.32rem;
  87. font-family: PingFangSC-Regular, PingFang SC;
  88. font-weight: 400;
  89. color: #111111;
  90. line-height: 0.45rem;
  91. }
  92. </style>