payResultNo.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="content">
  3. <view class="success-title">合同签订成功</view>
  4. <view class="success-icon">
  5. <u-icon name="checkmark-circle-fill" color="#19be6b" size="156" ></u-icon>
  6. </view>
  7. <view class="success-text">{{'请联系管理员帮你,开通会员!'}}</view>
  8. <view class="success-text">订单号:{{orderId}}</view>
  9. <view class="handle-fix-box">
  10. <u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="goBack()">返回</u-button>
  11. </view>
  12. <u-top-tips ref="uTips"></u-top-tips>
  13. </view>
  14. </template>
  15. <script>
  16. import {
  17. mapGetters
  18. } from 'vuex'
  19. const NET = require('@/utils/request')
  20. const API = require('@/config/api')
  21. export default {
  22. computed: {
  23. ...mapGetters([
  24. 'mainColor',
  25. 'customStyle',
  26. ])
  27. },
  28. data() {
  29. return {
  30. orderId: '',
  31. payResult: '0',
  32. }
  33. },
  34. onLoad(options) {
  35. this.orderId = options.id
  36. NET.request(API.getPayResult, {
  37. oderNo: this.orderId
  38. }, 'POST').then(res => {
  39. this.payResult = res.data.status
  40. }).catch(error => {
  41. this.$refs.uTips.show({
  42. title: error.message,
  43. type: 'warning',
  44. })
  45. })
  46. },
  47. onReady() {},
  48. methods: {
  49. // 返回
  50. goBack() {
  51. uni.navigateBack()
  52. },
  53. },
  54. }
  55. </script>
  56. <style>
  57. page {
  58. width: 100%;
  59. height: 100%;
  60. position: relative;
  61. }
  62. </style>
  63. <style lang="scss" scoped>
  64. @import "@/static/css/themes.scss";
  65. .content {
  66. width: 100%;
  67. float: left;
  68. padding: 0 15px 60px 15px;
  69. box-sizing: border-box;
  70. .success-title {
  71. width: 100%;
  72. height: 64px;
  73. float: left;
  74. line-height: 48px;
  75. font-size: 28px;
  76. text-align: center;
  77. }
  78. .success-icon {
  79. width: 100%;
  80. float: left;
  81. text-align: center;
  82. margin-bottom: 20px;
  83. }
  84. .success-text {
  85. width: 100%;
  86. height: 20px;
  87. float: left;
  88. line-height: 20px;
  89. font-size: 12px;
  90. text-align: center;
  91. }
  92. }
  93. </style>