movie-detail.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <import src="../stars/stars-template.wxml" />
  2. <view class="container" class="hidden {{visible?'visible':''}}">
  3. <image class="head-img" src="{{movie.movieImg}}" mode="aspectFill" />
  4. <view class="head-img-hover" data-src="{{movie.movieImg}}" catchtap="viewMoviePostImg">
  5. <text class="main-title">{{movie.title}}</text>
  6. <text class="sub-title">{{movie.country + " · "+movie.year}}</text>
  7. <view class="like">
  8. <text class="highlight-font">
  9. {{movie.wishCount}}
  10. </text>
  11. <text class="plain-font">
  12. 人喜欢
  13. </text>
  14. <text class="highlight-font">
  15. {{movie.commentCount}}
  16. </text>
  17. <text class="plain-font">
  18. 条评论
  19. </text>
  20. </view>
  21. </view>
  22. <image class="movie-img" src="{{movie.movieImg}}" data-src="{{movie.movieImg}}" catchtap="viewMoviePostImg"/>
  23. <view class="summary">
  24. <view class="original-title">
  25. <text>{{movie.originalTitle}}</text>
  26. </view>
  27. <view class="flex-row">
  28. <text class="mark">评分</text>
  29. <template is="starsTemplate" data="{{stars:movie.stars, score:movie.score}}" />
  30. </view>
  31. <view class="flex-row">
  32. <text class="mark">导演</text>
  33. <text>{{movie.director.name}}</text>
  34. </view>
  35. <view class="flex-row">
  36. <text class="mark">影人</text>
  37. <text>{{movie.casts}}</text>
  38. </view>
  39. <view class="flex-row">
  40. <text class="mark">类型</text>
  41. <text>{{movie.generes}}</text>
  42. </view>
  43. </view>
  44. <view class="hr"></view>
  45. <view class="synopsis">
  46. <text class="synopsis-font">剧情简介</text>
  47. <text class="summary-content">{{movie.summary}}</text>
  48. </view>
  49. <view class="hr"></view>
  50. <view class="cast">
  51. <text class="cast-font"> 影人</text>
  52. <scroll-view class="cast-imgs" scroll-x="true" style="width:100%">
  53. <block wx:for="{{movie.castsInfo}}" wx:for-item="item" wx:key="index">
  54. <view class="cast-container">
  55. <image class="cast-img" src="{{item.img}}"></image>
  56. <text class="cast-name">{{item.name}}</text>
  57. </view>
  58. </block>
  59. </scroll-view>
  60. </view>
  61. </view>