App.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. .tab_page{
  37. background: #F7F7F7;
  38. padding: 0 24rpx 184rpx;
  39. box-sizing: border-box;
  40. }
  41. .common_page{
  42. background: #F7F7F7;
  43. padding: 0 24rpx 40rpx;
  44. box-sizing: border-box;
  45. }
  46. .top_bg_img{
  47. width: 100%;
  48. position: fixed;
  49. top: 0;
  50. left: 0;
  51. }
  52. .adf{
  53. display: flex;
  54. }
  55. .adffc{
  56. display: flex;
  57. flex-direction: column;
  58. }
  59. .adfac{
  60. display: flex;
  61. align-items: center;
  62. }
  63. .adfacjc{
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. }
  68. .adfacjb{
  69. display: flex;
  70. align-items: center;
  71. justify-content: space-between;
  72. }
  73. .adffcjb{
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. }
  78. .adffcacjc{
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .adffcac{
  85. display: flex;
  86. flex-direction: column;
  87. align-items: center;
  88. }
  89. .adffcacjb{
  90. display: flex;
  91. flex-direction: column;
  92. align-items: center;
  93. justify-content: space-between;
  94. }
  95. .dataEmpty{
  96. flex: 1;
  97. display: flex;
  98. flex-direction: column;
  99. align-items: center;
  100. justify-content: center;
  101. }
  102. .setinp{
  103. font-size: 30rpx !important;
  104. color: #252525 !important;
  105. line-height: 42rpx !important;
  106. text-align: right !important;
  107. // caret-color: #252525 !important;
  108. }
  109. </style>