index.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!--index.wxml-->
  2. <view class="container">
  3. <image class="c_bg" src="{{cdn_url}}/images/bg.jpg" mode="scaleToFill" />
  4. <view class="body">
  5. <view class="swp">
  6. <swiper class="swiper" indicator-dots="{{indicatorDots}}" bindchange="swiperChange" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
  7. <block wx:for="{{scenes}}" wx:key="index">
  8. <swiper-item>
  9. <view class="swiper-item">
  10. <image src="{{cdn_url}}/images/lunbo{{item.id}}.jpg" mode="aspectFill" />
  11. </view>
  12. </swiper-item>
  13. </block>
  14. </swiper>
  15. <view class="dots">
  16. <block wx:for="{{background}}" wx:key="index">
  17. <image src="{{cdn_url}}/images/{{index == current ? 'dot_active.png' : 'dot_default.png'}}" mode="aspectFill" />
  18. </block>
  19. </view>
  20. </view>
  21. <view class="title">
  22. <image src="{{cdn_url}}/images/xuanze_new.png" mode="widthFix" />
  23. <text>选择您喜欢的场景</text>
  24. </view>
  25. <view class="lunbo" style="pointer-events: {{isOtherZhanYong?'none':'auto'}};opacity:{{isOtherZhanYong?'0.6':'1'}}">
  26. <block wx:for="{{scenes}}" wx:key="index">
  27. <image bindtap="tapSelect" data-id="{{item.id}}" src="{{cdn_url}}/images/{{item.id}}{{item.id == currentScene ? '-active' : ''}}.png" mode="aspectFill" />
  28. </block>
  29. </view>
  30. <view class="title">
  31. <image src="{{cdn_url}}/images/paishe_new.png" mode="widthFix" />
  32. <text>点击记录,下载拍摄结果,仅保留近15条内容</text>
  33. </view>
  34. <view class="record" style="--paddingbtm: {{records.length<=0?'50rpx':'180rpx'}};">
  35. <block wx:for="{{records}}" wx:key="index">
  36. <view data-id="{{item.id}}" bindtap="gotoRecord">
  37. <text>记录编号:{{item.id}}</text>
  38. <view>
  39. <text>场景名 | {{item.type=='1'?'拍照':'录像'}}</text>
  40. <text>{{item.date}}</text>
  41. </view>
  42. </view>
  43. </block>
  44. <view class="norecord" style="text-align: center;" wx:if="{{records.length<=0}}">
  45. <view class="record-title">历史记录</view>
  46. <view class="norecord-text">暂无记录</view>
  47. </view>
  48. </view>
  49. <view class="btn_paise" style="--bottom: {{isIphoneX?'10%':'4%'}};">
  50. <block wx:if="{{!isOtherZhanYong}}">
  51. <view class="paizhao">
  52. <image bindtap="shot" data-id="1" src="{{cdn_url}}/images/paizhao_new.png" mode="widthFix" />
  53. </view>
  54. <view class="luxiang">
  55. <image bindtap="shot" data-id="0" src="{{cdn_url}}/images/luxiang_new.png" mode="widthFix" />
  56. </view>
  57. </block>
  58. <view class="rescan" wx:else>
  59. <text>其他游客使用中,请稍后重新扫码</text>
  60. <view bindtap="scanCode">
  61. <image src="{{cdn_url}}/images/chongxinsaoma.png" mode="widthFix" />
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="shotting {{!isShot ? 'hidden' :''}}">
  67. <image class="shot_bg" src="{{cdn_url}}/images/shotbg_{{currentScene}}.jpg" mode="aspectFill" />
  68. <view class="{{!isRecord ? '' :'hidden'}}">
  69. <view class="tips {{daojishi ? '' :'hidden'}}">
  70. <view class="xiaolian">
  71. <image src="{{cdn_url}}/images/{{daojishi||1}}s.png" mode="widthFix" />
  72. <text>将于{{daojishi}}s后拍摄</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="record {{(isRecord&&recordjishi) ? '' :'hidden'}}">
  77. <image src="{{cdn_url}}/images/record.png" mode="widthFix" />
  78. <text>录制中{{recordjishi? '('+recordjishi+'s)':''}}…</text>
  79. </view>
  80. </view>
  81. </view>