components.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. /******************** 这里放组件样式 ********************/
  2. /***** view *****/
  3. view{box-sizing: border-box;}
  4. /***** 对齐方式 *****/
  5. .ezy-tl{text-align: left;}
  6. .ezy-tc{text-align: center;}
  7. .ezy-tr{text-align: right;}
  8. /***** 状态栏 *****/
  9. .phone-status-bar{height: var(--status-bar-height);width: 100%;}
  10. /***** 超出省略 *****/
  11. // 文本超出省略号显示 (一行)
  12. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  13. // 文本超出省略号显示 (多行)
  14. @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;}
  15. /***** 页面背景图 *****/
  16. // no-repeat cover
  17. @mixin ezy-no-repeat-cover($position: center) {
  18. background-position: $position;background-size: cover;background-repeat: no-repeat;
  19. }
  20. // no-repeat contain
  21. @mixin ezy-no-repeat-contain($position: center) {
  22. background-position: $position;background-size: contain;background-repeat: no-repeat;
  23. }
  24. /***** tabbar *****/
  25. .phone-custom-tabbar,.phone-client-tabbar{
  26. width: 100%;height: 130rpx;background-color: #fff;border-top: 1rpx solid #e5e4e4;z-index: 9;
  27. position: fixed;left: var(-window-left);right: var(-window right);bottom: var(--window-bottom);
  28. box-sizing: border-box;padding-bottom: env(safe-area-inset-bottom);display: flex;justify-content: space-around;align-items: center;
  29. .tabbar-item{text-align: center;width: 160rpx;}
  30. .tabbar-item-icon{width: 50rpx;height: 50rpx;display: block;@include ezy-no-repeat-cover();margin: 0 auto 8rpx;}
  31. .tabbar-item-text{font-size: 28rpx;color: #333;}
  32. .active .tabbar-item-text{color: #3fd2a1;}
  33. }
  34. .phone-client-tabbar{
  35. background-color: #0abf8a;border: 0;
  36. .tabbar-item-text{color: #fff;}
  37. }
  38. /***** list列表滚动 *****/
  39. .phone-scroll-view{
  40. .uni-load-more{margin-bottom:var(--status-bar-height);}
  41. .uni-list--border-bottom{display: none;}
  42. }
  43. /***** 富文本处理 *****/
  44. @mixin ezy-rich-text() {
  45. div,p,span{margin: 0;padding: 0;}
  46. img{max-width: 100%;}
  47. }
  48. /***** 按钮 *****/
  49. // 按钮
  50. .phone-green-btn[type='default']{background-color: #3fd2a1;color: #fff;}
  51. .phone-white-btn[type='default']{background-color: #fff;color: #3fd2a1;border: 1rpx solid #3fd2a1;}
  52. .phone-white-btn[type='default']:after{display: none;}
  53. .phone-green-btn[type='default']:hover{background-color: #34c595;color: #fff;}
  54. /***** 标题栏 *****/
  55. // 三个元素
  56. .phone-navBar-box{
  57. display: flex;align-items: center;justify-content: space-between;background-color: #fff;
  58. padding: var(--status-bar-height) 20rpx 20rpx;box-sizing: border-box;position: relative;
  59. .nav-bar-icon{
  60. width: 24rpx;height: 38rpx;
  61. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  62. }
  63. .nav-bar-title{font-size: 36rpx;color: #333;}
  64. // 考试数字
  65. .nav-bar-other{
  66. font-size: 30rpx;color: #fff;margin-right: 2%;
  67. .key-note{color: #ffff01;}
  68. }
  69. // 文字按钮
  70. .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;}
  71. }
  72. // 两个元素
  73. .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
  74. display: flex;align-items: center;justify-content: center;background-color: #fff;
  75. padding: var(--status-bar-height) 20rpx 20rpx;box-sizing: border-box;position: relative;
  76. .nav-bar-title{
  77. font-size: 36rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
  78. }
  79. .nav-bar-icon{
  80. width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(12rpx + var(--status-bar-height));;
  81. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  82. }
  83. }
  84. // 带背景色client使用
  85. .icon-title-bjcolor-navBar-box{
  86. background-color: #3fd2a1;padding: 20rpx;
  87. .nav-bar-title{color: #fff;}
  88. .nav-bar-icon{background-image: url("@/static/images/common/nav-white-bar-jt.svg");top:32rpx;}
  89. }
  90. // 仅一个返回按钮
  91. .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
  92. background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
  93. }
  94. /***** tab *****/
  95. // client
  96. .phone-tab-box{
  97. .segmented-control--text{height: 80rpx!important;}
  98. .segmented-control__text{font-size: 32rpx!important;}
  99. }
  100. // admin
  101. .admin-tab-box{
  102. uni-scroll-view{z-index: 99!important;}
  103. .v-tabs__container-item.active{color: #3fd2a1!important;}
  104. .v-tabs__container-line.animation{height:4rpx!important;background-color: #3fd2a1!important;}
  105. }
  106. /***** 通用弹窗 *****/
  107. .phone-common-dialog{
  108. width: 660rpx;border-radius: 12rpx;background-color: #fff;padding-top: 24rpx;
  109. .common-title{padding-top: 24rpx;font-size: 34rpx;color: #333;text-align: center;}
  110. .common-content{font-size: 32rpx;color: #666;margin:32rpx 48rpx 48rpx;line-height: 1.6;}
  111. .content-center-class{text-align: center;}
  112. .content-left-class{text-align: left;}
  113. .common-btn-box{display: flex;flex-direction: row;border-top-color: #f5f5f5;border-top-style: solid;border-top-width: 1px;}
  114. .not-confirm-btn,.confirm-btn{height: 90rpx;line-height: 90rpx;flex:1;text-align: center;font-size: 30rpx;}
  115. .not-confirm-btn{color: #666;}
  116. .confirm-btn{border-left-color: #f0f0f0;border-left-style: solid;border-left-width: 1px;color: #3fd2a1;}
  117. }
  118. /***** 查询框 *****/
  119. .phone-search-box{
  120. width: 100%;height: 110rpx;background-color:#f4f6fa;
  121. padding: 20rpx 42rpx;box-sizing: border-box;
  122. position: relative;
  123. .search-input {
  124. height: 70rpx;line-height: 70rpx;font-size: 28rpx;background-color:#fff;
  125. border-radius: 35rpx;padding: 0 70rpx 0 20rpx;
  126. }
  127. .uni-input-placeholder{color:#a4a4a4;}
  128. .search-icon {
  129. width: 100rpx;height: 60rpx;line-height: 60rpx;text-align: center;
  130. position: absolute;right: 52rpx;top: 25rpx;
  131. background-color: #3fd2a1;
  132. border-radius: 40rpx;
  133. }
  134. }
  135. // 前面带线的标题
  136. .phone-line-title {display: block;color: #333;font-size: 36rpx;line-height: 1;}
  137. .phone-line-title:before{content: ' ';width: 4rpx;height: 36rpx;background-color:#3fd2a1;
  138. margin-right: 18rpx;display: inline-block;vertical-align: middle;}
  139. /***** 试题---题干 *****/
  140. .phone-shiti-question{
  141. font-size: 32rpx;color: #333;line-height: 1.6;margin-bottom: 24rpx;
  142. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;@include ezy-rich-text;
  143. display: flex;flex-direction: row;justify-content: flex-start;
  144. }
  145. /***** 单选题 *****/
  146. .phone-danxuan-box{
  147. margin: 0 10rpx;overflow: auto;height: calc(100vh - 440rpx - var(--status-bar-height));
  148. .danxuan-option-box{
  149. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  150. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  151. display: flex;
  152. .option-change{
  153. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  154. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  155. display: flex;align-items: center;justify-content: center;
  156. }
  157. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  158. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  159. }
  160. .danxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
  161. .danxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  162. .danxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  163. }
  164. /***** 判断题 *****/
  165. .phone-duoxuan-box{
  166. margin: 0 10rpx;overflow: auto;height: calc(100vh - 440rpx - var(--status-bar-height));
  167. .duoxuan-option-box{
  168. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  169. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  170. display: flex;
  171. .option-change{
  172. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  173. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  174. display: flex;align-items: center;justify-content: center;
  175. }
  176. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  177. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  178. }
  179. // active background-color:#0589e9;
  180. .duoxuan-option-box.active .option-change{color: #FFF;background-color:#cbcbcb;border-color:#cbcbcb;}
  181. .duoxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  182. .duoxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  183. }
  184. /***** 判断题 *****/
  185. .phone-panduan-box{
  186. margin: 0 10rpx;overflow: auto;height: calc(100vh - 440rpx - var(--status-bar-height));
  187. .panduan-option-box{
  188. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  189. font-size: 32rpx;color: #666;box-sizing: border-box;padding: 10rpx 24rpx;
  190. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 16rpx;margin-bottom: 24rpx;
  191. text-align: justify;word-wrap: break-word;word-break: break-all;display: flex;
  192. .uni-radio-input{margin-right: 20rpx;}
  193. }
  194. }
  195. // active background-color:#0589e9;
  196. .option-question.active .uni-radio-input{color: #FFF;background-color:#cbcbcb!important;border-color:#cbcbcb!important;}
  197. .option-question.showError .uni-radio-input{color: #FFF;background-color:#ff5757!important;border-color:#ff5757!important;}
  198. .option-question.active_right .uni-radio-input{color: #FFF;background-color:#1ac136!important;border-color:#1ac136!important;}
  199. }
  200. /***** 填空题 *****/
  201. .phone-tiankong-box{
  202. overflow: auto;height: calc(100vh - 440rpx - var(--status-bar-height));
  203. .tiankong-option-box{
  204. padding:0 40rpx;box-sizing: border-box;margin-bottom: 36rpx;
  205. .option-question{font-size: 30rpx;color: #333;}
  206. .option-question-text{font-size: 30rpx;color: #333;margin-top: 16rpx;background: #f0f0f0;padding: 10px;border-radius: 4px;}
  207. }
  208. }
  209. /***** 考试须知 *****/
  210. .phone-ksxz-dialog{
  211. .uni-dialog-title{
  212. padding: 24rpx 0!important;font-size: 30rpx;border-bottom: 1px solid #f5f5f5;
  213. .uni-popup__info{color: #333!important;}
  214. }
  215. .uni-dialog-content{
  216. justify-content: flex-start!important;
  217. }
  218. .uni-dialog-button-text{color: #999!important;}
  219. .uni-dialog-button-text.uni-button-color{color: #3fd2a1!important;}
  220. .ksxz-content-box{
  221. font-size: 28rpx;color: #333;
  222. >view{margin-bottom: 12rpx;line-height: 1.6;}
  223. .ksms-row{margin-bottom: 12rpx;}
  224. .ksms-intro{color: #666;}
  225. }
  226. }
  227. /***** 上传头像 *****/
  228. .phone-user-file-picker{
  229. }
  230. /***** form *****/
  231. // label-input
  232. .form-label-input{
  233. width: 100%;display: flex;justify-content: space-between;align-items: center;
  234. background-color: #fff;font-size: 30rpx;color: #333;
  235. padding: 20rpx;box-sizing: border-box;margin-bottom: 2rpx;
  236. .form-label-require{color: #ff0101;margin-right: 6rpx;display: inline-block;}
  237. .phone-form-label{min-width: 180rpx;}
  238. input{text-align: right;flex: 1;}
  239. .is-input-border{border:0!important;}
  240. .uni-input-placeholder{overflow: unset;}
  241. .uni-easyinput__placeholder-class{font-size: 30rpx!important;}
  242. .content-clear-icon{color: rgb(192, 196, 204)!important;}
  243. }
  244. // label-radio
  245. .form-label-radio{
  246. width: 100%;display: flex;justify-content: space-between;
  247. background-color: #fff;font-size: 30rpx;color: #333;
  248. padding: 6rpx 20rpx;box-sizing: border-box;margin-bottom: 2rpx;
  249. .form-label-require{color: #ff0101;margin-right: 6rpx;width:16rpx;display: inline-block;}
  250. .phone-form-label{min-width: 180rpx;line-height:52rpx;}
  251. .form-radio-group{display: flex;flex-wrap: wrap;flex: 1;}
  252. .form-radio-double-group{justify-content: space-between;}
  253. .form-radio-item{
  254. width: 28%;height:60rpx;line-height:52rpx;border-radius: 6rpx;box-sizing: border-box;
  255. background-color:#f5f5f5;text-align: center;margin:10rpx 2%;border:1rpx solid #f5f5f5;
  256. }
  257. .genderActive{
  258. background-color:#e5f8f4;border:1rpx solid #6bccb0;
  259. }
  260. }
  261. // label-select
  262. .form-label-select{
  263. width: 100%;display: flex;justify-content: space-between;
  264. background-color: #fff;font-size: 30rpx;color: #333;
  265. padding: 20rpx;box-sizing: border-box;margin-bottom: 2rpx;
  266. .form-label-require{color: #ff0101;margin-right: 6rpx;width:16rpx;display: inline-block;}
  267. .phone-form-label{min-width: 180rpx;line-height:52rpx;}
  268. .form-radio-select{
  269. display: flex;align-items: center;
  270. icon{width: 30rpx;height: 30rpx;@include ezy-no-repeat-cover;
  271. background-image: url("@/static/images/common/nav-bar-jt-bottom.svg");
  272. transform: rotate(270deg);margin-left: 4rpx;}
  273. }
  274. }
  275. // label-switch
  276. .form-label-switch{
  277. width: 100%;display: flex;justify-content: space-between;
  278. background-color: #fff;font-size: 30rpx;color: #333;
  279. padding: 20rpx;box-sizing: border-box;margin-bottom: 2rpx;
  280. .form-label-require{color: #ff0101;margin-right: 6rpx;width:16rpx;display: inline-block;}
  281. .phone-form-label{min-width: 180rpx;line-height:52rpx;}
  282. }
  283. /***** admin上传 *****/
  284. .admin-upload-btn-box{
  285. width: 100px;height: 100px;border: 1rpx dashed #ccc;margin: 0 auto;
  286. display: flex;align-items: center;justify-content: center;border-radius: 8rpx;
  287. text{font-size: 42rpx;color:#d7d7d7;}
  288. .bottom-text {font-size: 12px;color: #bdbdbd;}
  289. }