main.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. /* pages/main/main.wxss */
  2. /* 轮播图区域 */
  3. .noBanners {
  4. display: flex;
  5. font-size: 40rpx;
  6. color: gray;
  7. justify-content: center;
  8. line-height: 400rpx;
  9. }
  10. .banners {
  11. /* width: 100%; */
  12. height: 440rpx;
  13. padding: 2rpx 0;
  14. }
  15. .banners image {
  16. width: 100%;
  17. /* height: 100%; */
  18. }
  19. /* 轮播图下方导航模块 */
  20. .navWrapper{
  21. position: absolute;
  22. /* background-color: yellow; */
  23. background-color: #fff;
  24. border-top-left-radius: 20rpx;
  25. border-top-right-radius: 20rpx;
  26. margin-top: -20rpx;
  27. z-index: 9999;
  28. }
  29. .navList{
  30. display: flex;
  31. flex-wrap: wrap;
  32. justify-content: space-around;
  33. /* background-color: yellow; */
  34. margin:0 20rpx;
  35. /* border-radius: 30rpx; */
  36. /* border-bottom: 1rpx solid gray; */
  37. /* padding-top: 30rpx; */
  38. }
  39. .individual{
  40. margin: 20rpx 10rpx 20rpx 10rpx;
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. width: 20%;
  45. }
  46. /* 导航区图标 */
  47. .iconImg{
  48. width: 70%;
  49. }
  50. /* 导航区文字标题 */
  51. .individualText{
  52. font-size: 30rpx;
  53. color: #808080;
  54. }
  55. /* 纳溪介绍 */
  56. .naxiWrapper{
  57. margin: 360rpx 20rpx 20rpx 20rpx;
  58. /* border-bottom: 1rpx solid gray; */
  59. }
  60. .naxiIntroWrapper {
  61. /* padding: 20rpx; */
  62. margin: 20rpx;
  63. /* border-bottom: 1rpx solid gray; */
  64. }
  65. .imgIcon {
  66. width: 30rpx;
  67. height: 30rpx;
  68. margin-top: 16rpx;
  69. }
  70. .naxiIntro {
  71. display: flex;
  72. position: relative;
  73. /* background-color: yellow; */
  74. height: 60rpx;
  75. line-height: 60rpx;
  76. }
  77. .naxiTitle {
  78. font-size: 42rpx;
  79. font-weight: bold;
  80. color: rgba(0, 0, 0, .6);
  81. }
  82. .naxiDetail {
  83. display: flex;
  84. position: absolute;
  85. right: 20rpx;
  86. }
  87. .naxiDetailTitle {
  88. margin-right: 10rpx;
  89. color: #808080;
  90. }
  91. .naxiImg {
  92. margin: 10rpx 0;
  93. width: 100%;
  94. border-radius: 30rpx;
  95. }
  96. /* 景点照片 */
  97. .scenicImgWrapper {
  98. display: flex;
  99. flex-wrap: wrap;
  100. justify-content: space-around;
  101. margin-top: 10rpx;
  102. }
  103. .leftWrapper {
  104. display: flex;
  105. flex-direction: column;
  106. width: 45%;
  107. height: 100%;
  108. }
  109. .rightWrapper {
  110. display: flex;
  111. flex-direction: column;
  112. width: 45%;
  113. }
  114. .imgLeft,
  115. .imgRight{
  116. width: 100%;
  117. /* background-color: yellow; */
  118. margin-bottom: 20rpx;
  119. background-color: #fff;
  120. }
  121. .imgLeftDetail,
  122. .imgRightDetail {
  123. width: 100%;
  124. border-radius: 30rpx;
  125. margin-bottom: 16rpx;
  126. }
  127. .imgLeftDetail{
  128. height: 320rpx;
  129. }
  130. .imgRightDetail {
  131. height: 420rpx;
  132. }
  133. .scenicText {
  134. display: flex;
  135. flex-direction: column;
  136. padding: 0 10rpx;
  137. }
  138. /* 景点名称、美食标题及招牌菜 */
  139. .hotTitle,
  140. .foodDish,
  141. .foodTitle {
  142. color: rgba(0, 0, 0, .6);
  143. overflow: hidden;
  144. text-overflow: ellipsis;
  145. display: -webkit-box;
  146. -webkit-box-orient: vertical;
  147. -webkit-line-clamp: 1;
  148. }
  149. .hotTitle,
  150. .foodTitle{
  151. font-weight: bold;
  152. font-size: 34rpx;
  153. }
  154. .hotText{
  155. margin: 10rpx 0 20rpx 0;
  156. color: #a5a5a5;
  157. }
  158. /* 美食 */
  159. .foodWrapper{
  160. position: relative;
  161. display: flex;
  162. /* background-color: yellow; */
  163. background-color: #fff;
  164. border-radius: 20rpx;
  165. margin: 10rpx 0 20rpx 0;
  166. }
  167. .foodImg{
  168. width: 200rpx;
  169. height: 200rpx;
  170. }
  171. .foodImgDetail{
  172. width: 100%;
  173. height: 100%;
  174. border-radius: 20rpx;
  175. }
  176. .foodText{
  177. position: absolute;
  178. width: 70%;
  179. height: 100%;
  180. margin: 0 20rpx;
  181. display: flex;
  182. flex-direction: column;
  183. justify-content: space-around;
  184. }
  185. .foodDish,
  186. .foodHotText{
  187. color: #8888a6;
  188. }
  189. /* 周边景点 */
  190. .otherScenic{
  191. margin: 50rpx 20rpx 0 20rpx;
  192. display: flex;
  193. flex-direction: column;
  194. position: relative;
  195. }
  196. .otherScenicList{
  197. margin-bottom: 20rpx;
  198. }
  199. .scenicImg{
  200. /* margin-bottom: 10rpx; */
  201. width: 100%;
  202. border-top-left-radius: 100rpx;
  203. border-bottom-right-radius: 100rpx;
  204. }
  205. .otherScenicDetail{
  206. position: relative;
  207. margin: 10rpx 0;
  208. }
  209. .otherScenicTitle{
  210. position: absolute;
  211. bottom: 40rpx;
  212. left: 30rpx;
  213. font-size: 50rpx;
  214. color: white;
  215. font-weight: bold;
  216. }