category.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="page-wrap">
  3. <scroll-view scroll-y class="nav-panel">
  4. <view :class="{ item: true, active: navActive === item.value }" @click="navActive = item.value" v-for="(item, index) in navList" :key="index">
  5. {{ item.label }}
  6. </view>
  7. </scroll-view>
  8. <view class="product-panel">
  9. <view class="item">
  10. <view class="box">记账报税(年度)</view>
  11. <view class="name">记账报税(年度)</view>
  12. <view class="desc">记账+报税记账+报税记账+报税记账+报税记账+报税记账+报税记账+报税记账+报税记账+报税</view>
  13. <view class="tags">
  14. <view class="tag">下单送礼品</view>
  15. <view class="tag">返券</view>
  16. </view>
  17. <view class="price" data-text="年">3600</view>
  18. </view>
  19. <view class="item">
  20. <view class="box">记账报税(年度)</view>
  21. <view class="name">记账报税(年度)</view>
  22. <view class="desc">记账+报税</view>
  23. <view class="tags">
  24. <view class="tag">下单送礼品</view>
  25. <view class="tag">返券</view>
  26. </view>
  27. <view class="price" data-text="年">3600</view>
  28. </view>
  29. <view class="item">
  30. <view class="box">记账报税(年度)</view>
  31. <view class="name">记账报税(年度)</view>
  32. <view class="desc">记账+报税</view>
  33. <view class="tags">
  34. <view class="tag">下单送礼品</view>
  35. <view class="tag">返券</view>
  36. </view>
  37. <view class="price" data-text="年">3600</view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. navActive: 1,
  47. navList: [
  48. {
  49. label: '记账报税',
  50. value: 1
  51. },
  52. {
  53. label: '税控托管',
  54. value: 2
  55. },
  56. {
  57. label: '社保代缴',
  58. value: 3
  59. },
  60. {
  61. label: '出口退税',
  62. value: 4
  63. },
  64. {
  65. label: '财税代办',
  66. value: 5
  67. },
  68. {
  69. label: '工商代办',
  70. value: 6
  71. },
  72. {
  73. label: '银行代办',
  74. value: 7
  75. },
  76. {
  77. label: '资质·许可',
  78. value: 8
  79. },
  80. {
  81. label: '法律咨询',
  82. value: 9
  83. },
  84. {
  85. label: '超值套餐',
  86. value: 10
  87. }
  88. ]
  89. };
  90. },
  91. methods: {}
  92. };
  93. </script>
  94. <style lang="scss" scoped>
  95. .page-wrap {
  96. padding-left: 164.84rpx;
  97. }
  98. .nav-panel {
  99. position: fixed;
  100. left: 0;
  101. top: 0;
  102. bottom: 0;
  103. width: 164.84rpx;
  104. background: #f2f2f2;
  105. .item{
  106. white-space: nowrap;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. line-height: 89.29rpx;
  110. text-align: center;
  111. padding: 0 13.74rpx;
  112. font-size: 24.73rpx;
  113. color: #333;
  114. }
  115. .active{
  116. color: #00bcd2;
  117. background: #fff;
  118. }
  119. }
  120. .product-panel{
  121. .item{
  122. height: 192.31rpx;
  123. background: #fff;
  124. position: relative;
  125. padding: 13.74rpx 20.6rpx 0 199.18rpx;
  126. box-sizing: border-box;
  127. border-bottom: 1rpx solid #e0e0e0;
  128. &:last-child{
  129. border: none;
  130. }
  131. }
  132. .box{
  133. width: 157.97rpx;
  134. height: 157.97rpx;
  135. position: absolute;
  136. left: 20.6rpx;
  137. top: 13.74rpx;
  138. font-size: 27.47rpx;
  139. color: #fff;
  140. text-align: center;
  141. word-break: break-all;
  142. background: #0a9efe;
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. padding: 0 13.74rpx;
  147. box-sizing: border-box;
  148. }
  149. .name{
  150. font-size: 27.47rpx;
  151. white-space: nowrap;
  152. overflow: hidden;
  153. text-overflow: ellipsis;
  154. }
  155. .desc{
  156. font-size: 24.73rpx;
  157. color: #999;
  158. display: -webkit-box;
  159. overflow: hidden;
  160. text-overflow: ellipsis;
  161. -webkit-line-clamp: 2;
  162. -webkit-box-orient: vertical;
  163. max-height: 82.42rpx;
  164. word-break: break-all;
  165. }
  166. .tags{
  167. overflow: hidden;
  168. .tag{
  169. float: left;
  170. font-size: 21.98rpx;
  171. color: #F97631;
  172. padding: 2.75rpx 13.74rpx;
  173. border: 1rpx solid #F97631;
  174. margin: 13.74rpx 13.74rpx 0 0;
  175. }
  176. }
  177. .price{
  178. font-size: 41.21rpx;
  179. color: #F97631;
  180. position: absolute;
  181. right: 20.6rpx;
  182. bottom: 20.6rpx;
  183. line-height: 1;
  184. &:before{
  185. content: '¥';
  186. font-size: 24.73rpx;
  187. }
  188. &::after{
  189. content: attr(data-text);
  190. font-size: 21.98rpx;
  191. color: #999;
  192. margin-left: 4.12rpx;
  193. vertical-align: middle;
  194. }
  195. }
  196. }
  197. </style>