App.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  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. /* #ifndef APP-PLUS-NVUE */
  121. /*****超出一行省略*****/
  122. .shenlueStyle {
  123. overflow: hidden;
  124. white-space: nowrap;
  125. text-overflow: ellipsis
  126. }
  127. @import url("/components/css/animate.css");
  128. .dn {
  129. display: none !important;
  130. }
  131. .db {
  132. display: block !important;
  133. }
  134. .fl {
  135. float: left
  136. }
  137. .fr {
  138. float: right
  139. }
  140. .border-none {
  141. border: none !important;
  142. }
  143. .clearfix {
  144. zoom: 1
  145. }
  146. .fx-g1 {
  147. flex-grow: 1;
  148. }
  149. .fx-g2 {
  150. flex-grow: 2;
  151. }
  152. .fx-g3 {
  153. flex-grow: 3;
  154. }
  155. .fx-g4 {
  156. flex-grow: 4;
  157. }
  158. .fx-s {
  159. flex-shrink: 0;
  160. }
  161. page {
  162. background: #F8F6F6;
  163. -webkit-text-size-adjust: none
  164. }
  165. .shenlueStyle2 {
  166. text-overflow: -o-ellipsis-lastline;
  167. overflow: hidden;
  168. text-overflow: ellipsis;
  169. display: -webkit-box;
  170. -webkit-line-clamp: 2;
  171. line-clamp: 2;
  172. -webkit-box-orient: vertical;
  173. }
  174. .shenlueStyle3 {
  175. text-overflow: -o-ellipsis-lastline;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. display: -webkit-box;
  179. -webkit-line-clamp: 3;
  180. line-clamp: 3;
  181. -webkit-box-orient: vertical;
  182. }
  183. .loading {
  184. text-align: center;
  185. height: 30px;
  186. color: #4A2723;
  187. line-height: 30px;
  188. width: 100%;
  189. }
  190. .load-app {
  191. position: absolute;
  192. width: 100%;
  193. height: 100%;
  194. top: 0;
  195. left: 0;
  196. }
  197. .clearfix:after {
  198. clear: both;
  199. display: block;
  200. visibility: hidden;
  201. overflow: hidden;
  202. height: 0;
  203. content: '\20'
  204. }
  205. button.nt {
  206. background: transparent;
  207. font-size: 12px;
  208. padding: 0;
  209. border-radius: 0;
  210. color: #303033;
  211. margin: 0px;
  212. line-height: 1;
  213. overflow: visible
  214. }
  215. button.nt::after {
  216. border: 0;
  217. }
  218. @keyframes rotate {
  219. from {
  220. transform: rotate(0deg)
  221. }
  222. to {
  223. transform: rotate(359deg)
  224. }
  225. }
  226. .ripple,
  227. button.ripple {
  228. position: relative;
  229. overflow: hidden
  230. }
  231. .ripple:after,
  232. button.ripple:after {
  233. content: "";
  234. background: rgba(255, 255, 255, 0.3);
  235. display: block;
  236. position: absolute;
  237. border-radius: 50%;
  238. padding-top: 240%;
  239. padding-left: 240%;
  240. margin-top: -120%;
  241. margin-left: -120%;
  242. opacity: 0;
  243. transition: all 1s
  244. }
  245. .ripple:active:after,
  246. button.ripple:active:after {
  247. padding-top: 0;
  248. padding-left: 0;
  249. margin-top: 0;
  250. margin-left: 0;
  251. opacity: 1;
  252. transition: 0s
  253. }
  254. .pbl-box {
  255. -moz-column-count: 2;
  256. -webkit-column-count: 2;
  257. column-count: 2;
  258. -moz-column-gap: 5px;
  259. -webkit-column-gap: 5px;
  260. }
  261. .pbl-item {
  262. -webkit-column-break-inside: avoid;
  263. -moz-page-break-inside: avoid;
  264. -webkit-column-break-inside: avoid;
  265. break-inside: avoid;
  266. }
  267. .app-more image {
  268. width: 20px;
  269. height: 20px;
  270. animation: rotate 1.5s linear infinite;
  271. margin-right: 4px;
  272. }
  273. .app-more text {
  274. margin-left: 3px;
  275. position: relative;
  276. top: -4px;
  277. font-size: 12px;
  278. }
  279. .app-more-button text {
  280. padding: 0px 20px;
  281. background: #f2f2f2;
  282. }
  283. .app-more-button .hr {
  284. background: #e5e5e5;
  285. width: 90%;
  286. height: 1px;
  287. margin-left: 5%;
  288. position: absolute;
  289. top: 16px;
  290. }
  291. img[lazy=loading] {
  292. opacity: 0;
  293. }
  294. img[lazy=loaded] {
  295. transition: opacity 1s ease;
  296. }
  297. .loading image {
  298. width: 20px;
  299. height: 20px;
  300. animation: rotate 1.5s linear infinite;
  301. margin-right: 4px;
  302. }
  303. .loading text {
  304. margin-left: 3px;
  305. position: relative;
  306. font-size: 12px;
  307. }
  308. @keyframes rotate {
  309. from {
  310. transform: rotate(0deg)
  311. }
  312. to {
  313. transform: rotate(359deg)
  314. }
  315. }
  316. @keyframes posterScale {
  317. 0% {
  318. transform: scale(0.9);
  319. }
  320. 100% {
  321. transform: scale(1.2);
  322. }
  323. }
  324. ::-webkit-scrollbar {
  325. width: 0;
  326. height: 0;
  327. color: transparent;
  328. }
  329. .load-app image {
  330. width: 60px;
  331. height: 60px;
  332. }
  333. .load-app .tipbb {
  334. font-size: 14px;
  335. color: #ccc;
  336. background: #ccc -webkit-linear-gradient(left, #ccc, #7d7b7b 50%, #474646 90%, #ccc) no-repeat 0 0;
  337. background-size: 20% 100%;
  338. -webkit-background-clip: text;
  339. -webkit-text-fill-color: transparent;
  340. text-align: center;
  341. font-weight: bold;
  342. text-decoration: underline;
  343. }
  344. .load-app .tipbb {
  345. -webkit-animation: slideShine 2s linear infinite;
  346. animation: slideShine 2s linear infinite;
  347. margin-top: 10px;
  348. }
  349. @-webkit-keyframes slideShine {
  350. 0% {
  351. background-position: 0 0;
  352. }
  353. 100% {
  354. background-position: 100% 100%;
  355. }
  356. }
  357. @keyframes slideShine {
  358. 0% {
  359. background-position: 0 0;
  360. }
  361. 100% {
  362. background-position: 100% 100%;
  363. }
  364. }
  365. /* #endif */
  366. </style>