mine-view.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view>
  3. <view class="bg-img flex align-center" style="background-image: url('/static/ldt/mineBgImg.png');height: 372upx;">
  4. <view class="flex align-center">
  5. <view class="avatar">
  6. <u-avatar src="/static/avatar.png" size="110"></u-avatar>
  7. </view>
  8. <view class="name">赖德福|德芙值得信赖</view>
  9. </view>
  10. </view>
  11. <view class="container">
  12. <view class="text-center padding-top-sm">
  13. <tkiBarcode cid="itf14" :loadMake="false" format="itf14" val="1234567890123" ref="itf14" @result="itf14" />
  14. </view>
  15. </view>
  16. <view class="text-bold text-black" style="padding: 0 0 30upx 30upx;">我的账户</view>
  17. <view class="flex">
  18. <view>
  19. <view>2000</view>
  20. <view>我的积分</view>
  21. </view>
  22. <view>
  23. <view>+200</view>
  24. <view>昨日收益</view>
  25. </view>
  26. <view>
  27. <image src="/static/ldt/swapPoints.png" style="width: 41upx;height: 37upx;"></image>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import tkiBarcode from "@/components/tki-barcode/tki-barcode.vue"
  34. export default {
  35. components: {
  36. tkiBarcode
  37. },
  38. data() {
  39. return {
  40. }
  41. },
  42. mounted() {
  43. this.$refs['itf14']._makeCode()
  44. },
  45. methods: {
  46. itf14(v) {
  47. // console.log('itf14:', v)
  48. },
  49. }
  50. }
  51. </script>
  52. <style>
  53. .avatar {
  54. padding-left: 40upx;
  55. padding-right: 20upx;
  56. }
  57. .name {
  58. font-size: 26upx;
  59. font-family: PingFang SC;
  60. font-weight: 600;
  61. color: #222222;
  62. }
  63. .container {
  64. background-color: #ffffff;
  65. margin: -120upx 30upx 30upx 30upx;
  66. height: 180upx;
  67. border-radius: 100upx;
  68. box-shadow: 10upx 20upx 60upx #d8d8d8;
  69. }
  70. </style>