invite.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <div class="main">
  3. <div class="title">云模管理平台</div>
  4. <p class="hello">{{detail.invitee}}您好!</p>
  5. <p class="invite">
  6. {{detail.operator}} 邀您参与
  7. <span class="impoortant">{{detail.companyName}}</span>的
  8. <span class="impoortant">{{detail.projectName}}</span>项目
  9. </p>
  10. <div class="info">
  11. <p class="info1">您的账户信息</p>
  12. <p class="info2">
  13. 手机号
  14. <span>{{detail.account}}</span>
  15. </p>
  16. <p class="info3">
  17. 初始密码
  18. <span>000000</span>
  19. </p>
  20. </div>
  21. <button @click="join">立即加入</button>
  22. </div>
  23. </template>
  24. <script>
  25. import util from "../common/js/util";
  26. export default {
  27. data() {
  28. return {
  29. inviteeId: "",
  30. projectId: "",
  31. operatorId: "",
  32. detail: ""
  33. };
  34. },
  35. methods: {
  36. join() {
  37. this.$router.push("/login");
  38. }
  39. },
  40. created() {},
  41. mounted() {
  42. //获取传入的值
  43. this.inviteeId = this.$route.params.inviteeId;
  44. this.projectId = this.$route.params.projectId;
  45. this.operatorId = this.$route.params.operatorId;
  46. this.http.post(this.port.project.inviteUser, {
  47. inviteeId: this.inviteeId,
  48. projectId: this.projectId,
  49. operatorId: this.operatorId
  50. } , res => {
  51. if (res.code == "ok") {
  52. this.detail = res.data;
  53. } else {
  54. this.$message({
  55. message: res.msg,
  56. type: 'error'
  57. });
  58. }
  59. }, error => {
  60. this.$message({
  61. message: error,
  62. type: 'error'
  63. });
  64. })
  65. }
  66. };
  67. </script>
  68. <style scoped>
  69. * {
  70. margin: 0;
  71. padding: 0;
  72. }
  73. .main {
  74. margin: 80px auto;
  75. width: 360px;
  76. color: #555;
  77. }
  78. .title {
  79. text-align: center;
  80. font-size: 20px;
  81. color: #999;
  82. line-height: 50px;
  83. border-bottom: #ddd 1px solid;
  84. margin-bottom: 5px;
  85. padding: 0 10px;
  86. }
  87. .impoortant {
  88. color: #1e72ff;
  89. }
  90. .hello {
  91. line-height: 40px;
  92. padding: 0 10px;
  93. }
  94. .invite {
  95. line-height: 22px;
  96. padding: 0 10px;
  97. }
  98. .info {
  99. background-color: #eee;
  100. margin: 20px 0;
  101. padding: 10px;
  102. border-radius: 3px;
  103. }
  104. .info1 {
  105. padding-left: 10px;
  106. border-left: #1e72ff 1px solid;
  107. line-height: 18px;
  108. }
  109. .info2 {
  110. line-height: 20px;
  111. padding: 10px 0;
  112. }
  113. .info3 {
  114. line-height: 20px;
  115. }
  116. .info2 span {
  117. position: relative;
  118. left: 40px;
  119. color: #999;
  120. }
  121. .info3 span {
  122. position: relative;
  123. left: 25px;
  124. color: #999;
  125. }
  126. button {
  127. background-color: #1e72ff;
  128. border: 0;
  129. color: white;
  130. border-radius: 5px;
  131. width: 100%;
  132. height: 40px;
  133. cursor: pointer;
  134. }
  135. </style>