index.wxml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: {{configure.fromColor}}60;width: {{fromWidth}}rpx;"
  8. bindinput="bindKeyInput" data-type='from' />
  9. <image src="/static/image/edit_new.png" wx:if="{{state!='process'}}" />
  10. </view>
  11. <view class="toBox" style="top:{{configure.templateBase.toTop}}rpx;left: {{configure.templateBase.toLeft}}rpx;">
  12. <input value="{{configure.toText}}" disabled="{{state=='process'}}" class="text" maxlength='8'
  13. style="color:{{configure.toColor}};font-size: {{configure.toFontSize}}rpx;border-color: {{configure.toColor}}60;width: {{toWidth}}rpx;"
  14. bindinput="bindKeyInput" data-type='to' />
  15. <image src="/static/image/edit_new.png" wx:if="{{state!='process'}}" />
  16. </view>
  17. <view class="avatar" bindtap="showActionSheet" 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. </view>
  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. <yeyouzi-cropper id="yeyouzi-cropper" style="width: 100%;height: 100%;"></yeyouzi-cropper>
  70. <canvas id='share' type="2d"> </canvas>