index.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view class="activityDet">
  2. <view class="header">
  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}}" 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" />
  9. </view>
  10. <view class="toBox" style="top:{{configure.templateBase.toTop}}rpx;left: {{configure.templateBase.toLeft}}rpx;">
  11. <input value="{{configure.toText}}" 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" />
  15. </view>
  16. <button class="avatar resetBtn" open-type="chooseAvatar" bind:chooseavatar="changeAvatar"
  17. style="top:{{configure.templateBase.photoTop}}rpx;left: {{configure.templateBase.photoLeft}}rpx;width: {{configure.templateBase.photoWidth}}rpx;height:{{configure.templateBase.photoHeight}}rpx">
  18. <view class="tips" wx:if="{{!changeAvatarFlag}}">点击更换图片</view>
  19. </button>
  20. <image class="avatarImg"
  21. style="top:{{configure.templateBase.photoTop}}rpx;left: {{configure.templateBase.photoLeft}}rpx;width: {{configure.templateBase.photoWidth}}rpx;height:{{configure.templateBase.photoHeight}}rpx"
  22. src="{{avatar}}"></image>
  23. </view>
  24. <!-- 录制控制区域 -->
  25. <view class="btnsBox" wx:if="{{tempFilePath==''}}">
  26. <!-- <image
  27. src="{{state?'http://reader-wx.ai160.com/images/reader/card/send_blessings.png':'http://reader-wx.ai160.com/images/reader/card/show_off.png'}}"
  28. class="send" bindtap="play" /> -->
  29. <!-- <button class="resetBtn mangeL-box" bindtap="createActivityImg"> -->
  30. <button class="resetBtn mangeL-box" open-type="share">
  31. <view class="icon-name">分享</view>
  32. </button>
  33. <view class="countDown" wx:if="{{state}}">
  34. 倒计时:<view class="countBox">{{tens}}</view>
  35. <view class="countBox">{{bits}}</view>秒
  36. </view>
  37. </view>
  38. <!-- 试听与分享控制区域 -->
  39. <view class="music" wx:if="{{!state&&tempFilePath!=''}}">
  40. <image
  41. src="{{state?'http://reader-wx.ai160.com/images/reader/card/audition.png':'http://reader-wx.ai160.com/images/reader/card/audition.png'}}"
  42. class="playAuido" bindtap="play" />
  43. <button class="resetBtn share" open-type="share">
  44. 发送给亲爱的爸爸妈妈
  45. </button>
  46. <!-- http://reader-wx.ai160.com/images/reader/card/share.png -->
  47. </view>
  48. <!-- 祝福语 -->
  49. <view class="blessing">
  50. <view class="title">
  51. 祝福语:
  52. </view>
  53. <view class="content">{{configure.greeting}}</view>
  54. </view>
  55. <!-- 上传进度 -->
  56. <view class="maskBox" catchtap="true" wx:if="{{uploadState}}">
  57. <view>0%</view>
  58. <progress percent="{{percent}}" class="speedProgress" stroke-width="10" activeColor="#C3F166" />
  59. <view>祝福生成中</view>
  60. </view>
  61. </view>
  62. <canvas id='share' type="2d"> </canvas>