You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
929 B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. if (!uni.getStorageSync('language')) {
  5. this.$i18n.locale = 'en'
  6. //#ifdef H5
  7. this.$router.go(0);
  8. //#endif
  9. //#ifdef APP-PLUS
  10. //#endif
  11. uni.setStorage({
  12. key: 'language',
  13. data: 'en'
  14. })
  15. uni.setLocale('en')
  16. }
  17. uni.$resMessage = this.$t('message')
  18. },
  19. onShow: function() {},
  20. onHide: function() {}
  21. }
  22. </script>
  23. <style lang="scss">
  24. /*每个页面公共css */
  25. @import '@/uni_modules/uview-ui/theme.scss';
  26. body {
  27. // background-color: #000;
  28. }
  29. uni-toast {
  30. z-index: 100000000;
  31. }
  32. .u-modal {
  33. // background-color: #000;
  34. }
  35. .u-modal__title {
  36. // color: #fff !important;
  37. }
  38. @media screen and (min-width: 960px) {
  39. .bx {
  40. //版心
  41. max-width: 375px;
  42. margin: 0px auto;
  43. }
  44. }
  45. @media screen and (min-width: 960px) {
  46. .popup-bx {
  47. left: 50% !important;
  48. transform: translateX(-50%);
  49. }
  50. }
  51. </style>