微信小店联盟带货小程序

index.wxml 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <view class="container">
  2. <!-- 顶部邀请卡片 -->
  3. <view class="invite-card">
  4. <view class="card-header">
  5. <view class="header-title">
  6. <text class="title">邀请好友</text>
  7. <text class="subtitle">邀请好友加入,享双重奖励</text>
  8. </view>
  9. <view class="header-rewards">
  10. <view class="reward-item">
  11. <text class="reward-value">¥{{inviteRewards.directInvite}}</text>
  12. <text class="reward-label">直接邀请</text>
  13. </view>
  14. <view class="reward-divider"></view>
  15. <view class="reward-item">
  16. <text class="reward-value">¥{{inviteRewards.teamInvite}}</text>
  17. <text class="reward-label">团队邀请</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="card-body">
  22. <view class="invite-code-box">
  23. <view class="code-title">专属邀请码</view>
  24. <view class="code-content">
  25. <text class="code">{{inviteCode}}</text>
  26. <button class="copy-btn" bindtap="copyInviteCode">复制</button>
  27. </view>
  28. </view>
  29. <button class="share-btn" open-type="share">
  30. <image class="share-icon" src="/static/images/share.png"></image>
  31. 立即邀请
  32. </button>
  33. </view>
  34. </view>
  35. <!-- 邀请数据统计 -->
  36. <view class="stats-panel">
  37. <view class="stats-item">
  38. <text class="stats-value">{{inviteStats.totalInvited}}</text>
  39. <text class="stats-label">累计邀请</text>
  40. </view>
  41. <view class="stats-item">
  42. <text class="stats-value">{{inviteStats.activeInvited}}</text>
  43. <text class="stats-label">已激活</text>
  44. </view>
  45. <view class="stats-item">
  46. <text class="stats-value">¥{{inviteStats.totalReward}}</text>
  47. <text class="stats-label">累计奖励</text>
  48. </view>
  49. </view>
  50. <!-- 邀请规则说明 -->
  51. <view class="rules-card" bindtap="viewInviteRules">
  52. <view class="rules-title">
  53. <text>邀请规则</text>
  54. <text class="rules-more">查看详情</text>
  55. </view>
  56. <view class="rules-steps">
  57. <view class="step-item">
  58. <view class="step-circle">1</view>
  59. <text class="step-text">复制邀请码</text>
  60. </view>
  61. <view class="step-arrow"></view>
  62. <view class="step-item">
  63. <view class="step-circle">2</view>
  64. <text class="step-text">分享给好友</text>
  65. </view>
  66. <view class="step-arrow"></view>
  67. <view class="step-item">
  68. <view class="step-circle">3</view>
  69. <text class="step-text">好友注册</text>
  70. </view>
  71. <view class="step-arrow"></view>
  72. <view class="step-item">
  73. <view class="step-circle">4</view>
  74. <text class="step-text">获得奖励</text>
  75. </view>
  76. </view>
  77. </view>
  78. <!-- 邀请记录列表 -->
  79. <view class="records-card">
  80. <view class="records-title">
  81. <text>邀请记录</text>
  82. <text class="records-count">共{{invitedFriends.length}}人</text>
  83. </view>
  84. <view class="friend-list">
  85. <view class="friend-item" wx:for="{{invitedFriends}}" wx:key="id">
  86. <image class="friend-avatar" src="{{item.avatarUrl}}" mode="aspectFill"></image>
  87. <view class="friend-info">
  88. <text class="friend-name">{{item.nickName}}</text>
  89. <text class="friend-time">{{item.registerTime}}</text>
  90. </view>
  91. <view class="friend-reward">
  92. <text class="status-tag {{item.status === '已激活' ? 'active' : 'inactive'}}">{{item.status}}</text>
  93. <text class="reward-text">+¥{{item.reward}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>