敢为人鲜小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
2.7 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <!-- 会员卡片页面
  2. <template>
  3. <view class="member-card">
  4. 导航栏
  5. <navbar title="会员" leftClick @leftClick="$utils.navigateBack" />
  6. 会员列表
  7. <view class="member-list">
  8. <view v-for="item in memberList" :key="item.id" class="member-item">
  9. <image :src="item.memberBg" mode="widthFix" class="member-image"></image>
  10. <view class="member-info">
  11. <view class="profile-photo">
  12. <image src="@/pages_order/static/card/profilePhoto.png" mode="widthFix" class="pro-img"></image>
  13. <view class="open-status">
  14. 暂未开通
  15. </view>
  16. </view>
  17. <view class="open">
  18. 立即开通
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. 小会员列表
  24. <view class="member-list-min">
  25. <image v-for="item in minMemberList" :key="item.id" :src="item.icon" mode="heightFix" class="member-icon"></image>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. name: 'MenberCard',
  32. data() {
  33. return {
  34. memberList: [{
  35. id: 1,
  36. memberBg: "/pages_order/static/card/diamond.png",
  37. },
  38. {
  39. id: 2,
  40. memberBg: "/pages_order/static/card/gold.png",
  41. },
  42. {
  43. id: 3,
  44. memberBg: "/pages_order/static/card/silver.png",
  45. }
  46. ],
  47. minMemberList: [{
  48. id: 1,
  49. icon: "/pages_order/static/card/diamond-min.png",
  50. },
  51. {
  52. id: 2,
  53. icon: "/pages_order/static/card/gold-min.png",
  54. },
  55. {
  56. id: 3,
  57. icon: "/pages_order/static/card/sliver-min.png",
  58. }
  59. ]
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .member-card {
  66. background: white;
  67. min-height: 100vh;
  68. // 会员列表
  69. .member-list {
  70. padding: 20rpx;
  71. box-sizing: border-box;
  72. .member-item {
  73. position: relative;
  74. .member-image {
  75. width: 100%;
  76. }
  77. .member-info {
  78. position: absolute;
  79. bottom: 30rpx;
  80. left: 0rpx;
  81. display: flex;
  82. justify-content: space-between;
  83. padding: 0rpx 40rpx;
  84. box-sizing: border-box;
  85. width: 100%;
  86. .profile-photo {
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. .pro-img {
  91. width: 60rpx;
  92. height: 60rpx;
  93. }
  94. .open-status {
  95. color: #F8A95F;
  96. border: 1px solid #F8A95F;
  97. border-radius: 30rpx;
  98. padding: 7rpx 20rpx;
  99. margin-left: 10rpx;
  100. }
  101. }
  102. .open {
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. background: #F8A95F;
  107. color: white;
  108. border-radius: 30rpx;
  109. padding: 7rpx 20rpx;
  110. }
  111. }
  112. }
  113. }
  114. // 小会员列表
  115. .member-list-min {
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. padding: 0rpx 20rpx;
  120. box-sizing: border-box;
  121. margin: 20rpx 0rpx 0rpx 0rpx;
  122. .member-icon {
  123. height: 80rpx;
  124. }
  125. }
  126. }
  127. </style> -->