index.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 wow animate__animated animate__bounceIn" 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 :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. if (process.browser) {
  61. var {WOW} = require('wowjs')
  62. }
  63. export default {
  64. data() {
  65. return {
  66. campusList: [
  67. {
  68. id: 1,
  69. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  70. address: '盈港东路8300弄佳乐苑社区商铺',
  71. phone: '4007288000',
  72. name: '襄阳校区',
  73. area: '上海市·上海市市辖区·青浦区'
  74. },
  75. {
  76. id: 2,
  77. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  78. address: '盈港东路8300弄佳乐苑社区商铺',
  79. phone: '4007288000',
  80. name: '武汉校区',
  81. area: '上海市·上海市市辖区·青浦区'
  82. },
  83. {
  84. id: 3,
  85. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  86. address: '盈港东路8300弄佳乐苑社区商铺',
  87. phone: '4007288000',
  88. name: '唐山校区',
  89. area: '上海市·上海市市辖区·青浦区'
  90. },
  91. {
  92. id: 4,
  93. imgUrl: require('~/assets/images/campus/campus_img.jpg'),
  94. address: '盈港东路8300弄佳乐苑社区商铺',
  95. phone: '4007288000',
  96. name: '莆田校区',
  97. area: '上海市·上海市市辖区·青浦区'
  98. }
  99. ]
  100. }
  101. },
  102. created() {
  103. },
  104. mounted() {
  105. if (process.browser) {
  106. new WOW({
  107. offset: 0,
  108. live: true
  109. }).init()
  110. }
  111. },
  112. methods: {
  113. }
  114. }
  115. </script>
  116. <style lang="scss" scoped>
  117. @import "~static/common/style.sass";
  118. .title-zh {
  119. height: 81px;
  120. line-height: 81px;
  121. font-size: 58px;
  122. font-family: PingFangSC-Semibold, PingFang SC;
  123. font-weight: 600;
  124. color: #000000;
  125. letter-spacing: 1px;
  126. text-align: center;
  127. }
  128. .header {
  129. position: relative;
  130. background: url('~assets/images/campus/header.png') 100% 100% no-repeat;
  131. height: 882px;
  132. // padding: 446px 0 0 302px;
  133. padding: 446px 0 0 15%;
  134. span {
  135. font-size: 80px;
  136. font-family: PingFangSC-Semibold,PingFang SC;
  137. font-weight: 600;
  138. color:#ffffff;
  139. line-height: 112px;
  140. }
  141. .form {
  142. font-size: 16px;
  143. position: absolute;
  144. right: 13.8%;
  145. // right: 266px;
  146. bottom: 124px;
  147. width: 327px;
  148. height: 450px;
  149. background:#FFFFFF;
  150. border-radius: 3px;
  151. padding: 34px 0 12px;
  152. div.text {
  153. font-size:14px;
  154. line-height:20px;
  155. font-family:PingFangSC-Regular,PingFang SC;
  156. font-weight:400;
  157. color: #5B5F5D;
  158. margin-bottom: 7px;
  159. }
  160. div.info {
  161. display: flex;
  162. align-items: center;
  163. margin-bottom: 20px;
  164. .phone {
  165. font-size: 26px;
  166. font-family: PingFangSC-Medium,PingFang SC;
  167. font-weight: 500;
  168. margin-left: 15px;
  169. }
  170. }
  171. .control {
  172. width:250px;
  173. margin: 0 auto;
  174. }
  175. .control-input {
  176. margin: 0 auto;
  177. width:250px;
  178. border-radius: 3px;
  179. border: 1px solid rgba(151,151,151,1);
  180. margin-bottom: 23px;
  181. input {
  182. width: 100%;
  183. height:44px;
  184. line-height: 44px;
  185. padding: 0 13px ;
  186. background: none;
  187. outline: none;
  188. border: 0px;
  189. &::-webkit-input-placeholder {
  190. color: #A4A6A5;
  191. }
  192. }
  193. }
  194. .submit {
  195. margin: 0 auto;
  196. text-align: center;
  197. font-size:14px;
  198. width: 148px;
  199. height: 27px;
  200. line-height: 27px;
  201. background: linear-gradient(180deg,rgba(88,144,251,1) 0%,rgba(51,117,252,1) 100%);
  202. box-shadow: 0px 7px 14px 0px rgba(136,176,254,0.79);
  203. border-radius: 3px;
  204. color: #ffffff;
  205. }
  206. }
  207. }
  208. .campus {
  209. padding: 192px 0 206px;
  210. .c-content {
  211. margin-top: 130px;
  212. ul {
  213. li.campus-item {
  214. display: inline-block;
  215. width: 374px;
  216. background:#FFFFFF;
  217. box-shadow: 0px 9px 13px 0px rgba(123,166,252,0.13);
  218. border-radius: 10px;
  219. margin: 0 38px 42px 0;
  220. transition: transform .3s ease-in-out;
  221. &:nth-child(3n) {
  222. margin-right: 0;
  223. }
  224. &:hover {
  225. transform: translate3d(0,-8px,0);
  226. }
  227. img {
  228. width: 100%;
  229. border-radius: 18px 18px 0 0;
  230. }
  231. .info {
  232. height: 175px;
  233. color: #898A8C;
  234. padding: 15px 20px 15px;
  235. .icon {
  236. margin-right: 8px;
  237. }
  238. }
  239. .area {
  240. font-size:14px;
  241. font-family: PingFangSC-Regular,PingFang SC;
  242. font-weight: 400;
  243. color:#898A8C;
  244. line-height: 20px;
  245. }
  246. .name {
  247. font-size:22px;
  248. font-family: PingFangSC-Medium,PingFang SC;
  249. font-weight:500;
  250. color:#1F241E;
  251. line-height:30px;
  252. margin-top: 5px;
  253. }
  254. .address {
  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: 9px;
  262. }
  263. .phone {
  264. display: flex;
  265. align-items: center;
  266. font-size: 12px;
  267. font-family: PingFangSC-Regular,PingFang SC;
  268. font-weight: 400;
  269. line-height: 17px;
  270. margin-top: 2px;
  271. }
  272. .detail {
  273. width: 85px;
  274. height: 26px;
  275. line-height: 26px;
  276. border-radius: 4px;
  277. border: 1px solid #4B86FB;
  278. font-size: 10px;
  279. text-align: center;
  280. color: #1B1616;
  281. margin: 17px auto 0;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. </style>