mine-view.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view>
  3. <view class="bg-white">
  4. <view class="bg-img flex align-center" style="background-image: url('/static/ldt/mineBgImg.png');height: 372upx;">
  5. <view class="flex align-center">
  6. <view class="avatar">
  7. <u-avatar src="/static/avatar.png" size="110"></u-avatar>
  8. </view>
  9. <view class="name">赖德福|德芙值得信赖</view>
  10. </view>
  11. </view>
  12. <view class="container">
  13. <view class="text-center padding-top-sm">
  14. <tkiBarcode cid="itf14" :loadMake="false" format="itf14" val="1234567890123" ref="itf14" @result="itf14" />
  15. </view>
  16. </view>
  17. <view class="text-bold text-black" style="padding: 0 0 30upx 50upx;">我的账户</view>
  18. <view class="flex justify-center text-center padding-bottom">
  19. <view style="width: 30%;border-right: #eeeeee 1px solid;">
  20. <view style="color: #fd9244;font-size: 34upx;font-weight: bold;">2000</view>
  21. <view class="text-sm text-black text-bold">我的积分</view>
  22. </view>
  23. <view style="width: 30%;">
  24. <view style="color: #f90103;font-size: 34upx;font-weight: bold;">+200</view>
  25. <view class="text-sm text-black text-bold">昨日收益</view>
  26. </view>
  27. <view style="width: 30%;">
  28. <image src="/static/ldt/swapPoints.png" style="width: 41upx;height: 37upx;"></image>
  29. <view class="text-sm text-black text-bold">换积分</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="card padding-bottom">
  34. <view class="title">我的明细</view>
  35. <view class="flex align-center justify-around">
  36. <view class="bg-img" style="background-image: url('https://upload-file-data.obs.cn-south-1.myhuaweicloud.com/d10d440c3c9e45cbb30b3a727dc9a50c-pointsDetail.png');width: 280upx;height: 120upx;">
  37. <view class="text-sm text-gray padding-top-sm padding-left">积分明细</view>
  38. <view class="padding-top-sm padding-left" style="font-size: 34upx;font-weight: bold;">10,000</view>
  39. </view>
  40. <view class="bg-img" style="background-image: url('https://upload-file-data.obs.cn-south-1.myhuaweicloud.com/3751ceb0e94c4ae0bfa0652e31f5a902-coupon.png');width: 280upx;height: 120upx;">
  41. <view class="text-sm text-gray padding-top-sm padding-left">国信信用分</view>
  42. <view class="padding-top-sm padding-left" style="font-size: 34upx;font-weight: bold;">749</view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="card">
  47. <view class="title">其他服务</view>
  48. <block v-for="(item, index) in iconList">
  49. <view class="flex justify-between align-center padding" @click="navByIcon(item.url)">
  50. <view class="flex align-center">
  51. <view class="text-black padding-left">{{item.name}}</view>
  52. </view>
  53. <view class="flex align-center margin-right" style="width: 38rpx;height: 40rpx;">
  54. <image :src="item.icon" :style="{width: item.width, height: item.height}"></image>
  55. </view>
  56. </view>
  57. <view class="margin-lr" v-if="index != iconList.length - 1"><u-line color="#eeeeee"></u-line></view>
  58. </block>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. import tkiBarcode from "@/components/tki-barcode/tki-barcode.vue"
  64. export default {
  65. components: {
  66. tkiBarcode
  67. },
  68. data() {
  69. return {
  70. iconList: [
  71. {name: '我的账单', icon: '/static/ldt/icon-bill.png', width: '35upx', height: '39upx', url: ''},
  72. {name: '银行卡', icon: '/static/ldt/icon-card.png', width: '37upx', height: '28upx', url: ''},
  73. {name: '我的VIP', icon: '/static/ldt/icon-vip.png', width: '38upx', height: '29upx', url: ''},
  74. ]
  75. }
  76. },
  77. mounted() {
  78. this.$refs['itf14']._makeCode()
  79. },
  80. methods: {
  81. itf14(v) {
  82. // console.log('itf14:', v)
  83. },
  84. navByIcon(url) {
  85. uni.navigateTo({
  86. url: url
  87. })
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .avatar {
  94. padding-left: 40upx;
  95. padding-right: 20upx;
  96. }
  97. .name {
  98. font-size: 26upx;
  99. font-family: PingFang SC;
  100. font-weight: 600;
  101. color: #222222;
  102. }
  103. .container {
  104. background-color: #ffffff;
  105. margin: -120upx 30upx 30upx 30upx;
  106. height: 180upx;
  107. border-radius: 100upx;
  108. box-shadow: 10upx 20upx 60upx #d8d8d8;
  109. }
  110. .card {
  111. margin: 20upx 30upx;
  112. background-color: #ffffff;
  113. border-radius: 10upx;
  114. .title {
  115. font-weight: bold;
  116. color: #000000;
  117. padding: 30upx 20upx;
  118. }
  119. }
  120. </style>