index.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <template>
  2. <div class="container">
  3. <div class="header">
  4. <span>中德全国校区</span>
  5. <div class="form channel">
  6. <div class="text control">加盟申请</div>
  7. <div class="info control">
  8. <img src="~assets/images/campus/phone.png" alt="">
  9. <div class="phone">400-6807300</div>
  10. </div>
  11. <div class="control-input">
  12. <input type="text" placeholder="姓名">
  13. </div>
  14. <div class="control-input">
  15. <input type="text" placeholder="手机号">
  16. </div>
  17. <div class="control-input">
  18. <input type="text" placeholder="邮箱地址">
  19. </div>
  20. <div class="control-input">
  21. <input type="text" placeholder="加盟城市">
  22. </div>
  23. <div class="submit">提交申请</div>
  24. </div>
  25. </div>
  26. <!-- 全国校区 -->
  27. <div class="campus">
  28. <div class="q-title title-zh">全国校区</div>
  29. <div class="c-content w1200">
  30. <div class="list-warp">
  31. <ul class="list">
  32. <li class="campus-item" v-for="(item, index) in campusList" :key="index">
  33. <img :src="item.imgUrl" alt="">
  34. <div class="info">
  35. <div class="area">{{ item.area }}</div>
  36. <div class="name">{{ item.name }}</div>
  37. <div class="address">
  38. <div class="icon"><img src="~/assets/images/campus/icon_address.png" alt=""></div>
  39. <p>{{ item.address }}</p>
  40. </div>
  41. <div class="phone">
  42. <div class="icon"><img src="~/assets/images/campus/icon_phone.png" alt=""></div>
  43. <p>{{ item.phone }}</p>
  44. </div>
  45. <div class="detail">
  46. <!-- to="{name:'news-category',params:{category: indexFirstNewsList.articleCategoryId}} -->
  47. <nuxt-link target="_blank" :to="{ name: 'campus-type', params: { type: item.id } }">
  48. 查看详情
  49. </nuxt-link>
  50. </div>
  51. </div>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. campusList: [
  64. {
  65. id: 1,
  66. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  67. address: '盈港东路8300弄佳乐苑社区商铺',
  68. phone: '4007288000',
  69. name: '襄阳校区',
  70. area: '上海市·上海市市辖区·青浦区'
  71. },
  72. {
  73. id: 2,
  74. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  75. address: '盈港东路8300弄佳乐苑社区商铺',
  76. phone: '4007288000',
  77. name: '武汉校区',
  78. area: '上海市·上海市市辖区·青浦区'
  79. },
  80. {
  81. id: 3,
  82. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  83. address: '盈港东路8300弄佳乐苑社区商铺',
  84. phone: '4007288000',
  85. name: '唐山校区',
  86. area: '上海市·上海市市辖区·青浦区'
  87. },
  88. {
  89. id: 4,
  90. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  91. address: '盈港东路8300弄佳乐苑社区商铺',
  92. phone: '4007288000',
  93. name: '莆田校区',
  94. area: '上海市·上海市市辖区·青浦区'
  95. }
  96. ]
  97. }
  98. },
  99. created() {
  100. },
  101. mounted() {
  102. },
  103. methods: {
  104. }
  105. }
  106. </script>
  107. <style lang="scss" scoped>
  108. @import "~static/common/style.sass";
  109. .title-zh {
  110. height: 81px;
  111. line-height: 81px;
  112. font-size: 58px;
  113. font-family: PingFangSC-Semibold, PingFang SC;
  114. font-weight: 600;
  115. color: #000000;
  116. letter-spacing: 1px;
  117. text-align: center;
  118. }
  119. .header {
  120. position: relative;
  121. background: url('~assets/images/campus/header.png') 100% 100% no-repeat;
  122. height: 882px;
  123. // padding: 446px 0 0 302px;
  124. padding: 446px 0 0 15%;
  125. span {
  126. font-size: 80px;
  127. font-family: PingFangSC-Semibold,PingFang SC;
  128. font-weight: 600;
  129. color:#ffffff;
  130. line-height: 112px;
  131. }
  132. .form {
  133. font-size: 16px;
  134. position: absolute;
  135. right: 13.8%;
  136. // right: 266px;
  137. bottom: 124px;
  138. width: 327px;
  139. height: 450px;
  140. background:#FFFFFF;
  141. border-radius: 3px;
  142. padding: 34px 0 12px;
  143. div.text {
  144. font-size:14px;
  145. line-height:20px;
  146. font-family:PingFangSC-Regular,PingFang SC;
  147. font-weight:400;
  148. color: #5B5F5D;
  149. margin-bottom: 7px;
  150. }
  151. div.info {
  152. display: flex;
  153. align-items: center;
  154. margin-bottom: 20px;
  155. .phone {
  156. font-size: 26px;
  157. font-family: PingFangSC-Medium,PingFang SC;
  158. font-weight: 500;
  159. margin-left: 15px;
  160. }
  161. }
  162. .control {
  163. width:250px;
  164. margin: 0 auto;
  165. }
  166. .control-input {
  167. margin: 0 auto;
  168. width:250px;
  169. border-radius: 3px;
  170. border: 1px solid rgba(151,151,151,1);
  171. margin-bottom: 23px;
  172. input {
  173. width: 100%;
  174. height:44px;
  175. line-height: 44px;
  176. padding: 0 13px ;
  177. background: none;
  178. outline: none;
  179. border: 0px;
  180. &::-webkit-input-placeholder {
  181. color: #A4A6A5;
  182. }
  183. }
  184. }
  185. .submit {
  186. margin: 0 auto;
  187. text-align: center;
  188. font-size:14px;
  189. width: 148px;
  190. height: 27px;
  191. line-height: 27px;
  192. background: linear-gradient(180deg,rgba(88,144,251,1) 0%,rgba(51,117,252,1) 100%);
  193. box-shadow: 0px 7px 14px 0px rgba(136,176,254,0.79);
  194. border-radius: 3px;
  195. color: #ffffff;
  196. }
  197. }
  198. }
  199. .campus {
  200. padding: 192px 0 206px;
  201. .c-content {
  202. margin-top: 130px;
  203. ul {
  204. li.campus-item {
  205. display: inline-block;
  206. width: 374px;
  207. background:#FFFFFF;
  208. box-shadow: 0px 9px 13px 0px rgba(123,166,252,0.13);
  209. border-radius: 10px;
  210. margin: 0 38px 42px 0;
  211. transition: transform .3s ease-in-out;
  212. &:nth-child(3n) {
  213. margin-right: 0;
  214. }
  215. &:hover {
  216. transform: translate3d(0,-8px,0);
  217. }
  218. img {
  219. width: 100%;
  220. border-radius: 18px 18px 0 0;
  221. }
  222. .info {
  223. height: 175px;
  224. color: #898A8C;
  225. padding: 15px 20px 15px;
  226. .icon {
  227. margin-right: 8px;
  228. }
  229. }
  230. .area {
  231. font-size:14px;
  232. font-family: PingFangSC-Regular,PingFang SC;
  233. font-weight: 400;
  234. color:#898A8C;
  235. line-height: 20px;
  236. }
  237. .name {
  238. font-size:22px;
  239. font-family: PingFangSC-Medium,PingFang SC;
  240. font-weight:500;
  241. color:#1F241E;
  242. line-height:30px;
  243. margin-top: 5px;
  244. }
  245. .address {
  246. display: flex;
  247. align-items: center;
  248. font-size: 12px;
  249. font-family: PingFangSC-Regular,PingFang SC;
  250. font-weight: 400;
  251. line-height: 17px;
  252. margin-top: 9px;
  253. }
  254. .phone {
  255. display: flex;
  256. align-items: center;
  257. font-size: 12px;
  258. font-family: PingFangSC-Regular,PingFang SC;
  259. font-weight: 400;
  260. line-height: 17px;
  261. margin-top: 2px;
  262. }
  263. .detail {
  264. width: 85px;
  265. height: 26px;
  266. line-height: 26px;
  267. border-radius: 4px;
  268. border: 1px solid #4B86FB;
  269. font-size: 10px;
  270. text-align: center;
  271. color: #1B1616;
  272. margin: 17px auto 0;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. </style>