index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class="demo-wrap">
  2. <scroll-view class="demo-viewer" scroll-y="{{false}}"
  3. recordState="{{recordState}}">
  4. <block bind:sceneReady="handleSceneReady">
  5. <slot></slot>
  6. </block>
  7. <view wx:if="{{hint.length > 0}}">
  8. <view class="hint-wrap">
  9. <text class="hint-words" >{{hint}}</text>
  10. </view>
  11. </view>
  12. <view wx:if="{{code.length > 0}}">
  13. <view class="intro">
  14. <view class="intro-detail">
  15. <view class="title">代码演示</view>
  16. <view class="code-inner">
  17. <rich-text nodes="{{code}}"></rich-text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view wx:if="{{js.length > 0}}">
  23. <view class="intro">
  24. <view class="intro-detail">
  25. <view class="title">脚本演示</view>
  26. <view class="code-inner">
  27. <rich-text nodes="{{js}}"></rich-text>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view wx:if="{{json.length > 0}}">
  33. <view class="intro">
  34. <view class="intro-detail">
  35. <view class="title">动画数据结构</view>
  36. <view class="code-inner">
  37. <rich-text nodes="{{json}}"></rich-text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="holder"></view>
  43. </scroll-view>
  44. <view class="back-btn-wrap" wx:if="{{showBackBtn}}" bind:tap="onClickBack">
  45. <view class="back-line-t"></view>
  46. <view class="back-line-b"></view>
  47. </view>
  48. </view>