index.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--index.wxml-->
  2. <view class="wrapper flex-auto flex-vertical ">
  3. <view class="logo">
  4. <image class="logo-img" src="../../images/img_gqsj_01@2x.png" style="width:208px; height:71px" />
  5. </view>
  6. <swiper style="height: {{bannerHeight}}px" autoplay="true" indicator-dots="true" indicator-color="#fff" indicator-active-color="red">
  7. <swiper-item class="swiper-item">
  8. <image src="../../images/img_banner01@2x.png" style="width: 100%; height: {{bannerHeight}}px" />
  9. <view class="swiper-item__text">
  10. <text class="swiper-item__title">钢琴课程</text>
  11. <text class="swiper-item__subtitle">带您提高音乐素养</text>
  12. <text class="swiper-item__desc">为您打造一系列定制课程</text>
  13. </view>
  14. </swiper-item>
  15. <swiper-item class="swiper-item">
  16. <image src="../../images/img_banner01@2x.png" style="width: 100%; height: {{bannerHeight}}px" />
  17. <view class="swiper-item__text">
  18. <text class="swiper-item__title">钢琴课程</text>
  19. <text class="swiper-item__subtitle">带您提高音乐素养</text>
  20. <text class="swiper-item__desc">为您打造一系列定制课程</text>
  21. </view>
  22. </swiper-item>
  23. </swiper>
  24. <view class="time">
  25. <view class="line"></view>
  26. <view class="line"></view>
  27. <view class="line"></view>
  28. <view class="line"></view>
  29. <view class="line"></view>
  30. <view class="time-clock">
  31. <image class="time-bg" src="../../images/img_shijianbg_01@2x.png" />
  32. <image class="time-icon" src="../../images/img_shijian_01@2x.png" />
  33. <text class="time-text">{{clock}}</text>
  34. </view>
  35. </view>
  36. <view class="start flex-auto flex-horizontal">
  37. <image class="start-bg" src="../../images/btn_kaishi_01@2x.png" />
  38. <button class="start-btn" bindtap="handleBtnClick">{{isLearning ? '结束' : '开始' }}</button>
  39. </view>
  40. <zan-popup show="{{ showPopup }}" bindclose="togglePopup">
  41. <view class='{{ showPopup ? "sg-show-popup" : "sg-hide-popup" }}'>
  42. <view class='hide-popup-btn' bindtap='hidePhotoPopup'>
  43. <icon type='cancel' color='white'></icon>
  44. </view>
  45. <canvas canvas-id="shareCanvas" style="width: {{shareCanvasWidth}}px; height:{{shareCanvasHeight}}px">
  46. </canvas>
  47. </view>
  48. <button class="share-btn" bindtap="handleShare" type='primary'>生成图片发到朋友圈</button>
  49. </zan-popup>
  50. </view>