components.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /******************** 这里存放通用组件样式 ********************/
  2. /********** uni-app基础组件 待删除**********/
  3. /*** lli-button--primary ***/
  4. // lli-primary
  5. .lli-btn {
  6. background-color: $uni-primary;
  7. color:#ffffff;
  8. }
  9. // lli-primary-hover
  10. .button-hover.lli-btn{
  11. background-color: $lli-btn-hover;
  12. color: hsla(0,0%,100%,.6);
  13. }
  14. // lli-primary-disabled
  15. .lli-btn[disabled]:not([type]){
  16. background-color: $lli-btn-disabled;
  17. color: hsla(0,0%,100%,.6);
  18. }
  19. // lli-primary-loading
  20. .lli-btn[loading]{
  21. background-color: $uni-primary;
  22. color: hsla(0,0%,100%,.6);
  23. }
  24. /*** lli-button--plain ***/
  25. //lli-primary-plain
  26. .lli-btn[plain]{
  27. border-color: $uni-primary;
  28. color: $uni-primary;
  29. }
  30. // lli-primary-plain
  31. .button-hover.lli-btn[plain]{
  32. border-color: $lli-btn-disabled;
  33. color: $lli-btn-disabled;
  34. }
  35. // lli-primary-disabled
  36. .lli-btn[plain][disabled]:not([type]){
  37. background-color: #f7f7f7;
  38. color: rgba(0, 0, 0, 0.3);
  39. }
  40. .lli-btn[plain][loading]{
  41. background-color: transparent;
  42. border-color: $lli-btn-disabled;
  43. color: $lli-btn-disabled;
  44. }
  45. /***** 项目中组件 *****/
  46. // view
  47. view{box-sizing: border-box;}
  48. // 对齐方式
  49. .lli-tl{text-align: left;}
  50. .lli-tc{text-align: center;}
  51. .lli-tr{text-align: right;}
  52. /***** view *****/
  53. view{box-sizing: border-box;}
  54. /***** 超出省略 *****/
  55. // 文本超出省略号显示 (一行)
  56. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  57. // 文本超出省略号显示 (多行)
  58. @mixin multi-line-ellipsis($rows: 3){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;}
  59. /***** 页面背景图 *****/
  60. // no-repeat cover
  61. @mixin ezy-no-repeat-cover($position: center) {
  62. background-position: $position;background-size: cover;background-repeat: no-repeat;
  63. }
  64. // no-repeat contain
  65. @mixin ezy-no-repeat-contain($position: center) {
  66. background-position: $position;background-size: contain;background-repeat: no-repeat;
  67. }
  68. /***** 富文本处理 *****/
  69. @mixin ezy-rich-text() {
  70. white-space: pre-wrap;text-align: justify;
  71. div,p,span{margin: 0;padding: 0;}
  72. img{max-width: 100%;}
  73. .ql-align-center{text-align: center}
  74. .ql-align-right{text-align: right}
  75. // 9号字
  76. .ql-size-9px{font-size: 18rpx;}
  77. // 12号字
  78. .ql-size-12px{font-size: 24rpx;}
  79. // 14号字
  80. .ql-size-14px{font-size: 28rpx;}
  81. // 16号字
  82. .ql-size-16px{font-size: 32rpx;}
  83. // 18号字
  84. .ql-size-18px{font-size: 36rpx;}
  85. // 24号字
  86. .ql-size-24px{font-size: 48rpx;}
  87. // 32号字
  88. .ql-size-32px{font-size: 64rpx;}
  89. // 单倍行距
  90. .line-height-lineHeight1{line-height: 1;}
  91. // 1.5倍行距
  92. .line-height-lineHeight1-5{line-height: 1.5;}
  93. // 2倍行距
  94. .line-height-lineHeight2{line-height: 2;}
  95. // 2.5倍行距
  96. .line-height-lineHeight2-5{line-height: 2.5;}
  97. // 3倍行距
  98. .line-height-lineHeight3{line-height: 3;}
  99. }
  100. /***** 按钮 *****/
  101. // 按钮
  102. .phone-blue-btn[type='default']{background-color: $uni-primary;color: #fff;}
  103. .phone-white-btn[type='default']{background-color: #fff;color: $uni-primary;border: 1rpx solid $uni-primary;}
  104. .phone-white-btn[type='default']:after{display: none;}
  105. .phone-blue-btn[type='default']:hover{background-color: $lli-btn-hover;color: #fff;}
  106. /*****音频播放器 author: TX date:2024-06-24*****/
  107. .MtaBusAudioPlayerBox{
  108. position: relative;
  109. .st-aplayer{
  110. //position: relative;
  111. }
  112. .audio-mask {
  113. width: 30px;
  114. height: 30px;
  115. background: transparent;
  116. z-index: 99;
  117. position: absolute;
  118. top: 10px;
  119. right: 20px;
  120. }
  121. }
  122. /***** 默认头像 *****/
  123. .phone-default-userImg{
  124. width: 120rpx;height: 120rpx;margin: 0 auto;
  125. background-image: url("@/static/images/my/user-default-img.png");@include ezy-no-repeat-cover();}
  126. /***** 通用弹窗 *****/
  127. .phone-common-dialog{
  128. width: 660rpx;border-radius: 12rpx;background-color: #fff;padding-top: 24rpx;box-sizing: border-box;position: relative;
  129. .common-title{padding-top: 24rpx;font-size: 34rpx;color: #333;text-align: center;}
  130. .common-content{font-size: 32rpx;color: #666;margin:32rpx 48rpx 48rpx;line-height: 1.6;}
  131. .common-input-box{
  132. padding: 32rpx 0 20rpx;
  133. .common-input-row{display: flex;align-items: center;margin-bottom: 24rpx;}
  134. .common-label-require{color: #ff0101;margin-right: 6rpx;width:16rpx;display: inline-block;flex-shrink: 0;}
  135. .common-input-label{width: 200rpx;line-height:70rpx;font-size: 28rpx;color: #333;text-align: right;}
  136. .common-input,.common-input-margin{
  137. height: 70rpx;min-height: 70rpx;padding: 20rpx;box-sizing: border-box;margin-right: 30rpx;
  138. border: 1rpx solid #f0f0f0;border-radius: 10rpx;display: block;flex: 1;font-size: 28rpx;}
  139. .common-input-margin{margin:0 46rpx 24rpx 46rpx;}
  140. .common-select{margin-right: 42rpx;}
  141. }
  142. .content-center-class{text-align: center;}
  143. .content-left-class{text-align: left;}
  144. .content-margin-bottom{margin-bottom: 20rpx;}
  145. .common-btn-box{display: flex;flex-direction: row;border-top-color: #f5f5f5;border-top-style: solid;border-top-width: 1px;}
  146. .not-confirm-btn,.confirm-btn{height: 90rpx;line-height: 90rpx;flex:1;text-align: center;font-size: 30rpx;}
  147. .not-confirm-btn{color: #666;}
  148. .confirm-btn{border-left-color: #f0f0f0;border-left-style: solid;border-left-width: 1px;color: $uni-primary;}
  149. .code-img{width: 500rpx;height: 500rpx;display: block;margin: 0 auto;}
  150. }
  151. /*****分类组件 author: TX date:2024-06-24*****/
  152. .lli-status-box{
  153. display: flex;justify-content: space-around;background: #fff;
  154. border-bottom:1px solid #f2f1f2;padding: 15px 10px;
  155. .status-item{text-align: center;color: #333333;position: relative;}
  156. .status-item.click:before{content: '';position: absolute;height: 2px;width: 80%;bottom: -15px;font-size: 14px;
  157. background-color: $uni-primary;
  158. left: 10%;border-radius: 2px;}
  159. }
  160. /*****开发中,敬请期待 author: TX date:2024-06-25*****/
  161. .lli-develop-expect-page{
  162. height: 100vh;display: flex;align-items: center;justify-content: center;font-size: 36rpx;color: #666;
  163. }