datarecord.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="script" v-for="item in List">
  7. <view style="margin: 20rpx;">
  8. <p style="margin-bottom: 10rpx;">上传时间:{{item.create_at}}</p>
  9. <view style="display: flex;margin-bottom: 10rpx;">
  10. <view style="width: 400rpx;">小眼睛阅读数/播放量</view>
  11. <view style="border: 1rpx;">{{item.show_play_number}}</view>
  12. </view>
  13. <view style="display: flex;margin-bottom: 10rpx;">
  14. <view style="width: 400rpx;">点赞数</view>
  15. <view style="border: 1rpx;">{{item.show_like_number}}</view>
  16. </view>
  17. <view style="display: flex;margin-bottom: 10rpx;">
  18. <view style="width: 400rpx;">收藏数</view>
  19. <view style="border: 1rpx;">{{item.show_collect_number}}</view>
  20. </view>
  21. <view style="display: flex;margin-bottom: 10rpx;">
  22. <view style="width: 400rpx;">评论数</view>
  23. <view style="border: 1rpx;">{{item.show_comment_number}}</view>
  24. </view>
  25. <!-- 图片 -->
  26. <view style="margin-top: 10rpx;">
  27. <p>小眼睛阅读数/播放量截图</p>
  28. <image :src="item.photo_url" mode="aspectFit"></image>
  29. </view>
  30. </view>
  31. <view class="heng-line" v-if="item.is_review && !item.is_ok"></view>
  32. <view style="margin: 20rpx;color: red;" v-if="item.is_review && !item.is_ok">
  33. <p style="margin-bottom: 10rpx;">驳回时间:{{item.reject_at}}</p>
  34. <p>{{item.revise_opinion}}</p>
  35. </view>
  36. </view>
  37. <view style="height: 100rpx;width: 100%;"></view>
  38. </view>
  39. </template>
  40. <script>
  41. import mvBar from "@/components/mys_navBar/mysNavBar";
  42. import {
  43. fansview
  44. } from '@/components/utils.js';
  45. export default {
  46. components: {
  47. mvBar,
  48. },
  49. data() {
  50. return {
  51. navH: getApp().globalData.navHeight,
  52. List: [],
  53. mysNavConfig: {
  54. /* 开启单页显示首页图标 */
  55. isHome: true,
  56. /* 固定导航 */
  57. navFixed: true,
  58. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  59. navTitle: {
  60. text: "查看修改/反馈记录",
  61. color: "",
  62. fontSize: "32rpx", // px upx rpx
  63. fontWeight: "normal", // 100 - 700
  64. },
  65. btnType: "type2",
  66. onLeftClick: '',
  67. /* type2 按钮 */
  68. type2Config: {
  69. // 左图标
  70. leftPath: "/static/img/png2.png",
  71. // 右图标
  72. rightPath: "/static/img/png4.png",
  73. // 圆角
  74. radius: "40rpx",
  75. },
  76. },
  77. }
  78. },
  79. onShow() {
  80. this.getList();
  81. },
  82. onLoad(options) {
  83. let data = options.textObj.replace(/""/g, "");
  84. data = JSON.parse(decodeURIComponent(data))
  85. this.taskId = data.taskId
  86. console.log(this.taskId)
  87. },
  88. methods: {
  89. // 获取初稿审阅记录
  90. getList() {
  91. this.$https.get('/youngee/c/t/g/get-task-data' +
  92. "?" +
  93. "task_id" +
  94. "=" +
  95. this.taskId)
  96. .then(res => {
  97. console.log(res)
  98. this.List = res.data.data
  99. for (let i = 0; i < this.List.length; ++i) {
  100. this.List[i].show_play_number = fansview(this.List[i].play_number)
  101. this.List[i].show_like_number = fansview(this.List[i].like_number)
  102. this.List[i].show_collect_number = fansview(this.List[i].collect_number)
  103. this.List[i].show_comment_number = fansview(this.List[i].comment_number)
  104. }
  105. })
  106. },
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .script {
  112. margin-bottom: 100rpx;
  113. }
  114. .heng-line {
  115. width: 100%;
  116. border-bottom: 1rpx solid #dadada;
  117. }
  118. </style>