sketchrecord.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view style="margin-top: 160rpx;"></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. <!-- 图片 -->
  10. <view style="display: flex;" v-if="item.type == 1">
  11. <view v-for="photo in item.Photo">
  12. <image :src="photo.photo_url" mode="aspectFill" style="width: 150rpx;height: 150rpx;"></image>
  13. </view>
  14. </view>
  15. <!-- 视频 -->
  16. <view style="display: flex;" v-if="item.type == 2">
  17. <video :src="item.Photo[0].photo_url"></video>
  18. </view>
  19. <p>{{item.title}}</p>
  20. <text>{{item.content}}</text>
  21. </view>
  22. <view class="heng-line" v-if="item.is_review && !item.is_ok"></view>
  23. <view style="margin: 20rpx;color: red;" v-if="item.is_review && !item.is_ok">
  24. <p style="margin-bottom: 10rpx;">驳回时间:{{item.reject_at}}</p>
  25. <text>{{item.revise_opinion}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import mvBar from "@/components/mys_navBar/mysNavBar";
  32. export default {
  33. components: {
  34. mvBar,
  35. },
  36. data() {
  37. return {
  38. List: [],
  39. AllImage: [],
  40. mysNavConfig: {
  41. /* 开启单页显示首页图标 */
  42. isHome: true,
  43. /* 固定导航 */
  44. navFixed: true,
  45. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  46. navTitle: {
  47. text: "查看修改/反馈记录",
  48. color: "",
  49. fontSize: "32rpx", // px upx rpx
  50. fontWeight: "normal", // 100 - 700
  51. },
  52. btnType: "type2",
  53. onLeftClick: '',
  54. /* type2 按钮 */
  55. type2Config: {
  56. // 左图标
  57. leftPath: "/static/img/png2.png",
  58. // 右图标
  59. rightPath: "/static/img/png4.png",
  60. // 圆角
  61. radius: "40rpx",
  62. },
  63. },
  64. }
  65. },
  66. onShow() {
  67. this.getList();
  68. },
  69. onLoad(options) {
  70. let data = options.textObj.replace(/""/g, "");
  71. data = JSON.parse(decodeURIComponent(data))
  72. this.taskId = data.taskId
  73. console.log(this.taskId)
  74. },
  75. methods: {
  76. // 获取初稿审阅记录
  77. getList() {
  78. this.$https.get('/youngee/c/t/g/get-task-sketch' +
  79. "?" +
  80. "task_id" +
  81. "=" +
  82. this.taskId)
  83. .then(res => {
  84. console.log(res)
  85. this.List = res.data.data
  86. })
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. .script {
  93. margin-bottom: 100rpx;
  94. }
  95. .heng-line {
  96. width: 100%;
  97. border-bottom: 1rpx solid #dadada;
  98. }
  99. </style>