App.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <script>
  2. export default {
  3. globalData: {
  4. userType: -1,
  5. tabIndex: 0,
  6. },
  7. onLaunch: function() {
  8. console.log('App Launch')
  9. },
  10. onShow: function() {
  11. console.log('App Show')
  12. },
  13. onHide: function() {
  14. console.log('App Hide')
  15. }
  16. }
  17. </script>
  18. <style lang="scss">
  19. /*每个页面公共css */
  20. @import "@/uni_modules/uview-ui/index.scss";
  21. .content{
  22. .title-box {
  23. position: relative;
  24. padding-bottom: 80rpx;
  25. width: 100%;
  26. height: 344rpx;
  27. color: white;
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. align-items: center;
  32. background-size: 100% 100%;
  33. .title{
  34. width: 100%;
  35. height: 50rpx;
  36. height: fit-content;
  37. display: flex;
  38. justify-content: center;
  39. align-items: center;
  40. }
  41. }
  42. .container-box{
  43. position: relative;
  44. margin-top: -120rpx;
  45. padding: 40rpx 30rpx;
  46. width: 100%;
  47. height: fit-content;
  48. // display: flex;
  49. // flex-direction: column;
  50. // align-items: center;
  51. background: #f0f7ff;
  52. border-radius: 60rpx 60rpx 0 0;
  53. z-index: 2;
  54. }
  55. }
  56. </style>