t-p-ningdongyunying.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. }
  55. image {
  56. width: 750rpx;
  57. }
  58. .box {
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. }
  63. </style>