index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <div class="section">
  3. <div class="banner">
  4. <div class="container">
  5. <el-dialog title="登 录" :visible.sync="isDialog" center width="30%">
  6. <el-form label-width="0px" :model="formLabelAlign">
  7. <el-form-item>
  8. <el-input v-model="formLabelAlign.name" placeholder="请输入手机号码"></el-input>
  9. </el-form-item>
  10. <el-form-item>
  11. <el-input type="password" v-model="formLabelAlign.region" placeholder="请输入密码"></el-input>
  12. </el-form-item>
  13. </el-form>
  14. <div slot="footer" class="dialog-footer">
  15. <el-button type="primary" @click="isDialog = false">登 录</el-button>
  16. <el-button type="text">忘记密码?</el-button>
  17. </div>
  18. </el-dialog>
  19. <el-row>
  20. <el-col :span="12">
  21. <span><i></i> 服务预约</span>
  22. </el-col>
  23. <el-col :span="12" style="text-align: right">
  24. <a href="#" @click="isDialog = true">登录</a>
  25. <a href="register">注册</a>
  26. <a href="#">客户端下载</a>
  27. <a href="#">在线客服</a>
  28. </el-col>
  29. </el-row>
  30. <div class="banner-btn">
  31. <a href="#">自动开店</a>
  32. <a href="#">立即咨询</a>
  33. </div>
  34. </div>
  35. </div>
  36. <carousel></carousel>
  37. <div class="info">
  38. <div class="container">
  39. <ul class="list-inline">
  40. <li>
  41. <a href="#">
  42. <img src="/banner/reservation1.jpg" alt="">
  43. </a>
  44. </li>
  45. <li>
  46. <a href="#">
  47. <img src="/banner/reservation2.jpg" alt="">
  48. </a>
  49. </li>
  50. <li>
  51. <a href="#">
  52. <img src="/banner/reservation3.jpg" alt="">
  53. </a>
  54. </li>
  55. <li>
  56. <a href="#">
  57. <img src="/banner/reservation4.jpg" alt="">
  58. </a>
  59. </li>
  60. <li>
  61. <a href="#">
  62. <img src="/banner/reservation6.jpg" alt="">
  63. </a>
  64. </li>
  65. <li>
  66. <a href="#">
  67. <img src="/banner/reservation5.jpg" alt="">
  68. </a>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74. </template>
  75. <script>
  76. import Carousel from '@/components/common/Carousel.vue'
  77. export default {
  78. name: 'index',
  79. layout: 'default',
  80. components: {
  81. Carousel
  82. },
  83. data () {
  84. return {
  85. isDialog: false,
  86. formLabelAlign: {
  87. name: '',
  88. region: ''
  89. }
  90. }
  91. },
  92. methods: {
  93. }
  94. }
  95. </script>
  96. <style type="text/scss" lang="scss" scoped>
  97. .banner{
  98. height:600px;
  99. background: url("/img/banner.jpg")no-repeat center center;
  100. padding-top:20px;
  101. .dialog-footer{
  102. .el-button--text{
  103. margin-left: 253px;
  104. }
  105. .el-button--primary{
  106. display: block;
  107. width: 94%;
  108. margin: 0 10px;
  109. }
  110. }
  111. .banner-btn{
  112. text-align: center;
  113. a{
  114. display:inline-block;
  115. margin:410px 90px 0;
  116. width:250px;
  117. height:58px;
  118. line-height: 58px;
  119. border-radius:10px;
  120. text-align: center;
  121. background: #feac38;
  122. font-size: 32px;
  123. font-weight: bold;
  124. color:#fff;
  125. }
  126. }
  127. a{
  128. display:inline-block;
  129. padding:0 20px;
  130. color:#fff;
  131. font-size: 16px;
  132. }
  133. span{
  134. font-size: 24px;
  135. color:#fff;
  136. i{
  137. display:inline-block;
  138. width:24px;
  139. height:24px;
  140. background: url("/header/favicon.png")no-repeat;
  141. background-size: cover;
  142. vertical-align: bottom;
  143. }
  144. }
  145. }
  146. .info{
  147. padding: 40px 0 55px 0;
  148. text-align: center;
  149. ul{
  150. width:100%;
  151. li{
  152. position:relative;
  153. height:308px;
  154. margin:0 20px 20px 0;
  155. padding:0;
  156. &:hover{
  157. cursor:pointer;
  158. position:relative;
  159. top:2px;
  160. left:2px;
  161. box-shadow: 0 0 5px rgba(0,0,0,.7);
  162. a{
  163. display:block;
  164. }
  165. }
  166. &:nth-child(1){
  167. margin-right:0;
  168. background: #e59265;
  169. }
  170. &:nth-child(2){
  171. background: #6ecdb8;
  172. }
  173. &:nth-child(3){
  174. margin-right:0;
  175. background: #91c2e7;
  176. }
  177. &:nth-child(4){
  178. background: #91c2e7;}
  179. &:nth-child(5){
  180. background: #ed927a;
  181. }
  182. &:nth-child(6){margin-right:0;
  183. background: #f296a0;
  184. }
  185. }
  186. }
  187. }
  188. </style>