success.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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/personal/cg@2x.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. width: 1.6rem;
  60. height: 0.56rem;
  61. font-size: 0.4rem;
  62. font-family: PingFangSC-Regular, PingFang SC;
  63. font-weight: 400;
  64. color: #111111;
  65. line-height: 0.56rem;
  66. text-align: center;
  67. position: absolute;
  68. top: 3.71rem;
  69. left: 2.95rem;
  70. }
  71. .point-success .menu {
  72. width: 80vw;
  73. height: 1.1rem;
  74. background: #ffffff;
  75. box-shadow: 0rem 0.02rem 0.1rem 0rem rgba(0, 0, 0, 0.1);
  76. border-radius: 0.1rem;
  77. display: flex;
  78. flex-direction: row;
  79. justify-content: space-around;
  80. align-items: center;
  81. position: absolute;
  82. top: 50vh;
  83. left: 10vw;
  84. }
  85. .point-success .menu span {
  86. height: 0.45rem;
  87. font-size: 0.32rem;
  88. font-family: PingFangSC-Regular, PingFang SC;
  89. font-weight: 400;
  90. color: #111111;
  91. line-height: 0.45rem;
  92. }
  93. </style>