PutDetails.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <a-row>
  3. <a-col :span="6">
  4. <div style="width: 200px">
  5. <div class="flex flex-col justify-center" style="margin-bottom: 10px">
  6. <div class="text-center"><a-avatar :size="80">央</a-avatar></div>
  7. <div class="username text-center">央视新闻</div>
  8. </div>
  9. <div class="flex justify-around text-center" style="margin-bottom: 5px">
  10. <div>
  11. <div>粉丝数</div>
  12. <div class="num"><span>10000W</span>-<span>2000W</span></div>
  13. </div>
  14. <div>
  15. <div>发表数</div>
  16. <div class="num">3128</div>
  17. </div>
  18. </div>
  19. <div class="flex justify-around text-center"style="margin-bottom: 5px">
  20. <div>
  21. <div>投放条数</div>
  22. <div class="num">3128</div>
  23. </div>
  24. <div>
  25. <div>投放数量</div>
  26. <div class="num">3128</div>
  27. </div>
  28. </div>
  29. </div>
  30. </a-col>
  31. <a-col :span="18" style=" background: #fff">
  32. <div class="flex" style="padding: 10px;">
  33. <div style="margin-right: 20px">
  34. <span>发表时间:</span>
  35. <a-range-picker show-time @change="handleChangePicker">
  36. </a-range-picker>
  37. </div>
  38. <div class="flex">
  39. <a-input v-model="formData.searchValue" placeholder="请输入作者 finderUin"></a-input>
  40. <a-button style="margin-left: 10px;" type="primary" @click="handleClickSearch">搜索</a-button>
  41. </div>
  42. </div>
  43. <div style="margin-top: 10px; font-size: 14px; background: #eff2f5">
  44. <template v-for="(item, index) of tableList" :key-="index">
  45. <a-row style="background: white; margin-bottom: 20px; padding: 10px;">
  46. <a-col :span="12" style="padding-right: 20px;">
  47. <div style="margin-bottom: 5px">{{item.title}}</div>
  48. <div>{{item.sendTime}}</div>
  49. <a-row>
  50. <a-col :span="12">有效曝光次数:{{item.exposureCount}}</a-col>
  51. <a-col :span="12">投放量级:{{item.putCountLevel}}</a-col>
  52. </a-row>
  53. <a-row>
  54. <a-col :span="12">点赞次数:{{item.exposureCount}}</a-col>
  55. <a-col :span="12">投放标签:</a-col>
  56. </a-row>
  57. <a-row>
  58. <a-col :span="12">完播次数:{{item.exposureCount}}</a-col>
  59. <a-col :span="12">投放年龄:</a-col>
  60. </a-row>
  61. <a-row>
  62. <a-col :span="12">关注次数:{{item.exposureCount}}</a-col>
  63. <a-col :span="12">投放城市:</a-col>
  64. </a-row>
  65. <a-row>
  66. <a-col :span="12">收藏次数:{{item.exposureCount}}</a-col>
  67. <a-col :span="12">投放性别:</a-col>
  68. </a-row>
  69. <a-row>
  70. <a-col :span="12">评论次数:{{item.exposureCount}}</a-col>
  71. <a-col :span="12">投放人:</a-col>
  72. </a-row>
  73. <a-row>
  74. <a-col :span="12">点赞率:{{100}}%</a-col>
  75. <a-col :span="12"></a-col>
  76. </a-row>
  77. <a-row>
  78. <a-col :span="12">关注率:{{100}}%</a-col>
  79. <a-col :span="12"></a-col>
  80. </a-row>
  81. <div style="font-size: 12px; color: #aaa; margin-top: 30px">feedid:{{item.feedId}}</div>
  82. </a-col>
  83. <a-col :span="12">
  84. <div>
  85. <video :src="item.link" style="width: 100%" controls></video>
  86. <div><a-button type="primary" ghost @click="handleClickPush">投放</a-button></div>
  87. </div>
  88. </a-col>
  89. </a-row>
  90. </template>
  91. </div>
  92. </a-col>
  93. </a-row>
  94. </template>
  95. <script>
  96. import { fetchList } from '@/api/author'
  97. export default {
  98. data () {
  99. return {
  100. formData: {
  101. startTime: 0,
  102. endTime: 0,
  103. searchValue: ''
  104. },
  105. tableList: [{
  106. 'title': '冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间',
  107. 'sendTime': '',
  108. 'exposureCount': 100,
  109. 'likeCount': 100,
  110. 'playCount': 100,
  111. 'followCount': 100,
  112. 'collectCount': 100,
  113. 'commentCount': 100,
  114. 'putCountLevel': 1,
  115. 'putTags': '投放标签',
  116. 'putAge': '10-10',
  117. 'putCity': '北京市',
  118. 'putGender': 0,
  119. 'putUser': 'v-duzi',
  120. 'feedId': '231232132131321',
  121. 'link': 'https://cos.nosum.cn/deliver/1646557198523604.mp4'
  122. },
  123. {
  124. 'title': '冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间',
  125. 'sendTime': '',
  126. 'exposureCount': 100,
  127. 'likeCount': 100,
  128. 'playCount': 100,
  129. 'followCount': 100,
  130. 'collectCount': 100,
  131. 'commentCount': 100,
  132. 'putCountLevel': 1,
  133. 'putTags': '投放标签',
  134. 'putAge': '10-10',
  135. 'putCity': '北京市',
  136. 'putGender': 0,
  137. 'putUser': 'v-duzi',
  138. 'feedId': '231232132131321',
  139. 'link': 'https://cos.nosum.cn/deliver/1646557198523604.mp4'
  140. },
  141. {
  142. 'title': '冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间',
  143. 'sendTime': '',
  144. 'exposureCount': 100,
  145. 'likeCount': 100,
  146. 'playCount': 100,
  147. 'followCount': 100,
  148. 'collectCount': 100,
  149. 'commentCount': 100,
  150. 'putCountLevel': 1,
  151. 'putTags': '投放标签',
  152. 'putAge': '10-10',
  153. 'putCity': '北京市',
  154. 'putGender': 0,
  155. 'putUser': 'v-duzi',
  156. 'feedId': '231232132131321',
  157. 'link': 'https://cos.nosum.cn/deliver/1646557198523604.mp4'
  158. },
  159. {
  160. 'title': '冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间冬奥温暖瞬间',
  161. 'sendTime': '',
  162. 'exposureCount': 100,
  163. 'likeCount': 100,
  164. 'playCount': 100,
  165. 'followCount': 100,
  166. 'collectCount': 100,
  167. 'commentCount': 100,
  168. 'putCountLevel': 1,
  169. 'putTags': '投放标签',
  170. 'putAge': '10-10',
  171. 'putCity': '北京市',
  172. 'putGender': 0,
  173. 'putUser': 'v-duzi',
  174. 'feedId': '231232132131321',
  175. 'link': 'https://cos.nosum.cn/deliver/1646557198523604.mp4'
  176. }]
  177. }
  178. },
  179. created () {
  180. console.log(this.$route.params)
  181. },
  182. methods: {
  183. /**
  184. * 点击搜索
  185. */
  186. handleClickSearch () {
  187. console.log(this.formData)
  188. },
  189. handleChangePicker (date, dateString) {
  190. console.log(date, dateString)
  191. this.formData.startTime = Number(date[0].format('x'))
  192. this.formData.endTime = Number(date[1].format('x'))
  193. if (this.formData.searchValue)
  194. {
  195. this.handleClickPush()
  196. }
  197. },
  198. handleClickPush() {
  199. console.log(this.formData)
  200. // const parems = {
  201. // startXXX: this.formData.startTime
  202. // }
  203. // this.tableList = []
  204. // fetchList(Object.assign(parameter, this.queryParam)).then(res => {
  205. // this.tableList = res.data
  206. // })
  207. }
  208. }
  209. }
  210. </script>
  211. <style lang="less">
  212. .flex {
  213. display: flex;
  214. }
  215. .flex-col {
  216. flex-direction: column;
  217. }
  218. .flex-1 {
  219. flex: 1;
  220. }
  221. .justify-around {
  222. justify-content: space-around;
  223. }
  224. .justify-center {
  225. justify-content: center;
  226. }
  227. .items-center {
  228. align-items: center;
  229. }
  230. .text-center {
  231. text-align: center;
  232. }
  233. .num {
  234. color: #00A0E9;
  235. }
  236. .username{
  237. }
  238. </style>