style.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. border: 0;
  5. }
  6. html {
  7. font-size: 12px;
  8. }
  9. html, body, iframe {
  10. width: 100%;
  11. font-family: -apple-system;
  12. height: 100%;
  13. overflow: hidden;
  14. }
  15. .layer {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. right: 0;
  20. bottom: 0;
  21. transform: scale(1);
  22. }
  23. .bgd {
  24. position: fixed;
  25. left: 0;
  26. right: 0;
  27. top: 0;
  28. bottom: 0;
  29. z-index: 1;
  30. background-color: rgba(0, 0, 0, 0.6);
  31. }
  32. .bottom-dialog {
  33. position: fixed;
  34. top: 23%;
  35. bottom: 0;
  36. left: 0;
  37. right: 0;
  38. z-index: 99;
  39. background-color: #fff;
  40. border-radius: 14px 14px 0 0;
  41. display: flex;
  42. flex-direction: column;
  43. z-index: 2;
  44. font-size: 12px;
  45. }
  46. .bottom-dialog .title {
  47. flex: 0 0 auto;
  48. padding: 1.5rem 1.3rem;
  49. border-bottom: 1px solid rgb(236, 236, 236);
  50. position: relative;
  51. }
  52. .bottom-dialog .title .text {
  53. font-size: 1.5rem;
  54. color: #131D34;
  55. font-weight: bold;
  56. }
  57. .bottom-dialog .icon {
  58. position: absolute;
  59. top: 50%;
  60. transform: translateY(-50%);
  61. width: 1.1rem;
  62. height: 1.1rem;
  63. padding: 1.5rem;
  64. right: 0;
  65. }
  66. .bottom-dialog .icon img {
  67. display: block;
  68. width: 1.1rem;
  69. height: 1.1rem;
  70. }
  71. .commodity-view {
  72. position: fixed;
  73. top: 23%;
  74. bottom: 0;
  75. left: 0;
  76. right: 0;
  77. z-index: 99;
  78. background-color: #fff;
  79. border-radius: 1.2rem 1.2rem 0 0;
  80. display: flex;
  81. flex-direction: column;
  82. display: none;
  83. }
  84. .commodity-view .content {
  85. flex: 1;
  86. padding: 0 1.5rem;
  87. position: relative;
  88. /* display: flex;
  89. flex-direction: column; */
  90. }
  91. .commodity-view .scene-icon {
  92. --width: 14px;
  93. --height: 5px;
  94. padding: calc(var(--height) * 1) calc(var(--width) * 0.3);
  95. position: absolute;
  96. left: 8px;
  97. bottom: 5px;
  98. width: calc(--width);
  99. height: calc(--height);
  100. z-index: 3;
  101. }
  102. .commodity-view .tabs {
  103. flex: 0 0 auto;
  104. width: 100%;
  105. overflow-x: scroll;
  106. padding-bottom: 4px;
  107. position: relative;
  108. }
  109. #headers {
  110. display: flex;
  111. }
  112. .commodity-view .tabs .text {
  113. float: left;
  114. height: 3.1rem;
  115. line-height: 3.1rem;
  116. color: #131D34;
  117. font-size: 1.08rem;
  118. margin-right: 1.6rem;
  119. text-align: center;
  120. flex: 0 0 auto;
  121. }
  122. .commodity-view .tabs .text span {
  123. font-size: 0.8em;
  124. }
  125. .commodity-view .tabs .text.active {
  126. color: #ED5D18;
  127. font-size: 1.3rem;
  128. position: relative;
  129. }
  130. .commodity-view .tabs .text.active div {
  131. position: absolute;
  132. bottom: 0;
  133. left: 0;
  134. right: 0;
  135. height: 2px;
  136. background-color: #ED5D18;
  137. margin: 0 10px;
  138. }
  139. .commodity-view .current-tab {
  140. flex: 0 0 auto;
  141. height: 2.5rem;
  142. margin-left: -1.33rem;
  143. width: calc(100% + 2.66rem);
  144. background-color: #F8F8F8;
  145. padding: 0 1.33rem;
  146. line-height: 2.5rem;
  147. font-size: 1.1em;
  148. color: #999999;
  149. }
  150. .commoditys {
  151. position: absolute;
  152. left: 0;
  153. right: 0;
  154. top: 3.16rem;
  155. bottom: 0;
  156. height: calc(100% - 4.16rem);
  157. overflow-y: scroll;
  158. padding: 0 1.5rem;
  159. }
  160. .commodity-item {
  161. margin-top: 12px;
  162. display: flex;
  163. align-items: center;
  164. position: relative;
  165. }
  166. .commodity-view .cover {
  167. flex: 0 0 auto;
  168. width: 7.5rem;
  169. height: 7.5rem;
  170. }
  171. .commodity-view .item-content {
  172. flex: 1;
  173. margin-left: 1.2rem;
  174. }
  175. .commodity-view .item-content .desc {
  176. font-size: 1.2rem;
  177. color: #131D34;
  178. line-height: 1.66rem;
  179. white-space: pre-wrap;
  180. }
  181. .commodity-view .item-info {
  182. margin-top: 1.33rem;
  183. display: flex;
  184. align-items: center;
  185. justify-content: space-between;
  186. height: 2.25rem;
  187. }
  188. .commodity-view .item-info>.money {
  189. flex: 0 0 auto;
  190. }
  191. .commodity-view .item-info>.oper {
  192. position: relative;
  193. }
  194. .oper .lack {
  195. position: absolute;
  196. left: 50%;
  197. top: 50%;
  198. transform: translate(-50%, -50%);
  199. width: 8.33rem;
  200. height: 8.33rem;
  201. }
  202. .commodity-view .money .text {
  203. display: inline;
  204. color: #ED5D18;
  205. }
  206. .commodity-view .money .text:nth-child(1),
  207. .money .text:nth-child(3) {
  208. font-size: 1rem;
  209. margin-right: 5px;
  210. vertical-align: baseline;
  211. }
  212. .commodity-view .money .text:nth-child(2) {
  213. font-size: 18px;
  214. vertical-align: baseline;
  215. }
  216. .oper-btn {
  217. display: inline-block;
  218. border-radius: 4px;
  219. height: 2.16rem;
  220. line-height: 2.16rem;
  221. padding: 0 8px !important;
  222. color: #fff;
  223. font-size: 1rem;
  224. }
  225. .commodity-view .oper {
  226. height: 2.25rem;
  227. display: flex;
  228. }
  229. .commodity-view .oper-btn:nth-child(1) {
  230. background-color: #FFCD3C;
  231. margin-right: 5px;
  232. }
  233. .commodity-view .oper-btn:nth-child(2) {
  234. background-color: #ED5D18;
  235. }
  236. @media screen and (max-width: 320px) {
  237. html {
  238. font-size: 10px;
  239. }
  240. }
  241. .brick {
  242. text-align:center;
  243. position:relative;
  244. width: var(--width);
  245. height: var(--height);
  246. transform-style:preserve-3d;
  247. transform-origin: calc(var(--width) / 2) calc(var(--height) / 2);
  248. margin: 0 auto calc(var(--width) / 12);
  249. }
  250. .brick-1 {
  251. animation: rorate 2s 1s infinite linear;
  252. transform: rotateX(-30deg) rotateY(45deg) translateZ(30px);
  253. }
  254. .brick-2 {
  255. animation: rorate 2s 0.75s infinite linear;
  256. transform: rotateX(-30deg) rotateY(45deg) translateZ(20px);
  257. }
  258. .brick-3 {
  259. animation: rorate 2s 0.5s infinite linear;
  260. transform: rotateX(-30deg) rotateY(45deg) translateZ(10px);
  261. }
  262. .face {
  263. width:var(--width);
  264. height: var(--height);
  265. overflow:hidden;
  266. position:absolute;
  267. background: rgba(255,255,255,0.4);
  268. opacity: 0;
  269. }
  270. .brick.enter {
  271. transition: 0.5s all;
  272. transform: rotateX(-30deg) rotateY(45deg);
  273. }
  274. .brick.enter .face {
  275. transition: 0.5s all;
  276. opacity: 1;
  277. }
  278. .brick-2 .face {
  279. background: rgba(255,255,255,0.3);
  280. }
  281. .brick-2 .brick-front, .brick-back {
  282. background: rgba(255,255,255,0.4);
  283. }
  284. .brick-3 .face {
  285. background: rgba(255,255,255,0.2);
  286. }
  287. .brick-3 .brick-front, .brick-back {
  288. background: rgba(255,255,255,0.1);
  289. }
  290. .brick-front {
  291. transform:translate3d(0,0, calc(var(--width) / 2));
  292. background: rgba(255,255,255,0.6);
  293. }
  294. .brick-top {
  295. width:var(--width);
  296. height:var(--width);
  297. transform:rotateX(90deg) translate3d(0,0, calc(var(--width) / 2));
  298. background-color: rgba(255,255,255,0.8);
  299. }
  300. .brick-bottom {
  301. width:var(--width);
  302. height:var(--width);
  303. transform: rotateX(-90deg) translate3d(0,0, calc(var(--height) / 2));
  304. background-color: rgba(255,255,255,0.8);
  305. }
  306. .brick-left {
  307. transform:rotateY(-90deg) translate3d(0,0,calc(var(--width) / 2));
  308. background: rgba(255,255,255,0.5);
  309. }
  310. .brick-right {
  311. transform:rotateY(90deg) translate3d(0,0,calc(var(--width) / 2));
  312. background: rgba(255,255,255,0.5);
  313. }
  314. .brick-back {
  315. transform:rotateY(180deg) translate3d(0,0,calc(var(--width) / 2));
  316. background: rgba(255,255,255,0.6);
  317. }
  318. .brick {
  319. width: var(--width);
  320. height: var(--height);
  321. transform-origin: calc(var(--width) / 2) calc(var(--height) / 2);
  322. margin: 0 auto calc(var(--width) / 12);
  323. }
  324. .brick.enter {
  325. transition: 0.5s all;
  326. transform: rotateX(-30deg) rotateY(45deg);
  327. }
  328. .brick.enter .face {
  329. transition: 0.5s all;
  330. opacity: 1;
  331. }
  332. .brick-1 {
  333. animation: rorate 2s 1s infinite linear;
  334. transform: rotateX(-30deg) rotateY(45deg) translateZ(30px);
  335. }
  336. .brick-2 {
  337. animation: rorate 2s 0.75s infinite linear;
  338. transform: rotateX(-30deg) rotateY(45deg) translateZ(20px);
  339. }
  340. .brick-3 {
  341. animation: rorate 2s 0.5s infinite linear;
  342. transform: rotateX(-30deg) rotateY(45deg) translateZ(10px);
  343. }
  344. .face {
  345. width:var(--width);
  346. height: var(--height);
  347. }
  348. .brick-front {
  349. transform:translate3d(0,0, calc(var(--width) / 2));
  350. }
  351. .brick-top {
  352. width:var(--width);
  353. height:var(--width);
  354. transform:rotateX(90deg) translate3d(0,0, calc(var(--width) / 2));
  355. }
  356. .brick-bottom {
  357. width:var(--width);
  358. height:var(--width);
  359. transform: rotateX(-90deg) translate3d(0,0, calc(var(--height) / -2));
  360. }
  361. .brick-left {
  362. transform:rotateY(-90deg) translate3d(0,0,calc(var(--width) / 2));
  363. }
  364. .brick-right {
  365. transform:rotateY(90deg) translate3d(0,0,calc(var(--width) / 2));
  366. }
  367. .brick-back {
  368. transform:rotateY(180deg) translate3d(0,0,calc(var(--width) / 2));
  369. }
  370. @keyframes rorate {
  371. 0% {
  372. transform: rotateX(-30deg) rotateY(-45deg) ;
  373. }
  374. 50% {
  375. transform: rotateX(-30deg) rotateY(-315deg) ;
  376. }
  377. 100%{
  378. transform: rotateX(-30deg) rotateY(-315deg) ;
  379. }
  380. }