problem_report.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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>
  8. <view class='li-tips' wx:if='{{similarQuestions.length==0&&!teacherMessage&&voiceKeyList.length==0&&fileKeys.length==0}}'>
  9. <image src='../../assets/jie_xi_deng.png' class='li-tips-img'></image>
  10. <view>待解答</view>
  11. </view>
  12. <view class='li-know-head' wx:if='{{similarQuestions.length>0}}'>
  13. <image class='li-know-head-img' src='../../assets/nan_ti_jie_xi.png'></image>
  14. <view class='li-know-head-txt'>难题解析</view>
  15. </view>
  16. <view class='li-know li-know-point' wx:if='{{similarQuestions.length>0}}'>
  17. <view class='li-know-title'>参考答案</view>
  18. <view class='li-know-item' wx:for='{{similarQuestions}}' wx:key='index' wx:if='{{similarQuestions.length>0}}'>
  19. <rich-text nodes="{{item.question}}" class='li-know-item-title-head'></rich-text>
  20. <view class='li-know-item-content' wx:if='{{item.answers.length>0}}'>
  21. <text>答案:</text>
  22. <block wx:for='{{item.answers}}' wx:for-index='key' wx:for-item='res' wx:key='key'>
  23. <view wx:for='{{res.list}}' wx:for-index='key' wx:for-item='val' wx:key='idx' class='li-know-style'>
  24. <text wx:if='{{val.type==1}}'>{{val.value}}</text>
  25. <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>
  26. </view>
  27. </block>
  28. </view>
  29. </view>
  30. <view class='li-know-title' wx:if='{{recommendedQuestions.length>0}}'>相似题</view>
  31. <view class='li-know-item' wx:for='{{recommendedQuestions}}' wx:key='index' style='margin-bottom:0' wx:if='{{recommendedQuestions.length>0}}'>
  32. <rich-text nodes="{{item.question}}"></rich-text>
  33. <view class='li-know-item-content' wx:if='{{item.analysis}}'>
  34. <text>解析:</text>
  35. <rich-text nodes="{{item.analysis}}"></rich-text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class='li-know-head' wx:if='{{teacherMessage||voiceKeyList.length>0||fileKeys.length>0}}' style='margin-top: 80rpx;'>
  40. <image class='li-know-title-img zong-ti' src='../../assets/lao_shi_liu_yan.png'></image>
  41. <view class='li-know-head-txt'>老师解答</view>
  42. </view>
  43. <view class='li-last'>
  44. <view class='li-topic li-topic-footer'>
  45. <scroll-view scroll-x>
  46. <view class='li-topic-item'>
  47. <view class='scroll-view-item' wx:for='{{fileKeys}}' wx:for-index='key' wx:key='key' >
  48. <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>
  49. </view>
  50. </view>
  51. </scroll-view>
  52. <view class='li-topic-txt' wx:if='{{teacherMessage}}'>{{teacherMessage}}</view>
  53. </view>
  54. </view>
  55. <!-- 语音 -->
  56. <view class='li-video' wx:if='{{voiceKeyList.length>0}}'>
  57. <view class='li-video-voice' wx:for='{{voiceKeyList}}' wx:key='index' data-index="{{index}}" bindtap='audioCtl'>
  58. <view class='li-video-voice-red' style='width:{{item.duration*1.4+16}}%'>
  59. <image class='li-video-btn' src='../../assets/yu_yin_{{item.voiceType == 1?imgNum:3}}.png'></image>
  60. <view class='li-video-gay'>{{item.duration}}″</view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>