PaySuccess.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="j-pay-success">
  3. <div class="j-main">
  4. <div class="pay-success">
  5. <span class="j-icon icon-checkbox-choose"></span>
  6. <span class="pay-text">支付成功</span>
  7. <span class="pay-count">
  8. <span class="pc-l">&yen;</span>
  9. <span class="pc-r">{{ orderInfo.price }}</span>
  10. </span>
  11. <p class="pay-text-desc">我们会尽快将数据报告发送至</p>
  12. <p class="pay-text-desc">123@qq.com</p>
  13. </div>
  14. <van-cell-group class="order-info">
  15. <van-cell center title="支付方式" value="内容" />
  16. <van-cell center title="支付时间" value="内容" />
  17. <van-cell center title="订单编号" value="内容" />
  18. </van-cell-group>
  19. </div>
  20. <div class="j-button-group j-footer">
  21. <button class="j-button-confirm" @click="onConfirm">查看订单</button>
  22. </div>
  23. </div>
  24. </template>
  25. <script lang="ts">
  26. import { Component, Vue } from 'vue-property-decorator'
  27. import { Cell, CellGroup } from 'vant'
  28. import { mapActions } from 'vuex'
  29. @Component({
  30. name: 'pay',
  31. components: {
  32. [Cell.name]: Cell,
  33. [CellGroup.name]: CellGroup
  34. },
  35. methods: {
  36. // ...mapState({
  37. // getEnv: 'env'
  38. // })
  39. }
  40. })
  41. export default class PaySuccess extends Vue {
  42. orderInfo = {
  43. price: '2020'
  44. }
  45. // 将原型的全局变量提出来
  46. env = this.$env
  47. mounted () {
  48. // console.log(this.env)
  49. }
  50. onConfirm () {
  51. console.log('confirm')
  52. console.log(this.env)
  53. }
  54. }
  55. </script>
  56. <style lang="scss">
  57. .j-pay-success {
  58. .van-cell {
  59. height: 54px;
  60. }
  61. .icon-checkbox-choose {
  62. width: 80px;
  63. height: 80px;
  64. }
  65. .pay-success {
  66. display: flex;
  67. align-items: center;
  68. flex-direction: column;
  69. background-color: #fff;
  70. height: 316px;
  71. border-top: 1px solid transparent;
  72. .j-icon {
  73. margin-top: 50px;
  74. margin-bottom: 18px;
  75. }
  76. .pay-text {
  77. font-size: 18px;
  78. line-height: 26px;
  79. color: #2ABED1;
  80. }
  81. .pay-count {
  82. margin-top: 4px;
  83. margin-bottom: 24px;
  84. color: #171826;
  85. font-size: 17px;
  86. line-height: 30px;
  87. .pc-r {
  88. margin-left: 4px;
  89. font-size: 24px;
  90. }
  91. }
  92. .pay-text-desc {
  93. font-size: 13px;
  94. line-height: 20px;
  95. color: #5F5E64;
  96. }
  97. }
  98. .order-info {
  99. margin-top: 8px;
  100. }
  101. }
  102. </style>