index.wxml 1.7 KB

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