Commit 06bfa99b authored by huangyecong's avatar huangyecong

Merge branch 'master' of git.ssish.com:sunhailiang/ln-medicalappointment-pc

parents 8feb1946 b26c4e5e
......@@ -97,29 +97,27 @@ export default {
margin-top: 20px;
}
.items {
width: 400px;
width: 700px;
.item {
background: #fafafa;
border-radius: 2px;
width: 400px;
margin-top: 20px;
height: 36px;
line-height: 36px;
font-size: 12px !important;
font-size: 14px !important;
padding-left: 10px;
::v-deep .ant-radio-wrapper {
font-size: 12px;
font-size: 14px;
}
}
}
::v-deep .ant-checkbox-group-item {
background: #fafafa;
border-radius: 2px;
width: 400px;
width: 700px;
margin-top: 20px;
height: 36px;
line-height: 36px;
font-size: 12px !important;
line-height: 58px;
font-size: 14px !important;
padding-left: 10px;
}
.point {
......
......@@ -67,7 +67,7 @@ export default {
.ant-btn {
&:nth-child(1) {
margin-right: 30px;
font-size: 12px;
font-size: 14px;
color: white;
border: none;
}
......@@ -81,27 +81,27 @@ export default {
}
.desc {
color: #cccccc;
font-size: 12px;
font-size: 14px;
margin-left: 4px;
}
}
.items {
margin-top: 15px;
margin-top: 21px;
padding-left: 10px;
li {
margin-top: 15px;
}
.label {
font-size: 12px;
font-size: 14px;
color: #aaaaaa;
}
.content {
width: 400px;
width: 700px;
color: #333333;
font-size: 12px;
line-height: 40px;
font-size: 14px;
line-height: 58px;
background: #fafafa;
margin-top: 4px;
margin-top: 8px;
border-radius: 2px;
position: relative;
left: -10px;
......
<template>
<div class="institution">
<!-- 请选择体检地区 -->
<div class="area">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检地区</div>
</div>
<ul class="area_box">
<li>
<label>省:</label>
<a-select style="width: 120px">
<a-select-option
v-for="item in provinceList"
:key="item"
:value="item"
>{{ item }}</a-select-option
>
</a-select>
</li>
<li>
<label>市:</label>
<a-select style="width: 120px">
<a-select-option
v-for="item in provinceList"
:key="item"
:value="item"
>{{ item }}</a-select-option
>
</a-select>
</li>
<li>
<label>区:</label>
<a-select style="width: 120px">
<a-select-option
v-for="item in areaList"
:key="item"
:value="item"
>{{ item }}</a-select-option
>
</a-select>
</li>
</ul>
</div>
<!-- 请选择体检机构 -->
<div class="mechanism">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检机构</div>
</div>
<div class="mechanism_box">
<span
v-for="(item, index) in mechanismList"
:key="index"
:class="index === selectIndex ? 'active' : ''"
@click="clickTab(index)"
>{{ item }}</span
>
</div>
</div>
<!-- 请选择体检地区 -->
<div class="hospital">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检中心</div>
</div>
<ul class="hospital_box">
<li v-for="(item, index) in hospitalList" :key="index">
<div>
<p class="top">{{ item.name }}</p>
<p class="bottom">{{ item.address }}</p>
</div>
<button
:class="item.isDisabled ? 'btn disabled' : 'btn'"
@click="openDatePicker(item)"
>
选择体检日期
</button>
</li>
</ul>
</div>
<div class="mask" v-if="datePickShow">
<reserve-date
ref="reserveDate1"
@confirmDate="getConfirm"
@cancleDate="getCancle"
@changeDay="
(date) => {
return dateChange(date, 0);
}
"
/>
</div>
</div>
</template>
<script>
import reserveDate from "../../../components/reserve-date";
export default {
name: "selectInstitution",
components: {
reserveDate,
},
props: {},
data() {
return {
datePickShow: false,
selectIndex: 0,
provinceList: ["上海市"],
provinceList: ["上海市"],
areaList: ["静安区"],
mechanismList: ["全部", "慈铭", "美年"],
hospitalList: [
{
name: "上海张江分院",
address: "上海市浦东新区海科路777号",
},
{
name: "上海张江分院",
address: "上海市浦东新区海科路777号",
},
{
name: "上海张江分院",
address: "上海市浦东新区海科路777号",
},
{
isDisabled: true,
name: "上海张江分院",
address: "上海市浦东新区海科路777号",
},
],
};
},
methods: {
// 选择体检机构
clickTab(index) {
this.selectIndex = index;
},
// 打开日期弹框
openDatePicker(item) {
if (item.isDisabled) {
return;
}
this.datePickShow = true;
},
getConfirm(val) {
this.datePickShow = false;
},
getCancle(val) {
this.datePickShow = false;
},
dateChange(date, type) {
console.log(date);
},
},
};
</script>
<style lang="less" scoped>
.mask {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.institution {
padding: 19.5px 14.5px 33.5px 14.5px;
background-color: white;
width: 760px;
margin: 0 auto;
font-size: 14px;
color: #333;
.title {
.point {
display: inline-block;
border-radius: 5px;
width: 6px;
height: 6px;
background-color: #3f7ffb;
margin-right: 6px;
position: relative;
top: -1px;
}
.type {
font-size: 14px;
font-weight: bold;
}
.item-container {
margin-top: 8.5px;
}
}
.area_box {
display: flex;
justify-content: space-between;
margin: 25px 0px 45px 0px;
label {
color: #aaa;
}
}
.mechanism_box {
display: flex;
flex-wrap: wrap;
margin: 25px 0px 45px 0px;
align-items: center;
span {
display: inline-block;
height: 42px;
line-height: 42px;
padding: 0 38px;
background: #fafafa;
border-radius: 4px;
margin-right: 20px;
}
span.active {
background: #d2d2d2;
}
}
.hospital_box {
margin: 25px 0px 45px 0px;
li {
display: flex;
height: 98px;
align-items: center;
justify-content: space-between;
background: #fafafa;
padding: 28px 24px;
margin-bottom: 12px;
.top {
font-size: 14px;
color: #333;
}
.bottom {
color: #999;
font-size: 13px;
}
.btn {
outline: none;
border: none;
background: linear-gradient(87deg, #ffcb00, #ffb219);
width: 110px;
height: 40px;
border-radius: 4px;
color: #fff;
}
.btn.disabled {
background: #e2e2e2;
}
}
}
}
</style>
......@@ -30,8 +30,8 @@
</div>
<div class="right">
<Combos v-if="!next" />
<Detail />
<Combos v-if="false" />
<Detail v-if="!next" />
<SelectInstitution />
</div>
</div>
......@@ -42,8 +42,7 @@
</template>
<script>
import SelectInstitution from './selectInstitution.vue';
import SelectInstitution from "./components/selectInstitution.vue";
import Combos from "./components/combo.vue";
import Detail from "./components/detail.vue";
......@@ -52,7 +51,7 @@ export default {
components: {
Combos,
Detail,
SelectInstitution
SelectInstitution,
},
props: {},
data() {
......@@ -92,7 +91,7 @@ export default {
display: flex;
justify-content: center;
.left {
max-height: 350px;
max-height: 430px;
.reset {
text-align: center;
margin-top: 25px;
......@@ -102,15 +101,16 @@ export default {
::v-deep .ant-input {
border: none;
background-color: #fafafa;
height: 42px;
}
.item {
display: flex;
margin-top: 10px;
margin-top: 14px;
.label {
display: inline-block;
width: 102px;
line-height: 32px;
font-size: 12px;
width: 120px;
line-height: 42px;
font-size: 14px;
color: #aaaaaa;
padding-left: 12px;
}
......
<template>
<div class="institution">
<!-- 请选择体检地区 -->
<div class="area">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检地区</div>
</div>
<ul class="area_box">
<li>
<label>省:</label>
<a-select style="width:120px">
<a-select-option v-for="(item) in provinceList" :key="item" :value="item">{{item}}</a-select-option>
</a-select>
</li>
<li>
<label>市:</label>
<a-select style="width:120px">
<a-select-option v-for="(item) in provinceList" :key="item" :value="item">{{item}}</a-select-option>
</a-select>
</li>
<li>
<label>区:</label>
<a-select style="width:120px">
<a-select-option v-for="(item) in areaList" :key="item" :value="item">{{item}}</a-select-option>
</a-select>
</li>
</ul>
</div>
<!-- 请选择体检机构 -->
<div class="mechanism">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检机构</div>
</div>
<div class="mechanism_box">
<span v-for="(item, index) in mechanismList" :key="index" :class="index === selectIndex ? 'active' : ''" @click="clickTab(index)">{{item}}</span>
</div>
</div>
<!-- 请选择体检地区 -->
<div class="hospital">
<div class="title">
<div class="type"><span class="point"></span> 请选择体检中心</div>
</div>
<ul class="hospital_box">
<li v-for="(item, index) in hospitalList" :key="index">
<div>
<p class="top">{{item.name}}</p>
<p class="bottom">{{item.address}}</p>
</div>
<button :class="item.isDisabled ? 'btn disabled' : 'btn'" @click="openDatePicker(item)">选择体检日期</button>
</li>
</ul>
</div>
<div class="mask" v-if="datePickShow">
<reserve-date ref="reserveDate1" @confirmDate="getConfirm" @cancleDate="getCancle" @changeDay="(date)=>{ return dateChange(date, 0); }" />
</div>
</div>
</template>
<script>
import reserveDate from '../../components/reserve-date'
export default {
name: "selectInstitution",
components: {
reserveDate
},
props: {},
data() {
return {
datePickShow: false,
selectIndex: 0,
provinceList: ['上海市'],
provinceList: ['上海市'],
areaList: ['静安区'],
mechanismList: ['全部', '慈铭', '美年'],
hospitalList: [
{
name: '上海张江分院',
address: '上海市浦东新区海科路777号'
},
{
name: '上海张江分院',
address: '上海市浦东新区海科路777号'
},
{
name: '上海张江分院',
address: '上海市浦东新区海科路777号'
},
{
isDisabled: true,
name: '上海张江分院',
address: '上海市浦东新区海科路777号'
},
]
};
},
methods: {
// 选择体检机构
clickTab(index) {
this.selectIndex = index;
},
// 打开日期弹框
openDatePicker(item) {
if (item.isDisabled) {
return;
}
this.datePickShow = true;
},
getConfirm(val) {
this.datePickShow = false;
},
getCancle(val) {
this.datePickShow = false;
},
dateChange(date, type) {
console.log(date)
}
},
};
</script>
<style lang="less" scoped>
.mask {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.institution{
padding: 19.5px 14.5px 33.5px 14.5px;
background-color: white;
width: 760px;
margin: 0 auto;
font-size: 14px;
color: #333;
.title {
.point {
display: inline-block;
border-radius: 5px;
width: 6px;
height: 6px;
background-color: #3f7ffb;
margin-right: 6px;
position: relative;
top: -1px;
}
.type {
font-size: 14px;
font-weight: bold;
}
.item-container {
margin-top: 8.5px;
}
}
.area_box {
display: flex;
justify-content: space-between;
margin: 25px 0px 45px 0px;
label {
color: #aaa;
}
}
.mechanism_box {
display: flex;
flex-wrap: wrap;
margin: 25px 0px 45px 0px;
align-items: center;
span {
display: inline-block;
height: 42px;
line-height: 42px;
padding: 0 38px;
background: #FAFAFA;
border-radius: 4px;
margin-right: 20px;
}
span.active {
background: #D2D2D2;
}
}
.hospital_box {
margin: 25px 0px 45px 0px;
li {
display: flex;
height: 98px;
align-items: center;
justify-content: space-between;
background: #FAFAFA;
padding: 28px 24px;
margin-bottom: 12px;
.top {
font-size: 14px;
color: #333;
}
.bottom {
color: #999;
font-size: 13px;
}
.btn {
outline: none;
border: none;
background: linear-gradient(87deg, #FFCB00, #FFB219);
width: 110px;
height: 40px;
border-radius: 4px;
color: #fff;
}
.btn.disabled {
background: #E2E2E2;
}
}
}
}
</style>
......@@ -53,18 +53,18 @@ export default {
text-align: right;
.date {
color: #999999;
font-size: 12px;
font-size: 14px;
margin-top: 12px;
}
}
.left {
.title {
color: #333333;
font-size: 12px;
font-size: 14px;
font-weight: bold;
}
.detail {
font-size: 12px;
font-size: 14px;
color: #999999;
line-height: 30px;
margin-top: 12px;
......
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