vipDetail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view class="content">
  3. <view class="background">
  4. <image src="../../static/merchant/vipbackground.png" mode=""></image>
  5. <view class="title">
  6. {{number}}
  7. <text class="ren">人</text>
  8. </view>
  9. </view>
  10. <view class="vip-box">
  11. <view class="vip" v-for="item in vipList">
  12. <view class="img">
  13. <image :src="item.image" mode=""></image>
  14. </view>
  15. <view class="vip-content">
  16. <view class="left">
  17. <view class="top">
  18. <view class="name">
  19. {{item.name}}
  20. </view>
  21. <view class="nameplate">
  22. </view>
  23. </view>
  24. <view class="bottom">
  25. {{item.phone}}
  26. </view>
  27. </view>
  28. <view class="right">
  29. 消费:¥{{item.money}}
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. number: 199, //人数
  41. vipList: [
  42. {
  43. image: "../../static/error/missing-face.png",
  44. name: "强爹",
  45. phone: 19211111111,
  46. money: 1200
  47. },
  48. {
  49. image: "../../static/error/missing-face.png",
  50. name: "强爹",
  51. phone: 19211111111,
  52. money: 1200
  53. },
  54. {
  55. image: "../../static/error/missing-face.png",
  56. name: "强爹",
  57. phone: 19211111111,
  58. money: 1200
  59. }
  60. ]
  61. };
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .background {
  67. display: flex;
  68. justify-content: center;
  69. position: absolute;
  70. width: 100%;
  71. height: 360rpx;
  72. image {
  73. width: 100%;
  74. height: 100%;
  75. }
  76. }
  77. .title {
  78. position: absolute;
  79. text-align: center;
  80. line-height: 360rpx;
  81. font-size: 72rpx;
  82. font-family: PingFang SC;
  83. font-weight: bold;
  84. color: #FFFFFF;
  85. .ren {
  86. font-size: 36rpx;
  87. font-family: PingFang SC;
  88. font-weight: bold;
  89. color: #FFFFFF;
  90. line-height: 43rpx;
  91. }
  92. }
  93. .vip-box {
  94. background-color: #FFFFFF;
  95. display: flex;
  96. flex-direction: column;
  97. position: absolute;
  98. width: 100%;
  99. margin: 360rpx 0 0 ;
  100. .vip {
  101. border-top: 1rpx solid #E3E3E3;
  102. display: flex;
  103. align-items: center;
  104. .img {
  105. margin: 0 20rpx;
  106. width: 80rpx;
  107. height: 80rpx;
  108. border-radius: 50%;
  109. image {
  110. width: 100%;
  111. height: 100%;
  112. }
  113. }
  114. .vip-content {
  115. margin: 30rpx 0;
  116. display: flex;
  117. justify-content: space-between;
  118. width: 580rpx;
  119. display: flex;
  120. align-items: center;
  121. .left {
  122. display: flex;
  123. flex-direction: column;
  124. .top {
  125. display: flex;
  126. .name {
  127. font-size: 30rpx;
  128. font-family: PingFangSC;
  129. font-weight: 500;
  130. color: #3F454B;
  131. }
  132. .nameplate {}
  133. }
  134. .bottom {
  135. font-size: 22rpx;
  136. font-family: PingFang SC;
  137. font-weight: 400;
  138. color: #999999;
  139. }
  140. }
  141. .right {
  142. font-size: 30rpx;
  143. font-family: PingFang SC;
  144. font-weight: bold;
  145. color: #FF6F0F;
  146. }
  147. }
  148. }
  149. }
  150. </style>