App.vue 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
  5. console.log('App Launch')
  6. },
  7. onShow: function() {
  8. console.log('App Show')
  9. },
  10. onHide: function() {
  11. console.log('App Hide')
  12. }
  13. }
  14. </script>
  15. <style>
  16. /*每个页面公共css */
  17. /* 解决头条小程序组件内引入字体不生效的问题 */
  18. /* #ifdef MP-TOUTIAO */
  19. @font-face {
  20. font-family: uniicons;
  21. src: url("/static/uni.ttf");
  22. }
  23. /* #endif */
  24. .home{
  25. width: 97%;
  26. margin: 0 auto;
  27. padding-top: 23%;
  28. }
  29. /deep/.uni-forms-item__inner{
  30. padding-bottom: 0rpx !important;
  31. margin-bottom: 30rpx !important;
  32. border-bottom: 0.5rpx solid #CCCCCC !important;
  33. }
  34. /* /deep/ .share .uni-popup .uni-popup__wrapper{
  35. width: 70% !important;
  36. border-radius: 15rpx !important;
  37. }
  38. /deep/ .share1 .uni-popup .uni-popup__wrapper{
  39. width: 85% !important;
  40. } */
  41. </style>