t-p-ningdongyunying.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view>
  3. <!-- 左右滚动 -->
  4. <!-- <swiper duration="500">
  5. <swiper-item>
  6. <scroll-view scroll-y>
  7. <view class="scroll__box">
  8. <t-p-n-section-1></t-p-n-section-1>
  9. </view>
  10. </scroll-view>
  11. </swiper-item>
  12. <swiper-item>
  13. <scroll-view scroll-y>
  14. <view class="scroll__box">
  15. <t-p-n-section-2></t-p-n-section-2>
  16. </view>
  17. </scroll-view>
  18. </swiper-item>
  19. </swiper> -->
  20. <view class="content">
  21. <image src="./img/bg.jpg" mode="widthFix"></image>
  22. <view class="box">
  23. <t-p-n-section-1></t-p-n-section-1>
  24. <t-p-n-section-2></t-p-n-section-2>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. name: "t-p-ningdongyunying",
  32. data() {
  33. return {
  34. };
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. // 左右滚动
  40. // page{
  41. // background-image: url(./img/bg.jpg);
  42. // background-size: 100% 100%;
  43. // background-repeat: no-repeat;
  44. // }
  45. // /deep/uni-swiper .uni-swiper-wrapper {
  46. // height: calc(100vh);
  47. // }
  48. // .scroll__box {
  49. // height: 100vh;
  50. // }
  51. // 上下滑动
  52. .content {
  53. position: relative;
  54. padding-top: 200rpx;
  55. }
  56. image {
  57. width: 750rpx;
  58. }
  59. .box {
  60. position: absolute;
  61. top: 0rpx;
  62. left: 0;
  63. }
  64. </style>