index.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="container">
  2. <image src="/static/ai/headerBg.jpg" class="headerBg" />
  3. <view class="body">
  4. <view class="uploadBox" bindtap="uploadImg">
  5. <image src="/static/ai/uploadBg.png" class="uploadBg" />
  6. <view class="loading" wx:if="{{loading}}">
  7. <image src="/static/ai/loading.png" class="loadingImg" />
  8. <view class="tips1">
  9. 图片生成中
  10. </view>
  11. <view class="tips2">
  12. 正在制作中请稍等
  13. </view>
  14. </view>
  15. <image src="{{artistic}}" class="fillImg {{loading?'imgMask':''}}" />
  16. </view>
  17. <view class="templateBox">
  18. <image src="/static/ai/tHeaderBg.png" class="tHeaderBg" />
  19. <view class="templates">
  20. <image src="/static/ai/tbg.png" class="tbg" />
  21. <scroll-view class="templateScroll" scroll-x="true" enhanced show-scrollbar="{{false}}">
  22. <view class="template" wx:for="{{templates}}" wx:key="index" bindtap="selectTemplate"
  23. data-id='{{item.lora_id}}' data-name='{{item.name}}'>
  24. <image src="https://ai.wx.aidomore.com/v3/image/thumbnail/{{item.cover}}"
  25. class="cover {{item.lora_id==active?'active':''}}" />
  26. <view class="name textOver">{{item.name}}</view>
  27. </view>
  28. </scroll-view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="btns">
  33. <image src="/static/ai/reset.png" class="btn" bindtap="uploadImg" />
  34. <image src="/static/ai/download.png" class="btn" bindtap="downloadImg" />
  35. </view>
  36. <cropper id="cropper" style="width: 100%;height: 100%;"></cropper>
  37. </view>