shopDetail.ttss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .shopDetail {
  28. position: relative;
  29. }
  30. .shopDetail .collet {
  31. position: absolute;
  32. top: 10rpx;
  33. right: 20rpx;
  34. z-index: 1;
  35. }
  36. .shopDetail .bg {
  37. width: 100%;
  38. height: 300rpx;
  39. -webkit-filter: blur(4px);
  40. filter: blur(4px);
  41. }
  42. .shopDetail .shop-box {
  43. width: 85%;
  44. padding: 25rpx;
  45. border-radius: 8px;
  46. background-color: #fff;
  47. position: relative;
  48. margin-top: -150rpx;
  49. left: 50%;
  50. -webkit-transform: translateX(-50%);
  51. transform: translateX(-50%);
  52. display: flex;
  53. }
  54. .shopDetail .shop-box .shop-icon {
  55. width: 120rpx;
  56. height: 120rpx;
  57. border-radius: 4px;
  58. }
  59. .shopDetail .shop-box .shop-info {
  60. margin-left: 25rpx;
  61. }
  62. .shopDetail .shop-box .shop-info .title {
  63. font-size: 40rpx;
  64. font-weight: bold;
  65. }
  66. .shopDetail .tab-group {
  67. display: flex;
  68. align-items: center;
  69. }
  70. .shopDetail .tab-group .tab {
  71. font-size: 34rpx;
  72. padding: 8rpx 20rpx;
  73. line-height: 70rpx;
  74. }
  75. .shopDetail .tab-group .tab.active {
  76. font-weight: bold;
  77. position: relative;
  78. }
  79. .shopDetail .tab-group .tab.active::before {
  80. content: '';
  81. width: 50%;
  82. height: 2px;
  83. background-color: #ff0000;
  84. position: absolute;
  85. top: 90%;
  86. left: 50%;
  87. -webkit-transform: translateX(-50%);
  88. transform: translateX(-50%);
  89. }
  90. .shopDetail .box {
  91. display: flex;
  92. height: calc(100vh - 375rpx);
  93. }
  94. .shopDetail .box .type-box {
  95. flex: 0 0 200rpx;
  96. padding-bottom: 50rpx;
  97. overflow: auto;
  98. background: #f1f1f1;
  99. }
  100. .shopDetail .box .type-box .type-item {
  101. text-align: center;
  102. line-height: 100rpx;
  103. }
  104. .shopDetail .box .type-box .type-item.active {
  105. background-color: #fff;
  106. }
  107. .shopDetail .box .content {
  108. flex: 1;
  109. overflow: auto;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. font-size: 95px;
  114. font-weight: bold;
  115. }