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.

56 lines
859 B

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. },
  21. onHide: function() {
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. /*每个页面公共css */
  27. @import '@/uni_modules/uview-ui/theme.scss';
  28. body{
  29. background-color: #000;
  30. }
  31. uni-toast {
  32. z-index: 100000000;
  33. }
  34. .u-modal{
  35. background-color: #000;
  36. }
  37. .u-modal__title{
  38. color: #fff !important;
  39. }
  40. @media screen and (min-width: 960px) {
  41. .bx{ //版心
  42. // max-width: 960px;
  43. max-width: 375px;
  44. // max-width: 765px;
  45. margin: 0px auto;
  46. }
  47. }
  48. </style>