yaoQing.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="邀请" bgColor="#f6deb8" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="">
  5. <image style="width: 100%; height: 320rpx" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/nav_bg.png"></image>
  6. </view>
  7. <view class="user_box2">
  8. <image style="width: 218rpx; height: 218rpx; border-radius: 50%" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/bm_top.png" />
  9. <view style="font-size: 30rpx; font-weight: 600; margin-top: 20rpx">{{ title }}</view>
  10. </view>
  11. <view class="language">
  12. 我们希望您对文化遗产充满热爱并愿意为它们守护。 珍贵的文化遗产历经岁月沉淀,它们诉说着历史的 沧桑和变迁,见证着人类的智慧和劳动成果。
  13. 作为文物守护者,您拥有独特的使命感,保护着这些 珍贵的财富。在未来的岁月里, 愿你能坚定地守护着这份文化传承。
  14. </view>
  15. <view class="jiaru">邀请您加入{{ title }}的团队一起守护厦门文物</view>
  16. <view @click="joinTeam" class="star"><view class="tit">加入团队</view></view>
  17. <view style="display: flex; justify-content: center; align-items: center; gap: 50rpx" class=""></view>
  18. </view>
  19. </template>
  20. <script>
  21. let that;
  22. export default {
  23. data() {
  24. return {
  25. team_id: '',
  26. title: ''
  27. };
  28. },
  29. onLoad(o) {
  30. that = this;
  31. this.team_id = o.team_id;
  32. this.title = o.title;
  33. },
  34. methods: {
  35. // 加入团队
  36. joinTeam(id) {
  37. this.$api.joinTeam({ main_body_id: 1, team_id: this.team_id }, function (res) {
  38. console.log(res);
  39. if (res.code == 1) {
  40. that.$common.successToShow(res.msg);
  41. } else {
  42. that.$common.errorToShow(res.msg);
  43. }
  44. });
  45. }
  46. }
  47. };
  48. </script>
  49. <style>
  50. .box {
  51. height: 100%;
  52. width: 100%;
  53. padding-bottom: 50rpx;
  54. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  55. background-repeat: repeat-y;
  56. /* background-attachment: fixed; */
  57. background-size: 100% 100%;
  58. }
  59. .user_box2 {
  60. width: 90%;
  61. margin: auto;
  62. display: flex;
  63. justify-content: center;
  64. flex-direction: column;
  65. align-items: center;
  66. }
  67. .language {
  68. width: 695rpx;
  69. font-size: 28rpx;
  70. padding: 40rpx;
  71. margin: auto;
  72. margin-top: 20rpx;
  73. background-image: url('/static/img/yq_tit_bg.png');
  74. background-size: 100% 100%;
  75. }
  76. .jiaru {
  77. width: 90%;
  78. margin: auto;
  79. margin-top: 50rpx;
  80. text-align: center;
  81. font-size: 28rpx;
  82. }
  83. .tit {
  84. width: 90%;
  85. margin: auto;
  86. font-size: 32rpx;
  87. letter-spacing: 6rpx;
  88. text-align: center;
  89. font-weight: 700;
  90. background: linear-gradient(180deg, #af7e44 0%, #934b36 100%);
  91. -webkit-background-clip: text;
  92. -webkit-text-fill-color: transparent;
  93. }
  94. .star {
  95. width: 300rpx;
  96. height: 76rpx;
  97. margin: auto;
  98. margin-top: 80rpx;
  99. text-align: center;
  100. line-height: 76rpx;
  101. background: url('/static/img/dt_bg2.png') no-repeat;
  102. background-size: 100% 100%;
  103. }
  104. </style>