问星数据小程序

live.wxss 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /* pages/live/live.wxss */
  2. .searchDiv {
  3. background: url("https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/banner.png") no-repeat;
  4. background-size: 100% 100%;
  5. height: 280rpx;
  6. }
  7. .searchDiv .title {
  8. color: #ffffff;
  9. font-size: 38rpx;
  10. line-height: 52rpx;
  11. text-align: center;
  12. padding-top: 62rpx;
  13. }
  14. .searchDiv .searchView {
  15. width: 624rpx;
  16. height: 70rpx;
  17. background: rgba(255, 255, 255, 0.37);
  18. margin: auto;
  19. display: flex;
  20. align-items: center;
  21. margin-top: 30rpx;
  22. }
  23. .searchDiv .searchView image {
  24. width: 30rpx;
  25. height: 28rpx;
  26. margin-left: 34rpx;
  27. margin-right: 10rpx;
  28. }
  29. .searchDiv .searchView input {
  30. flex: 1;
  31. height: 70rpx;
  32. font-size: 24rpx;
  33. margin: auto;
  34. }
  35. .live {
  36. width: 100%;
  37. }
  38. .input {
  39. overflow: hidden;
  40. height: 280rpx;
  41. text-align: center;
  42. background-image: url("https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/banner.png");
  43. background-size: 100% 100%;
  44. }
  45. .searchText {
  46. font-size: 38rpx;
  47. margin-top: 62rpx;
  48. color: #fff;
  49. }
  50. .searchBox {
  51. display: inline-block;
  52. margin-top: 30rpx;
  53. position: relative;
  54. background: rgba(255,255,255,.36);
  55. width: 624rpx;
  56. height: 70rpx;
  57. }
  58. .sIcon {
  59. width: 30rpx;
  60. height: 30rpx;
  61. position: absolute;
  62. top: 50%;
  63. transform: translateY(-50%);
  64. left: 34rpx;
  65. }
  66. .weui-input {
  67. display: inline-block;
  68. width: 100%;
  69. height: 70rpx;
  70. line-height: 70rpx;
  71. margin: auto;
  72. color: #fff;
  73. font-size: 24rpx;
  74. text-align: left;
  75. padding-left: 82rpx;
  76. }
  77. .topTitle {
  78. box-sizing: border-box;
  79. width: 100%;
  80. margin-bottom: 20rpx;
  81. line-height: 60rpx;
  82. font-size: 26rpx;
  83. overflow: hidden;
  84. text-align: center;
  85. background-image: url("https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/title_blur.png");
  86. background-size: 100% 100%;
  87. position: relative;
  88. }
  89. .box:nth-child(3n-1) .topTitle {
  90. background-image: url("https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/title_yellow.png");
  91. }
  92. .box:nth-child(3n) .topTitle {
  93. background-image: url("https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/title_green.png");
  94. }
  95. .blur {
  96. width: 100%;
  97. height: 100%;
  98. -webkit-filter: blur(15px);
  99. filter: blur(15px);
  100. position: absolute;
  101. top: 0;
  102. left: 0;
  103. }
  104. .coverImg {
  105. width: 100%;
  106. position: absolute;
  107. top: 50%;
  108. -webkit-transform: translateY(-50%);
  109. transform: translateY(-50%);
  110. left: 0;
  111. }
  112. .box .title {
  113. color: #fff;
  114. font-size: 32rpx;
  115. display: inline-block;
  116. width: 380rpx;
  117. height: 60rpx;
  118. line-height: 60rpx;
  119. text-align: center;
  120. }
  121. .more {
  122. color: #3EA2F6;
  123. font-size: 26rpx;
  124. position: absolute;
  125. right: 20rpx;
  126. top: 50%;
  127. transform: translateY(-50%);
  128. }
  129. .more {
  130. float: right;
  131. text-align: right;
  132. }
  133. .box {
  134. padding: 0rpx 30rpx;
  135. box-sizing: border-box;
  136. width: 100%;
  137. min-height: 400rpx;
  138. margin-top: 40rpx;
  139. }
  140. .boxs,.onlive {
  141. display: flex;
  142. justify-content: space-between;
  143. }
  144. .item {
  145. display: inline-block;
  146. width: 220rpx;
  147. min-height: 270rpx;
  148. background: #fff;
  149. border-radius: 12rpx;
  150. }
  151. .onlive .item {
  152. padding-top: 36rpx;
  153. text-align: center;
  154. min-height: 260rpx;
  155. background: linear-gradient(#54BEFA,#2A89F3);
  156. }
  157. .onlive .coverImg {
  158. position: absolute;
  159. top: 50%;
  160. left: 50%;
  161. transform: translate(-50%,-50%);
  162. width: 120rpx;
  163. height: 120rpx;
  164. border-radius: 50%;
  165. animation: scale 2s infinite;
  166. -webkit-animation: scale 2s infinite;
  167. /*Safari and Chrome*/
  168. animation-direction: alternate;
  169. /*轮流反向播放动画。*/
  170. animation-timing-function: ease-in-out;
  171. /*动画的速度曲线*/
  172. /* Safari 和 Chrome */
  173. -webkit-animation: scale 2s infinite;
  174. -webkit-animation-direction: alternate;
  175. /*轮流反向播放动画。*/
  176. -webkit-animation-timing-function: ease-in-out;
  177. }
  178. .onlive .name {
  179. font-size: 24rpx;
  180. color: #fff;
  181. width: 120rpx;
  182. text-align: center;
  183. line-height: 34rpx;
  184. }
  185. .onlive .imgBox {
  186. display: inline-block;
  187. width: 128rpx;
  188. height: 128rpx;
  189. border-radius: 50%;
  190. position: relative;
  191. background: transparent;
  192. }
  193. .border {
  194. width: 128rpx;
  195. height: 128rpx;
  196. position: absolute;
  197. top: 50%;
  198. left: 50%;
  199. transform: translate(-50%,-50%);
  200. border: 2rpx solid transparent;
  201. animation: move 2s infinite;
  202. -webkit-animation: move 2s infinite;
  203. /*Safari and Chrome*/
  204. animation-direction: alternate;
  205. /*轮流反向播放动画。*/
  206. animation-timing-function: ease-in-out;
  207. /*动画的速度曲线*/
  208. /* Safari 和 Chrome */
  209. -webkit-animation: move 2s infinite;
  210. -webkit-animation-direction: alternate;
  211. /*轮流反向播放动画。*/
  212. -webkit-animation-timing-function: ease-in-out;
  213. border-radius: 50%;
  214. }
  215. @keyframes move {
  216. 0% {
  217. width: 128rpx;
  218. height: 128rpx;
  219. border: 2rpx solid transparent;
  220. }
  221. 25% {
  222. width: 140rpx;
  223. height: 140rpx;
  224. border: 2rpx solid #fff;
  225. }
  226. 50% {
  227. width: 128rpx;
  228. height: 128rpx;
  229. border: 2rpx solid transparent;
  230. }
  231. 75% {
  232. width: 140rpx;
  233. height: 140rpx;
  234. border: 2rpx solid #fff;
  235. }
  236. }
  237. @keyframes scale {
  238. 0% {
  239. width: 120rpx;
  240. height: 120rpx;
  241. }
  242. 25% {
  243. width: 112rpx;
  244. height: 112rpx;
  245. }
  246. 50% {
  247. width: 120rpx;
  248. height: 120rpx;
  249. }
  250. 75% {
  251. width: 112rpx;
  252. height: 112rpx;
  253. }
  254. }
  255. .onlive .imgBox::after {
  256. content: "● 直播中";
  257. background: #FF1674;
  258. border-radius: 18rpx;
  259. font-size: 20rpx;
  260. color: #fff;
  261. width: 108rpx;
  262. height: 36rpx;
  263. line-height: 36rpx;
  264. text-align: center;
  265. position: absolute;
  266. bottom: -8rpx;
  267. left: 50%;
  268. transform: translateX(-50%);
  269. }
  270. .onlive .pancel {
  271. box-shadow: none;
  272. margin-top: 12rpx;
  273. }
  274. .pancel {
  275. box-shadow: 0px 8rpx 16rpx 0px rgba(206, 206, 206, 0.5);
  276. }
  277. .icon {
  278. display: inline-block;
  279. width: 40rpx;
  280. height: 40rpx;
  281. margin-right: 6rpx;
  282. vertical-align: middle;
  283. border-radius: 50%;
  284. }
  285. .proUrl {
  286. position:relative;
  287. width:100%;
  288. height:0;
  289. padding-top:100%;
  290. background: #ddd;
  291. border-top-right-radius: 10rpx;
  292. border-top-left-radius: 10rpx;
  293. overflow: hidden;
  294. }
  295. .coverUrl {
  296. display: inline-block;
  297. width: 100%;
  298. height: 100%;
  299. position: absolute;
  300. top: 50%;
  301. transform: translateY(-50%);
  302. }
  303. .cover {
  304. float: left;
  305. width: 100%;
  306. max-height: 236rpx;
  307. border-top-left-radius: 10rpx;
  308. border-top-right-radius: 10rpx;
  309. }
  310. .btmText {
  311. padding: 0px 10rpx 10rpx;
  312. }
  313. .name {
  314. font-size: 22rpx;
  315. width: calc(100% - 65rpx);
  316. overflow: hidden;
  317. text-overflow: ellipsis;
  318. white-space: nowrap;
  319. margin-left: 16rpx;
  320. display: inline-block;
  321. text-align: left;
  322. line-height: 22rpx;
  323. /* vertical-align: middle; */
  324. }
  325. .sale {
  326. display: flex;
  327. -webkit-box-pack: justify;
  328. -webkit-justify-content: space-between;
  329. justify-content: space-between;
  330. -webkit-box-align: center;
  331. -webkit-align-items: center;
  332. align-items: center;
  333. font-size: 22rpx;
  334. }
  335. .count {
  336. color: #072945;
  337. font-size: 24rpx;
  338. }
  339. .type {
  340. display: inline-block;
  341. width: 30rpx;
  342. height: 30rpx;
  343. vertical-align: middle;
  344. }
  345. .nameBox {
  346. padding: 0 10rpx;
  347. line-height: 20rpx;
  348. line-height: 50rpx;
  349. }
  350. .name:first-child {
  351. margin-left: 0;
  352. }