components.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. /******************** 这里放组件样式 ********************/
  2. /**************** 系统响应式 ****************/
  3. @mixin mediaSmall() {
  4. @media screen and (min-width: 650px) {
  5. @content;
  6. }
  7. }
  8. @mixin mediaMiddle() {
  9. @media screen and (min-width: 820px) {
  10. @content;
  11. }
  12. }
  13. @mixin mediaBig() {
  14. @media screen and (min-width: 1024px) {
  15. @content;
  16. }
  17. }
  18. // pad上隐藏 (大于650的) vue中使用
  19. @media screen and (min-width: 650px) {
  20. .ezy-hidden-pad{display: none!important;}
  21. }
  22. // 手机上隐藏 (小于650的) vue中使用
  23. @media screen and (max-width: 649px) {
  24. .ezy-hidden-phone{display: none!important;}
  25. }
  26. // 对于Pad上隐藏的元素 ---scss中使用
  27. @mixin hideOnPad() {
  28. @media screen and (min-width: 650px) {
  29. display: none !important;
  30. }
  31. }
  32. // 对于手机上隐藏的元素 ---scss media中使用
  33. @mixin hideOnPhone() {
  34. @media screen and (max-width: 649px) {
  35. display: none !important;
  36. }
  37. }
  38. /***** view *****/
  39. view{box-sizing: border-box;}
  40. /***** 对齐方式 *****/
  41. .ezy-tl{text-align: left;}
  42. .ezy-tc{text-align: center;}
  43. .ezy-tr{text-align: right;}
  44. /***** 状态栏 *****/
  45. .ezy-status-bar{height: var(--status-bar-height);width: 100%;background-color: red;}
  46. /***** 超出省略 *****/
  47. // 文本超出省略号显示 (一行)
  48. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  49. // 文本超出省略号显示 (多行)
  50. @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;}
  51. /***** 页面高度 *****/
  52. /* #ifdef H5 */
  53. //标题栏
  54. $titleBar-page: calc(100vh - var(--status-bar-height));
  55. //tabBar
  56. $titleBar-page: calc(100vh - var(--window-bottom));
  57. //标题栏 + tabBar
  58. $titleBar-tabBar-page: calc(100vh - var(--status-bar-height) - var(--window-bottom));
  59. /* #endif */
  60. /* #ifdef APP-PLUS */
  61. //标题栏
  62. $titleBar-page: calc(100vh - var(--status-bar-height));
  63. //tabBar
  64. $titleBar-page: 100vh;
  65. //标题栏 + tabBar
  66. $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
  67. /* #endif */
  68. /***** 页面背景图 *****/
  69. // no-repeat cover
  70. @mixin ezy-no-repeat-cover($position: center) {
  71. background-position: $position;background-size: cover;background-repeat: no-repeat;
  72. }
  73. // no-repeat contain
  74. @mixin ezy-no-repeat-contain($position: center) {
  75. background-position: $position;background-size: contain;background-repeat: no-repeat;
  76. }
  77. // active
  78. // 按钮缩小动画
  79. // .ezy-btn-active{transition: 0.3s;}
  80. .ezy-btn-active:active{transform:scale(0.92);}
  81. // 列表item 元素向下
  82. // .ezy-list-item-active{transition: 0.3s;}
  83. .ezy-list-item-active:active {transform: translateY(6rpx);opacity: 0.8;}
  84. // tab页 点击放大
  85. // .ezy-tab-item-active{transition: 0.3s;}
  86. .ezy-tab-item-active:active {transform: scale(1.05);}
  87. /***** 富文本处理 *****/
  88. @mixin ezy-rich-text() {
  89. div,p,span{margin: 0;padding: 0;}
  90. img{max-width: 100%;}
  91. }
  92. // 全屏的popup弹窗
  93. .ezy-popup-width-all{
  94. width: 100%;
  95. .uni-popup__wrapper{width: 100%;}
  96. }
  97. /***** tabbar *****/
  98. .ezy-custom-tabbar{
  99. width: 100%;height: 120rpx;position: fixed;left: 0;right: 0;bottom: 0;
  100. background-color: #f9f9f9;box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.4);
  101. padding: 10rpx 24rpx;box-sizing: border-box;z-index: 9;
  102. display: flex;flex-direction: row;align-items: center;
  103. .tabbar-item-box{
  104. width: 25%;display: flex;flex-wrap: nowrap;justify-content: space-evenly;
  105. }
  106. .tabbar-item{width: 60rpx;height: 80rpx;@include ezy-no-repeat-contain;z-index: 2;}
  107. /*** pad ***/
  108. @include mediaSmall() {
  109. height: 80rpx;
  110. .tabbar-item{width: 37rpx;height: 59rpx;}
  111. }
  112. @include mediaBig() {
  113. height: 180rpx;
  114. .tabbar-item{width: 82rpx;height: 130rpx;}
  115. }
  116. }
  117. /***** 标题栏 *****/
  118. // 三个元素
  119. .ezy-navBar-box{
  120. display: flex;align-items: center;justify-content: space-between;
  121. padding: 0 20rpx 20rpx;box-sizing: border-box;position: relative;
  122. .nav-bar-icon{
  123. width: 24rpx;height: 38rpx;
  124. background-image: url("@/static/images/common/navBar-return-btn.png");@include ezy-no-repeat-cover();
  125. }
  126. .nav-bar-title{font-size: 36rpx;color: #fff;}
  127. // 考试数字
  128. .nav-bar-other{
  129. font-size: 30rpx;color: #fff;margin-right: 2%;
  130. .key-note{color: #ffff01;}
  131. }
  132. // 文字按钮
  133. .text-btn{font-size: 26rpx;color: #fff;padding-top: 4rpx;box-sizing: border-box;}
  134. }
  135. // 两个元素
  136. .icon-title-navBar-box{
  137. display: flex;align-items: center;justify-content: center;
  138. padding: calc(6rpx + var(--status-bar-height)) 20rpx 16rpx;box-sizing: border-box;position: relative;
  139. .nav-bar-title{
  140. font-size: 34rpx;height: 63rpx;line-height: 63rpx;color: #fff;
  141. max-width: 70%;position: relative;z-index: 1;
  142. }
  143. .nav-bar-icon{
  144. width: 100rpx;height: 100rpx;display: flex;align-items: center;
  145. position: absolute;left: 0;top: calc( var(--status-bar-height) - 12rpx);z-index: 1;
  146. }
  147. .nav-bar-icon::before{
  148. width: 24rpx;height: 38rpx;content: '';display: block;margin-left: 24rpx;
  149. background-image: url("@/static/images/common/navBar-return-btn.png");@include ezy-no-repeat-cover();
  150. }
  151. &::before{
  152. width: 100%;height: 356rpx;content: '';display: block;position: absolute;z-index: 0;top: 0;left: 0;
  153. background-image: url("@/static/images/phone/common/page-header-bj.png");@include ezy-no-repeat-cover(top);
  154. }
  155. /*** pad ***/
  156. @include mediaSmall() {
  157. padding: calc(6rpx + var(--status-bar-height)) 20rpx 10rpx;
  158. .nav-bar-title{font-size: 28rpx;height: 46rpx;line-height: 46rpx;}
  159. .nav-bar-icon{width: 46rpx;height: 46rpx;top: calc(6rpx + var(--status-bar-height));}
  160. .nav-bar-icon::before{width: 16rpx;height: 25rpx;margin-left: 20rpx;}
  161. &::before{height: 160rpx;background-image: url("@/static/images/pad/common/page-header-bj.png");}
  162. }
  163. @include mediaBig(){
  164. .nav-bar-title{font-size: 66rpx;height: 180rpx;line-height: 180rpx;}
  165. .nav-bar-icon{width: 180rpx;height: 180rpx;}
  166. .nav-bar-icon::before{width: 38rpx;height: 61rpx;margin-left: 42rpx;}
  167. &::before{height: 420rpx;}
  168. }
  169. }
  170. // 仅一个返回按钮
  171. .ezy-nav-bar-icon{
  172. width: 100rpx;height: 100rpx;position: absolute;left: 0;top: var(--status-bar-height);
  173. &::after {
  174. width: 24rpx;height: 38rpx;content: '';display: block;margin: 12rpx 32rpx 12rpx;transform: rotate(180deg);
  175. background-image: url("@/static/images/common/h-jt-icon.png");@include ezy-no-repeat-cover();
  176. }
  177. @include mediaSmall() {
  178. width: 65rpx;height: 65rpx;
  179. &::after {width: 16rpx;height: 25rpx;margin: 8rpx 21rpx 8rpx;}
  180. }
  181. @include mediaBig() {
  182. width: 160rpx;height: 160rpx;
  183. &::after {width: 38rpx;height: 61rpx;margin: 19rpx 51rpx 19rpx;}
  184. }
  185. }
  186. /***** 登录按钮 *****/
  187. .login-btn{
  188. width: 655rpx;height: 92rpx;line-height: 92rpx;text-align: center;font-size:32rpx;
  189. margin-top: 84rpx;@include ezy-no-repeat-cover;font-weight: bold;
  190. @include mediaSmall() {
  191. width: 426rpx;height: 60rpx;line-height: 60rpx;font-size: 21rpx;margin-top: 55rpx;
  192. }
  193. @include mediaBig() {
  194. width: 1048rpx;height: 147rpx;line-height: 147rpx;font-size: 51rpx;margin-top: 134rpx;
  195. }
  196. }
  197. .login-btn-disabled{background-image: url("@/static/images/common/login/login-btn-bj-disabled.png");color:#999b9a;}
  198. .login-btn-normal{background-image: url("@/static/images/common/login/login-btn-bj.png");color:#fff;}
  199. /***** 试题 *****/
  200. // 标题
  201. .ezy-shiti-title{
  202. width: 208rpx;height: 91rpx;line-height: 91rpx;text-align: center;color: #fff;font-size: 32rpx;
  203. background-image: url("@/static/images/exam/shiti-title.png");@include ezy-no-repeat-cover();
  204. @include mediaSmall() {width: 135rpx;height: 59rpx;line-height: 59rpx;font-size: 22rpx;}
  205. @include mediaBig() {width: 333rpx;height: 146rpx;line-height: 146rpx;font-size: 54rpx;}
  206. }
  207. // 题干
  208. .ezy-shiti-question{
  209. margin: 24rpx 0 42rpx;font-size: 32rpx;color: #333;line-height: 1.6;padding: 0 10rpx;box-sizing: border-box;
  210. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;@include ezy-rich-text;
  211. @include mediaSmall() {margin: 16rpx 0 27rpx;font-size: 20rpx;padding: 0 6rpx;}
  212. @include mediaBig() {margin: 38rpx 0 67rpx;font-size: 46rpx;padding: 0 16rpx;}
  213. }
  214. /***** 单选题 *****/
  215. .ezy-danxuan-box{
  216. margin: 0 10rpx;
  217. .danxuan-option-box{
  218. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  219. font-size: 32rpx;color: #333;box-sizing: border-box;padding: 10rpx 24rpx;
  220. display: flex;
  221. .option-change{
  222. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  223. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  224. display: flex;align-items: center;justify-content: center;
  225. }
  226. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  227. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  228. }
  229. .danxuan-option-box.active .option-change{color: #FFF;background-color:#0589e9;border-color:#0589e9;}
  230. .danxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  231. .danxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  232. @include mediaSmall() {
  233. margin: 0 6rpx;
  234. .danxuan-option-box{
  235. line-height: 62rpx;margin-bottom: 13rpx;font-size: 20rpx;padding: 6rpx 16rpx;
  236. .option-change{width: 31rpx;height: 31rpx;line-height: 31rpx;margin-right: 10rpx;}
  237. .option-question{font-size: 20rpx;margin-left: 4rpx;}
  238. }
  239. }
  240. @include mediaBig() {
  241. margin: 0 16rpx;
  242. .danxuan-option-box{
  243. line-height: 154rpx;margin-bottom: 32rpx;font-size: 46rpx;padding: 16rpx 38rpx;
  244. .option-change{width: 77rpx;height: 77rpx;line-height: 77rpx;margin-right: 26rpx;}
  245. .option-question{font-size: 46rpx;margin-left: 10rpx;}
  246. }
  247. }
  248. }
  249. /***** 判断题 *****/
  250. .ezy-panduan-box{
  251. margin: 0 10rpx;
  252. .danxuan-option-box{
  253. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  254. font-size: 32rpx;color: #333;box-sizing: border-box;padding: 10rpx 24rpx;
  255. }
  256. .uni-radio-input{
  257. width: 56rpx;height: 56rpx;border: 0;@include ezy-no-repeat-cover();
  258. background-image: url("@/static/images/exam/option-bj.png");}
  259. .option-question{display: flex;}
  260. .option-question.active .uni-radio-input{
  261. background-image: url("@/static/images/exam/option-active-img.png");
  262. background-color: transparent!important;
  263. svg{display: none;}
  264. }
  265. .option-question.showError .uni-radio-input{
  266. background-image: url("@/static/images/exam/option-error-img.png");
  267. background-color: transparent!important;
  268. svg{display: none;}
  269. }
  270. .option-question.active_right .uni-radio-input{
  271. background-image: url("@/static/images/exam/option-right-img.png");
  272. background-color: transparent!important;
  273. svg{display: none;}
  274. }
  275. @include mediaSmall() {
  276. margin: 0 6rpx;
  277. .danxuan-option-box{line-height: 62rpx;margin-bottom: 13rpx;font-size: 20rpx;padding: 6rpx 16rpx;}
  278. .uni-radio-input{width: 36rpx;height: 36rpx;}
  279. }
  280. @include mediaBig() {
  281. margin: 0 16rpx;
  282. .danxuan-option-box{line-height: 154rpx;margin-bottom: 32rpx;font-size: 46rpx;padding: 16rpx 38rpx;}
  283. .uni-radio-input{width: 90rpx;height: 90rpx;}
  284. }
  285. }
  286. /***** 填空题 *****/
  287. .ezy-tiankong-box{
  288. margin: 0 10rpx;
  289. .tiankong-input {width: 116rpx!important;height: 52rpx;border: 1px solid #999;border-radius: 8rpx;}
  290. .tk-input-box{display: inline-block;position: relative;font-size: 0;margin: 0 4rpx;}
  291. .tiankong-input{text-align: center;}
  292. .tiankong-input.showError{color: #ff5757;}
  293. .tiankong-input.active_right{color: green;}
  294. .tk-input-box.showError::after{
  295. content: '';width: 30rpx;height: 30rpx;display: block;position: absolute;top: -12rpx;right: -6rpx;
  296. background-image: url("@/static/images/exam/option-error-img.png");@include ezy-no-repeat-cover;
  297. }
  298. .tk-input-box.active_right::after{
  299. content: '';width: 30rpx;height: 30rpx;display: block;position: absolute;top: -12rpx;right: -6rpx;
  300. background-image: url("@/static/images/exam/option-right-img.png");@include ezy-no-repeat-cover;
  301. }
  302. .ezy-shiti-question li{margin: 20rpx 0;}
  303. @include mediaSmall() {
  304. margin: 0 6rpx;
  305. .tiankong-input {width: 75rpx!important;height: 34rpx;border-radius: 5rpx;}
  306. .tk-input-box{margin: 0 3rpx;}
  307. .tk-input-box.showError::after,
  308. .tk-input-box.active_right::after{width: 20rpx;height: 20rpx;top: -8rpx;right: -4rpx;}
  309. .ezy-shiti-question li{margin: 13rpx 0;}
  310. }
  311. @include mediaBig() {
  312. margin: 0 16rpx;
  313. .tiankong-input {width: 186rpx!important;height: 83rpx;border-radius: 13rpx;}
  314. .tk-input-box{margin: 0 6rpx;}
  315. .tk-input-box.showError::after,
  316. .tk-input-box.active_right::after{width: 48rpx;height: 48rpx;top: -19rpx;right: -10rpx;}
  317. .ezy-shiti-question li{margin: 32rpx 0;}
  318. }
  319. }
  320. /***** 英语题 *****/
  321. .ezy-yingyu-danxuan-box{
  322. .yingyu-danxuan-option-box{
  323. width: 100%;line-height:96rpx;border-radius: 8px;margin-bottom: 20rpx;
  324. font-size: 32rpx;color: #333;box-sizing: border-box;padding: 10rpx 24rpx;
  325. display: flex;
  326. .option-change{
  327. width: 48rpx;height: 48rpx;line-height: 48rpx;box-sizing: border-box;
  328. flex-shrink: 0;border-radius: 50%;border: 1rpx solid;margin-right: 16rpx;
  329. display: flex;align-items: center;justify-content: center;
  330. }
  331. .option-question{font-size: 32rpx;line-height: 1.6;margin-left: 6rpx;@include ezy-rich-text;
  332. text-align: justify;word-wrap: break-word;word-break: break-all;display: block;}
  333. }
  334. .yingyu-danxuan-option-box.active .option-change{color: #FFF;background-color:#0589e9;border-color:#0589e9;}
  335. .yingyu-danxuan-option-box.showError .option-change{color: #FFF;background-color:#ff5757;border-color:#ff5757;}
  336. .yingyu-danxuan-option-box.active_right .option-change{color: #FFF;background-color:#1ac136;border-color:#1ac136;}
  337. @include mediaSmall() {
  338. .yingyu-danxuan-option-box{
  339. line-height: 62rpx;margin-bottom: 13rpx;font-size: 20rpx;padding: 6rpx 16rpx;
  340. .option-change{width: 31rpx;height: 31rpx;line-height: 31rpx;margin-right: 10rpx;}
  341. .option-question{font-size: 20rpx;margin-left: 4rpx;}
  342. }
  343. }
  344. @include mediaBig() {
  345. .yingyu-danxuan-option-box{
  346. line-height: 154rpx;margin-bottom: 32rpx;font-size: 46rpx;padding: 16rpx 38rpx;
  347. .option-change{width: 77rpx;height: 77rpx;line-height: 77rpx;margin-right: 26rpx;}
  348. .option-question{font-size: 46rpx;margin-left: 10rpx;}
  349. }
  350. }
  351. }
  352. /***** 英语题播放按钮 *****/
  353. .yingyu-canplay-img,.yingyu-playing-img{
  354. width: 48rpx;height: 48rpx;display: inline-block;margin: 0 24rpx 3rpx;
  355. vertical-align: middle;@include ezy-no-repeat-cover();
  356. }
  357. .yingyu-canplay-img{background-image: url("@/static/images/exam/yingyu-canplay-img.png");}
  358. .yingyu-playing-img{background-image: url("@/static/images/exam/yingyu-playing-img.gif");}
  359. /***** 试题白色的框 *****/
  360. .shiti-frame-box{
  361. width: 95%;height: auto;background-color: #fff;box-shadow: 0 0rpx 4rpx rgba(100, 159, 241, 0.2);
  362. flex: 1;position: relative;display: flex;flex-direction: column;
  363. border-radius: 16rpx;box-sizing: border-box;padding:32rpx 24rpx 36rpx;margin: 20rpx 2.5% 36rpx;
  364. }
  365. .ezy-page-body{
  366. display: flex;flex-direction: column;flex: 1;
  367. position: relative;background-color: #fff;z-index: 1;
  368. border-radius: 20rpx 20rpx 0 0;padding: 42rpx 0;overflow: hidden;
  369. @include mediaSmall() {
  370. padding: 28rpx 0 10rpx;
  371. }
  372. @include mediaBig() {padding: 64rpx 0 32rpx;}
  373. }
  374. /***** 模拟标题栏 *****/
  375. .ezy-title-bar {
  376. height: calc(44px + env(safe-area-inset-top));
  377. position: fixed;top: var(--status-bar-height);left: var(--window-left);right: var(--window-right);
  378. background-color: rgb(248, 248, 248);color: rgb(0, 0, 0);box-sizing: border-box;
  379. display: flex;align-items: center;justify-content: center;overflow: hidden;z-index: 998;
  380. }
  381. // 小的提示弹窗
  382. .ezy-tip-dialog{
  383. position: relative;
  384. .tip-content-box{@include ezy-no-repeat-cover;box-sizing: border-box;text-align:center;}
  385. .tip-title{
  386. color: #343434;font-size: 38rpx;margin-bottom: 24rpx;
  387. }
  388. .tip-content{
  389. color: #666;font-size: 32rpx;padding-bottom: 42rpx;
  390. border-bottom: 1px dashed #70cbf4;line-height: 1.6;
  391. }
  392. /*** 按钮 ***/
  393. //其他按钮
  394. .tip-btn-box{
  395. width: 100%;display: flex;justify-content: space-between;margin: 52rpx 0 0;
  396. .not-confirm-btn,.confirm-btn{
  397. width: 248rpx;height: 92rpx;line-height: 92rpx;font-size: 32rpx;
  398. color: #fff;@include ezy-no-repeat-cover;
  399. }
  400. .not-confirm-btn{background-image: url("@/static/images/common/tip-cancel-btn.png");}
  401. .confirm-btn{background-image: url("@/static/images/common/tip-confirm-btn.png");}
  402. }
  403. //关闭
  404. .close-btn{
  405. width: 100rpx;height: 100rpx;display: flex;align-items: center;justify-content: center;
  406. position: absolute;right: 12rpx;top: 12rpx;
  407. }
  408. .close-btn::after{
  409. content: '';width: 52rpx;height: 52rpx;@include ezy-no-repeat-cover;
  410. background-image: url("@/static/images/common/close-icon.png");
  411. }
  412. @include mediaSmall() {
  413. .tip-title{font-size: 24rpx;margin-bottom: 16rpx;}
  414. .tip-content{font-size: 20rpx;padding-bottom: 27rpx;}
  415. .tip-btn-box{
  416. margin: 34rpx 0 0;
  417. .not-confirm-btn,.confirm-btn{width: 161rpx;height: 60rpx;line-height: 60rpx;font-size: 20rpx;}
  418. }
  419. .close-btn{width: 65rpx;height: 65rpx;right: 8rpx;top: 8rpx;}
  420. .close-btn::after{width: 34rpx;height: 34rpx;}
  421. }
  422. @include mediaBig() {
  423. .tip-title{font-size: 54rpx;margin-bottom: 38rpx;}
  424. .tip-content{font-size: 46rpx;padding-bottom: 67rpx;}
  425. .tip-btn-box{
  426. margin: 83rpx 0 0;
  427. .not-confirm-btn,.confirm-btn{width: 397rpx;height: 147rpx;line-height: 147rpx;font-size: 46rpx;}
  428. }
  429. .close-btn{width: 160rpx;height: 160rpx;right: 19rpx;top: 19rpx;}
  430. .close-btn::after{width: 83rpx;height: 83rpx;}
  431. }
  432. }
  433. .tip-small-dialog{
  434. .tip-content-box{
  435. width: 625rpx;height: 365rpx;padding: 42rpx 48rpx;
  436. background-image: url("@/static/images/common/tip-small-bj.png");
  437. }
  438. .tip-btn-box{
  439. margin: 0;
  440. .not-confirm-btn,.confirm-btn{
  441. width: 220rpx;height: 82rpx;line-height: 82rpx;margin: 30rpx 20rpx 0;
  442. }
  443. }
  444. @include mediaSmall() {
  445. .tip-content-box{width: 406rpx;height: 237rpx;padding: 27rpx 31rpx;}
  446. .tip-btn-box{
  447. .not-confirm-btn,.confirm-btn{
  448. width: 143rpx;height: 53rpx;line-height: 53rpx;margin: 20rpx 13rpx 0;
  449. font-size: 20rpx;
  450. }
  451. }
  452. }
  453. @include mediaBig() {
  454. .tip-content-box{width: 1000rpx;height: 584rpx;padding: 67rpx 77rpx;}
  455. .tip-btn-box{
  456. .not-confirm-btn,.confirm-btn{
  457. width: 352rpx;height: 131rpx;line-height: 131rpx;margin: 48rpx 32rpx 0;
  458. font-size: 46rpx;
  459. }
  460. }
  461. }
  462. }
  463. .tip-middle-dialog{
  464. .tip-content-box{
  465. width: 625rpx;height: 423rpx;padding: 42rpx 48rpx;
  466. background-image: url("@/static/images/common/tip-middle-bj.png");
  467. }
  468. .tip-content{padding-bottom: 42rpx;}
  469. .tip-btn-box{margin: 32rpx 0 0;}
  470. @include mediaSmall() {
  471. .tip-content-box{width: 406rpx;height: 275rpx;padding: 27rpx 31rpx;}
  472. .tip-content{padding-bottom: 27rpx;}
  473. .tip-btn-box{margin: 21rpx 0 0;}
  474. }
  475. @include mediaBig() {
  476. .tip-content-box{width: 1000rpx;height: 677rpx;padding: 67rpx 77rpx;}
  477. .tip-content{padding-bottom: 67rpx;}
  478. .tip-btn-box{margin: 51rpx 0 0;}
  479. }
  480. }
  481. .tip-big-dialog{
  482. .tip-content-box{
  483. width: 625rpx;height: 519rpx;padding: 42rpx 48rpx;
  484. background-image: url("@/static/images/common/tip-big-bj.png");
  485. }
  486. .tip-content{min-height: 240rpx;text-align: justify;}
  487. @include mediaSmall() {
  488. .tip-content-box{width: 406rpx;height: 337rpx;padding: 27rpx 31rpx;}
  489. .tip-content{min-height: 156rpx;}
  490. }
  491. @include mediaBig() {
  492. .tip-content-box{width: 1000rpx;height: 830rpx;padding: 67rpx 77rpx;}
  493. .tip-content{min-height: 384rpx;}
  494. }
  495. }
  496. // 一个确认按钮的弹窗
  497. .small-one-button-dialog{
  498. .tip-content-box{
  499. width: 625rpx;height: 365rpx;padding: 36rpx 48rpx;
  500. @include ezy-no-repeat-cover;box-sizing: border-box;text-align:center;
  501. background-image: url("@/static/images/common/tip-small-bj.png");
  502. }
  503. .tip-content{
  504. color: #222;font-size: 38rpx;padding-bottom: 36rpx;
  505. display: flex;justify-content: center;align-items: center;
  506. border-bottom: 1px dashed #70cbf4;line-height: 1.6;
  507. min-height: 150rpx;
  508. }
  509. .tip-btn-box{
  510. width: 100%;display: flex;justify-content: space-between;justify-content: center;margin: 36rpx 0 0;
  511. .tip-btn{
  512. width: 394rpx;height: 88rpx;line-height: 88rpx;
  513. color: #fff;@include ezy-no-repeat-cover;text-align: center;
  514. background-image: url("@/static/images/common/tip-one-confirm-btn.png");
  515. }
  516. }
  517. }
  518. // 大鹅提示弹窗
  519. .tip-e-dialog{
  520. width: 625rpx;height: 519rpx;padding: 42rpx 48rpx;@include ezy-no-repeat-cover;
  521. background-image: url("@/static/images/common/tip-big-bj.png");position: relative;
  522. .close-btn{
  523. width: 100rpx;height: 100rpx;display: flex;align-items: center;justify-content: center;
  524. position: absolute;right: 12rpx;top: 12rpx;
  525. }
  526. .close-btn::after{
  527. content: '';width: 52rpx;height: 52rpx;@include ezy-no-repeat-cover;
  528. background-image: url("@/static/images/common/close-icon.png");
  529. }
  530. .e-img{height: 240rpx;@include ezy-no-repeat-cover;margin: 42rpx auto 24rpx;}
  531. .kx-e-img{width: 302rpx;background-image: url("@/static/images/xuexi/dialog-e-img1.png");}
  532. .bs-e-img{width: 219rpx;background-image: url("@/static/images/xuexi/dialog-e-img2.png");}
  533. .text-score{
  534. width: 100%;text-align: center;font-size: 36rpx;color: #333;
  535. }
  536. .time-tip-box{
  537. width: 100%;text-align: center;font-size: 30rpx;color: #9e9e9f;
  538. margin-top: 16rpx;
  539. }
  540. @include mediaSmall() {
  541. width: 406rpx;height: 337rpx;padding: 27rpx 31rpx;
  542. .close-btn{width: 65rpx;height: 65rpx;right: 8rpx;top: 8rpx;}
  543. .close-btn::after{width: 34rpx;height: 34rpx;}
  544. .e-img{height: 156rpx;margin: 27rpx auto 16rpx;}
  545. .kx-e-img{width: 196rpx;}
  546. .bs-e-img{width: 142rpx;}
  547. .text-score{font-size: 22rpx;}
  548. .time-tip-box{font-size: 20rpx;margin-top: 10rpx;}
  549. }
  550. @include mediaBig() {
  551. width: 1000rpx;
  552. height: 830rpx;
  553. padding: 67rpx 77rpx;
  554. .close-btn{width: 160rpx;height: 160rpx;right: 19rpx;top: 19rpx;}
  555. .close-btn::after{width: 83rpx;height: 83rpx;}
  556. .e-img{height: 384rpx;margin: 67rpx auto 38rpx;}
  557. .kx-e-img{width: 483rpx;}
  558. .bs-e-img{width: 350rpx;}
  559. .text-score{font-size: 54rpx;}
  560. .time-tip-box{font-size: 46rpx;margin-top: 26rpx;}
  561. }
  562. }
  563. /***** 学科tab *****/
  564. .ezy-xueke-tab-box{
  565. display: flex;justify-content: center;margin-bottom: 24rpx;flex-shrink: 0;
  566. .tab-item{
  567. width: 242rpx;height: 90rpx;line-height: 90rpx;font-size: 30rpx;
  568. background-image: url("@/static/images/phone/xuanke/tab-item-bj.png");
  569. text-align: center;color: #a6a6a6;@include ezy-no-repeat-cover;
  570. }
  571. .tab-item.active{
  572. color: #fff;background-image: url("@/static/images/phone/xuanke/tab-item-a.png");
  573. }
  574. @include mediaSmall() {
  575. .tab-item{
  576. width: 238rpx;height: 58rpx;line-height: 58rpx;font-size: 24rpx;
  577. background-image: url("@/static/images/pad/xuanke/tab-item-bj.png");}
  578. .tab-item.active{background-image: url("@/static/images/pad/xuanke/tab-item-a.png");}
  579. }
  580. @include mediaBig() {
  581. .tab-item{width: 620rpx;height: 152rpx;line-height: 152rpx;font-size: 60rpx;margin: 0 6rpx;}
  582. }
  583. }
  584. // tab页面
  585. .ezy-tab-border{
  586. flex: 1;width: 92%;height: auto;background-color: rgba(255, 255, 255, 0.6);border-radius: 10px;
  587. margin: 12rpx auto 32rpx;position: relative;box-sizing: border-box;display: flex;flex-direction: column;
  588. }
  589. .ezy-tab-box{
  590. height: 82rpx!important;
  591. background-color: rgba(255, 255, 255, 0.6);z-index: 3;margin: 20rpx 20rpx 0;
  592. box-sizing: border-box;padding: 10rpx 12rpx;border-radius: 8rpx;
  593. .segmented-control__text{color: #333!important;}
  594. .segmented-control__item--button,.segmented-control__item--button--last{height: 62rpx;border: 0;border-width: 0!important;border-radius: 8rpx;}
  595. .segmented-control__item--button--active .segmented-control__text{color: #fff!important;}
  596. }
  597. //视频
  598. .ezy-video-box{
  599. width: 690rpx;height: 390rpx;margin: 0 auto 42rpx;
  600. box-shadow: 0 0rpx 16rpx rgba(100, 159, 241, 0.2);
  601. position: relative;box-sizing: border-box;padding: 0;
  602. .ezy-video{
  603. width: 100%;height: 100%!important;background-color: transparent;
  604. .prism-big-play-btn{
  605. width: 87rpx;height: 87rpx;@include ezy-no-repeat-cover;background-image: url("@/static/images/xuexi/play-btn.png");
  606. top: 52%;left: 50%!important;transform: translate(-50%, -50%);z-index: 20;
  607. .outter{border: 0;}
  608. }
  609. .prism-info-display{display: none;}
  610. .prism-time-display .time-bound,.prism-time-display .duration{color: #fff;}
  611. // 播放按钮动画
  612. .play-apply-animation{animation:unset;}
  613. }
  614. @include mediaSmall() {
  615. width: 696rpx;height: 380rpx;margin: 0 auto 27rpx;
  616. box-shadow: 0 0rpx 10rpx rgba(100, 159, 241, 0.2);
  617. .ezy-video{
  618. .prism-big-play-btn{width: 57rpx;height: 57rpx;}
  619. }
  620. }
  621. @include mediaBig() {
  622. width: 1940rpx;height: 1100rpx;margin: 0 auto 67rpx;
  623. box-shadow: 0 0rpx 26rpx rgba(100, 159, 241, 0.2);
  624. .ezy-video{
  625. .prism-big-play-btn{width: 139rpx;height: 139rpx;}
  626. }
  627. }
  628. }
  629. // 升级提醒弹窗
  630. .phone-tip-dialog{
  631. width: 580rpx;border-radius: 12rpx;background-color: #fff;padding: 24rpx;
  632. .tip-title{padding-top: 24rpx;font-size: 34rpx;color: #333;text-align: center;}
  633. .tip-content{font-size: 32rpx;color: #666;margin:32rpx 32rpx 56rpx;line-height: 1.6;text-align: justify;}
  634. }
  635. // 暂无数据
  636. .ezy-no-sj{
  637. display: flex;align-items: center;flex-direction: column;
  638. flex: 1;justify-content: center;font-size: 32rpx;color: #666;
  639. icon{
  640. width: 219rpx;height: 240rpx;@include ezy-no-repeat-cover;
  641. margin: 0 auto 32rpx;
  642. background-image: url("@/static/images/xuexi/dialog-e-img2.png");
  643. }
  644. @include mediaSmall() {
  645. font-size: 22rpx;
  646. icon{width: 142rpx;height: 156rpx;margin: 0 auto 21rpx;}
  647. }
  648. @include mediaBig() {
  649. font-size: 54rpx;
  650. icon{width: 350rpx;height: 384rpx;margin: 0 auto 51rpx;}
  651. }
  652. }
  653. // 分享
  654. .share-popup-box{
  655. box-sizing: border-box;padding: 32rpx;position: relative;
  656. .share-title{font-size: 32rpx;color: #333;text-align: center;margin-bottom: 36rpx;}
  657. .close-btn{width: 100rpx;height: 100rpx;position: absolute;right: 0;top: 0;
  658. display: flex;align-items: center;justify-content: center;}
  659. .close-btn::after{content: '';width: 36rpx;height: 36rpx;display: block;@include ezy-no-repeat-cover;
  660. background-image: url("@/static/images/common/close-icon.svg");}
  661. .share-list{display: flex;justify-content: space-evenly;margin: 42rpx 0;}
  662. .share-item{
  663. display: flex;justify-content: center;flex-direction: column;align-items: center;
  664. .share-icon{width: 80rpx;height: 80rpx;@include ezy-no-repeat-cover;margin-bottom: 10rpx;}
  665. .wechat-icon{background-image: url("@/static/images/common/weixin-icon.svg");}
  666. .timeline-icon{background-image: url("@/static/images/common/pyq-icon.svg");}
  667. .share-text{font-size: 26rpx;color: #333;}
  668. }
  669. .share-close{width: 360rpx;height: 70rpx;line-height: 70rpx;background-color: #fff;border: 1rpx solid #3fd2a1;
  670. color: #3fd2a1;text-align: center;border-radius: 8rpx;margin: 32rpx auto 0;border-radius: 35rpx;}
  671. }
  672. // 遮盖层
  673. .ezy-mask-box{
  674. position: absolute;top: 0;left: 0;right: 0;bottom: 0;background-color: azure;
  675. color: #333;z-index: 999;display: flex;align-items: center;justify-content: center;
  676. }
  677. // 没有更多
  678. .ezy-no-more{
  679. color: rgb(119, 119, 119);font-size: 28rpx;text-align: center;
  680. @include mediaSmall() {font-size: 18rpx;}
  681. @include mediaBig() {font-size: 40rpx;}
  682. }