index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <view class="">
  3. <view class="swiper">
  4. <u-swiper :list="swiper" keyName="url" height="100%" ></u-swiper>
  5. <view class="banner">
  6. <view class="logo">
  7. <image src="../../static/LOGO@2x.png" mode="widthFix"></image>
  8. </view>
  9. <view class="bannertitle">
  10. 遇见森林瑜伽
  11. </view>
  12. <view class="subtitle">
  13. 明心静待花开
  14. </view>
  15. </view>
  16. </view>
  17. <view class="contentTops">
  18. <view class="contentTop">
  19. <view class="iconl">
  20. </view>
  21. <view class="contentTop-title">
  22. 日月峡森林康养
  23. </view>
  24. <view class="iconr">
  25. <image src="../../static/senlinicon@2x.png" mode="widthFix"></image>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="list">
  30. <view class="video">
  31. <!-- 这是视频 -->
  32. <video poster=""></video>
  33. </view>
  34. <view class="contentfooter">
  35. <view class="contentfooter-title">
  36. 森林瑜伽
  37. </view>
  38. <view class="contentfooter-subtitle">
  39. 夏日的森林,雨水充沛了山林,鲜花盛放,溪水潺潺。漫步于自然之中,感受清新的空气,放空心灵,沉醉于山雾之中,感受不同于城市的静谧与轻松
  40. </view>
  41. </view>
  42. </view>
  43. <view class="list">
  44. <view class="video">
  45. <!-- 这是视频 -->
  46. <video poster=""></video>
  47. </view>
  48. <view class="contentfooter">
  49. <view class="contentfooter-title">
  50. 森林瑜伽
  51. </view>
  52. <view class="contentfooter-subtitle">
  53. 夏日的森林,雨水充沛了山林,鲜花盛放,溪水潺潺。漫步于自然之中,感受清新的空气,放空心灵,沉醉于山雾之中,感受不同于城市的静谧与轻松
  54. </view>
  55. </view>
  56. </view>
  57. <view class="" style="padding-top: 100rpx;width: 100%;"></view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. swiper: [
  65. ""
  66. ],
  67. }
  68. },
  69. onLoad() {
  70. this.init()
  71. },
  72. methods: {
  73. init(){
  74. let phone=uni.getStorageSync("phone")
  75. let code=uni.getStorageSync("code")
  76. uni.$u.http.post('/api/config/list',{phone,code},{
  77. custom: {
  78. auth: true
  79. }
  80. }).then((res) => {
  81. console.log(res)
  82. // this.swiper=res[9].value
  83. uni.setStorageSync("data",res)
  84. }).catch((err) => {
  85. console.log( err)
  86. })
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="less">
  92. page{
  93. font-family: PingFang-SC-Heavy, PingFang-SC;
  94. background: #ffffff;
  95. }
  96. .swiper{
  97. height: 100vh;
  98. // width: 100%;
  99. position: relative;
  100. }
  101. .banner{
  102. width: 100%;
  103. position: absolute;
  104. left: 0;top: 0;
  105. // background-color: rgba(0,0,0,.5);
  106. height: 100vh;
  107. text-align: center;
  108. .logo{
  109. // text-align: center;
  110. padding-top:160rpx;
  111. image{
  112. width: 114rpx;
  113. }
  114. }
  115. .bannertitle{
  116. font-size: 64rpx;
  117. // text-align: center;
  118. margin: 138rpx 0 37rpx;
  119. color: #FFFFFF;
  120. }
  121. .subtitle{
  122. font-size: 44rpx;
  123. color: #FFFFFF;
  124. }
  125. }
  126. .contentTops{
  127. position: relative;
  128. }
  129. .contentTop{
  130. position: absolute;
  131. top: -48rpx;
  132. right: 0;
  133. width: 93%;
  134. display: flex;
  135. align-items: center;
  136. background-color: #FCFCFC;
  137. z-index: 9999 !important;
  138. padding: 56rpx 30rpx 38rpx;
  139. border-radius: 0px 56rpx 0px 0px;
  140. box-shadow: 0px 8rpx 14rpx 0px rgba(0, 21, 3, 0.05);
  141. .iconl{
  142. border-radius: 50%;
  143. width: 48rpx;
  144. height: 48rpx;
  145. background: linear-gradient(140deg, #2F8F49 0%, rgba(119, 204, 168, 0) 100%);
  146. opacity: 0.3;
  147. margin-top: -24rpx;
  148. margin-right: -10rpx;
  149. }
  150. .contentTop-title{
  151. font-size: 32rpx;
  152. font-weight: 800;
  153. color: #333333;
  154. margin: 0 20rpx 0 -26rpx;
  155. }
  156. .iconr{
  157. image{
  158. width: 32rpx;
  159. }
  160. }
  161. }
  162. .list{
  163. background-color: #FCFCFC;
  164. margin-top: 92rpx;
  165. width: 100%;
  166. // margin-bottom: 40rpx;
  167. // background-color: #fff;
  168. border-radius:0px 0px 16rpx 100rpx;;
  169. box-shadow: 0px 8rpx 14rpx 0px rgba(0, 21, 3, 0.08);
  170. .video{
  171. margin: 0 30rpx;
  172. height: 410rpx;
  173. // background-color: skyblue;
  174. video{
  175. width: 100%;
  176. height: 100%;
  177. }
  178. }
  179. .contentfooter{
  180. .contentfooter-title{
  181. font-size: 30rpx;
  182. font-family: PingFang-SC-Bold, PingFang-SC;
  183. font-weight: bold;
  184. color: #333333;
  185. text-shadow: 0px 8rpx 14rpx rgba(0, 21, 3, 0.05);
  186. margin: 40rpx 0rpx 24rpx 56rpx;
  187. }
  188. .contentfooter-subtitle{
  189. font-size: 26rpx;
  190. font-weight: 500;
  191. color: #333333;
  192. overflow: hidden;
  193. white-space: nowrap;
  194. text-overflow: ellipsis;
  195. padding: 0rpx 71rpx 40rpx 56rpx;
  196. }
  197. }
  198. }
  199. </style>