App.vue 5.9 KB

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