1176 lines
29 KiB
Vue
1176 lines
29 KiB
Vue
<template>
|
||
<view class="hzIndex">
|
||
<hzHeader title="就诊预约"></hzHeader>
|
||
<view class="container hzContent">
|
||
<!-- <view class="banner-box">
|
||
<image src="/static/imgs/yiliao.png" mode=""></image>
|
||
</view> -->
|
||
<view class="main">
|
||
<view class="tab-box">
|
||
<view class="tab-item" :class="currentTabIndex == 0 ? 'active_tab' : ''"
|
||
@click="currentTabIndex = 0">
|
||
就诊预约
|
||
<view class="tabBottom" v-if="currentTabIndex == 0"></view>
|
||
</view>
|
||
<view class="tab-item" :class="currentTabIndex == 1 ? 'active_tab' : ''"
|
||
@click="currentTabIndex = 1">
|
||
预约记录
|
||
<view class="tabBottom" v-if="currentTabIndex == 1"></view>
|
||
</view>
|
||
</view>
|
||
<!-- 理发预约表单 -->
|
||
<view class="form-box one" v-if="currentTabIndex == 0">
|
||
<!-- 选择日期 -->
|
||
<view class="selectDate">
|
||
<view class="dateTit">
|
||
<view class="leftIcon">
|
||
|
||
</view>
|
||
<text style="font-size:32upx;color:#333;font-weight: 600;">选择日期</text>
|
||
</view>
|
||
<scroll-view class="scrollDate" scroll-x="true">
|
||
<view class="dateItem" :class="chooseDateIndex == index ? 'time-active' : ''"
|
||
v-for="(item, index) in date" :key="index" @click="switchTab(index)">
|
||
<text class="time">{{ item.tiems.substr(5, 10) }}</text>
|
||
<text class="week">{{ item.week }}</text>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
|
||
<view class="selectDate content"
|
||
v-if="this.date[this.chooseDateIndex].isholiday==2||(this.date[this.chooseDateIndex].isholiday!=1&&this.date[this.chooseDateIndex].week!='星期六'&&this.date[this.chooseDateIndex].week!='星期日')">
|
||
<!-- 预约项目 -->
|
||
<view class="dateTit">
|
||
<view class="leftIcon">
|
||
|
||
</view>
|
||
<text style="font-size:32upx;color:#333;font-weight: 600;">就诊项目<text
|
||
style="font-size: 28upx;color: #999999;">(单选)</text></text>
|
||
</view>
|
||
<view class="x-title" v-for="(item1, index) in parentProjectList" :key="index">
|
||
<view style="font-size: 32upx;color: #555555;margin-left: 32upx;">
|
||
<view>{{item1.project_name}}</view>
|
||
</view>
|
||
<!-- <scroll-view scroll-x="true" class="scroll-view">
|
||
<view class="barber">
|
||
<view class="barber-item" v-for="(item, index) in item1.childrenList" :key="index" @click="chooseProject(item)" v-if="(!item.project_day)||item.project_day.indexOf(date[chooseDateIndex].weekDay)!=-1">
|
||
<text class="round" :class="chooseProjectId == item.id ? 'barberactive' : ''"></text>
|
||
<text class="input_left">{{ item.project_name }}</text>
|
||
</view>
|
||
</view>
|
||
</scroll-view> -->
|
||
<view class="barber-doctor">
|
||
<view :class="chooseProjectId == item.id ? 'barber-doctor-item-choose' : ''"
|
||
class="barber-doctor-item" v-for="(item, index) in item1.childrenList" :key="index"
|
||
@click="chooseProject(item)"
|
||
v-if="(!item.project_day)||item.project_day.indexOf(date[chooseDateIndex].weekDay)!=-1"
|
||
:style="item1.childrenList.length>2?'width:28%;':''">
|
||
<text>{{ item.project_name }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
|
||
<!-- <view class="form-item">
|
||
<text class="label">部门</text>
|
||
<view class="ipt-box select">
|
||
<image class="arrow" src="/static/icons/right-arrow.png" mode=""></image>
|
||
<picker class="picker" v-if="deptList.length > 0" :range="deptList" @change="changeDepartment" range-key="name">
|
||
<view>{{ deptList[departmentIndex].name }}</view>
|
||
</picker>
|
||
</view>
|
||
</view>
|
||
<view class="form-item">
|
||
<text class="label">联系人</text>
|
||
<view class="ipt-box"><input type="text" placeholder="请填写预约人姓名" v-model="userName" /></view>
|
||
</view>
|
||
<view class="form-item">
|
||
<text class="label">联系电话</text>
|
||
<view class="ipt-box"><input type="number" placeholder="请填写联系电话" v-model="phone" /></view>
|
||
</view> -->
|
||
<!-- <view class="form-item">
|
||
<text class="label">备注</text>
|
||
<view class="ipt-box"><input type="number" placeholder="选填" v-model="desc" /></view>
|
||
</view> -->
|
||
<!-- 评论 -->
|
||
<!-- <view class="evaluate">
|
||
<view class="title">用户评价</view>
|
||
<view class="evaluate_item" v-for="(item,index) in commentlist" :key="index">
|
||
<view class="user">
|
||
<text class="username input_left">{{item.applicant_name}}</text>
|
||
<text>
|
||
<image v-for="(star,index) in item.satisfied_level" :key="index" src="../../static/imgs/showstar.png" alt="">
|
||
</text>
|
||
</view>
|
||
<view class="text">{{item.comment_content}}</view>
|
||
</view>
|
||
</view> -->
|
||
<view v-if="choseProject.project_tips" style="font-size: 28upx;color: red;padding:20upx 30upx">
|
||
提示:{{choseProject.project_tips}}
|
||
</view>
|
||
</view>
|
||
<view class="form-box one selectDate time-box">
|
||
<view class="dateTit">
|
||
<view class="leftIcon">
|
||
|
||
</view>
|
||
<text style="font-size:32upx;color:#333;font-weight: 600;">选择预约时段</text>
|
||
</view>
|
||
<view class="time-item"
|
||
:class="[chooseProjectInfoId == item.id &&item.compareTime? 'active' : '', (item.project_num==-1||(item.project_num-(item.applyNum?item.applyNum:0) > 0) )&&item.compareTime? '' : 'bg-gray']"
|
||
@click="chooseProjectInfo(item)" v-for="(item, index) in projectInfoList" :key="index">
|
||
<view class="time-text">{{ item.project_time }}</view>
|
||
<view class="time-text" style="margin-left: 150upx;" v-if="item.project_num!=-1">
|
||
已约
|
||
<text
|
||
:class="item.applyNum?item.applyNum:0 <= 0 ? 'color-666' : ''">{{item.applyNum?item.applyNum:0}}</text>
|
||
位 <text style="display: inline-block;margin-left: 10upx;"></text> 余
|
||
<text
|
||
:class="item.project_num-(item.applyNum?item.applyNum:0) <= 0 ? 'color-666' : ''">{{ item.project_num-(item.applyNum?item.applyNum:0 )}}</text>
|
||
位
|
||
</view>
|
||
<view class="time-text" style="margin-left: 150upx;" v-if="item.project_num==-1">
|
||
已约
|
||
<text>{{item.applyNum?item.applyNum:0}}</text>
|
||
位
|
||
</view>
|
||
<image v-if="chooseProjectInfoId == item.id &&item.compareTime" class="icon"
|
||
src="/static/haircut/eck.png" mode=""></image>
|
||
<view v-else class="icon"></view>
|
||
</view>
|
||
</view>
|
||
<view class="form-box one selectDate time-box">
|
||
<view class="dateTit">
|
||
<view class="leftIcon">
|
||
|
||
</view>
|
||
<text style="font-size:32upx;color:#333;font-weight: 600;">备注</text>
|
||
</view>
|
||
<view class="form-item">
|
||
<view class="ipt-box"><input type="number" placeholder="选填" v-model="desc" /></view>
|
||
</view>
|
||
</view>
|
||
|
||
<view
|
||
v-if="this.date[this.chooseDateIndex].isholiday==0&&(this.date[this.chooseDateIndex].week=='星期六'||this.date[this.chooseDateIndex].week=='星期日')"
|
||
style="height: 100%;line-height: 400upx;text-align: center;color: #666;">
|
||
今日周末不可预约
|
||
</view>
|
||
<view v-if="this.date[this.chooseDateIndex].isholiday==1"
|
||
style="height: 100%;line-height: 400upx;text-align: center;color: #666;">
|
||
今日节假日不可预约
|
||
</view>
|
||
</view>
|
||
<!-- 预约记录列表 -->
|
||
<view v-else>
|
||
<view class="list-box" v-if="appointlist.length > 0">
|
||
<view class="detail" v-for="(item, index) in appointlist" :key="index">
|
||
<view class="detail_header">
|
||
<image class="blueSign" src="@/static/haircut/jzyy.png" mode=""></image>
|
||
<text class="font-tilte" style="font-size: 16px;">{{ item.project_name }}</text>
|
||
<!-- <text class="slect_icon"></text> -->
|
||
<!-- <text class="font-result">预约成功</text> -->
|
||
</view>
|
||
<view class="detail_msg">
|
||
<!-- <view class="info-item">
|
||
<text>申请人:</text>
|
||
<text class="infoSpan">{{ item.apply_name }}</text>
|
||
</view> -->
|
||
<view class="info-item">
|
||
<text>预约时间:</text>
|
||
<text class="infoSpan">{{ item.apply_date+" "+item.project_info_name }}</text>
|
||
</view>
|
||
<!-- <view class="info-item">
|
||
<text>体检项目:</text>
|
||
<text class="infoSpan">{{ item.proName }}</text>
|
||
</view> -->
|
||
<view class="info-item">
|
||
<text>申请时间:</text>
|
||
<text class="infoSpan">{{ item.createTime }}</text>
|
||
</view>
|
||
<view style="display: flex;flex-direction: row;justify-self: end;">
|
||
<view class="comment-btn" v-if="item.status != 1&& item.editFlag"
|
||
@click="cancelSeekmedicalRecord(item,index)">取消</view>
|
||
<view class="comment-btn bg-ccc" v-if="item.status == 1">已取消</view>
|
||
<view class="comment-btn"
|
||
v-if="item.edit_own ==0 &&item.status != 1 && item.editFlag"
|
||
@click="goEditPage(item,index)">修改</view>
|
||
<view class="comment-btn bg-ccc" v-if="item.edit_own == 1">已修改</view>
|
||
|
||
<view class="comment-btn" v-if="item.comment_status == 0&&item.compareTime"
|
||
@click="goEvaluatePage(item.id)">评价</view>
|
||
<view class="comment-btn bg-ccc" v-if="item.comment_status == 1">已评价</view>
|
||
</view>
|
||
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<content-none :padTop="20" v-else></content-none>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<load-more v-if="currentTabIndex == 1" :loadingType="loadingType" :contentText="contentText"></load-more>
|
||
<view
|
||
v-if="currentTabIndex == 0 &&(this.date[this.chooseDateIndex].isholiday==2||(this.date[this.chooseDateIndex].isholiday!=1&&this.date[this.chooseDateIndex].week!='星期六'&&this.date[this.chooseDateIndex].week!='星期日'))">
|
||
<view class="occupied"></view>
|
||
<view class="footer-btn" style="background-color: #fff;">
|
||
<view class="btn" @click="submit">提交预约</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
<script>
|
||
import {
|
||
getAllDept,
|
||
getSeekmedicalProject,
|
||
getSeekmedicalProjectInfo,
|
||
saveSeekmedicalProjectRecord,
|
||
getMySeekmedicalProjectRecord,
|
||
cancelSeekmedicalRecord
|
||
} from '@/common/api.js';
|
||
import {
|
||
callbackRequest,
|
||
getStorage,
|
||
getDate,
|
||
alertTip,
|
||
regPhone,
|
||
formatDate
|
||
} from '@/common/util.js';
|
||
import loadMore from '@/components/loadMore.vue';
|
||
import contentNone from '@/components/contentNone.vue';
|
||
export default {
|
||
components: {
|
||
loadMore,
|
||
contentNone,
|
||
},
|
||
data() {
|
||
return {
|
||
//分页
|
||
page: 1,
|
||
pageSize: 10,
|
||
loadingType: 0, //0-loading前;1-loading中;2-没有更多了
|
||
contentText: {
|
||
contentdown: '上拉加载更多',
|
||
contentrefresh: '正在加载...',
|
||
contentnomore: '没有更多数据了'
|
||
},
|
||
user: getStorage('userInfo'),
|
||
currentTabIndex: 0, //当前选择的tab
|
||
projectList: [], //项目列表
|
||
chooseProjectId: 0,
|
||
parentProjectList: [],
|
||
choseProject: {},
|
||
projectInfoList: [], //项目详细列表
|
||
chooseProjectInfoId: 0,
|
||
choseProjectInfo: {},
|
||
deptList: [], //部门列表
|
||
departmentIndex: 0, //选择的部门下标
|
||
|
||
appointlist: [], //预约记录列表
|
||
|
||
chooseDateIndex: 0, //当前选择的理发日期
|
||
userName: getStorage('userInfo').userName, //申请人姓名
|
||
phone: getStorage('userInfo').telnumber, //申请人手机号
|
||
desc: '', // 备注
|
||
|
||
date: getDate(), //获取今天起 最近30天时间
|
||
commentlist: [], //评论列表
|
||
formatDate: formatDate,
|
||
};
|
||
},
|
||
onLoad(option) {
|
||
this.getCalendar();
|
||
this.currentTabIndex = option.currentTabIndex || 0;
|
||
// 部门
|
||
this.getDepartment();
|
||
|
||
},
|
||
onShow() {
|
||
if (this.currentTabIndex == 0) {
|
||
this.initHaircut();
|
||
} else {
|
||
this.page = 1;
|
||
this.loadingType = 0;
|
||
this.getList();
|
||
}
|
||
},
|
||
watch: {
|
||
currentTabIndex: function(newVal, oldVal) {
|
||
this.chooseProjectInfoId = 0;
|
||
if (newVal == 1) {
|
||
this.page = 1;
|
||
this.loadingType = 0;
|
||
this.getList();
|
||
} else {
|
||
// 初始化
|
||
|
||
this.initHaircut();
|
||
}
|
||
}
|
||
},
|
||
onReachBottom() {
|
||
if (this.loadingType !== 0 || this.currentTabIndex == 0) {
|
||
return;
|
||
}
|
||
this.loadingType = 1;
|
||
this.page = this.page + 1;
|
||
this.getList();
|
||
},
|
||
methods: {
|
||
circulation() {
|
||
this.$refs.popup.open();
|
||
//this.closeButPopup();
|
||
},
|
||
closeCirculation() {
|
||
this.$refs.popup.close()
|
||
},
|
||
getCalendar(params) {
|
||
let params2 = {
|
||
method: "greenCalendar/getCalendarList",
|
||
data: {
|
||
date_name: this.date[0].tiems,
|
||
}
|
||
};
|
||
callbackRequest(params2).then(res => {
|
||
if (res.data.returnCode == 1) {
|
||
var list = res.data.returnData;
|
||
console.log(list);
|
||
|
||
for (var j = 0; j < this.date.length; j++) {
|
||
var fl = true;
|
||
for (var i = 0; i < list.length; i++) {
|
||
if (list[i].date_name == this.date[j].tiems) {
|
||
this.$set(this.date[j], 'isholiday', list[i].isholiday);
|
||
fl = false;
|
||
}
|
||
}
|
||
if (fl) {
|
||
this.$set(this.date[j], 'isholiday', '0');
|
||
}
|
||
}
|
||
}
|
||
});
|
||
},
|
||
goEditPage(item, index) {
|
||
|
||
uni.redirectTo({
|
||
url: `/pages/medical/see-doctor-edit?id=` + item.id + '&type=1'
|
||
});
|
||
},
|
||
cancelSeekmedicalRecord(item, index) {
|
||
uni.showModal({
|
||
title: '确认',
|
||
content: '是否确定取消当前预约?',
|
||
showCancel: true,
|
||
cancelText: '取消',
|
||
confirmText: '确定',
|
||
success: res => {
|
||
if (res.confirm) {
|
||
let params = {
|
||
"method": cancelSeekmedicalRecord,
|
||
data: {
|
||
id: item.id,
|
||
}
|
||
}
|
||
callbackRequest(params)
|
||
.then(res => {
|
||
let result = res.data;
|
||
if (result.returnCode == 1) {
|
||
alertTip(result.returnMsg);
|
||
//this.appointlist[index].status=1;
|
||
this.$set(item, 'status', 1);
|
||
// setTimeout(_ => {
|
||
// this.currentTabIndex = 1;
|
||
// }, 2000)
|
||
} else {
|
||
alertTip(result.returnMsg)
|
||
}
|
||
})
|
||
}
|
||
}
|
||
});
|
||
},
|
||
compareTime(time1) {
|
||
var endTime = time1.split("-")[1] == "24:00" ? "23:59" : time1.split("-")[1];
|
||
var endDate = this.date[this.chooseDateIndex].tiems + " " + endTime;
|
||
endDate = endDate.replace(/-/g, '/');
|
||
var endDateTime = new Date(endDate).getTime();
|
||
var nowDateTime = new Date().getTime();
|
||
if (endDateTime > nowDateTime) {
|
||
return true;
|
||
} else {
|
||
return false;
|
||
}
|
||
},
|
||
compareTimeForRecord(date, time) {
|
||
var endTime = time.split(" ")[1].split("-")[0];
|
||
var endDate = date + " " + endTime;
|
||
endDate = endDate.replace(/-/g, '/');
|
||
var endDateTime = new Date(endDate).getTime();
|
||
var nowDateTime = new Date().getTime();
|
||
if (endDateTime < nowDateTime) {
|
||
return true;
|
||
} else {
|
||
return false;
|
||
}
|
||
},
|
||
//提交预约
|
||
submit() {
|
||
var regPhone = /^1[3|4|5|6|7|8|9]\d{9}$/;
|
||
if (this.chooseProjectInfoId == 0) {
|
||
alertTip('请选择时间段');
|
||
return false;
|
||
}
|
||
if (this.userName.length == 0) {
|
||
alertTip('请输入联系人姓名');
|
||
return false;
|
||
}
|
||
if (!regPhone.test(this.phone)) {
|
||
alertTip('请输入正确的手机号');
|
||
return false;
|
||
}
|
||
uni.showModal({
|
||
title: '确认',
|
||
content: '是否确定提交?',
|
||
showCancel: true,
|
||
cancelText: '取消',
|
||
confirmText: '确定',
|
||
success: res => {
|
||
if (res.confirm) {
|
||
|
||
let params = {
|
||
"method": saveSeekmedicalProjectRecord,
|
||
data: {
|
||
projectId: this.chooseProjectId,
|
||
projectName: this.choseProject.project_name,
|
||
projectInfoId: this.chooseProjectInfoId,
|
||
projectInfoName: this.choseProjectInfo.project_time,
|
||
applyId: this.user.userId,
|
||
applyName: this.userName,
|
||
applyDeptId: this.deptList[this.departmentIndex].id,
|
||
applyDeptName: this.deptList[this.departmentIndex].name,
|
||
applyPhone: this.phone,
|
||
remark: this.desc,
|
||
applyDate: this.date[this.chooseDateIndex].tiems,
|
||
}
|
||
}
|
||
callbackRequest(params)
|
||
.then(res => {
|
||
let result = res.data;
|
||
if (result.returnCode == 1) {
|
||
alertTip('预约成功');
|
||
setTimeout(_ => {
|
||
this.currentTabIndex = 1;
|
||
}, 2000)
|
||
} else {
|
||
alertTip(result.returnMsg)
|
||
}
|
||
})
|
||
}
|
||
}
|
||
});
|
||
|
||
|
||
},
|
||
chooseProject(item) {
|
||
this.chooseProjectId = item.id;
|
||
this.choseProject = item;
|
||
this.getSeekmedicalProjectInfo();
|
||
},
|
||
chooseProjectInfo(item) {
|
||
if (item.project_num != -1 && (item.project_num - (item.applyNum ? item.applyNum : 0) <= 0 || !item
|
||
.compareTime)) {
|
||
return;
|
||
}
|
||
this.choseProjectInfo = item;
|
||
this.chooseProjectInfoId = item.id;
|
||
},
|
||
//获取部门列表
|
||
getDepartment() {
|
||
let data = {
|
||
method: getAllDept,
|
||
data: {}
|
||
};
|
||
callbackRequest(data).then(res => {
|
||
if (res.data.returnCode == 1) {
|
||
this.deptList = res.data.returnData;
|
||
for (var i = 0; i < this.deptList.length; i++) {
|
||
if (this.deptList[i].id == this.user.deptId) {
|
||
this.departmentIndex = i;
|
||
}
|
||
}
|
||
}
|
||
});
|
||
},
|
||
//初始化数据
|
||
initHaircut() {
|
||
let params = {
|
||
"method": getSeekmedicalProject,
|
||
"data": {
|
||
userId: this.user.id
|
||
}
|
||
}
|
||
callbackRequest(params)
|
||
.then(res => {
|
||
res = res.data;
|
||
if (res.returnCode === "1") {
|
||
this.parentProjectList = res.returnData;
|
||
this.projectList = this.parentProjectList[0].childrenList;
|
||
this.chooseProjectId = this.projectList[0].id;
|
||
this.choseProject = this.projectList[0];
|
||
this.getSeekmedicalProjectInfo();
|
||
}
|
||
})
|
||
},
|
||
getSeekmedicalProjectInfo() {
|
||
let params = {
|
||
"method": getSeekmedicalProjectInfo,
|
||
"data": {
|
||
userId: this.user.userId,
|
||
projectId: this.chooseProjectId,
|
||
applyDate: this.date[this.chooseDateIndex].tiems,
|
||
}
|
||
}
|
||
callbackRequest(params)
|
||
.then(res => {
|
||
res = res.data;
|
||
if (res.returnCode === "1") {
|
||
this.projectInfoList = res.returnData;
|
||
for (var i = 0; i < this.projectInfoList.length; i++) {
|
||
var compareTime = this.compareTime(this.projectInfoList[i].project_time);
|
||
this.projectInfoList[i].compareTime = compareTime;
|
||
}
|
||
if (res.returnData[0].project_num - (res.returnData[0].applyNum ? res.returnData[0]
|
||
.applyNum : 0) > 0 && this.projectInfoList[0].compareTime) {
|
||
this.chooseProjectInfoId = res.returnData[0].id;
|
||
this.choseProjectInfo = res.returnData[0];
|
||
} else {
|
||
this.chooseProjectInfoId = 0;
|
||
this.choseProjectInfo = {};
|
||
}
|
||
}
|
||
})
|
||
},
|
||
//选择日期
|
||
switchTab(index) {
|
||
if (this.chooseDateIndex != index) {
|
||
this.chooseDateIndex = index;
|
||
this.getSeekmedicalProjectInfo();
|
||
}
|
||
},
|
||
//选择部门
|
||
changeDepartment(e) {
|
||
this.departmentIndex = e.detail.value;
|
||
},
|
||
goEvaluatePage(id) {
|
||
uni.navigateTo({
|
||
url: `/pages/malfunc-repair/malfunc-evaluate?type=10&typeId=${id}`
|
||
});
|
||
},
|
||
|
||
|
||
//获取列表记录接口
|
||
getList() {
|
||
let params = {
|
||
"method": getMySeekmedicalProjectRecord,
|
||
data: {
|
||
pageNum: this.page,
|
||
pageSize: this.pageSize,
|
||
applyId: this.user.id
|
||
},
|
||
}
|
||
callbackRequest(params)
|
||
.then(res => {
|
||
if (res.data.returnCode == 1) {
|
||
var listS = res.data.returnData || [];
|
||
var listSS = [];
|
||
var dateNow = this.date[0].tiems;
|
||
dateNow = dateNow.replace(/-/g, '/');
|
||
var dateNowTime = new Date(dateNow).getTime();
|
||
for (var i = 0; i < listS.length; i++) {
|
||
var obj = listS[i];
|
||
var compareTime = this.compareTimeForRecord(obj.apply_date, obj.apply_date + " " + obj
|
||
.project_info_name);
|
||
obj.compareTime = compareTime;
|
||
|
||
var apply_date = obj.apply_date;
|
||
apply_date = apply_date.replace(/-/g, '/');
|
||
var apply_date_time = new Date(apply_date).getTime();
|
||
if (apply_date_time > dateNowTime) {
|
||
obj.editFlag = true;
|
||
} else {
|
||
obj.editFlag = false;
|
||
}
|
||
listSS.push(obj);
|
||
}
|
||
if (this.page == 1) {
|
||
this.appointlist = listSS;
|
||
} else {
|
||
if (res.data.returnData.length > 0) {
|
||
this.appointlist = this.appointlist.concat(listSS);
|
||
// console.log(this.appointlist);
|
||
this.loadingType = 0;
|
||
} else {
|
||
this.loadingType = 2;
|
||
}
|
||
}
|
||
}
|
||
|
||
})
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
@import '@/static/css/common.scss';
|
||
@import url('../../static/css/haircut/haircut.css');
|
||
|
||
.barber-doctor {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: wrap;
|
||
// border-bottom: 1px solid #e5e5e5;
|
||
padding-bottom: 20upx;
|
||
|
||
.barber-doctor-item {
|
||
width: 150*2upx;
|
||
min-height: 38*2upx;
|
||
background: #F2F6FA;
|
||
border-radius: 4*2upx;
|
||
border: 1px solid #F2F6FA;
|
||
line-height: 40upx;
|
||
color: #555555;
|
||
text-align: center;
|
||
font-size: 28upx;
|
||
margin-left: 28upx;
|
||
margin-top: 24upx;
|
||
padding: 18upx 30upx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
// .barber-doctor-item:first-child {
|
||
// margin-left: 0;
|
||
// }
|
||
|
||
.barber-doctor-item-choose {
|
||
background: #EDFCF7;
|
||
border: 1px solid #00ADA6;
|
||
color: #0DB0A7;
|
||
}
|
||
}
|
||
|
||
page {
|
||
background: #f8f8f8;
|
||
font-size: 30upx;
|
||
}
|
||
|
||
.bg-gray {
|
||
background-color: #c5c5c5;
|
||
}
|
||
|
||
.scroll-view {
|
||
padding-top: 30upx;
|
||
white-space: nowrap;
|
||
width: 100%;
|
||
height: 120upx;
|
||
|
||
.time-item-box {
|
||
padding: 0 10upx;
|
||
margin: 0 16upx;
|
||
display: inline-block;
|
||
|
||
.time {
|
||
display: block;
|
||
width: 100%;
|
||
font-size: 28upx;
|
||
color: #666;
|
||
}
|
||
|
||
.week {
|
||
display: block;
|
||
width: 100%;
|
||
font-size: 28upx;
|
||
color: #666;
|
||
}
|
||
}
|
||
|
||
.time-active {
|
||
.time {
|
||
color: #00c277;
|
||
}
|
||
|
||
.week {
|
||
color: #00c277;
|
||
}
|
||
}
|
||
}
|
||
|
||
.detail {
|
||
// margin-top: 10upx;
|
||
margin-bottom: 14upx;
|
||
background: #ffffff;
|
||
border-radius: 4upx;
|
||
}
|
||
|
||
.detail_header {
|
||
padding: 15upx 30upx;
|
||
border-bottom: 1px solid #eee;
|
||
}
|
||
|
||
.detail_header .blueSign {
|
||
height: 30upx;
|
||
width: 10upx;
|
||
// background: #00c277;
|
||
display: inline-block;
|
||
margin: 0upx 14upx 0 0;
|
||
}
|
||
|
||
.detail_header .font-tilte {
|
||
display: inline-block;
|
||
font-size: 40upx;
|
||
color: #333;
|
||
line-height: 50upx;
|
||
vertical-align: top;
|
||
}
|
||
|
||
.detail_header .font-result {
|
||
display: inline-block;
|
||
float: right;
|
||
font-size: 26upx;
|
||
color: #00c277;
|
||
line-height: 50upx;
|
||
vertical-align: top;
|
||
}
|
||
|
||
.detail_msg {
|
||
padding: 20upx 30upx;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.detail_msg .info-item {
|
||
margin-bottom: 10upx;
|
||
font-size: 28upx;
|
||
|
||
text {
|
||
display: inline-block;
|
||
width: 140upx;
|
||
}
|
||
|
||
.infoSpan {
|
||
width: auto;
|
||
font-size: 28upx;
|
||
color: #666;
|
||
float: right;
|
||
}
|
||
}
|
||
|
||
.comment-btn {
|
||
float: right;
|
||
font-size: 24upx;
|
||
border-radius: 10upx;
|
||
color: #fff;
|
||
line-height: 50upx;
|
||
text-align: center;
|
||
min-width: 140upx;
|
||
background-color: #00c277;
|
||
margin-left: 20upx;
|
||
}
|
||
|
||
.hzContent {
|
||
padding: 22upx;
|
||
margin-top: 150upx;
|
||
|
||
.bg-gray {
|
||
opacity: 0.6;
|
||
background-color: #F2F6FA !important;
|
||
}
|
||
|
||
.tab-box {
|
||
width: 80%;
|
||
display: flex;
|
||
font-size: 32upx;
|
||
color: #555555;
|
||
|
||
.active_tab {
|
||
font-weight: 800;
|
||
|
||
}
|
||
|
||
.tab-item {
|
||
width: 40%;
|
||
|
||
.tabBottom {
|
||
width: 28%;
|
||
height: 4upx;
|
||
border-radius: 5px;
|
||
background-image: linear-gradient(to right, #64E182, #1CA7B2);
|
||
}
|
||
}
|
||
}
|
||
|
||
.tips {
|
||
width: 100%;
|
||
padding: 20upx;
|
||
background-color: #fff;
|
||
border-radius: 20upx;
|
||
margin-top: 20upx;
|
||
color: #FB8107;
|
||
font-size: 28upx;
|
||
|
||
.tipsTit {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.tipsCont {
|
||
margin-left: 38upx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
image {
|
||
width: 36upx;
|
||
height: 36upx;
|
||
}
|
||
}
|
||
|
||
.form-box {
|
||
margin-top: 20upx;
|
||
|
||
.loc {
|
||
margin-top: 20upx;
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
font-weight: bold;
|
||
font-size: 30upx;
|
||
color: #333333;
|
||
|
||
image {
|
||
width: 38upx;
|
||
height: 38upx;
|
||
margin-right: 10upx;
|
||
}
|
||
}
|
||
|
||
.dateItem {
|
||
margin: 0 10upx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
font-weight: 400;
|
||
font-size: 28upx;
|
||
color: #555;
|
||
border-radius: 16upx;
|
||
padding: 18upx 20upx;
|
||
background-color: #F2F6FA;
|
||
border: 1px solid #F2F6FA;
|
||
}
|
||
|
||
|
||
|
||
.selectInterval {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
|
||
.intervalItem {
|
||
width: 30%;
|
||
margin-top: 20upx;
|
||
padding: 15upx 20upx;
|
||
background: #F2F6FA;
|
||
border-radius: 8upx;
|
||
font-weight: 400;
|
||
font-size: 28upx;
|
||
color: #999999;
|
||
}
|
||
}
|
||
|
||
.timeInterval,
|
||
.selectDate {
|
||
width: 100%;
|
||
padding: 20upx;
|
||
background-color: #fff;
|
||
border-radius: 20upx;
|
||
padding-left: 0;
|
||
|
||
.time-active {
|
||
background: #EDFCF7;
|
||
color: #0DB0A7;
|
||
border: 1px solid #0DB0A7;
|
||
}
|
||
|
||
.scrollDate {
|
||
margin-top: 20upx;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/deep/::-webkit-scrollbar {
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
|
||
/deep/.uni-scroll-view-content {
|
||
display: flex;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
}
|
||
|
||
.content {
|
||
margin-top: 24upx;
|
||
background: #fff;
|
||
|
||
.x-title {
|
||
margin-top: 28upx;
|
||
}
|
||
|
||
|
||
/* 评论 */
|
||
.evaluate {
|
||
padding-top: 30upx;
|
||
border-top: 1px solid #eee;
|
||
}
|
||
|
||
.evaluate .title {
|
||
font-size: 28upx;
|
||
color: #333;
|
||
font-weight: bold;
|
||
line-height: 40upx;
|
||
padding: 0 30rpx 30rpx;
|
||
}
|
||
|
||
.evaluate .evaluate_item {
|
||
border-bottom: 1px solid #eeeeee;
|
||
padding: 0 0 30upx 50upx;
|
||
}
|
||
|
||
.evaluate .evaluate_item:last-child {
|
||
border: none;
|
||
}
|
||
|
||
.evaluate .evaluate_item .user {
|
||
padding: 20upx 0;
|
||
}
|
||
|
||
.evaluate .evaluate_item .user .username {
|
||
font-size: 28rpx;
|
||
color: #666;
|
||
display: inline-block;
|
||
vertical-align: top;
|
||
padding-right: 20upx;
|
||
}
|
||
|
||
.evaluate .evaluate_item .user span image {
|
||
width: 40upx;
|
||
height: 40upx;
|
||
margin-right: 5upx;
|
||
}
|
||
|
||
.evaluate .evaluate_item .text {
|
||
font-size: 28upx;
|
||
color: #666;
|
||
line-height: 40upx;
|
||
}
|
||
}
|
||
|
||
.dateTit {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
margin-left: 20upx;
|
||
|
||
image {
|
||
width: 35upx;
|
||
height: 35upx;
|
||
margin-right: 10upx;
|
||
}
|
||
|
||
.leftIcon {
|
||
width: 8upx;
|
||
height: 30upx;
|
||
background-image: linear-gradient(to bottom, #82E7B3, #94B8EF);
|
||
border-radius: 5px;
|
||
margin-right: 10upx;
|
||
}
|
||
}
|
||
|
||
.time-box {
|
||
overflow: hidden;
|
||
|
||
.time-item {
|
||
margin: 24upx 0rpx 20rpx 20rpx;
|
||
padding: 10rpx 24upx;
|
||
font-size: 26rpx;
|
||
text-align: center;
|
||
line-height: 42*2upx;
|
||
position: relative;
|
||
border: 1px solid rgba(0, 0, 0, 0);
|
||
box-sizing: border-box;
|
||
background: #F2F6FA;
|
||
border-radius: 8upx;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
|
||
.time-text {
|
||
color: #555555;
|
||
|
||
text {
|
||
padding: 0 6rpx;
|
||
color: #00c277;
|
||
}
|
||
|
||
.color-666 {
|
||
color: #0DB0A7;
|
||
}
|
||
}
|
||
|
||
.icon {
|
||
position: absolute;
|
||
right: 24upx;
|
||
bottom: 32upx;
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
background-color: #EAEFF3;
|
||
border-radius: 50%;
|
||
// display: none;
|
||
}
|
||
}
|
||
|
||
.active {
|
||
background: #EDFCF7;
|
||
border-radius: 4px 4px 4px 4px;
|
||
border: 1px solid #0DB0A7;
|
||
|
||
.icon {
|
||
display: block;
|
||
}
|
||
}
|
||
}
|
||
|
||
.ipt-box {
|
||
width: 97%;
|
||
height: 110px;
|
||
background: #F2F6FA;
|
||
border-radius: 8px 8px 8px 8px;
|
||
margin-left: 24upx;
|
||
margin-top: 24upx;
|
||
padding-top: 12upx;
|
||
padding-left: 12upx;
|
||
}
|
||
|
||
.list-box {
|
||
margin: unset;
|
||
margin-top: 36upx;
|
||
|
||
.detail {
|
||
// margin-top: 10upx;
|
||
margin-bottom: 24upx;
|
||
background: #ffffff;
|
||
border-radius: 20upx;
|
||
padding: 24upx;
|
||
}
|
||
|
||
.detail_header {
|
||
padding: 15upx 0upx;
|
||
border-bottom: 1px solid #eee;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
position: relative;
|
||
}
|
||
|
||
.detail_header .blueSign {
|
||
width: 48upx;
|
||
height: 48upx;
|
||
}
|
||
|
||
.detail_header .font-tilte {
|
||
display: inline-block;
|
||
font-weight: bold;
|
||
font-size: 18px;
|
||
color: #333333;
|
||
margin-left: 16upx;
|
||
}
|
||
|
||
.detail_header .font-result {
|
||
display: inline-block;
|
||
position: absolute;
|
||
width: 80*2upx;
|
||
height: 28*2upx;
|
||
right: 0upx;
|
||
background: #C1EFEA;
|
||
border-radius: 15px 15px 15px 15px;
|
||
font-size: 28upx;
|
||
color: #0DB0A7;
|
||
text-align: center;
|
||
line-height: 28*2upx;
|
||
}
|
||
|
||
.detail_msg {
|
||
display: grid;
|
||
margin-top: 20upx;
|
||
padding: unset;
|
||
}
|
||
|
||
.detail_msg .info-item {
|
||
font-size: 28upx;
|
||
color: #999999;
|
||
margin-bottom: 10upx;
|
||
font-size: 28upx;
|
||
line-height: 50upx;
|
||
|
||
text {
|
||
display: inline-block;
|
||
width: 140upx;
|
||
}
|
||
|
||
.infoSpan {
|
||
width: auto;
|
||
font-size: 28upx;
|
||
color: #666;
|
||
float: right;
|
||
}
|
||
}
|
||
|
||
.detail_msg .info-item:nth-of-type(3) {
|
||
padding-bottom: 24upx;
|
||
border-bottom: 1px solid #EBEFF7;
|
||
}
|
||
|
||
.detail_msg .info-item:last-child {
|
||
padding-bottom: 24upx;
|
||
border-bottom: 0px solid #000;
|
||
}
|
||
|
||
.comment-btn {
|
||
margin-top: 24upx;
|
||
width: 84*2upx;
|
||
height: 32*2upx;
|
||
border-radius: 16*2upx;
|
||
border: 1px solid #0DB0A7;
|
||
font-size: 28upx;
|
||
color: #0DB0A7;
|
||
line-height: 32*2upx;
|
||
text-align: center;
|
||
min-width: 140upx;
|
||
justify-self: end;
|
||
background-color: unset;
|
||
}
|
||
|
||
.bg-ccc {
|
||
border-color: #CACACA;
|
||
color: #CACACA;
|
||
background-color: #fff !important;
|
||
}
|
||
}
|
||
</style> |