cbdetail.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="content">
  3. <view class="vheight"></view>
  4. <view class="top flex">
  5. <image class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
  6. <image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
  7. </view>
  8. <view class="title">充幣</view>
  9. </view>
  10. </template>
  11. <script>
  12. import { czpage } from '@/api/wallet.js';
  13. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  14. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  15. export default {
  16. data() {
  17. return {
  18. id: ''
  19. };
  20. },
  21. onLoad(opt) {
  22. this.id = opt.type;
  23. this.loadData();
  24. },
  25. onShow() {},
  26. onReachBottom() {},
  27. onReady() {},
  28. methods: {
  29. loadData() {
  30. czpage({ id: this.id }).then(e => {
  31. console.log(e);
  32. });
  33. }
  34. }
  35. };
  36. </script>
  37. <style lang="scss">
  38. page,
  39. .content {
  40. min-height: 100%;
  41. height: auto;
  42. background: #f5f5f5;
  43. }
  44. .vheigh {
  45. height: var(--status-bar-height);
  46. }
  47. .top {
  48. padding: 20rpx 40rpx;
  49. .top-icon1 {
  50. width: 52rpx;
  51. height: 36rpx;
  52. }
  53. .top-icon2 {
  54. width: 48rpx;
  55. height: 48rpx;
  56. }
  57. }
  58. </style>