Commit 54b6e297 by cocomilk2012

update

parent 7c89cffb
Showing with 31 additions and 6 deletions
......@@ -112,7 +112,6 @@ export default class FlexEmployee extends Vue {
private taskRecordList: any = null;
private showList: number = -1;
private showPopup: boolean = true;
private expand: boolean = true;
get popupStyle() {
......
......@@ -27,8 +27,16 @@
</p>
</div>
</div>
<div class="index-bottom-box">
<div class="close-box">
<van-popup
v-model="showPopup"
:overlay="!showPopup"
:close-on-click-overlay="!showPopup"
round
position="bottom"
:style="popupStyle"
>
<div class="close-box" @click="expand_click">
<img src="../assets/images/ic_unfold@2x.png" />
</div>
......@@ -95,15 +103,18 @@
title="arrow"
/>
</router-link>
</div>
</van-popup>
</div>
</template>
<script lang='ts'>
import "../assets/css/labor.css";
import { Popup } from "vant";
import { Component, Vue } from "vue-property-decorator";
@Component({
components: {}
components: {
[Popup.name]: Popup
}
})
export default class Index extends Vue {
private name: string = "";
......@@ -115,6 +126,20 @@ export default class Index extends Vue {
private id_no: string = "";
private sp_id: string = "";
private ed_id: string = "";
private showPopup: boolean = true;
private expand: boolean = true;
get popupStyle() {
if (this.expand) {
return { height: "63%" };
} else {
return { height: "86%" };
}
}
private expand_click() {
this.expand = !this.expand;
}
created() {
const id_no = this.$route.query.id_no as string;
......@@ -155,7 +180,7 @@ body {
}
.info-card-box {
width: 100%;
height: 256px;
height: 667px;
background: linear-gradient(
180deg,
rgba(51, 205, 139, 1) 0%,
......@@ -214,6 +239,7 @@ body {
width: 100%;
height: 24px;
padding-top: 10px;
padding-bottom: 30px;
cursor: pointer;
}
.close-box img {
......
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 sign in to comment