鸿宇研学生前端代码
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.

33 lines
685 B

2 months ago
2 days ago
2 months ago
2 months ago
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. document.addEventListener('UniAppJSBridgeReady', function() {
  5. uni.webView.getEnv(function(res) {
  6. console.log('当前环境:' + JSON.stringify(res));
  7. });
  8. });
  9. /* 动态引入script */
  10. const script = document.createElement('script')
  11. script.src = '/static/js/uni.webview.1.5.6.js'
  12. document.body.appendChild(script)
  13. },
  14. onShow: function() {
  15. this.$store.commit('initConfig')
  16. },
  17. onHide: function() {
  18. }
  19. }
  20. </script>
  21. <style>
  22. @import url("common.scss");
  23. /*每个页面公共css */
  24. body{
  25. background-color: #f7f7f7;
  26. font-size: 30rpx;
  27. }
  28. .page{
  29. padding-top: var(--window-top);
  30. }
  31. </style>