Commit 5f52c5f3 authored by 杨梦雪's avatar 杨梦雪

登录注册

parent 282b789e
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
@mouseenter="onMouserEnter(false)" @mouseenter="onMouserEnter(false)"
:class="isHover ? '' : 'is-hover'" :class="isHover ? '' : 'is-hover'"
@click="toLogin" @click="toLogin"
>登录</span> >登录 | 注册</span>
<span <!-- <span-->
@mouseenter="onMouserEnter(true)" <!-- @mouseenter="onMouserEnter(true)"-->
:class="isHover ? 'is-hover' : ''" <!-- :class="isHover ? 'is-hover' : ''"-->
@click="toRegister" <!-- @click="toRegister"-->
>注册</span> <!-- > 注册</span>-->
</div> </div>
<div class="alreadyLogin" v-else> <div class="alreadyLogin" v-else>
<el-dropdown @command="handleCommand" trigger="click"> <el-dropdown @command="handleCommand" trigger="click">
......
/* eslint-disable */ /* eslint-disable */
import { import {request} from './network'
request
} from './network'
import store from '@/store'
// 登录 // 登录
export function login(data) { export function login(data) {
...@@ -13,6 +10,16 @@ export function login(data) { ...@@ -13,6 +10,16 @@ export function login(data) {
}) })
} }
// 获取登录验证码
export function loginCode(data) {
return request({
method: 'post',
url: '/web/code/loginCode',
params: data
})
}
// 退出 // 退出
export function logout(data) { export function logout(data) {
return request({ return request({
......
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
.bannerImg { .bannerImg {
img { img {
width: 100%; /*width: 100%;*/
height: inherit; height: inherit;
} }
} }
...@@ -464,7 +464,7 @@ ...@@ -464,7 +464,7 @@
.item_name { .item_name {
display: flex; display: flex;
align-items: end; align-items: flex-end;
} }
.name { .name {
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
min-width: 1104px; min-width: 1104px;
background: #f8f8f8; background: #f8f8f8;
min-height: 100%; min-height: 100%;
width: 100%; /*width: 100%;*/
.big-right { .big-right {
height: calc(100% - 80px); height: calc(100% - 80px);
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="即将开营" name="2"> <el-tab-pane label="即将开营" name="2">
<div :key="index" v-for="(item,index) in List" class="campList" > <div :key="index" class="campList" v-for="(item,index) in List">
<el-card class="box-card"> <el-card class="box-card">
<div class="flex list_item"> <div class="flex list_item">
<div class="item_img"> <div class="item_img">
<img :src="item.url"/> <img :src="item.url"/>
</div> </div>
<div > <div>
<div class="item_title">{{item.name}}</div> <div class="item_title">{{item.name}}</div>
<div class="item_tag">{{item.tag}}</div> <div class="item_tag">{{item.tag}}</div>
<div class="item_time">活动时间:{{item.time}}</div> <div class="item_time">活动时间:{{item.time}}</div>
...@@ -59,27 +59,30 @@ ...@@ -59,27 +59,30 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex{ .flex {
display: flex; display: flex;
} }
.signUp { .signUp {
margin: 10px 80px 10px 31px; margin: 10px 80px 10px 31px;
.campList{
.campList {
margin: 10px 0; margin: 10px 0;
.list_item{
.item_img{ .list_item {
.item_img {
width: 30%; width: 30%;
margin-right: 10%; margin-right: 10%;
img{
img {
width: 100%; width: 100%;
} }
} }
.item_title{
} .item_title {
}
}
}
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment