帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

224 lines
3.9 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="postDetail">
  3. <navbar leftClick @leftClick="leftClick" />
  4. <view class="swipe">
  5. <uv-swiper
  6. :list="item.image &&
  7. item.image.split(',')"
  8. indicator
  9. height="420rpx"></uv-swiper>
  10. </view>
  11. <view class="box">
  12. <view class="topInfo">
  13. <!-- <view class="title title1">
  14. 当前排名<text>{{ item.money || 1 }}</text>
  15. </view> -->
  16. <view class="price">
  17. <view class="">
  18. {{ item.title }}
  19. </view>
  20. <view class="">
  21. 票数 {{ item.num }}
  22. </view>
  23. </view>
  24. <!-- <view class="right">
  25. <view class="money30">
  26. 近30天收益
  27. </view>
  28. <view class="phone">
  29. 联系方式<text>付费查看</text>
  30. </view>
  31. </view> -->
  32. </view>
  33. <view class="createBy">
  34. <view class="">
  35. 发布人{{ item.userId }}
  36. </view>
  37. <view class="">
  38. 发布时间{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  39. </view>
  40. </view>
  41. <view class="controls">
  42. <contentControls
  43. :type="0"
  44. isWork
  45. :up="isThumbs_up"
  46. @loadData="getData"
  47. :detail="item"/>
  48. </view>
  49. <view class="content">
  50. <uv-parse :content="item.context"></uv-parse>
  51. </view>
  52. <view class="works">
  53. <view class="item"
  54. v-for="(t, index) in item.vod && item.vod.split(',')"
  55. :key="index">
  56. <view class="item-image">
  57. <video :src="t" object-fit="fill"/>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. import contentControls from '@/components/content/contentControls.vue'
  66. export default {
  67. components : {
  68. contentControls
  69. },
  70. data() {
  71. return {
  72. item: {},
  73. total : 0,
  74. isThumbs_up: {},//是否点赞
  75. id : 0,
  76. }
  77. },
  78. onLoad(options) {
  79. // this.$route.query的参数
  80. console.log(options)
  81. this.id = options.id
  82. },
  83. onPullDownRefresh(){
  84. this.getData()
  85. },
  86. onShow() {
  87. this.getData()
  88. },
  89. onShareAppMessage(res) {
  90. return {
  91. title: this.item.title,
  92. desc: this.item.content && this.item.content.slice(0, 30),
  93. path: '/pages_mine/publish/worksDetail?id=' + this.id
  94. }
  95. },
  96. methods: {
  97. leftClick(){
  98. uni.navigateBack(-1)
  99. },
  100. getData(id){
  101. this.$api('indexGetGetWorkDetail', {
  102. id
  103. }, res => {
  104. uni.stopPullDownRefresh()
  105. if(res.code == 200){
  106. this.item = res.result.details
  107. this.isThumbs_up = res.result.isThumbs_up//是否点赞
  108. }
  109. })
  110. },
  111. }
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. .postDetail {
  116. .box {
  117. padding: 20rpx;
  118. .topInfo{
  119. position: relative;
  120. .price{
  121. display: flex;
  122. justify-content: space-between;
  123. margin: 10rpx 0;
  124. }
  125. .right{
  126. position: absolute;
  127. right: 20rpx;
  128. top: 0rpx;
  129. line-height: 50rpx;
  130. text-align: right;
  131. .money30{
  132. font-size: 26rpx;
  133. color: #D43030;
  134. }
  135. .phone{
  136. text{
  137. color: #3A6BF1;
  138. margin-left: 10rpx;
  139. }
  140. }
  141. }
  142. }
  143. .title {
  144. font-size: 36rpx;
  145. font-weight: 600;
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. font-style: italic;
  150. text{
  151. margin-left: 10rpx;
  152. }
  153. }
  154. .title1{
  155. color: #f00;
  156. }
  157. .title2{
  158. color: #FFA200;
  159. }
  160. .title3{
  161. color: #4739EA;
  162. }
  163. .createBy {
  164. display: flex;
  165. margin-top: auto;
  166. margin-bottom: 10rpx;
  167. font-size: 24rpx;
  168. margin-top: 20rpx;
  169. color: #555;
  170. &>view {
  171. display: flex;
  172. align-items: center;
  173. justify-content: center;
  174. padding-right: 20rpx;
  175. }
  176. }
  177. .controls {
  178. margin-top: 30rpx;
  179. }
  180. .content {
  181. margin-top: 30rpx;
  182. color: #777;
  183. }
  184. .works{
  185. display: flex;
  186. flex-wrap: wrap;
  187. margin-top: 20rpx;
  188. .item{
  189. width: 320rpx;
  190. margin: 15rpx;
  191. .item-title{
  192. padding-bottom: 10rpx;
  193. color: #000;
  194. }
  195. .item-image{
  196. background-color: #999;
  197. width: 100%;
  198. height: 250rpx;
  199. video{
  200. width: 100%;
  201. height: 100%;
  202. }
  203. }
  204. }
  205. }
  206. }
  207. }
  208. </style>