index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="page-box page-box-bg-fff" >
  3. <view class="top-data"></view>
  4. <view class="content-data "></view>
  5. <view class="bottom-data sys-background-fff">
  6. <en-tab ></en-tab>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import EnNav from "@/components/en-utils/en-nav/en-nav.vue";
  12. import EnTab from "@/components/en-utils/en-tab/en-tab.vue";
  13. export default {
  14. components: {
  15. EnTab,
  16. EnNav
  17. },
  18. data() {
  19. return {
  20. }
  21. },
  22. watch: {
  23. },
  24. onPageScroll(e) {
  25. if(e.scrollTop > 10){
  26. this.bgckgroundBox = '#16BB5D';
  27. this.isScroll = true;
  28. }else{
  29. this.bgckgroundBox = 'transparent';
  30. this.isScroll = false;
  31. }
  32. },
  33. mounted() {
  34. },
  35. methods: {
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .page-box{
  41. height: 100vh;
  42. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-bg.png?imageMogr2/quality/20");
  43. background-repeat: no-repeat;
  44. background-size: 100% auto;
  45. display: flex;
  46. flex-direction: column;
  47. .top-data{
  48. }
  49. .content-data{
  50. flex: 1;
  51. overflow: hidden;
  52. }
  53. .bottom-data{
  54. }
  55. }
  56. </style>