detail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. <template>
  2. <view class="scenic-detail">
  3. <zs-header :background="background"></zs-header>
  4. <image class="top-banner" src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe7c9174d67a7dbd842b74/ext/GOODS_INFO/微信图片_20240328145646.png/1.png" mode=""></image>
  5. <view class="content">
  6. <view class="info">
  7. <view class="title">
  8. 敦煌鸣沙山与月牙泉
  9. </view>
  10. <view class="address-box">
  11. <view class="province">
  12. 甘肃省
  13. </view>
  14. <view class="address">
  15. 酒泉市敦煌市南
  16. </view>
  17. </view>
  18. <view class="open-time">
  19. 营业时间:10:00—20:30
  20. </view>
  21. </view>
  22. <view class="navigation-box">
  23. <view class="address">
  24. 酒泉市敦煌市南6公里鸣沙山月牙泉景区
  25. </view>
  26. <view class="btn" @click="handleNavigation">
  27. 导航
  28. </view>
  29. </view>
  30. <view class="list">
  31. <view class="item" v-for="(item,index) in list" :key="index">
  32. <view class="sub-title">
  33. {{item.title}}
  34. </view>
  35. <view class="ticket-list">
  36. <view class="ticket-item" :class="[d != item.length-1?'border-bottom':'']" v-for="(i,d) in item.list" :key="d">
  37. <view class="top">
  38. <view class="title">
  39. {{i.title}}
  40. </view>
  41. <view class="price-box">
  42. <view class="unit">
  43. </view>
  44. <view class="price">
  45. {{i.price}}
  46. </view>
  47. <view class="text">
  48. </view>
  49. </view>
  50. </view>
  51. <view class="bottom">
  52. <view class="left">
  53. <view class="desc">
  54. {{i.desc}}
  55. </view>
  56. <view class="notice-box" @click="handleBuy">
  57. 预定须知
  58. <image class="more" src="../static/right.png" mode=""></image>
  59. </view>
  60. </view>
  61. <view class="btn" @click="handleBuy">
  62. 立即预订
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="sub-title">
  70. 景区简介
  71. </view>
  72. <view class="intro border-bottom">
  73. 特殊要求视入住时可提供的服务而定,并可能产生额外的费用。特
  74. 殊要求视入住时可提供的服务而定,并可能产生额外的费用。特殊
  75. 要求视入住时可提供的服务而定,并可能产生额外的费用。特殊要
  76. 求视入住时可提供的服务而定,并可能产生额外的费用。特殊要求
  77. 视入住时可提供的服务而定,并可能产生额外的费用。特殊要求视
  78. 入住时可提供的服务而定,并可能产生额外的费用。特殊要求视入
  79. 住时可提供的服务而定,并可能产生额外的费用。
  80. </view>
  81. <view class="sub-title">
  82. 交通信息
  83. </view>
  84. <view class="intro">
  85. 市区搭乘地铁东涌线列车,在新澳站转乘迪士尼线列车
  86. </view>
  87. </view>
  88. <u-popup :show="show" round="16rpx" mode="bottom" @close="close">
  89. <view class="popup-title">
  90. 敦煌鸣沙山与月牙泉
  91. </view>
  92. <view class="box">
  93. <view class="sub-title">
  94. 取票地点
  95. </view>
  96. <view class="intro">
  97. 甘肃省酒泉市敦煌市南
  98. </view>
  99. <view class="sub-title">
  100. 入园方式
  101. </view>
  102. <view class="intro">
  103. 短信换票入园
  104. </view>
  105. <view class="sub-title">
  106. 预定截止
  107. </view>
  108. <view class="intro">
  109. 24号17点
  110. </view>
  111. <view class="sub-title">
  112. 退改规则
  113. </view>
  114. <view class="intro">
  115. 本产品不支持退订
  116. </view>
  117. <view class="sub-title">
  118. 预定须知
  119. </view>
  120. <view class="intro border-bottom">
  121. 特殊要求视入住时可提供的服务而定,并可能产生额外的费用。特
  122. 殊要求视入住时可提供的服务而定,并可能产生额外的费用。特殊
  123. 要求视入住时可提供的服务而定,并可能产生额外的费用。特殊要
  124. 求视入住时可提供的服务而定,并可能产生额外的费用。特殊要求
  125. 视入住时可提供的服务而定,并可能产生额外的费用。特殊要求视
  126. 入住时可提供的服务而定,并可能产生额外的费用。特殊要求视入
  127. 住时可提供的服务而定,并可能产生额外的费用。
  128. </view>
  129. <view class="sub-title">
  130. 其他说明
  131. </view>
  132. <view class="intro border-bottom">
  133. 特殊要求视入住时可提供的服务而定,并可能产生额外的费用。特
  134. 殊要求视入住时可提供的服务而定,并可能产生额外的费用。特殊
  135. 要求视入住时可提供的服务而定,并可能产生额外的费用。特殊要
  136. 求视入住时可提供的服务而定,并可能产生额外的费用。特殊要求
  137. 视入住时可提供的服务而定,并可能产生额外的费用。特殊要求视
  138. 入住时可提供的服务而定,并可能产生额外的费用。特殊要求视入
  139. 住时可提供的服务而定,并可能产生额外的费用。
  140. </view>
  141. </view>
  142. <view class="btn-box">
  143. <view class="left">
  144. <view class="num">
  145. 共1件
  146. </view>
  147. <view class="total">
  148. 合计 <view class="price-box">
  149. <view class="unit">
  150. </view>
  151. <view class="price">
  152. 544
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="buy-btn">
  158. 立即预订
  159. </view>
  160. </view>
  161. </u-popup>
  162. <map class="map" id="map"></map>
  163. </view>
  164. </template>
  165. <script>
  166. export default {
  167. data() {
  168. return {
  169. show:false,
  170. background: false,
  171. map:null,
  172. list:[
  173. {
  174. title:'成人票',
  175. list:[
  176. {
  177. title:'鸣沙山月牙泉门票+鸣沙山月牙泉鞋套租赁成人票租赁成人票租赁成人票租赁成人票租赁成人票租赁成人票',
  178. price:580,
  179. desc:'当天17点前可以预定'
  180. },
  181. {
  182. title:'鸣沙山月牙泉门票+鸣沙山月牙泉鞋套租赁成人票',
  183. price:580,
  184. desc:'当天17点前可以预定'
  185. }
  186. ]
  187. },
  188. {
  189. title:'成人票',
  190. list:[
  191. {
  192. title:'鸣沙山月牙泉门票+鸣沙山月牙泉鞋套租赁成人票',
  193. price:580,
  194. desc:'当天17点前可以预定'
  195. }
  196. ]
  197. }
  198. ]
  199. }
  200. },
  201. methods: {
  202. close(){
  203. this.show = false
  204. },
  205. handleBuy(){
  206. this.show = true
  207. },
  208. handleNavigation() {
  209. this.map.openMapApp({
  210. longitude:104.117262,
  211. latitude:30.598726,
  212. destination:'目的地',
  213. success(res){
  214. }
  215. })
  216. }
  217. },
  218. onPageScroll(e) {
  219. if (e.scrollTop >= 50) {
  220. this.background = true
  221. } else {
  222. this.background = false
  223. }
  224. },
  225. onReady() {
  226. this.map = uni.createMapContext("map", this);
  227. }
  228. }
  229. </script>
  230. <style lang="scss" >
  231. .scenic-detail{
  232. .top-banner{
  233. width: 750rpx;
  234. height: 382rpx;
  235. vertical-align: bottom;
  236. }
  237. .map{
  238. position: absolute;
  239. top: -9999rpx;
  240. left: -9999rpx;
  241. }
  242. .content{
  243. position: relative;
  244. top: -20rpx;
  245. z-index: 2;
  246. background: #FFFFFF;
  247. border-radius: 16rpx 16rpx 0rpx 0rpx;
  248. padding: 28rpx 24rpx;
  249. .info{
  250. .title{
  251. font-weight: 600;
  252. font-size: 32rpx;
  253. color: #222222;
  254. }
  255. .address-box{
  256. display: flex;
  257. align-items: center;
  258. font-weight: 300;
  259. font-size: 24rpx;
  260. color: #AAAAAA;
  261. margin-top: 26rpx;
  262. .province{
  263. padding-right: 12rpx;
  264. border-right: 2rpx solid #F0F0F0;
  265. }
  266. }
  267. .open-time{
  268. font-weight: 300;
  269. font-size: 24rpx;
  270. color: #AAAAAA;
  271. margin-top: 20rpx;
  272. }
  273. }
  274. .navigation-box{
  275. display: flex;
  276. align-items: center;
  277. justify-content: space-between;
  278. width: 702rpx;
  279. height: 140rpx;
  280. background-image: url('../static/white-map.png');
  281. background-repeat: repeat;
  282. background-size: 100% 140rpx;
  283. // background: linear-gradient( 101deg, rgba(246,246,246,0.89) 0%, #FFFFFF 100%);
  284. border-radius: 16rpx 16rpx 16rpx 16rpx;
  285. padding: 0 24rpx;
  286. box-sizing: border-box;
  287. margin-top: 20rpx;
  288. .address{
  289. font-weight: 600;
  290. font-size: 24rpx;
  291. color: #222222;
  292. width: 490rpx;
  293. white-space: nowrap;
  294. overflow: hidden;
  295. text-overflow: ellipsis;
  296. }
  297. .btn{
  298. width: 120rpx;
  299. height: 52rpx;
  300. line-height: 52rpx;
  301. text-align: center;
  302. background: #E2ECFF;
  303. border-radius: 26rpx 26rpx 26rpx 26rpx;
  304. font-weight: 300;
  305. font-size: 28rpx;
  306. color: #3879F9;
  307. }
  308. }
  309. .sub-title{
  310. font-weight: 600;
  311. font-size: 32rpx;
  312. color: #222222;
  313. margin: 20rpx 0;
  314. }
  315. .intro{
  316. font-weight: 300;
  317. font-size: 24rpx;
  318. color: #AAAAAA;
  319. line-height: 40rpx;
  320. padding-bottom: 24rpx;
  321. }
  322. .border-bottom{
  323. border-bottom: 1rpx solid #F0F0F0!important;
  324. }
  325. .list{
  326. .item{
  327. .ticket-list{
  328. background: #F9F9F9;
  329. border-radius: 16rpx 16rpx 16rpx 16rpx;
  330. padding: 0 24rpx;
  331. .ticket-item{
  332. padding: 28rpx 0;
  333. .top{
  334. display: flex;
  335. align-items: center;
  336. justify-content: space-between;
  337. .title{
  338. font-weight: 400;
  339. font-size: 28rpx;
  340. color: #222222;
  341. overflow: hidden;
  342. text-overflow: ellipsis;
  343. /* 弹性伸缩盒子模型显示 */
  344. display: -webkit-box;
  345. /* 限制在一个块元素显示的文本的行数 */
  346. -webkit-line-clamp: 2;
  347. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  348. -webkit-box-orient: vertical;
  349. }
  350. .price-box{
  351. display: flex;
  352. align-items: flex-end;
  353. margin-top: 12rpx;
  354. .unit{
  355. font-weight: 600;
  356. font-size: 20rpx;
  357. color: $uni-color-primary;
  358. }
  359. .price{
  360. font-weight: 600;
  361. font-size: 32rpx;
  362. color: $uni-color-primary;
  363. }
  364. .text{
  365. font-weight: 300;
  366. font-size: 24rpx;
  367. color: #AAAAAA;
  368. margin-left: 6rpx;
  369. }
  370. }
  371. }
  372. .bottom{
  373. display: flex;
  374. align-items: center;
  375. justify-content: space-between;
  376. margin-top: 20rpx;
  377. .left{
  378. display: flex;
  379. align-items: center;
  380. font-weight: 300;
  381. font-size: 24rpx;
  382. color: #AAAAAA;
  383. .notice-box{
  384. display: flex;
  385. align-items: center;
  386. .more{
  387. width: 48rpx;
  388. height: 48rpx;
  389. }
  390. }
  391. }
  392. .btn{
  393. width: 120rpx;
  394. height: 52rpx;
  395. line-height: 52rpx;
  396. text-align: center;
  397. background: #EE4320;
  398. border-radius: 26rpx 26rpx 26rpx 26rpx;
  399. font-weight: 400;
  400. font-size: 24rpx;
  401. color: #FFFFFF;
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. .u-popup__content{
  410. padding: 0 24rpx 28rpx;
  411. position: relative;
  412. .popup-title{
  413. font-weight: 600;
  414. font-size: 32rpx;
  415. color: #222222;
  416. padding: 28rpx 0;
  417. border-bottom: 1rpx solid #F0F0F0;
  418. }
  419. .box{
  420. max-height: 70vh;
  421. overflow: auto;
  422. .sub-title{
  423. font-weight: 600;
  424. font-size: 28rpx;
  425. color: #222222;
  426. margin: 20rpx 0;
  427. }
  428. .intro{
  429. font-weight: 300;
  430. font-size: 24rpx;
  431. color: #AAAAAA;
  432. line-height: 40rpx;
  433. padding-bottom: 24rpx;
  434. }
  435. .border-bottom{
  436. border-bottom: 1rpx solid #F0F0F0!important;
  437. }
  438. }
  439. .btn-box{
  440. // position: absolute;
  441. left: 0%;
  442. bottom: env(safe-area-inset-bottom);
  443. width: 100%;
  444. padding: 10rpx 24rpx;
  445. box-sizing: border-box;
  446. border-top: 1rpx solid #EEEEEE;
  447. display: flex;
  448. align-items: center;
  449. justify-content: space-between;
  450. .left{
  451. display: flex;
  452. align-items: flex-end;
  453. .num{
  454. font-weight: 300;
  455. font-size: 24rpx;
  456. color: #AAAAAA;
  457. }
  458. .total{
  459. font-weight: 300;
  460. font-size: 24rpx;
  461. color: #222222;
  462. display: flex;
  463. align-items: flex-end;
  464. margin-left: 6rpx;
  465. .price-box{
  466. display: flex;
  467. align-items: flex-end;
  468. font-weight: 400;
  469. font-size: 32rpx;
  470. color: #222222;
  471. .unit{
  472. font-size: 20rpx;
  473. }
  474. }
  475. }
  476. }
  477. .buy-btn{
  478. width: 240rpx;
  479. height: 80rpx;
  480. line-height: 80rpx;
  481. text-align: center;
  482. background: #EE4320;
  483. border-radius: 40rpx 40rpx 40rpx 40rpx;
  484. font-weight: 600;
  485. font-size: 28rpx;
  486. color: #FFFFFF;
  487. }
  488. }
  489. }
  490. }
  491. </style>