payResultNo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. uni.reLaunch({
  53. url: '/pages/index/index'
  54. });
  55. },
  56. },
  57. }
  58. </script>
  59. <style>
  60. page {
  61. width: 100%;
  62. height: 100%;
  63. position: relative;
  64. }
  65. </style>
  66. <style lang="scss" scoped>
  67. @import "@/static/css/themes.scss";
  68. .content {
  69. width: 100%;
  70. float: left;
  71. padding: 0 15px 60px 15px;
  72. box-sizing: border-box;
  73. .success-title {
  74. width: 100%;
  75. height: 64px;
  76. float: left;
  77. line-height: 48px;
  78. font-size: 28px;
  79. text-align: center;
  80. }
  81. .success-icon {
  82. width: 100%;
  83. float: left;
  84. text-align: center;
  85. margin-bottom: 20px;
  86. }
  87. .success-text {
  88. width: 100%;
  89. height: 20px;
  90. float: left;
  91. line-height: 20px;
  92. font-size: 12px;
  93. text-align: center;
  94. }
  95. }
  96. </style>