Commit 58c8bca8 by 姜雷

Merge branch 'develop' into 'test'

Develop See merge request !36
parents 2638d697 87dd8f66
...@@ -144,4 +144,7 @@ export default { ...@@ -144,4 +144,7 @@ export default {
.loading-container { .loading-container {
margin: 50px; margin: 50px;
} }
.left-box {
transition: all 0.48s;
}
</style> </style>
<template>
<list-layout>
<template slot="filterItem">
<search-item label="赠送类型">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
<search-item label="会员ID">
<el-input></el-input>
</search-item>
</template>
<template slot="filterBtn">
<el-button @click="showSearchBarHandle">qiehuan</el-button>
</template>
</list-layout>
</template>
<script>
import searchMixin from '@/mixins/searchBar';
export default {
name: 'Demo',
mixins: [searchMixin],
};
</script>
<script> <script>
import { getVcode } from '@/api/user/update'; import { getVcode } from '@/api/user/update';
import { clearTimeout } from 'timers';
export default { export default {
props: { props: {
...@@ -26,6 +27,8 @@ export default { ...@@ -26,6 +27,8 @@ export default {
const count = this.count; const count = this.count;
if (count == 1) { if (count == 1) {
this.counting = false; this.counting = false;
this.count = 60;
this.timer = null;
} else { } else {
const timer = setTimeout(() => { const timer = setTimeout(() => {
this.countDown(); this.countDown();
......
...@@ -12,10 +12,12 @@ import BaseData from '../components/input/BaseDataSelect/mixin'; ...@@ -12,10 +12,12 @@ import BaseData from '../components/input/BaseDataSelect/mixin';
import BeanType from '../components/input/BeanTypeSelect/mixin'; import BeanType from '../components/input/BeanTypeSelect/mixin';
import OperatorOptions from '../components/input/OperatorSelect/mixin'; import OperatorOptions from '../components/input/OperatorSelect/mixin';
import ServiceType from '../components/input/ServiceTypeSelect/mixin'; import ServiceType from '../components/input/ServiceTypeSelect/mixin';
import SearchBar from '../mixins/searchBar';
export default { export default {
Dialog, Dialog,
ListPage, ListPage,
SearchBar,
CampusListPage, CampusListPage,
Operator, Operator,
Admin, Admin,
......
export default {
data() {
return {
showAllSearchBar: false,
searchBarDom: null,
height: 0,
};
},
mounted() {
let searchBarDom = document.querySelector('.left-box');
let filterItemDom = document.querySelector('.filter-item');
this.searchBarDom = searchBarDom;
let height =
(filterItemDom.clientHeight +
parseInt(window.getComputedStyle(filterItemDom)['margin-bottom'])) *
2;
this.height = height;
this.searchBarDom.style = `height: ${height}px;overflow: hidden;max-height: ${height}px`;
},
methods: {
showSearchBarHandle() {
if (this.showAllSearchBar) {
this.showAllSearchBar = !this.showAllSearchBar;
this.searchBarDom.style = `height: ${
this.height
}px;overflow: hidden;max-height: ${this.height}px`;
} else {
this.showAllSearchBar = !this.showAllSearchBar;
this.searchBarDom.style =
'height: auto;overflow: hidden;max-height: 500px';
}
},
},
};
...@@ -15,6 +15,7 @@ const constantRouterMap = [ ...@@ -15,6 +15,7 @@ const constantRouterMap = [
path: '/', path: '/',
name: 'home', name: 'home',
meta: { title: '首页', icon: HomeIcon }, meta: { title: '首页', icon: HomeIcon },
// component: _import('Home'),
component: { render: h => <router-view /> }, component: { render: h => <router-view /> },
}, },
{ {
......
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