scriptrecord.vue 2.5 KB

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