knowledge.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!--templates/knowledge/knowledge.wxml-->
  2. <template name="knowledge">
  3. <view class="model-container">
  4. <view class="model-wrapper">
  5. <view class="model-items">
  6. <view class="model-item" wx:for="{{konwHowList}}" wx:key="item.name">
  7. <view class="model-item-title model-item-row" data-index="{{index}}" bindtap="modelToggleItemCtl">
  8. <view class="model-item-label">{{index + 1 + '、' + item.name}}</view>
  9. <view class="model-item-arrow {{item.howActive == 'active' ? 'arrow-top' : ''}}">
  10. <image src="../../assets/arrow_gray.png"></image>
  11. </view>
  12. </view>
  13. <view class="model-list" wx:if="{{item.howActive == 'active'}}">
  14. <view class="model-li" wx:for="{{item.howDetailsList}}" wx:for-item="val" wx:for-index="key" wx:key="{{key}}">
  15. <view class="model-li-title" data-index="{{index}}" data-key="{{key}}" bindtap="modelToggleLiCtl">
  16. <image class="model-li-image" src="{{val.howActive == 'active' ? '../../assets/check.png' : '../../assets/check_gray.png'}}"></image>
  17. <text class="model-li-text {{val.howActive == 'active' ? 'li-text-active' : ''}}">{{val.name}}</text>
  18. </view>
  19. <!-- <view class="model-li-content" wx:if="{{val.howActive == 'active'}}">
  20. <input class="textarea" placeholder="请输入您的内容" placeholder-class="textarea-placeholder" value="{{val.howName}}" data-index="{{index}}" data-key="{{key}}" bindinput="modelReasonInput"></input>
  21. <view class="model-li-content-label">上传错题记录</view>
  22. <view class="model-li-content-button" data-index="{{index}}" data-key="{{key}}" bindtap="modelUploadFile">
  23. <image src="../../assets/add.png"></image>
  24. <text>添加错题照片</text>
  25. </view>
  26. <view class="model-li-content-images" wx:if="{{val.imgList.length > 0}}">
  27. <view class="model-li-content-images-item" wx:for="{{val.imgList}}" wx:for-item="i" wx:for-index="j" wx:key="{{i}}">
  28. <image mode="aspectFill" data-images="{{val.imgList}}" data-index="{{j}}" data-baseurl="{{baseImgUrl}}" bindtap="viewImageCtl" src="{{baseImgUrl + i.img}}"></image>
  29. <view class="model-li-content-images-del" data-index="{{index}}" data-key="{{key}}" data-j="{{j}}" bindtap="modelImgDelCtl">+</view>
  30. </view>
  31. </view>
  32. </view> -->
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="model-more-container" wx:if="{{isShowModelMore}}" bindtap="modeLoadAllCtl">
  38. <view class="model-more-button">
  39. <image src="../../assets/reload.png"></image>
  40. <text>加载全部知识点</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="model-footer">
  45. <view class="model-footer-item model-footer-item-white" bindtap="modelCancelKnowledgeCtl">取消</view>
  46. <view class="model-footer-item" bindtap="modelSaveKnowledgeCtl">确定</view>
  47. </view>
  48. </view>
  49. </template>