You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

detail.vue 2.2 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view v-if="ready">
  3. <view class="uploadBox">
  4. <view class="chooseBox">
  5. <view class="fileBox">
  6. <video :src="form.VideoPath"></video>
  7. </view>
  8. </view>
  9. </view>
  10. <view class="fromItemBox">
  11. <view class="title wrap1">{{form.Name}}</view>
  12. <view class="time">{{form.CreateTime?form.CreateTime.substring(0,16):''}}</view>
  13. </view>
  14. <view class="resText">
  15. <view class="resTitle">
  16. AI分析结果:
  17. </view>
  18. <textarea class="textarea" v-model="form.AIContent" disabled auto-height placeholder=""></textarea>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import customFormMixins from '@/common/customform.js'
  24. export default {
  25. mixins: [customFormMixins],
  26. data() {
  27. return {
  28. form: {
  29. name:'',
  30. VideoPath:'',
  31. },
  32. uploadList:[],
  33. ready:false,
  34. }
  35. },
  36. async onLoad({ type, id }) {
  37. await this.init(type, id)
  38. },
  39. methods: {
  40. async init(type,id){
  41. let res = await this.HTTP_GET('learun/adms/smartEducation/smartSelfCourseInfo',id)
  42. if(!res)return
  43. if(res.VideoPath){
  44. let fileList = await this.convertToFormValue({type:'upload'},res.VideoPath)
  45. if(fileList&&fileList.length){
  46. res.VideoPath = fileList[0].path
  47. }
  48. }
  49. // res.VideoPath = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true)
  50. this.form = res
  51. this.ready = true
  52. },
  53. }
  54. }
  55. </script>
  56. <style scoped>
  57. .uploadBox{
  58. .chooseBox{
  59. height: 400rpx;
  60. border-radius: 16rpx;
  61. .fileBox{
  62. height: 100%;
  63. overflow: hidden;
  64. uni-video{
  65. height: 100%;
  66. width: 100%;
  67. }
  68. }
  69. }
  70. }
  71. .fromItemBox{
  72. background-color: #fff;
  73. padding: 30rpx;
  74. .title{
  75. color: #333;
  76. font-size: 17px;
  77. font-weight: 700;
  78. }
  79. .time{
  80. margin-top: 20rpx;
  81. color: #666;
  82. font-size: 12px;
  83. }
  84. }
  85. .resText{
  86. border-radius: 16rpx;
  87. background-color: #fff;
  88. padding: 30rpx;
  89. min-height: 100px;
  90. margin-top: 30rpx;
  91. .resTitle{
  92. font-size: 15px;
  93. color: #0C86D8;
  94. font-weight: 700;
  95. margin-bottom: 20rpx;
  96. }
  97. .textarea{
  98. color: #333;
  99. font-size: 14px;
  100. min-height: 160rpx;
  101. width: 100%;
  102. }
  103. }
  104. /* 文字溢出 */
  105. .wrap1 {
  106. display: block;
  107. text-overflow: ellipsis;
  108. overflow: hidden;
  109. white-space: nowrap;
  110. }
  111. </style>