188 lines
3.0 KiB
Vue
188 lines
3.0 KiB
Vue
<template>
|
|
<div class="home">
|
|
<nav-bar />
|
|
<div class="bj"></div>
|
|
<div class="zstj_tc_detail">
|
|
<div class="box">
|
|
<div class="container">
|
|
<h2>{{ detail.name }}</h2>
|
|
<h3>¥{{ detail.price }}</h3>
|
|
</div>
|
|
</div>
|
|
<div class="box1">
|
|
<div class="container">
|
|
<h2>注意事项</h2>
|
|
<p>{{detail.matter}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box3">
|
|
<div class="bt">
|
|
项目说明
|
|
<p class="read-more"></p>
|
|
</div>
|
|
<div class="info">
|
|
{{detail.explain}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box3">
|
|
<div class="bt">
|
|
费用明细
|
|
<p class="read-more"></p>
|
|
</div>
|
|
<div class="info">
|
|
{{detail.detail}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gao"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
// @ is an alias to /src
|
|
import { apiGetxmInfo } from "@/request/api.js";
|
|
import { Toast } from "vant";
|
|
export default {
|
|
components: {},
|
|
mounted() {
|
|
console.log(this.$route.meta.title);
|
|
this.title = this.$route.meta.title;
|
|
},
|
|
data() {
|
|
return {
|
|
active: 0,
|
|
title: "",
|
|
detail: {},
|
|
flag: false,
|
|
show: false,
|
|
bt: "一般体检检查",
|
|
price: "¥25",
|
|
};
|
|
},
|
|
mounted() {
|
|
this.getData();
|
|
},
|
|
methods: {
|
|
// 获取详情
|
|
getData() {
|
|
apiGetxmInfo({
|
|
id: this.$route.query.id,
|
|
}).then((res) => {
|
|
this.detail = res.data;
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
.bj {
|
|
background: #f5f5f5;
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0px;
|
|
left: 0px;
|
|
z-index: -1;
|
|
}
|
|
.zstj_tc_detail .box {
|
|
background: #fff;
|
|
padding: 40px 0px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.zstj_tc_detail .box .container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.zstj_tc_detail .box .container h2 {
|
|
font-size: 32px;
|
|
color: #333;
|
|
}
|
|
|
|
.zstj_tc_detail .box .container h3 {
|
|
color: #d62e25;
|
|
font-size: 36px;
|
|
}
|
|
|
|
.zstj_tc_detail .box1 {
|
|
background: #fff;
|
|
padding: 40px 0px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.zstj_tc_detail .box1 h2 {
|
|
font-size: 32px;
|
|
color: #333;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.zstj_tc_detail .box1 p {
|
|
color: #333;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.zstj_tc_detail .box2 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.box3 {
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
padding: 30px;
|
|
position: relative;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.box3 .bt {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #333;
|
|
font-size: 32px;
|
|
}
|
|
|
|
.box3 .bt p a {
|
|
font-size: 26px;
|
|
color: #39c5ba;
|
|
}
|
|
|
|
.box3 .info {
|
|
overflow: hidden;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.box3 .info p {
|
|
font-size: 28px;
|
|
line-height: 45px;
|
|
}
|
|
|
|
.zstj_tc_detail_ljyy {
|
|
position: fixed;
|
|
left: 0px;
|
|
bottom: 0px;
|
|
text-align: center;
|
|
font-size: 32px;
|
|
width: 100%;
|
|
height: 90px;
|
|
line-height: 90px;
|
|
background: linear-gradient(270deg, #1ce27d, #05c6af);
|
|
}
|
|
|
|
.zstj_tc_detail_ljyy a {
|
|
color: #fff;
|
|
}
|
|
|
|
::v-deep .van-calendar__selected-day {
|
|
background: #46c3b0;
|
|
}
|
|
|
|
.gao {
|
|
height: 90px;
|
|
}
|
|
</style>
|