index.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. .travel-detail {
  2. padding-bottom: 40rpx;
  3. background-color: #f5f7fa;
  4. }
  5. /* 顶部封面区域 */
  6. .cover-section {
  7. position: relative;
  8. height: 400rpx;
  9. overflow: hidden;
  10. }
  11. .cover-image {
  12. width: 100%;
  13. height: 100%;
  14. }
  15. .cover-mask {
  16. position: absolute;
  17. top: 0;
  18. left: 0;
  19. width: 100%;
  20. height: 100%;
  21. background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  22. }
  23. .cover-content {
  24. position: absolute;
  25. bottom: 40rpx;
  26. left: 0;
  27. width: 100%;
  28. padding: 0 40rpx;
  29. box-sizing: border-box;
  30. }
  31. .back-btn {
  32. position: absolute;
  33. top: -280rpx;
  34. left: 0;
  35. width: 80rpx;
  36. height: 80rpx;
  37. background-color: rgba(255,255,255,0.2);
  38. border-radius: 50%;
  39. display: flex;
  40. align-items: center;
  41. justify-content: center;
  42. }
  43. .back-icon {
  44. font-size: 48rpx;
  45. color: #ffffff;
  46. }
  47. .trip-title {
  48. font-size: 48rpx;
  49. font-weight: bold;
  50. color: #ffffff;
  51. margin-bottom: 16rpx;
  52. text-shadow: 0 2rpx 8rpx rgba(0,0,0,0.3);
  53. }
  54. .trip-subtitle {
  55. font-size: 28rpx;
  56. color: rgba(255,255,255,0.9);
  57. }
  58. /* 行程信息 */
  59. .trip-info {
  60. margin: 30rpx;
  61. padding: 30rpx;
  62. background-color: #ffffff;
  63. border-radius: 20rpx;
  64. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.05);
  65. }
  66. .info-title {
  67. font-size: 32rpx;
  68. font-weight: bold;
  69. margin-bottom: 20rpx;
  70. color: #333;
  71. }
  72. .info-content {
  73. display: flex;
  74. flex-direction: column;
  75. }
  76. .info-item {
  77. display: flex;
  78. justify-content: space-between;
  79. padding: 16rpx 0;
  80. border-bottom: 1px solid #f0f0f0;
  81. }
  82. .info-item:last-child {
  83. border-bottom: none;
  84. }
  85. .info-label {
  86. color: #666;
  87. font-size: 28rpx;
  88. }
  89. .info-value {
  90. color: #333;
  91. font-size: 28rpx;
  92. font-weight: 500;
  93. }
  94. /* 景点列表 */
  95. .spots-section {
  96. margin: 30rpx;
  97. padding: 30rpx;
  98. background-color: #ffffff;
  99. border-radius: 20rpx;
  100. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.05);
  101. }
  102. .section-title {
  103. font-size: 32rpx;
  104. font-weight: bold;
  105. margin-bottom: 20rpx;
  106. color: #333;
  107. }
  108. .spots-list {
  109. display: flex;
  110. flex-direction: column;
  111. }
  112. .spot-item {
  113. display: flex;
  114. align-items: center;
  115. padding: 20rpx 0;
  116. }
  117. .spot-index {
  118. width: 50rpx;
  119. height: 50rpx;
  120. background-color: #3e98ff;
  121. color: white;
  122. border-radius: 50%;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. font-size: 26rpx;
  127. margin-right: 20rpx;
  128. }
  129. .spot-info {
  130. flex: 1;
  131. }
  132. .spot-name {
  133. font-size: 30rpx;
  134. color: #333;
  135. font-weight: 500;
  136. margin-bottom: 6rpx;
  137. }
  138. .spot-address {
  139. font-size: 24rpx;
  140. color: #999;
  141. }
  142. /* 距离项样式 */
  143. .distance-item {
  144. display: flex;
  145. flex-direction: column;
  146. align-items: center;
  147. padding: 10rpx 0;
  148. position: relative;
  149. }
  150. .distance-line {
  151. width: 2rpx;
  152. height: 40rpx;
  153. background-color: #ddd;
  154. }
  155. .distance-value {
  156. display: flex;
  157. align-items: center;
  158. background-color: #f5f7fa;
  159. padding: 6rpx 16rpx;
  160. border-radius: 100rpx;
  161. margin: 5rpx 0;
  162. }
  163. .distance-icon {
  164. color: #3e98ff;
  165. font-size: 24rpx;
  166. margin-right: 8rpx;
  167. }
  168. .distance-text {
  169. font-size: 24rpx;
  170. color: #666;
  171. }
  172. /* 按钮区域 */
  173. .action-buttons {
  174. padding: 30rpx 30rpx 0;
  175. display: flex;
  176. gap: 20rpx;
  177. justify-content: space-between;
  178. }
  179. .edit-btn {
  180. background-color: #3e98ff;
  181. color: #ffffff;
  182. border-radius: 50rpx;
  183. font-size: 32rpx;
  184. padding: 20rpx 0;
  185. flex: 1;
  186. }
  187. .back-home-btn {
  188. background-color: #f0f0f0;
  189. color: #333;
  190. border-radius: 50rpx;
  191. font-size: 32rpx;
  192. padding: 20rpx 0;
  193. flex: 1;
  194. }
  195. /* 分享二维码按钮样式 */
  196. .share-section {
  197. padding: 0 30rpx;
  198. margin-top: 20rpx;
  199. }
  200. .share-btn {
  201. background-color: #4caf50;
  202. color: #ffffff;
  203. border-radius: 50rpx;
  204. font-size: 32rpx;
  205. padding: 16rpx 0;
  206. width: 100%;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. box-shadow: 0 4rpx 10rpx rgba(76, 175, 80, 0.2);
  211. transition: all 0.3s ease;
  212. }
  213. .share-btn:active {
  214. transform: translateY(2rpx);
  215. }
  216. .share-icon {
  217. margin-right: 10rpx;
  218. font-size: 32rpx;
  219. }
  220. .share-text {
  221. font-size: 28rpx;
  222. }
  223. /* 删除行程按钮样式 */
  224. .delete-section {
  225. padding: 20rpx 30rpx 30rpx;
  226. }
  227. .delete-btn {
  228. background-color: #ffffff;
  229. color: #ff4d4f;
  230. border: 1px solid #ff4d4f;
  231. border-radius: 50rpx;
  232. font-size: 32rpx;
  233. padding: 16rpx 0;
  234. width: 100%;
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. margin-top: 20rpx;
  239. box-shadow: 0 4rpx 10rpx rgba(255, 77, 79, 0.1);
  240. transition: all 0.3s ease;
  241. }
  242. .delete-btn:active {
  243. background-color: #fff1f0;
  244. transform: translateY(2rpx);
  245. }
  246. .delete-icon {
  247. margin-right: 10rpx;
  248. font-size: 32rpx;
  249. }
  250. .delete-text {
  251. font-size: 28rpx;
  252. }
  253. /* 二维码弹窗样式 */
  254. .qrcode-popup {
  255. position: fixed;
  256. top: 0;
  257. left: 0;
  258. right: 0;
  259. bottom: 0;
  260. width: 100%;
  261. height: 100%;
  262. background-color: rgba(0, 0, 0, 0.6);
  263. z-index: 9999;
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. }
  268. .qrcode-container {
  269. width: 600rpx;
  270. background-color: #ffffff;
  271. border-radius: 20rpx;
  272. overflow: hidden;
  273. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.2);
  274. transform: scale(1);
  275. }
  276. .qrcode-header {
  277. padding: 30rpx;
  278. display: flex;
  279. justify-content: space-between;
  280. align-items: center;
  281. border-bottom: 1rpx solid #f0f0f0;
  282. }
  283. .qrcode-title {
  284. font-size: 32rpx;
  285. font-weight: bold;
  286. color: #333;
  287. }
  288. .qrcode-close {
  289. display: flex;
  290. align-items: center;
  291. justify-content: center;
  292. width: 60rpx;
  293. height: 60rpx;
  294. font-size: 48rpx;
  295. color: #999;
  296. line-height: 1;
  297. border-radius: 50%;
  298. }
  299. .qrcode-close:active {
  300. background-color: #f5f5f5;
  301. }
  302. .qrcode-content {
  303. padding: 40rpx;
  304. display: flex;
  305. flex-direction: column;
  306. align-items: center;
  307. }
  308. .qrcode-image-wrap {
  309. width: 400rpx;
  310. height: 400rpx;
  311. display: flex;
  312. justify-content: center;
  313. align-items: center;
  314. margin-bottom: 20rpx;
  315. padding: 20rpx;
  316. border: 1px dashed #eee;
  317. border-radius: 8rpx;
  318. background-color: #fff;
  319. }
  320. .qrcode-image {
  321. width: 100%;
  322. height: 100%;
  323. }
  324. .qrcode-desc {
  325. font-size: 28rpx;
  326. color: #666;
  327. margin-top: 20rpx;
  328. }
  329. .qrcode-tips {
  330. font-size: 24rpx;
  331. color: #666;
  332. margin-top: 20rpx;
  333. display: flex;
  334. flex-direction: column;
  335. align-items: center;
  336. }
  337. .qrcode-tips text {
  338. margin: 4rpx 0;
  339. }
  340. .qrcode-footer {
  341. padding: 30rpx;
  342. border-top: 1rpx solid #f0f0f0;
  343. }
  344. .qrcode-save-btn {
  345. background-color: #3e98ff;
  346. color: #ffffff;
  347. border-radius: 50rpx;
  348. font-size: 32rpx;
  349. padding: 16rpx 0;
  350. width: 100%;
  351. display: flex;
  352. align-items: center;
  353. justify-content: center;
  354. }
  355. .qrcode-save-btn:active {
  356. opacity: 0.9;
  357. transform: translateY(2rpx);
  358. }