cbDetail.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="content">
  3. <view class="title b-b">+{{ info.num }}{{ info.coin }}</view>
  4. <view class="row b-b flex">
  5. <text class="tit">類型</text>
  6. <view class="input">普通充幣</view>
  7. </view>
  8. <view class="row b-b flex">
  9. <text class="tit">狀態</text>
  10. <view class="input">{{ info.status == 1 ? '待审核' : info.status == 2 ? '完成' : '失败' }}</view>
  11. </view>
  12. <view class="row b-b flex">
  13. <text class="tit">時間</text>
  14. <view class="input">{{ info.addtime }}</view>
  15. </view>
  16. <view class="row b-b flex">
  17. <text class="tit">轉賬憑證</text>
  18. <view class="image"><image :src="info.payimg" mode=""></image></view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import { czinfo } from '@/api/wallet.js';
  24. export default {
  25. data() {
  26. return {
  27. id: '',
  28. info: ''
  29. };
  30. },
  31. onLoad(opt) {
  32. this.id = opt.id;
  33. this.loadData();
  34. },
  35. onShow() {},
  36. methods: {
  37. loadData() {
  38. czinfo({ oid: this.id }).then(e => {
  39. this.info = e.data;
  40. });
  41. }
  42. }
  43. };
  44. </script>
  45. <style lang="scss">
  46. page,
  47. .content {
  48. min-height: 100%;
  49. height: auto;
  50. background: #fff;
  51. }
  52. .row {
  53. display: flex;
  54. align-items: center;
  55. position: relative;
  56. padding: 40rpx 30rpx;
  57. background: #fff;
  58. .tit {
  59. flex-shrink: 0;
  60. width: 120rpx;
  61. font-size: 28rpx;
  62. color: #707a8a;
  63. }
  64. .input {
  65. text-align: right;
  66. flex: 1;
  67. font-size: 28rpx;
  68. color: #000;
  69. }
  70. .image {
  71. width: 160rpx;
  72. height: 160rpx;
  73. image {
  74. width: 100%;
  75. height: 100%;
  76. }
  77. }
  78. }
  79. .title {
  80. padding: 50rpx 30rpx;
  81. font-size: 48rpx;
  82. font-weight: bold;
  83. color: #fcd535;
  84. }
  85. </style>