金诚优选前端代码
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.

123 lines
2.3 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="会员服务" :showIcon="true"></lf-nav>
  4. <view class="content">
  5. <view class="head">
  6. <image mode="aspectFill" src="https://picsum.photos/seed/picsum/200/300"></image>
  7. </view>
  8. <view class="main">
  9. <view class="item" v-for="(item, index) in 9" :key="index">
  10. <image class="img"></image>
  11. <view class="title">会员饮品</view>
  12. <view class="desc">每月免费赠饮</view>
  13. </view>
  14. </view>
  15. <view style="height: 120rpx;"></view>
  16. <view class="fixed">
  17. <view class="btn1" hover-class="lf-opacity">在线客服</view>
  18. <view class="btn2" hover-class="lf-opacity">拨打客服电话</view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data(){
  26. return {
  27. }
  28. },
  29. onLoad(){
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped="scoped">
  36. .content{
  37. padding: 30rpx 32rpx;
  38. .head{
  39. width: 686rpx;
  40. height: 300rpx;
  41. border-radius: 20rpx;
  42. overflow: hidden;
  43. &>image{
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }
  48. .main{
  49. width: 100%;
  50. display: flex;
  51. flex-wrap: wrap;
  52. .item{
  53. width: 200rpx;
  54. height: max-content;
  55. display: flex;
  56. flex-direction: column;
  57. justify-content: center;
  58. align-items: center;
  59. margin-top: 40rpx;
  60. margin-right: 43rpx;
  61. &:nth-child(3n){
  62. margin-right: 0rpx;
  63. }
  64. .img{
  65. width: 200rpx;
  66. height: 200rpx;
  67. background-color: #D8D8D8;
  68. }
  69. .title{
  70. font-size: 28rpx;
  71. color: #222222;
  72. margin-top: 20rpx;
  73. }
  74. .desc{
  75. font-size: 24rpx;
  76. color: #777777;
  77. margin-top: 10rpx;
  78. }
  79. }
  80. }
  81. .fixed{
  82. height: 120rpx;
  83. width: 750rpx;
  84. position: fixed;
  85. bottom: 0;
  86. left: 0;
  87. z-index: 2;
  88. background-color: #FFFFFF;
  89. border-top: 1rpx solid #e5e5e5;
  90. box-sizing: border-box;
  91. padding: 0 32rpx;
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. .btn1{
  96. width: 243rpx;
  97. height: 100rpx;
  98. border-radius: 50rpx;
  99. border: 2rpx solid #15716E;
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. color: #15716E;
  104. font-size: 32rpx;
  105. }
  106. .btn2{
  107. width: 423rpx;
  108. height: 100rpx;
  109. background: #15716E;
  110. border-radius: 50rpx;
  111. color: #FFFFFF;
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. }
  116. }
  117. }
  118. </style>