sketchrecord.vue 2.8 KB

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