invite.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="invite">
  3. <view class="header-bg"></view>
  4. <view class="header">
  5. <view class="title">
  6. 邀请
  7. </view>
  8. </view>
  9. <view class="content">
  10. <view class="tips">分享专属海报邀请5位好友注册升级为代理会员,关系自动绑定</view>
  11. <view class="poster-wrap">
  12. <image class="poster" src="" mode=""></image>
  13. </view>
  14. <view class="button">
  15. <button class="share-btn" type="default">分享专属海报</button>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. }
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .invite {
  32. position: relative;
  33. overflow: hidden;
  34. }
  35. .header-bg {
  36. background: $primary-color;
  37. height: 100upx;
  38. position: absolute;
  39. top: 0;
  40. width: 100%;
  41. z-index: 1;
  42. }
  43. .header {
  44. margin: 20upx;
  45. background: white;
  46. text-align: center;
  47. border-radius: 20upx;
  48. position: relative;
  49. z-index: 2;
  50. .title {
  51. height: 100upx;
  52. font-size: 32upx;
  53. line-height: 100upx;
  54. // font-weight: bold;
  55. }
  56. }
  57. .content {
  58. background: white;
  59. margin: 20upx;
  60. border-radius: 10upx;
  61. overflow: hidden;
  62. .tips {
  63. margin: 20upx;
  64. font-size: 24upx;
  65. color: #999999;
  66. text-align: center;
  67. }
  68. .poster-wrap{
  69. text-align: center;
  70. }
  71. .poster{
  72. background: #EEEEEE;
  73. width: 450upx;
  74. height: 700upx;
  75. }
  76. .button{
  77. text-align: center;
  78. margin: 40upx 0;
  79. }
  80. .share-btn {
  81. background-color: $primary-color;
  82. color: white;
  83. font-size: 32upx;
  84. padding: 10upx 20upx;
  85. border-radius: 10upx;
  86. line-height: normal;
  87. display: inline-block;
  88. margin-top: 20upx;
  89. }
  90. }
  91. </style>