ShiPin.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view style="width: 92%; margin: auto">
  5. <view class="group_13">
  6. <video class="myVideo" enable-play-gesture="true" id="myVideo" :src="list.video" controls></video>
  7. </view>
  8. <view style="display: flex; justify-content: space-between; align-items: center; margin-top: 30rpx">
  9. <view lines="1" class="text_4">投稿人:{{ list.from }}</view>
  10. <view class="text_25">{{ list.publish_at }}</view>
  11. </view>
  12. <view v-if="list.content != null" class="text_5">
  13. <u-parse :content="list.content"></u-parse>
  14. </view>
  15. <view v-else class="">
  16. <u-empty text="暂无介绍" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"></u-empty>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. let that;
  23. export default {
  24. data() {
  25. return {
  26. list: {}
  27. };
  28. },
  29. onLoad(o) {
  30. that = this;
  31. this.getContentDetail(o.id);
  32. },
  33. methods: {
  34. getContentDetail(id) {
  35. this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
  36. // console.log(res, '视频详情');
  37. if (res.code == 1) {
  38. that.list = res.data;
  39. }
  40. });
  41. }
  42. }
  43. };
  44. </script>
  45. <style>
  46. .box {
  47. height: auto;
  48. width: 100%;
  49. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
  50. background-repeat: repeat-y;
  51. background-attachment: fixed;
  52. background-size: 100% 100%;
  53. padding-bottom: 50rpx;
  54. background-color: #fff9e9;
  55. min-height: 100%;
  56. height: auto;
  57. }
  58. .group_13 {
  59. width: 100%;
  60. height: 420rpx;
  61. }
  62. .myVideo {
  63. width: 100%;
  64. height: 100%;
  65. }
  66. .text_4 {
  67. width: 112rpx;
  68. height: 28rpx;
  69. overflow-wrap: break-word;
  70. color: #727070;
  71. font-size: 26rpx;
  72. font-family: SourceHanSansCN-Bold;
  73. text-align: left;
  74. white-space: nowrap;
  75. line-height: 28rpx;
  76. }
  77. .text_5 {
  78. font-size: 28rpx;
  79. font-family: SourceHanSansCN-Regular;
  80. font-weight: normal;
  81. text-align: justifyLeft;
  82. line-height: 48rpx;
  83. margin: 44rpx 0 0 16rpx;
  84. text-indent: 2rem;
  85. }
  86. /deep/.u-swiper-indicator__wrapper__dot--active {
  87. width: 5px !important;
  88. }
  89. .text_25 {
  90. font-size: 26rpx;
  91. color: #727070;
  92. margin-top: 10rpx;
  93. font-weight: 400;
  94. }
  95. </style>