msg.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view>
  3. <view class="padding-xl">
  4. <view class="text-center">
  5. <view :class="fetch.class"></view>
  6. <view class="margin-top text-xl">{{fetch.status_text}}</view>
  7. </view>
  8. <view class="bg-white margin-top grace-border-t grace-shadow">
  9. <view class="padding grace-border-b">
  10. <view class="grace-space-between grace-flex-vcenter">
  11. <view class="text-hui text-sm">支付金额</view>
  12. <view class="text-ssblue">{{fetch.price}}</view>
  13. </view>
  14. </view>
  15. <view class="padding grace-border-b">
  16. <view class="grace-space-between grace-flex-vcenter">
  17. <view class="text-hui text-sm">支付方式</view>
  18. <view class="text-ssblue">{{fetch.pay_type.name}}</view>
  19. </view>
  20. </view>
  21. <view class="padding grace-border-b">
  22. <view class="grace-space-between grace-flex-vcenter">
  23. <view class="text-hui text-sm">订单号码</view>
  24. <view class="text-ssblue">{{fetch.order_id}}</view>
  25. </view>
  26. </view>
  27. <view class="padding grace-border-b">
  28. <view class="grace-space-between grace-flex-vcenter">
  29. <view class="text-hui text-sm">支付时间</view>
  30. <view class="text-ssblue">{{fetch.pay_at}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. <button type="primary" class="grace-button buttom-radius buttom-shadow margin-top-xxl" @click="toIndex">
  35. {{fetch.text}}
  36. </button>
  37. </view>
  38. <pageLoading :pageLoading="pageLoading"></pageLoading>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. fetch : {
  46. status : 2,
  47. status_text : '支付中',
  48. pay_type : {
  49. name : '',
  50. },
  51. pay_at : '',
  52. price : '',
  53. order_id : '',
  54. text : '返回首页',
  55. class : 'grace-icons bg-blue icon-right text-xxxl text-bold',
  56. }
  57. }
  58. },
  59. onLoad: function(option) {
  60. this.code = option.code;
  61. },
  62. onShow:function(){
  63. this.Dever.checkLogin();
  64. this.getInfo();
  65. },
  66. methods: {
  67. getInfo: function() {
  68. this.Dever.get(this, 'buyMsg', {code:this.code});
  69. },
  70. toIndex : function () {
  71. uni.switchTab({
  72. url: '/pages/index/index'
  73. });
  74. }
  75. }
  76. }
  77. </script>
  78. <style>
  79. .icon-right {border-radius: 50%;width: 100rpx;height: 100rpx;line-height: 100rpx;margin: 0 auto;}
  80. .grace-border-t{border-top:5px solid #3c64c9;}
  81. </style>