brand.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <div class="w-brand">
  3. <div class="container">
  4. <div class="brand-bg">
  5. <h3>优软云关务服务</h3>
  6. <p>快捷、精确、节省</p>
  7. <p>为您提供一站式进出口综合服务</p>
  8. <a href="javascript:void(0)" @click="logUser">立即申请</a>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'MainPage',
  16. methods: {
  17. logUser () {
  18. if (this.$store.state.option.user.logged) {
  19. this.$router.push('/clientPage')
  20. } else {
  21. this.$message({
  22. message: '请先登录您的账户信息!',
  23. type: 'warning'
  24. })
  25. }
  26. }
  27. }
  28. }
  29. </script>
  30. <style type="text/scss" scoped lang="scss">
  31. .w-brand{
  32. background: url(/banner.png)no-repeat center center;
  33. height:700px;
  34. .brand-bg{
  35. padding-top:210px;
  36. margin-left:50px;
  37. h3{
  38. font-size: 40px;
  39. color:#fff;
  40. font-weight: bold;
  41. margin-bottom:35px;
  42. }
  43. p{
  44. font-size: 24px;
  45. color:#fff;
  46. margin-bottom:10px;
  47. }
  48. a{
  49. margin-top:75px;
  50. display:block;
  51. width:220px;
  52. height:44px;
  53. text-align: center;
  54. line-height: 44px;
  55. background: #16cd41;
  56. color:#fff;
  57. border-radius:5px;
  58. }
  59. }
  60. }
  61. </style>