App.vue 5.8 KB

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