mine_interest.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="dt-page">
  3. <image class="hd-bg" src="http://139.9.103.171:1888/img/image/interest_hd.png" mode="widthFix"></image>
  4. <view class="mn-wrap">
  5. <view class="level">钻石卡会员</view>
  6. <view class="progress-wrap">
  7. <view class="progress-value" :style="'width:'+growingValue+'%'"></view>
  8. </view>
  9. <view class="level-info">
  10. <view class="next-level">下一个等级:铂金卡</view>
  11. <view class="growing">成长值:{{current}}/{{total}}</view>
  12. </view>
  13. <view class="explain-wrap">
  14. 1. 会员可按会员卡等级,享对应等级折扣(钻石卡享9折、铂金卡享9.4折、金卡享9.6折、银卡享9.8折)。\n\n2. 线上线下促销活动。\n\n3. 会员消费享积分(10元积1分)。\n\n1. 会员可按会员卡等级,享对应等级折扣(钻石卡享9折、铂金卡享9.4折、金卡享9.6折、银卡享9.8折)。\n\n2. 线上线下促销活动。\n\n3. 会员消费享积分(10元积1分)。\n\n1. 会员可按会员卡等级,享对应等级折扣(钻石卡享9折、铂金卡享9.4折、金卡享9.6折、银卡享9.8折)。\n\n2. 线上线下促销活动。\n\n3. 会员消费享积分(10元积1分)。\n\n1. 会员可按会员卡等级,享对应等级折扣(钻石卡享9折、铂金卡享9.4折、金卡享9.6折、银卡享9.8折)。\n\n2. 线上线下促销活动。\n\n3. 会员消费享积分(10元积1分)。\n\n1. 会员可按会员卡等级,享对应等级折扣(钻石卡享9折、铂金卡享9.4折、金卡享9.6折、银卡享9.8折)。\n\n2. 线上线下促销活动。\n\n3. 会员消费享积分(10元积1分)。
  15. </view>
  16. <view class="explain-fix"></view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data(){
  23. return {
  24. current:0,
  25. total:2000
  26. }
  27. },
  28. computed:{
  29. growingValue(){
  30. if(this.total>0){
  31. return (this.current/this.total).toFixed(2) * 100
  32. }
  33. return 0
  34. },
  35. },
  36. methods:{
  37. onLoadPage(){
  38. wx.hideShareMenu();
  39. this.current = 1000
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .dt-page{
  46. position: relative;
  47. min-height:100vh;
  48. background-color: #f2f2f2;
  49. .hd-bg{
  50. position:absolute;
  51. top:0;
  52. left:0;
  53. width:100vw;
  54. height:450upx;
  55. }
  56. .mn-wrap{
  57. position:relative;
  58. margin:0 auto;
  59. width:690upx;
  60. color:#fff;
  61. z-index:2;
  62. .level{
  63. padding:47upx 0 37upx;
  64. font-size:48upx;
  65. font-weight:500;
  66. line-height:1;
  67. }
  68. .progress-wrap{
  69. position: relative;
  70. width:100%;
  71. height:10upx;
  72. border-radius:6upx;
  73. z-index:6;
  74. .progress-value{
  75. width:0%;
  76. height:100%;
  77. background-color: #fff;
  78. border-radius:6upx;
  79. transition:all 1s ease;
  80. }
  81. }
  82. .progress-wrap:before{
  83. position:absolute;
  84. top:0;
  85. left:0;
  86. width:100%;
  87. height:10upx;
  88. box-sizing: border-box;
  89. border:1upx solid #fff;
  90. border-radius:6upx;
  91. content:'';
  92. }
  93. .level-info{
  94. margin-top:20upx;
  95. display:flex;
  96. justify-content: space-between;
  97. font-size:24upx;
  98. font-weight:500;
  99. }
  100. .explain-wrap{
  101. margin:40upx 0;
  102. padding:30upx;
  103. background-color:#fff;
  104. color:$dt-text-color;
  105. border-radius:10upx;
  106. white-space: pre-wrap;
  107. line-height:1.5;
  108. }
  109. .explain-fix{
  110. width:100%;
  111. height: 2rpx;
  112. }
  113. }
  114. }
  115. </style>