App.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!-- App.vue -->
  2. <script>
  3. export default {
  4. onLaunch: function() {
  5. console.log('App Launch')
  6. },
  7. onShow: function(options) {
  8. console.log('App Show')
  9. //传递的参数 query
  10. if (options.query) {
  11. const shareADId = options.query.shareADId;
  12. const shareUserId = options.query.shareUserId;
  13. if(shareADId&&shareUserId) {
  14. uni.reLaunch({
  15. url: `/pagesHome/activityDetail?shareADId=${shareADId}&shareUserId=${shareUserId}`
  16. });
  17. }
  18. }
  19. },
  20. onHide: function() {
  21. console.log('App Hide')
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  27. @import "uview-plus/index.scss";
  28. // @font-face {
  29. // font-family: 'PingFang-SC';
  30. // src: url("https://oss.familydaf.cn/sxsnfile/20260107/3e1c8b16b1164d3c90c23392d9190389.ttf");
  31. // }
  32. // @font-face {
  33. // font-family: 'PingFangSC';
  34. // src: url("https://oss.familydaf.cn/sxsnfile/20260107/b8d1e3edde07457392dfe6bd8734e29d.ttf");
  35. // }
  36. // @font-face {
  37. // font-family: 'DINAlternate';
  38. // src: url("https://oss.familydaf.cn/sxsnfile/20260107/fa6b266591ae44fd9ae51e3452d9727d.otf");
  39. // }
  40. .tab_page{
  41. background: #F7F7F7;
  42. padding: 0 24rpx 184rpx;
  43. box-sizing: border-box;
  44. }
  45. .common_page{
  46. background: #F7F7F7;
  47. padding: 0 24rpx 40rpx;
  48. box-sizing: border-box;
  49. }
  50. .top_bg_img{
  51. width: 100%;
  52. position: fixed;
  53. top: 0;
  54. left: 0;
  55. }
  56. .adf{
  57. display: flex;
  58. }
  59. .adffc{
  60. display: flex;
  61. flex-direction: column;
  62. }
  63. .adfac{
  64. display: flex;
  65. align-items: center;
  66. }
  67. .adfacjc{
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. }
  72. .adfacjb{
  73. display: flex;
  74. align-items: center;
  75. justify-content: space-between;
  76. }
  77. .adffcjb{
  78. display: flex;
  79. flex-direction: column;
  80. justify-content: space-between;
  81. }
  82. .adffcacjc{
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. justify-content: center;
  87. }
  88. .adffcac{
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. }
  93. .adffcacjb{
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. justify-content: space-between;
  98. }
  99. .dataEmpty{
  100. flex: 1;
  101. display: flex;
  102. flex-direction: column;
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. .setinp{
  107. font-size: 30rpx !important;
  108. color: #252525 !important;
  109. line-height: 42rpx !important;
  110. text-align: right !important;
  111. // caret-color: #252525 !important;
  112. }
  113. </style>