ApplyContent.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div>
  3. <div class="banner">
  4. <img src="../../static/images/apply/banner.png" alt="">
  5. </div>
  6. <Steps></Steps>
  7. <ApplyForm></ApplyForm>
  8. <div class="dialog">
  9. <el-dialog
  10. :visible.sync="dialogVisible"
  11. width="50%">
  12. <p>登录后才可申请经纪商!</p>
  13. <button @click="goIndex()">立即登录</button>
  14. </el-dialog>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import Steps from '../components/Steps'
  20. import ApplyForm from '../components/ApplyForm'
  21. export default {
  22. name: 'ApplyContent',
  23. data () {
  24. return {
  25. dialogVisible: ''
  26. }
  27. },
  28. components: {Steps, ApplyForm},
  29. methods: {
  30. goIndex () {
  31. this.$router.push('/')
  32. }
  33. },
  34. mounted () {
  35. if (this.$store.state.logined) {
  36. this.dialogVisible = false
  37. } else {
  38. this.dialogVisible = true
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped>
  44. .banner {
  45. height: 400px;
  46. width: 100%;
  47. position: relative;
  48. overflow: hidden;
  49. margin-bottom: 10px;
  50. margin-top: 75px;
  51. img {
  52. height: 100%;
  53. position: relative;
  54. left: 50%;
  55. transform: translateX(-50%);
  56. }
  57. }
  58. .dialog{
  59. p{
  60. font-size: 24px;
  61. color: #1a6fa6;
  62. }
  63. button{
  64. border: 1px solid #e5e5e5;
  65. color: #1a6fa6;
  66. height: 35px;
  67. width: 120px;
  68. border-radius: 25px;
  69. margin-top: 30px;
  70. margin-bottom: 40px;
  71. font-size: 16px;
  72. font-weight: 700;
  73. }
  74. }
  75. </style>