movieDetail.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. <template>
  2. <view class="movieDetail">
  3. <view class="info-box">
  4. <view class="info">
  5. <view class="icon">
  6. </view>
  7. <view class="box">
  8. <view class="name">
  9. 第二十条
  10. </view>
  11. <view class="score-box">
  12. <view class="score">
  13. 评分 <view class="num">
  14. 9.6
  15. </view>
  16. </view>
  17. <view class="want-num">
  18. 4.2万人想看
  19. </view>
  20. </view>
  21. <view class="type-box">
  22. 喜剧 剧情 <view class="tag">
  23. IMAX 2D
  24. </view>
  25. </view>
  26. <view class="publish-info">
  27. 2024年3月25日上映 141分钟
  28. </view>
  29. </view>
  30. </view>
  31. <view class="title-box">
  32. <view class="title">
  33. 简介
  34. </view>
  35. <view class="open">
  36. 展开
  37. <image class="icon" src="../../static/shop-desc.png" mode=""></image>
  38. </view>
  39. </view>
  40. <view class="desc">
  41. 这一年的不容易谁能懂?自打挂职到市检察院,韩明(雷佳音
  42. 饰)的糟心事就接二连三。儿子韩雨辰(刘耀文 饰)打了校领导
  43. (张译 饰)儿子并拒绝道歉,妻子李茂娟(马丽 饰)义愤填…
  44. </view>
  45. </view>
  46. <view class="actor-box">
  47. <view class="title-box1">
  48. <view class="title">
  49. 演员列表
  50. </view>
  51. <view class="total">
  52. 全部67
  53. <image class="icon" src="../../static/right.png" mode=""></image>
  54. </view>
  55. </view>
  56. <scroll-view class="actor-list" scroll-x="true">
  57. <view class="item">
  58. <view class="icon">
  59. </view>
  60. <view class="name">
  61. 张艺谋
  62. </view>
  63. <view class="sub-desc">
  64. 导演
  65. </view>
  66. </view>
  67. <view class="item">
  68. <view class="icon">
  69. </view>
  70. <view class="name">
  71. 雷佳音
  72. </view>
  73. <view class="sub-desc">
  74. 饰 韩明
  75. </view>
  76. </view>
  77. <view class="item">
  78. <view class="icon">
  79. </view>
  80. <view class="name">
  81. 马丽
  82. </view>
  83. <view class="sub-desc">
  84. 饰 李茂娟
  85. </view>
  86. </view>
  87. <view class="item">
  88. <view class="icon">
  89. </view>
  90. <view class="name">
  91. 赵丽颖
  92. </view>
  93. <view class="sub-desc">
  94. 饰 郝秀萍
  95. </view>
  96. </view>
  97. <view class="item">
  98. <view class="icon">
  99. </view>
  100. <view class="name">
  101. 高叶
  102. </view>
  103. <view class="sub-desc">
  104. 饰 吕玲玲
  105. </view>
  106. </view>
  107. </scroll-view>
  108. </view>
  109. <view class="btn-box">
  110. <button class="buy-btn" type="default" @click="buy">特惠购票</button>
  111. </view>
  112. <u-popup :show="show" round="32rpx" mode="bottom" @close="show = false" @open="openPop">
  113. <view class="content">
  114. <scroll-view class="tabList" scroll-x="true" scroll-with-animation :scroll-into-view="tab">
  115. <view id="demo1" class="tab active">今天 03-04</view>
  116. <view id="demo2" class="tab">明天 03-05</view>
  117. <view id="demo3" class="tab">后天 03-06</view>
  118. <view id="demo3" class="tab">周四 03-07</view>
  119. <view id="demo3" class="tab">周四 03-07</view>
  120. <view id="demo3" class="tab">周四 03-07</view>
  121. <view id="demo3" class="tab">周四 03-07</view>
  122. <view id="demo3" class="tab">周四 03-07</view>
  123. </scroll-view>
  124. <zs-choose-tab position="relative" :showModal="false" @choose="chooseTab"></zs-choose-tab>
  125. <view class="list">
  126. <view class="cinema-item" v-for="(item,index) in 15" :key="index" @click="handleItem">
  127. <view class="name-box">
  128. <view class="name">
  129. 保利万和学府影城(熙街店)
  130. </view>
  131. <view class="price">
  132. ¥19.9 <view class="label">起</view>
  133. </view>
  134. </view>
  135. <view class="address-box">
  136. <view class="address">
  137. 沙坪坝区大学城景苑路(美丽熙街)8号附1027号
  138. </view>
  139. <view class="distance">
  140. 700m
  141. </view>
  142. </view>
  143. <view class="movie-name">
  144. 近期场次:19:00 | 20:40 | 21:40
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. </u-popup>
  150. </view>
  151. </template>
  152. <script>
  153. export default {
  154. data() {
  155. return {
  156. show: false,
  157. tab:''
  158. }
  159. },
  160. methods: {
  161. openPop(){
  162. },
  163. buy() {
  164. this.show = true
  165. },
  166. handleItem(){
  167. uni.navigateTo({
  168. url:'./chooseSeat'
  169. })
  170. },
  171. chooseTab(val){
  172. }
  173. },
  174. }
  175. </script>
  176. <style lang="scss" scoped>
  177. .movieDetail{
  178. background: #F9F9F9;
  179. padding: 20rpx 24rpx ;
  180. min-height: 100vh;
  181. .info-box{
  182. padding: 24rpx;
  183. background: #FFFFFF;
  184. border-radius: 16rpx 16rpx 16rpx 16rpx;
  185. .info{
  186. display: flex;
  187. .icon{
  188. width: 160rpx;
  189. height: 200rpx;
  190. background: #aaa;
  191. border-radius: 16rpx;
  192. }
  193. .box{
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: space-between;
  197. margin-left: 20rpx;
  198. .name{
  199. font-weight: 600;
  200. font-size: 28rpx;
  201. color: #222222;
  202. width: 400rpx;
  203. white-space: nowrap;
  204. overflow: hidden;
  205. text-overflow: ellipsis;
  206. }
  207. .score-box{
  208. display: flex;
  209. font-size: 24rpx;
  210. color: #AAAAAA;
  211. .score{
  212. display: flex;
  213. align-items: center;
  214. .num{
  215. font-size: 28rpx;
  216. color: $uni-color-primary;
  217. padding: 0 12rpx;
  218. }
  219. }
  220. .want-num{
  221. padding: 0 12rpx;
  222. border-left: 2rpx solid #F0F0F0;
  223. align-self: flex-end;
  224. // font-size: 24rpx;
  225. // color: #AAAAAA;
  226. }
  227. }
  228. .type-box{
  229. display: flex;
  230. align-items: center;
  231. font-size: 24rpx;
  232. color: #AAAAAA;
  233. .tag{
  234. padding: 6rpx 10rpx;
  235. background: #F0F0F0;
  236. border-radius: 8rpx 8rpx 8rpx 8rpx;
  237. font-size: 24rpx;
  238. color: #AAAAAA;
  239. margin-left: 10rpx;
  240. }
  241. }
  242. .publish-info{
  243. font-size: 24rpx;
  244. color: #AAAAAA;
  245. }
  246. }
  247. }
  248. .title-box{
  249. display: flex;
  250. justify-content: space-between;
  251. margin-top: 28rpx;
  252. .title{
  253. font-weight: 600;
  254. font-size: 28rpx;
  255. color: #222222;
  256. }
  257. .open{
  258. display: flex;
  259. align-items: center;
  260. font-size: 24rpx;
  261. color: #AAAAAA;
  262. .icon{
  263. width: 24rpx;
  264. height: 24rpx;
  265. }
  266. }
  267. }
  268. .desc{
  269. font-size: 24rpx;
  270. color: #222222;
  271. font-weight: 300;
  272. margin-top: 20rpx;
  273. line-height: 40rpx;
  274. }
  275. }
  276. .actor-box{
  277. padding: 28rpx 24rpx;
  278. background: #FFFFFF;
  279. margin-top: 20rpx;
  280. border-radius: 16rpx;
  281. .title-box1{
  282. display: flex;
  283. align-items: center;
  284. justify-content: space-between;
  285. .title{
  286. font-weight: 600;
  287. font-size: 28rpx;
  288. color: #222222;
  289. }
  290. .total{
  291. font-weight: 300;
  292. font-size: 24rpx;
  293. display: flex;
  294. align-items: center;
  295. margin-right: -20rpx;
  296. .icon{
  297. width: 48rpx;
  298. height: 48rpx;
  299. }
  300. }
  301. }
  302. .actor-list {
  303. white-space: nowrap;
  304. width: 100%;
  305. padding-top: 20rpx;
  306. .item {
  307. display: inline-block;
  308. width: 120rpx;
  309. margin-right: 20rpx;
  310. text-align: center;
  311. .icon{
  312. width: 120rpx;
  313. height: 150rpx;
  314. border-radius: 16rpx;
  315. background: #aaa;
  316. }
  317. .name{
  318. font-weight: 400;
  319. font-size: 24rpx;
  320. color: #222222;
  321. margin-top: 15rpx;
  322. }
  323. .sub-desc{
  324. font-weight: 300;
  325. font-size: 20rpx;
  326. color: #AAAAAA;
  327. margin-top: 12rpx;
  328. }
  329. }
  330. }
  331. }
  332. .btn-box{
  333. position: fixed;
  334. left: 0%;
  335. bottom: 0%;
  336. width: 100%;
  337. padding: 10rpx 24rpx 76rpx;
  338. box-sizing: border-box;
  339. background: #FFFFFF;
  340. border-top: 1rpx solid #EEEEEE;
  341. .buy-btn{
  342. width: 702rpx;
  343. height: 80rpx;
  344. line-height: 80rpx;
  345. background: #EE4320;
  346. border-radius: 46rpx 46rpx 46rpx 46rpx;
  347. font-weight: 600;
  348. font-size: 28rpx;
  349. color: #FFFFFF;
  350. padding: 0;
  351. margin: 0;
  352. }
  353. }
  354. .content{
  355. padding: 24rpx;
  356. .tabList {
  357. white-space: nowrap;
  358. width: 100%;
  359. .tab {
  360. display: inline-block;
  361. padding: 0 12rpx 20rpx;
  362. font-weight: 400;
  363. font-size: 28rpx;
  364. color: #222222;
  365. }
  366. .tab.active{
  367. position: relative;
  368. &::after{
  369. content: '';
  370. position: absolute;
  371. bottom: 0%;
  372. left: 50%;
  373. transform: translateX(-50%);
  374. width: 60rpx;
  375. height: 8rpx;
  376. background: #EE4320;
  377. border-radius: 4rpx 4rpx 4rpx 4rpx;
  378. }
  379. }
  380. }
  381. .list{
  382. height: 600rpx;
  383. overflow: auto;
  384. .cinema-item{
  385. background: #FFFFFF;
  386. border-radius: 16rpx 16rpx 16rpx 16rpx;
  387. padding: 28rpx 0;
  388. border-top: 1rpx solid #F0F0F0;
  389. .name-box{
  390. display: flex;
  391. justify-content: space-between;
  392. .name{
  393. font-weight: 600;
  394. font-size: 28rpx;
  395. color: #222222;
  396. width: 450rpx;
  397. white-space: nowrap;
  398. overflow: hidden;
  399. text-overflow: ellipsis;
  400. }
  401. .price{
  402. display: flex;
  403. align-items: center;
  404. font-size: 28rpx;
  405. color: $uni-color-primary;
  406. .label{
  407. font-size: 24rpx;
  408. color: #AAAAAA;
  409. }
  410. }
  411. }
  412. .address-box{
  413. display: flex;
  414. justify-content: space-between;
  415. font-size: 24rpx;
  416. color: #AAAAAA;
  417. margin-top: 16rpx;
  418. .address{
  419. width: 460rpx;
  420. white-space: nowrap;
  421. overflow: hidden;
  422. text-overflow: ellipsis;
  423. }
  424. .distance{
  425. }
  426. }
  427. .movie-name{
  428. font-size: 24rpx;
  429. color: #222222;
  430. margin-top: 16rpx;
  431. width: 100%;
  432. white-space: nowrap;
  433. overflow: hidden;
  434. text-overflow: ellipsis;
  435. }
  436. }
  437. }
  438. }
  439. }
  440. </style>