index.wxml 3.7 KB

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