problem_report.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!--pages/peoblem_report/peoblem_report.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='li'>
  5. <view class='li-img'>
  6. <image class='li-img-url' wx:if='{{problemPicturePath}}' mode='aspectFill' src='{{baseImgUrl+problemPicturePath + thumbnail}}' data-images='{{([{img:problemPicturePath}])}}' data-baseurl='{{baseImgUrl}}' data-index='0' bindtap='viewImageCtl' ></image>
  7. <!-- <view>提问时间</view>
  8. <view>{{createTime}}</view> -->
  9. </view>
  10. <view class='li-tips' wx:if='{{!teacherMessage&&similarQuestions.length==0&&voiceKeyList.length==0&&fileKeys.length==0}}'>
  11. <image src='../../image/jie_xi_deng.png' class='li-tips-img'></image>
  12. <view>待解答</view>
  13. </view>
  14. <view class='li-know-head' wx:if='{{similarQuestions.length>0}}'>
  15. <image class='li-know-head-img' src='../../image/nan_ti_jie_xi.png'></image>
  16. <view class='li-know-head-txt'>AI解析</view>
  17. </view>
  18. <view class='li-know li-know-point' wx:if='{{similarQuestions.length>0}}'>
  19. <view class='li-know-title'>参考答案</view>
  20. <view class='li-know-item' wx:for='{{similarQuestions}}' wx:key='index' wx:if='{{similarQuestions.length>0}}'>
  21. <rich-text nodes="{{item.question}}" class='li-know-item-title-head'></rich-text>
  22. <view class='li-know-item-content' wx:if='{{item.answers.length>0}}'>
  23. <text>答案:</text>
  24. <block wx:for='{{item.answers}}' wx:for-index='key' wx:for-item='res' wx:key='key'>
  25. <view wx:for='{{res.list}}' wx:for-index='key' wx:for-item='val' wx:key='idx' class='li-know-style'>
  26. <text wx:if='{{val.type==1}}'>{{val.value}}</text>
  27. <image src='{{val.value}}' wx:if='{{val.type==2&&val.value}}' style='width:{{val.style.width}}rpx,height:{{val.style.height}}rpx' class='li-know-item-content-img'></image>
  28. </view>
  29. </block>
  30. </view>
  31. </view>
  32. <view class='li-know-title' wx:if='{{recommendedQuestions.length>0}}'>相似题</view>
  33. <view class='li-know-item' wx:for='{{recommendedQuestions}}' wx:key='index' style='margin-bottom:0' wx:if='{{recommendedQuestions.length>0}}'>
  34. <rich-text nodes="{{item.question}}"></rich-text>
  35. <view class='li-know-item-content' wx:if='{{item.analysis}}'>
  36. <text>解析:</text>
  37. <rich-text nodes="{{item.analysis}}"></rich-text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class='li-know-head' wx:if='{{teacherMessage||voiceKeyList.length>0||fileKeys.length>0}}'>
  42. <image class='li-know-title-img zong-ti' src='../../image/lao_shi_liu_yan.png'></image>
  43. <view class='li-know-head-txt'>老师解答</view>
  44. </view>
  45. <view class='li-footer'>
  46. <view class='li-topic li-topic-footer'>
  47. <scroll-view scroll-x>
  48. <view class='li-topic-item'>
  49. <view class='scroll-view-item' wx:for='{{fileKeys}}' wx:for-index='key' wx:key='key' >
  50. <image class='li-topic-item-img' data-images="{{fileKeys}}" wx:if='{{item.imagekey}}' data-url='imagekey' data-index="{{key}}" data-baseurl="{{baseImgUrl}}" mode="aspectFill" src='{{baseImgUrl +item.imagekey+thumbnail}}' bindtap="viewImageCtl"></image>
  51. </view>
  52. </view>
  53. </scroll-view>
  54. <view class='li-topic-txt' wx:if='{{teacherMessage}}'>{{teacherMessage}}</view>
  55. <!-- <image src='../../image/hua_ping.png' class='li-topic-tag-img'></image>
  56. <view class='li-topic-info'>
  57. <view class='li-topic-info-names'>{{teacherName}}</view>
  58. <image class='li-topic-info-headImg' wx:if='{{teacherPhoto}}' src='{{baseImgUrl+teacherPhoto}}'></image>
  59. </view> -->
  60. </view>
  61. </view>
  62. <!-- 语音 -->
  63. <view class='li-video' wx:if='{{voiceKeyList.length>0}}'>
  64. <!-- <view class='li-video-title'>语音解答</view> -->
  65. <view class='li-video-voice' wx:for='{{voiceKeyList}}' wx:key='index' data-index="{{index}}" bindtap='audioCtl'>
  66. <!-- <view class='li-video-voice-red' style='width:{{item.duration*1.66+17.3}}%'></view> -->
  67. <view class='li-video-voice-red' style='width:{{item.duration*1.4+16}}%'>
  68. <image class='li-video-btn' src='../../image/yu_yin_{{item.voiceType == 1?imgNum:3}}.png'></image>
  69. <view class='li-video-gay'>{{item.duration}}″</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>