rimDetail.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <template>
  2. <view class="container" :style="'overflow:' + (showPage ? 'hidden' : 'visible')">
  3. <!-- 顶部轮播图区域 -->
  4. <swiper class="swiper" indicator-dots indicator-color="rgba(255, 255, 255, 0.5)" indicator-active-color="#fff" autoplay :interval="3000">
  5. <swiper-item>
  6. <view class="swiper-item">
  7. <img class="img" mode="aspectFill" src="https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg" />
  8. </view>
  9. </swiper-item>
  10. <swiper-item>
  11. <view class="swiper-item">
  12. <img class="img" mode="aspectFill" src="https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg" />
  13. </view>
  14. </swiper-item>
  15. </swiper>
  16. <!-- 周边信息区域 -->
  17. <view class="info">
  18. <view class="info_name">周边名称周边名称周边名称</view>
  19. <view class="info_score">
  20. <view class="score_left">5.0</view>
  21. <view class="score_right">超棒</view>
  22. <view class="score_msg" @click="goPageInfo">简介</view>
  23. <img class="score_icon" src="../../static/index/right.png" @click="goPageInfo" />
  24. </view>
  25. <view class="info_address">
  26. <img class="address_icon" src="../../static/index/address.png" />
  27. 江西省南昌市西湖区九州大街南昌动物园西门
  28. </view>
  29. </view>
  30. <!-- 周边产品区域 -->
  31. <view class="goods">
  32. <view class="goods_title">周边产品</view>
  33. <!-- 列表区域 -->
  34. <view class="goods_list">
  35. <!-- 每一个产品区域 -->
  36. <view class="item_box" v-for="item in goodList" :key="item.id" @click="handleLookDetail">
  37. <view class="box_left">
  38. <view class="left_name">{{ item.name }}</view>
  39. <view class="left_info">产品简介 ></view>
  40. <view class="left_price">¥{{ item.price }}</view>
  41. </view>
  42. <view class="box_right">
  43. <view class="right_btn">预定</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 查看更多区域 -->
  49. <view class="more">
  50. 查看更多
  51. <img class="more_icon" src="../../static/index/down.png" />
  52. </view>
  53. <!-- 弹窗区域 -->
  54. <uv-popup ref="popup" bgColor="none" :safeAreaInsetBottom="false">
  55. <view class="body_pop">
  56. <img class="pop_img" mode="aspectFill" src="https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg" />
  57. <!-- 弹窗关闭图标区域 -->
  58. <img class="pop_icon" src="../../static/index/close.png" @click="handleClosePop" />
  59. <view class="pop_name">门票+观光车+竹筏</view>
  60. <view class="pop_title">
  61. <img class="title_img" src="../../static/index/notice.png" />
  62. 购票须知
  63. </view>
  64. <view class="pop_content">16:00点前可订今日,预订后立即可用平均2秒出票凭[入园码先换票再入园</view>
  65. <view class="pop_content">未使用可随时由请全额退款</view>
  66. <view class="pop_content">使用日期后1天经核实未使用系统将自动发起退款申请</view>
  67. <view class="pop_content">换票后,不支持退款</view>
  68. <view class="pop_content">下单后不支持改期使用说明:</view>
  69. <view class="pop_content">换票时间:08:00-16:00 换票地址:游客中心取票入园</view>
  70. <view class="pop_content">费用说明费用包含三爪仑观音岩-[成人票]门票- 1张</view>
  71. <view class="pop_content">其它说明</view>
  72. <view class="pop_content">比产品由商家开具发票,若需要发票,请在消费前和商家联系确认开票方法</view>
  73. <view class="pop_title">
  74. <img class="title_img" src="../../static/index/phone3.png" />
  75. 联系电话
  76. </view>
  77. <view class="pop_phone">13677988964</view>
  78. </view>
  79. </uv-popup>
  80. </view>
  81. </template>
  82. <script>
  83. export default {
  84. data() {
  85. return {
  86. // 滚动穿透控制
  87. showPage: false,
  88. goodList: [
  89. {
  90. id: 1,
  91. name: '门票+观光车+竹筏',
  92. price: 120
  93. },
  94. {
  95. id: 2,
  96. name: '门票',
  97. price: 20
  98. },
  99. {
  100. id: 3,
  101. name: '观光车+竹筏',
  102. price: 80
  103. }
  104. ]
  105. }
  106. },
  107. methods: {
  108. goPageInfo() {
  109. uni.navigateTo({
  110. url: '/pages/rimInfo/rimInfo'
  111. })
  112. },
  113. handleLookDetail() {
  114. this.showPage = true
  115. this.$refs.popup.open('bottom')
  116. },
  117. // 点击弹窗关闭图标回调
  118. handleClosePop() {
  119. this.showPage = false
  120. this.$refs.popup.close()
  121. }
  122. }
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. .container {
  127. min-height: 100vh;
  128. background-color: #fff;
  129. .swiper {
  130. height: 423rpx;
  131. .swiper-item {
  132. width: 100%;
  133. height: 100%;
  134. .img {
  135. width: 100%;
  136. height: 100%;
  137. }
  138. }
  139. }
  140. .info {
  141. margin-top: 20rpx;
  142. padding: 0 20rpx;
  143. .info_name {
  144. font-size: 34rpx;
  145. font-weight: bold;
  146. color: #000000;
  147. }
  148. .info_score {
  149. display: flex;
  150. align-items: center;
  151. margin-top: 22rpx;
  152. font-size: 24rpx;
  153. .score_left {
  154. padding: 0 10rpx 0 12rpx;
  155. line-height: 36rpx;
  156. color: #fff;
  157. text-align: center;
  158. font-weight: bold;
  159. border-radius: 32rpx 0 0 32rpx;
  160. background-color: #096562;
  161. }
  162. .score_right {
  163. padding: 0 12rpx 0 10rpx;
  164. line-height: 36rpx;
  165. color: #096562;
  166. text-align: center;
  167. font-weight: bold;
  168. border-radius: 0 32rpx 32rpx 0;
  169. background-color: #dff2f2;
  170. }
  171. .score_msg {
  172. margin-left: 42rpx;
  173. color: #096562;
  174. }
  175. .score_icon {
  176. margin-top: 5rpx;
  177. margin-left: 13rpx;
  178. width: 10rpx;
  179. height: 20rpx;
  180. }
  181. }
  182. .info_address {
  183. display: flex;
  184. align-items: center;
  185. margin-top: 24rpx;
  186. height: 83rpx;
  187. font-size: 28rpx;
  188. border-top: 1rpx solid #e6e6e6;
  189. .address_icon {
  190. margin-right: 8rpx;
  191. width: 30rpx;
  192. height: 30rpx;
  193. }
  194. }
  195. }
  196. .goods {
  197. padding: 0 20rpx;
  198. border-top: 1rpx solid #cccccc;
  199. .goods_title {
  200. margin-top: 30rpx;
  201. font-size: 32rpx;
  202. font-weight: bold;
  203. }
  204. .goods_list {
  205. margin-top: 17rpx;
  206. .item_box {
  207. display: flex;
  208. margin-bottom: 20rpx;
  209. padding: 0 32rpx 0 24rpx;
  210. height: 170rpx;
  211. border-radius: 10rpx;
  212. background-color: #f2f2f2;
  213. .box_left {
  214. flex: 2;
  215. display: flex;
  216. flex-direction: column;
  217. justify-content: space-evenly;
  218. overflow: hidden;
  219. .left_name {
  220. font-size: 28rpx;
  221. overflow: hidden;
  222. text-overflow: ellipsis;
  223. white-space: nowrap;
  224. }
  225. .left_info {
  226. color: #808080;
  227. font-size: 24rpx;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. white-space: nowrap;
  231. }
  232. .left_price {
  233. color: #ff5733;
  234. font-size: 24rpx;
  235. }
  236. }
  237. .box_right {
  238. flex: 1;
  239. display: flex;
  240. justify-content: flex-end;
  241. align-items: center;
  242. .right_btn {
  243. display: flex;
  244. justify-content: center;
  245. align-items: center;
  246. width: 115rpx;
  247. height: 60rpx;
  248. color: #fff;
  249. font-size: 28rpx;
  250. border-radius: 10rpx;
  251. background-color: #ff5733;
  252. }
  253. }
  254. }
  255. }
  256. }
  257. .more {
  258. display: flex;
  259. justify-content: center;
  260. align-items: center;
  261. padding: 20rpx 0 30rpx 0;
  262. color: #096663;
  263. font-size: 24rpx;
  264. .more_icon {
  265. width: 38rpx;
  266. height: 48rpx;
  267. }
  268. }
  269. .body_pop {
  270. position: relative;
  271. width: 750rpx;
  272. height: 85vh;
  273. border-radius: 22rpx 22rpx 0 0;
  274. background-color: #fff;
  275. overflow-y: auto;
  276. .pop_img {
  277. width: 100%;
  278. height: 423rpx;
  279. border-radius: 20rpx 20rpx 0 0;
  280. }
  281. .pop_icon {
  282. position: absolute;
  283. top: 20rpx;
  284. right: 30rpx;
  285. width: 58rpx;
  286. height: 58rpx;
  287. }
  288. .pop_name {
  289. padding: 0 20rpx;
  290. line-height: 90rpx;
  291. font-size: 32rpx;
  292. font-weight: bold;
  293. }
  294. .pop_title {
  295. display: flex;
  296. align-items: center;
  297. padding: 12rpx 20rpx 13rpx;
  298. font-size: 32rpx;
  299. font-weight: bold;
  300. .title_img {
  301. margin-right: 15rpx;
  302. width: 38rpx;
  303. height: 38rpx;
  304. }
  305. }
  306. .pop_content {
  307. padding: 0 20rpx;
  308. line-height: 40rpx;
  309. color: #666666;
  310. font-size: 24rpx;
  311. }
  312. .pop_phone {
  313. margin-left: 50rpx;
  314. padding-bottom: 50rpx;
  315. color: #096562;
  316. font-size: 24rpx;
  317. }
  318. }
  319. }
  320. </style>