cbDetail.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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">{{ $t('cb.lx') }}</text>
  6. <view class="input">{{ $t('cb.ptcb') }}</view>
  7. </view>
  8. <view class="row b-b flex">
  9. <text class="tit">{{ $t('cb.zt') }}</text>
  10. <view class="input">{{ info.status == 1 ? $t('cb.dsh') : info.status == 2 ? $t('cb.wc') : $t('cb.sb') }}</view>
  11. </view>
  12. <view class="row b-b flex">
  13. <text class="tit">{{ $t('cb.sj') }}</text>
  14. <view class="input">{{ info.addtime }}</view>
  15. </view>
  16. <view class="row b-b flex">
  17. <text class="tit">{{ $t('cb.zzpz') }}</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. uni.setNavigationBarTitle({ title: this.$t('cb.cbxq') });
  33. this.id = opt.id;
  34. this.loadData();
  35. },
  36. onShow() {},
  37. methods: {
  38. loadData() {
  39. czinfo({ oid: this.id }).then(e => {
  40. this.info = e.data;
  41. });
  42. }
  43. }
  44. };
  45. </script>
  46. <style lang="scss">
  47. page,
  48. .content {
  49. min-height: 100%;
  50. height: auto;
  51. background: #fff;
  52. }
  53. .row {
  54. display: flex;
  55. align-items: center;
  56. position: relative;
  57. padding: 40rpx 30rpx;
  58. background: #fff;
  59. .tit {
  60. flex-shrink: 0;
  61. width: 120rpx;
  62. font-size: 28rpx;
  63. color: #707a8a;
  64. }
  65. .input {
  66. text-align: right;
  67. flex: 1;
  68. font-size: 28rpx;
  69. color: #000;
  70. }
  71. .image {
  72. width: 160rpx;
  73. height: 160rpx;
  74. image {
  75. width: 100%;
  76. height: 100%;
  77. }
  78. }
  79. }
  80. .title {
  81. padding: 50rpx 30rpx;
  82. font-size: 48rpx;
  83. font-weight: bold;
  84. color: #fcd535;
  85. }
  86. </style>