App.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('LUMI Web App Launch')
  5. uni.setLocale("en")
  6. },
  7. onShow: function() {
  8. console.log('LUMI Web App Show')
  9. },
  10. onHide: function() {
  11. console.log('LUMI Web App Hide')
  12. }
  13. }
  14. </script>
  15. <style lang="scss">
  16. /*每个页面公共css */
  17. @import "@/styles/common.scss";
  18. html {
  19. --primary-color: #38D29A;
  20. --accent-color: #222;
  21. }
  22. .flex {
  23. display: flex;
  24. align-items: flex-start;
  25. }
  26. .flexc {
  27. display: flex;
  28. align-items: center;
  29. }
  30. .flexcc {
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. }
  35. .flexcn {
  36. display: flex;
  37. align-items: center;
  38. justify-content: flex-end;
  39. }
  40. .flexcw {
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. }
  45. .flexcr {
  46. display: flex;
  47. flex-wrap: wrap;
  48. align-items: center;
  49. }
  50. .flexccr {
  51. display: flex;
  52. flex-wrap: wrap;
  53. align-items: center;
  54. justify-content: center;
  55. }
  56. .flexl {
  57. display: flex;
  58. flex-direction: column;
  59. }
  60. .flexlc {
  61. display: flex;
  62. align-items: center;
  63. flex-direction: column;
  64. }
  65. .flexln {
  66. display: flex;
  67. align-items: flex-end;
  68. flex-direction: column;
  69. }
  70. .flexlcc {
  71. display: flex;
  72. align-items: center;
  73. flex-direction: column;
  74. justify-content: center;
  75. }
  76. .flex1 {
  77. flex: 1;
  78. }
  79. .flex2 {
  80. flex: 2;
  81. }
  82. .flex3 {
  83. flex: 3;
  84. }
  85. .flex4 {
  86. flex: 4;
  87. }
  88. .flex5 {
  89. flex: 5;
  90. }
  91. .flex6 {
  92. flex: 6;
  93. }
  94. .center {
  95. text-align: center;
  96. }
  97. .right {
  98. text-align: right;
  99. }
  100. .flex-end {
  101. justify-content: flex-end;
  102. }
  103. .primary-text {
  104. color: $uni-color-primary;
  105. }
  106. .accent-text {
  107. color: $uni-color-accent;
  108. }
  109. .bold {
  110. font-weight: bold;
  111. }
  112. .weight {
  113. font-weight: 900;
  114. }
  115. button::after {
  116. border: none !important;
  117. border-radius: 0;
  118. transition: all .2s;
  119. /*content: none !important;*/
  120. }
  121. button:not([disabled]):active::after {
  122. background: rgba(50, 50, 50, .15);
  123. }
  124. button[disabled] {
  125. background-color: #ddd !important;
  126. }
  127. image {
  128. width: 100%;
  129. height: 100%;
  130. }
  131. .margin0 {
  132. margin: 0 !important;
  133. }
  134. .padding0 {
  135. padding: 0 !important;
  136. }
  137. .padding16 {
  138. padding: 32rpx !important;
  139. }
  140. .margin16 {
  141. margin: 32rpx !important;
  142. }
  143. .hide {
  144. opacity: 0;
  145. }
  146. /* #ifdef H5 */
  147. .ui-card {
  148. padding: 32rpx;
  149. position: relative;
  150. border-radius: 16rpx;
  151. background-color: white;
  152. box-shadow: 0px 1px 18rpx rgba(0, 0, 0, 0.2);
  153. }
  154. /* #endif */
  155. /* #ifndef H5 */
  156. .ui-card {
  157. padding: 32rpx;
  158. position: relative;
  159. border-radius: 16rpx;
  160. background-color: white;
  161. box-shadow: 0px 1px 18rpx rgba(0, 0, 0, 0.12);
  162. }
  163. /* #endif */
  164. .card-flat,
  165. .ui-card-flat {
  166. padding: 0;
  167. border-radius: 0;
  168. }
  169. .ui-link {
  170. margin: 5rpx;
  171. color: #007aff;
  172. font-size: 30rpx;
  173. text-decoration: underline;
  174. }
  175. .ui-link-inline {
  176. margin: 0 5rpx;
  177. color: #007aff;
  178. text-decoration: underline;
  179. }
  180. .ui-link-no {
  181. margin: 0 5rpx;
  182. color: #007aff;
  183. }
  184. .ui-link:active,
  185. .ui-link-no:active,
  186. .ui-link-inline:active {
  187. color: #ff0000;
  188. }
  189. .card-button:active,
  190. .card-button.button-hover {
  191. background-color: #eee !important;
  192. }
  193. .keyboard-divide {
  194. width: 100%;
  195. font-size: 1pt;
  196. color: transparent;
  197. }
  198. .sign-powerd-by {
  199. left: 50%;
  200. width: 238rpx;
  201. height: 80rpx;
  202. bottom: 48rpx;
  203. margin-left: -119rpx;
  204. position: absolute;
  205. }
  206. .item-didide-top {
  207. border-top: 1px solid #eee;
  208. }
  209. @media screen and (max-width: 375px) {
  210. .sign-powerd-by {
  211. width: 198rpx;
  212. height: 66rpx;
  213. bottom: 20rpx;
  214. margin-left: -99rpx;
  215. }
  216. }
  217. @media screen and (max-width: 320px) {
  218. .sign-powerd-by {
  219. width: 158rpx;
  220. height: 53rpx;
  221. bottom: 10rpx;
  222. margin-left: -79rpx;
  223. }
  224. }
  225. </style>