index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <xr-demo-viewer
  2. title="点选物体与动画控制"
  3. intro=""
  4. >
  5. <xr-template-select
  6. disable-scroll
  7. id="main-frame"
  8. width="{{renderWidth}}"
  9. height="{{renderHeight}}"
  10. itemIndex="{{itemIndex}}"
  11. bindinfoListener = "handleInfoListener"
  12. style="width:{{width}}px;height:{{height}}px;top:{{top}}px;left:{{left}}px; display:block;"
  13. />
  14. <!-- <view style="position: absolute; top: 0%; left:0%; width:100%; height:100%;" bind:touchstart='touchStart'></view> -->
  15. <view wx:for="{{menu}}">
  16. <view class="hexagon_container{{itemIndex==item.index?'_selected':''}}" hover-class="hexagon_container_active" catchtouchstart='animateChoose' data-index="{{item.index}}" style="left:{{item.x}}px; top:{{item.y}}px; --biasX:{{item.biasX}}px; --biasY:{{item.biasY}}px; --delay:{{item.index * 200 }}">
  17. <view class="rect_text">{{item.text}}</view>
  18. <view class="container">
  19. <view class="middle">
  20. <view class="item">
  21. <view class="item_partone"></view>
  22. <view class="item_parttwo"></view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </xr-demo-viewer>