index.wxml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class="activityDet">
  2. <view class="header" wx:if="{{state!='after'||!greetingCard.cardUrl}}">
  3. <image src="{{configure.bgImg}}" class="templateImg" />
  4. <view class="toBox"
  5. style="top:{{configure.templateBase.fromTop}}rpx;left: {{configure.templateBase.fromLeft}}rpx;justify-content: {{configure.fromTextAlign}};">
  6. <input value="{{configure.fromText}}" disabled="{{state=='process'}}" class="text" maxlength='8'
  7. style="color:{{configure.fromColor}};font-size: {{configure.fromFontSize}}rpx;border-color: {{configure.fromColor}}60;width: {{fromWidth}}rpx;"
  8. bindinput="bindKeyInput" data-type='from' />
  9. <view class="editBtn">
  10. <image src="/static/image/edit_new.png" wx:if="{{state!='process'}}" />
  11. </view>
  12. </view>
  13. <view class="toBox"
  14. style="top:{{configure.templateBase.toTop}}rpx;left: {{configure.templateBase.toLeft}}rpx;justify-content: {{configure.toTextAlign}};">
  15. <input value="{{configure.toText}}" disabled="{{state=='process'}}" class="text" maxlength='8'
  16. style="color:{{configure.toColor}};font-size: {{configure.toFontSize}}rpx;border-color: {{configure.toColor}}60;width: {{toWidth}}rpx;"
  17. bindinput="bindKeyInput" data-type='to' />
  18. <view class="editBtn">
  19. <image src="/static/image/edit_new.png" wx:if="{{state!='process'}}" />
  20. </view>
  21. </view>
  22. <view class="avatar" bindtap="showActionSheet" wx:if="{{state!='process'}}"
  23. style="top:{{configure.templateBase.photoTop}}rpx;left: {{configure.templateBase.photoLeft}}rpx;width: {{configure.templateBase.photoWidth}}rpx;height:{{configure.templateBase.photoHeight}}rpx">
  24. </view>
  25. <image class="avatarImg"
  26. style="top:{{configure.templateBase.photoTop}}rpx;left: {{configure.templateBase.photoLeft}}rpx;width: {{configure.templateBase.photoWidth}}rpx;height:{{configure.templateBase.photoHeight}}rpx"
  27. src="{{avatar}}"></image>
  28. </view>
  29. <view class="header" wx:if="{{state=='after'&&greetingCard.cardUrl}}">
  30. <image src="{{greetingCard.cardUrl}}" class="templateImg" />
  31. <view class="progressBox">
  32. <view class="after">{{playTime}}</view>
  33. <progress percent="{{vProgress}}" class="progress" stroke-width="8" activeColor="#9FFB3E"
  34. backgroundColor="#3333340" />
  35. <view class="before">{{endTime}}</view>
  36. </view>
  37. </view>
  38. <!-- 录制控制区域 -->
  39. <view class="btnsBox" wx:if="{{state!='after'}}">
  40. <image wx:if="{{state=='before'}}" src="http://reader-wx.ai160.com/images/reader/card/play_1.png" class="send"
  41. bindtap="play" />
  42. <view class="recordingBox" wx:if="{{state=='process'}}">
  43. <image class="readingNow" src="/static/index/readingNow.gif" />
  44. <image src="http://reader-wx.ai160.com/images/reader/card/play_3.png" class="send" bindtap="play" />
  45. </view>
  46. <view class="countDown" wx:if="{{state=='process'}}">
  47. 倒计时:<view class="countBox">{{tens}}</view>
  48. <view class="countBox">{{bits}}</view>秒
  49. </view>
  50. </view>
  51. <!-- 试听与分享控制区域 -->
  52. <view class="music" wx:if="{{state=='after'}}">
  53. <!-- <view class="music"> -->
  54. <image
  55. src="{{userAudioState?'http://reader-wx.ai160.com/images/reader/card/audition2.png':'http://reader-wx.ai160.com/images/reader/card/audition.png'}}"
  56. class="playAuido" bindtap="playUserAudio" />
  57. <button class="resetBtn share textOver" open-type="share">
  58. 发送给{{configure.toText}}
  59. </button>
  60. </view>
  61. <!-- 祝福语 -->
  62. <view class="blessing">
  63. <view wx:for="{{greeting}}" wx:key="index" class="content">{{item}}</view>
  64. </view>
  65. <!-- 上传进度 -->
  66. <view class="mask" wx:if="{{uploadState}}">
  67. <view class="maskBox" catchtap="true">
  68. <image src="/static/index/zqq.png" class="img" />
  69. <view>祝福生成中</view>
  70. </view>
  71. </view>
  72. </view>
  73. <yeyouzi-cropper id="yeyouzi-cropper" style="width: 100%;height: 100%;"></yeyouzi-cropper>
  74. <canvas id='share' type="2d"> </canvas>