index.wxml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <!--index.wxml-->
  2. <view class="container">
  3. <scroll-view id="scroll-content"
  4. scroll-top="{{scroll_top}}"
  5. scroll-y="true"
  6. class="dialog-part"
  7. scroll-into-view="translate-{{toView}}"
  8. enable-back-to-top="true"
  9. scroll-with-animation="true">
  10. <view class="dialog-wrap" id="translate-empty" wx:if="{{!recording && dialogList.length == 0}}">
  11. <result-bubble item="{{initTranslate}}" record-status="0"></result-bubble>
  12. </view>
  13. <view wx:for="{{dialogList}}" wx:key="id" class="dialog-wrap" data-index="{{index}}" catchmodaldelete="deleteItem">
  14. <result-bubble item="{{item}}"
  15. edit-show="{{index==dialogList.length-1}}"
  16. index="{{index}}"
  17. current-translate-voice="{{currentTranslateVoice}}"
  18. bindtranslate="translateTextAction"
  19. bindexpired="expiredAction"></result-bubble>
  20. </view>
  21. <view class="dialog-wrap" id="translate-recording" wx:if="{{recording}}">
  22. <result-bubble item="{{currentTranslate}}" record-status="{{recordStatus}}"></result-bubble>
  23. </view>
  24. <view id="translate-fake"></view>
  25. </scroll-view>
  26. <view class="foot-group" catchlongpress="catchTapEvent">
  27. <bottom-button button-disabled="{{bottomButtonDisabled}}"
  28. bindrecordstart="streamRecord"
  29. bindrecordend="streamRecordEnd"></bottom-button>
  30. </view>
  31. </view>