index.wxml 4.3 KB

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