App.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <script>
  2. export default {
  3. // #ifdef APP
  4. globalData:{
  5. webSocket:''
  6. },
  7. // #endif
  8. onLaunch: function() {
  9. console.log('App Launch')
  10. },
  11. onShow: function() {
  12. console.log('App Show')
  13. },
  14. onHide: function() {
  15. console.log('App Hide')
  16. }
  17. }
  18. </script>
  19. <style>
  20. .fx-r {
  21. display: flex;
  22. flex-direction: row;
  23. flex-wrap: wrap;
  24. }
  25. .fx-h {
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .fx-ac {
  30. justify-content: center;
  31. }
  32. .fx-as {
  33. justify-content: flex-start;
  34. }
  35. .fx-ae {
  36. justify-content: flex-end;
  37. }
  38. .fx-bc {
  39. align-items: center;
  40. }
  41. .fx-be {
  42. align-items: flex-end;
  43. }
  44. .fx-bs {
  45. align-items: flex-start;
  46. }
  47. .pr {
  48. position: relative;
  49. }
  50. .pa {
  51. position: absolute;
  52. }
  53. .font-14 {
  54. font-size: 14px !important;
  55. }
  56. .font-12 {
  57. font-size: 12px !important;
  58. }
  59. .text-r {
  60. text-align: right
  61. }
  62. .text-l {
  63. text-align: left
  64. }
  65. .mk {
  66. background: #000;
  67. opacity: 0.5;
  68. position: fixed;
  69. top: 0px;
  70. left: 0px;
  71. right: 0px;
  72. bottom: 0px;
  73. z-index: 100
  74. }
  75. .ihover:active {
  76. opacity: .5
  77. }
  78. .app-more {
  79. text-align: center;
  80. height: 30px;
  81. }
  82. .app-more-button {
  83. position: relative;
  84. height: 30px;
  85. }
  86. .app-more-button .a-m-c {
  87. position: absolute;
  88. z-index: 9;
  89. width: 100%;
  90. height: 30px;
  91. }
  92. .placeholder-style {
  93. color: #d5d5d9;
  94. font-size: 15px;
  95. }
  96. .placeholder-style2 {
  97. color: #666666;
  98. font-size: 14px;
  99. }
  100. .placeholder-999 {
  101. color: #999999;
  102. font-size: 12px;
  103. }
  104. .bgChangColor {
  105. background-image: linear-gradient(to right, #ff6879, #e81a62)
  106. }
  107. .scrollHide::-webkit-scrollbar {
  108. width: 0;
  109. height: 0;
  110. color: transparent;
  111. }
  112. .font-size18 {
  113. font-size: 18px !important;
  114. }
  115. .loading.complete {
  116. font-size: 14px;
  117. color: #ccc;
  118. padding: 10px 0;
  119. }
  120. /* #ifdef APP-PLUS-NVUE */
  121. .loading .lodingImage {
  122. width: 20px;
  123. height: 20px;
  124. animation: rotate 1.5s linear infinite;
  125. margin-right: 4px;
  126. }
  127. .loading .lodingText {
  128. margin-left: 3px;
  129. position: relative;
  130. font-size: 12px;
  131. }
  132. /* #endif */
  133. /* #ifndef APP-PLUS-NVUE */
  134. /*****超出一行省略*****/
  135. .shenlueStyle {
  136. overflow: hidden;
  137. white-space: nowrap;
  138. text-overflow: ellipsis
  139. }
  140. @import url("/components/css/animate.css");
  141. .dn {
  142. display: none !important;
  143. }
  144. .db {
  145. display: block !important;
  146. }
  147. .fl {
  148. float: left
  149. }
  150. .fr {
  151. float: right
  152. }
  153. .border-none {
  154. border: none !important;
  155. }
  156. .clearfix {
  157. zoom: 1
  158. }
  159. .fx-g1 {
  160. flex-grow: 1;
  161. }
  162. .fx-g2 {
  163. flex-grow: 2;
  164. }
  165. .fx-g3 {
  166. flex-grow: 3;
  167. }
  168. .fx-g4 {
  169. flex-grow: 4;
  170. }
  171. .fx-s {
  172. flex-shrink: 0;
  173. }
  174. page {
  175. background: #F8F6F6;
  176. -webkit-text-size-adjust: none
  177. }
  178. .shenlueStyle2 {
  179. text-overflow: -o-ellipsis-lastline;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. display: -webkit-box;
  183. -webkit-line-clamp: 2;
  184. line-clamp: 2;
  185. -webkit-box-orient: vertical;
  186. }
  187. .shenlueStyle3 {
  188. text-overflow: -o-ellipsis-lastline;
  189. overflow: hidden;
  190. text-overflow: ellipsis;
  191. display: -webkit-box;
  192. -webkit-line-clamp: 3;
  193. line-clamp: 3;
  194. -webkit-box-orient: vertical;
  195. }
  196. .loading {
  197. text-align: center;
  198. height: 30px;
  199. color: #4A2723;
  200. line-height: 30px;
  201. width: 100%;
  202. }
  203. .load-app {
  204. position: absolute;
  205. width: 100%;
  206. height: 100%;
  207. top: 0;
  208. left: 0;
  209. }
  210. .clearfix:after {
  211. clear: both;
  212. display: block;
  213. visibility: hidden;
  214. overflow: hidden;
  215. height: 0;
  216. content: '\20'
  217. }
  218. button.nt {
  219. background: transparent;
  220. font-size: 12px;
  221. padding: 0;
  222. border-radius: 0;
  223. color: #303033;
  224. margin: 0px;
  225. line-height: 1;
  226. overflow: visible
  227. }
  228. button.nt::after {
  229. border: 0;
  230. }
  231. @keyframes rotate {
  232. from {
  233. transform: rotate(0deg)
  234. }
  235. to {
  236. transform: rotate(359deg)
  237. }
  238. }
  239. .ripple,
  240. button.ripple {
  241. position: relative;
  242. overflow: hidden
  243. }
  244. .ripple:after,
  245. button.ripple:after {
  246. content: "";
  247. background: rgba(255, 255, 255, 0.3);
  248. display: block;
  249. position: absolute;
  250. border-radius: 50%;
  251. padding-top: 240%;
  252. padding-left: 240%;
  253. margin-top: -120%;
  254. margin-left: -120%;
  255. opacity: 0;
  256. transition: all 1s
  257. }
  258. .ripple:active:after,
  259. button.ripple:active:after {
  260. padding-top: 0;
  261. padding-left: 0;
  262. margin-top: 0;
  263. margin-left: 0;
  264. opacity: 1;
  265. transition: 0s
  266. }
  267. .pbl-box {
  268. -moz-column-count: 2;
  269. -webkit-column-count: 2;
  270. column-count: 2;
  271. -moz-column-gap: 5px;
  272. -webkit-column-gap: 5px;
  273. }
  274. .pbl-item {
  275. -webkit-column-break-inside: avoid;
  276. -moz-page-break-inside: avoid;
  277. -webkit-column-break-inside: avoid;
  278. break-inside: avoid;
  279. }
  280. .app-more image {
  281. width: 20px;
  282. height: 20px;
  283. animation: rotate 1.5s linear infinite;
  284. margin-right: 4px;
  285. }
  286. .app-more text {
  287. margin-left: 3px;
  288. position: relative;
  289. top: -4px;
  290. font-size: 12px;
  291. }
  292. .app-more-button text {
  293. padding: 0px 20px;
  294. background: #f2f2f2;
  295. }
  296. .app-more-button .hr {
  297. background: #e5e5e5;
  298. width: 90%;
  299. height: 1px;
  300. margin-left: 5%;
  301. position: absolute;
  302. top: 16px;
  303. }
  304. img[lazy=loading] {
  305. opacity: 0;
  306. }
  307. img[lazy=loaded] {
  308. transition: opacity 1s ease;
  309. }
  310. .loading image {
  311. width: 20px;
  312. height: 20px;
  313. animation: rotate 1.5s linear infinite;
  314. margin-right: 4px;
  315. }
  316. .loading text {
  317. margin-left: 3px;
  318. position: relative;
  319. font-size: 12px;
  320. }
  321. @keyframes rotate {
  322. from {
  323. transform: rotate(0deg)
  324. }
  325. to {
  326. transform: rotate(359deg)
  327. }
  328. }
  329. @keyframes posterScale {
  330. 0% {
  331. transform: scale(0.9);
  332. }
  333. 100% {
  334. transform: scale(1.2);
  335. }
  336. }
  337. ::-webkit-scrollbar {
  338. width: 0;
  339. height: 0;
  340. color: transparent;
  341. }
  342. .load-app image {
  343. width: 60px;
  344. height: 60px;
  345. }
  346. .load-app .tipbb {
  347. font-size: 14px;
  348. color: #ccc;
  349. background: #ccc -webkit-linear-gradient(left, #ccc, #7d7b7b 50%, #474646 90%, #ccc) no-repeat 0 0;
  350. background-size: 20% 100%;
  351. -webkit-background-clip: text;
  352. -webkit-text-fill-color: transparent;
  353. text-align: center;
  354. font-weight: bold;
  355. text-decoration: underline;
  356. }
  357. .load-app .tipbb {
  358. -webkit-animation: slideShine 2s linear infinite;
  359. animation: slideShine 2s linear infinite;
  360. margin-top: 10px;
  361. }
  362. @-webkit-keyframes slideShine {
  363. 0% {
  364. background-position: 0 0;
  365. }
  366. 100% {
  367. background-position: 100% 100%;
  368. }
  369. }
  370. @keyframes slideShine {
  371. 0% {
  372. background-position: 0 0;
  373. }
  374. 100% {
  375. background-position: 100% 100%;
  376. }
  377. }
  378. /* #endif */
  379. </style>