index.wxml 1.4 KB

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