• 罗成兵's avatar
    1 · 6d01face
    罗成兵 authored
    6d01face
receiveDetail.vue 4.18 KB
<template>
    <div class="receiveDetail">
        <div class="header_block">
            <div class="header_top">
                <img src="../../assets/images/close.png" alt="" @click="goBack" />
                <span>领取详情</span>
                <div></div>
            </div>
            <div class="header_center">
                <img src="../../assets/images/star.png" alt="" />
                <div>叶酸领取<br>申请提交成功!</div>
            </div>
            <div class="header_bottom"></div>
        </div>
        <div class="body_block">
            <div class="body_top"></div>
            <div class="title">请前往单位领取叶酸</div>
            <div class="body_bottom">
                <div class="body_bottom_first">
                    <div>领取单位:</div>
                    <div>{{applyUnitInfo.unitName}}</div>
                </div>
                <div class="body_bottom_last">
                    <div>领取地址:</div>
                    <div>{{applyUnitInfo.unitAddress}}</div>
                </div>
            </div>
        </div>
        <div class="btn_block">
            <van-button @click="goIndex">返回首页</van-button>
        </div>
    </div>
</template>
<script>
import {callMobile} from '@/utils/common'
export default {
    data() {
        return {
            applyUnitInfo: {},
        }
    },
    created() {
        this.applyUnitInfo = JSON.parse(sessionStorage.getItem('applyUnitInfo'));
    },
    methods: {
        goBack() {
            this.$router.push('provideUnit');
            //this.$router.go(-1);
        },
        goIndex() {
            // this.$router.push('provideUnit');
            callMobile('goIndex', {});
        },
    }
}
</script>
<style lang="less" scoped>
.header_block {
    height: 195px;
    background: linear-gradient(292.1deg, rgba(255, 121, 54, 0.65) 1.9%, rgba(253, 41, 34, 0.65) 94.3%), linear-gradient(180deg, #FF9B82 0%, #FD2922 100%);

    .header_top {
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        img {
            margin-left: 21px;
        }
        span {
            margin-left: -35px;
            color: #F8FAFC;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 1px;
        }
    }

    .header_center {
        height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        div {
            margin-left: 7px;
            color: #fff;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 1px;
        }
    }

    .header_bottom {
        height: 10px;
        background: rgba(218, 50, 27, 0.8);
        border-radius: 18px;
        margin: 0 10px;
    }
}
.body_block {
    height: 205px;
    background: #fff;
    box-shadow: 0px 4px 11px rgba(0, 0, 0, 0.06);
    margin: -16px 16px 0 16px;
    display: flex;
    flex-direction: column;
    .body_top {
        height: 26px;
        background: linear-gradient(180deg, rgba(234, 59, 35, 0.67) 0%, rgba(255, 255, 255, 0) 100%);
    }
    .title {
        height: 48px;
        color: #262626;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        border-bottom: 1px dashed #8C8C8C;
    }
    .body_bottom {
        font-size: 14px;
        padding: 0 16px;
        box-sizing: border-box;
        .body_bottom_first {
            margin-top: 24px;
            display: flex;
            :first-child {
                color: #595959;
            }
            :last-child {
                flex: 1;
                color: #262626;
            }
        }
        .body_bottom_last {
            margin-top: 13px;
            display: flex;
            :first-child {
                color: #595959;
            }
            :last-child {
                flex: 1;
                color: #262626;
            }
        }
    }
}
.btn_block {
    padding: 64px 118px 0 118px;
    .van-button {
        height: 40px;
        width: 100%;
    }
    .van-button--default {
        border: none;
        background: linear-gradient(180deg, #FF9D83 0%, #FE3129 100%);
        border-radius: 27px;
        color: #fff;
        font-size: 16px;
    }
}
</style>