|
|
|
|
@ -1,48 +1,101 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="my_exam" :style="{ backgroundColor: examArr.length > 0 ? '#f9f9f9' : '#fff' }"> |
|
|
|
|
<div |
|
|
|
|
class="my_exam" |
|
|
|
|
:style="{ backgroundColor: examArr.length > 0 ? '#f9f9f9' : '#fff' }" |
|
|
|
|
> |
|
|
|
|
<div class="exam_noresult" v-if="examArr.length < 1"> |
|
|
|
|
<img src="~@/assets/image/no_result.jpg" /> |
|
|
|
|
<div class="no_title">查询无结果</div> |
|
|
|
|
<div class="no_txt">暂无您的预约项目,请选择医院后进行预约</div> |
|
|
|
|
</div> |
|
|
|
|
<van-list v-else v-model="loading" :finished="isFinished" finished-text="没有更多了" @load="onLoad"> |
|
|
|
|
<van-list |
|
|
|
|
v-else |
|
|
|
|
v-model="loading" |
|
|
|
|
:finished="isFinished" |
|
|
|
|
finished-text="没有更多了" |
|
|
|
|
@load="onLoad" |
|
|
|
|
> |
|
|
|
|
<van-cell class="exam_box" v-for="item in examArr" :key="item.id"> |
|
|
|
|
<div class="time_box">{{ item.createDeptName }}</div> |
|
|
|
|
<div class="pro_box" v-for="item1 in item.details" :key="item1.id"> |
|
|
|
|
<div class="pro_top"> |
|
|
|
|
<div class="img_box"> |
|
|
|
|
<img v-if="item.apmStatus !== 1" src="~@/assets/image/time.png" alt="" /> |
|
|
|
|
<img |
|
|
|
|
v-if="item.apmStatus !== 1" |
|
|
|
|
src="~@/assets/image/time.png" |
|
|
|
|
alt="" |
|
|
|
|
/> |
|
|
|
|
<img v-else src="~@/assets/image/time_gray.png" alt="" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="time_box"> |
|
|
|
|
<div class="time_text">{{ doDateFormatter(item.apmDay) }}</div> |
|
|
|
|
<div class="date_txt">{{ item1.period + ' ' + item1.timeFrame }}</div> |
|
|
|
|
<div class="date_txt"> |
|
|
|
|
{{ item1.period + " " + item1.timeFrame }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_bottom"> |
|
|
|
|
<div class="pro_left"> |
|
|
|
|
<div class="img_box"> |
|
|
|
|
<img v-if="item.apmStatus !== 1" src="~@/assets/image/pro.png" alt="" /> |
|
|
|
|
<img |
|
|
|
|
v-if="item.apmStatus !== 1" |
|
|
|
|
src="~@/assets/image/pro.png" |
|
|
|
|
alt="" |
|
|
|
|
/> |
|
|
|
|
<img v-else src="~@/assets/image/pro_gray.png" alt="" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_name">{{ item1.project }} </div> |
|
|
|
|
<div class="pro_pos" |
|
|
|
|
:class="[item1.apmStatus == 2 && |
|
|
|
|
item1.lastExamTime === 0 ? 'timeout_tip' : item1.apmStatus === 2 ? 'tips' : '', item1.apmStatus == 1 ? 'cancel_tip' : '',]"> |
|
|
|
|
<div class="pro_name">{{ item1.project }}</div> |
|
|
|
|
<div |
|
|
|
|
class="pro_pos" |
|
|
|
|
:class="[ |
|
|
|
|
item1.apmStatus == 2 && item1.lastExamTime === 0 |
|
|
|
|
? 'timeout_tip' |
|
|
|
|
: item1.apmStatus === 2 |
|
|
|
|
? 'tips' |
|
|
|
|
: '', |
|
|
|
|
item1.apmStatus == 1 ? 'cancel_tip' : '', |
|
|
|
|
]" |
|
|
|
|
> |
|
|
|
|
{{ |
|
|
|
|
item1.apmStatus == 1 ? '您的体检项目已取消' : item1.apmStatus == 3 ? '体检项目已完成' : (item1.apmStatus == 2 && |
|
|
|
|
item1.lastExamTime == -1) ? '请尽快报到' : (item1.apmStatus == 2 && |
|
|
|
|
item1.lastExamTime === 0) ? '您的体检已过期' : item1.limitTime |
|
|
|
|
}}</div> |
|
|
|
|
item1.apmStatus == 1 |
|
|
|
|
? "您的体检项目已取消" |
|
|
|
|
: item1.apmStatus == 3 |
|
|
|
|
? "体检项目已完成" |
|
|
|
|
: item1.apmStatus == 2 && item1.lastExamTime == -1 |
|
|
|
|
? "请尽快报到" |
|
|
|
|
: item1.apmStatus == 2 && item1.lastExamTime === 0 |
|
|
|
|
? "您的体检已过期" |
|
|
|
|
: item1.limitTime |
|
|
|
|
}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_right"> |
|
|
|
|
<div class="cancel" @click="cancelRegisiter(item1)" |
|
|
|
|
:class="[item1.apmStatus == 3 ? 'finish' : item1.apmStatus == 1 || item1.limitCancelTime < 30 * 60 * 1000 ? 'cancel_item' : '',]"> |
|
|
|
|
<div |
|
|
|
|
class="cancel" |
|
|
|
|
@click="cancelRegisiter(item1)" |
|
|
|
|
:class="[ |
|
|
|
|
item1.apmStatus == 3 |
|
|
|
|
? 'finish' |
|
|
|
|
: item1.apmStatus == 1 || |
|
|
|
|
item1.limitCancelTime < 30 * 60 * 1000 |
|
|
|
|
? 'cancel_item' |
|
|
|
|
: '', |
|
|
|
|
]" |
|
|
|
|
> |
|
|
|
|
{{ |
|
|
|
|
item1.apmStatus == 1 ? '已取消' : (item1.apmStatus == 2 && |
|
|
|
|
item1.lastExamTime == -1) ? '已超时' : item1.apmStatus == 2 && |
|
|
|
|
item1.lastExamTime === 0 ? '已过期' : item1.apmStatus == 2 ? '取消预约' : item1.apmStatus == 3 ? '已完成' : '取消预约' |
|
|
|
|
}}</div> |
|
|
|
|
item1.apmStatus == 1 |
|
|
|
|
? "已取消" |
|
|
|
|
: item1.apmStatus == 2 && item1.lastExamTime == -1 |
|
|
|
|
? "已超时" |
|
|
|
|
: item1.apmStatus == 2 && item1.lastExamTime === 0 |
|
|
|
|
? "已过期" |
|
|
|
|
: item1.apmStatus == 2 |
|
|
|
|
? "取消预约" |
|
|
|
|
: item1.apmStatus == 3 |
|
|
|
|
? "已完成" |
|
|
|
|
: "取消预约" |
|
|
|
|
}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -52,8 +105,10 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { myRecord, recordCancel, getSystemTime, } from "@/api/hospital"; |
|
|
|
|
import { myRecord, recordCancel, getSystemTime } from "@/api/hospital"; |
|
|
|
|
import { dateFormat, calcDate, calcTime } from "@/utils/date"; |
|
|
|
|
import SM from "../utils/SM"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
@ -63,29 +118,29 @@ export default { |
|
|
|
|
examArr: [], |
|
|
|
|
userInfo: null, |
|
|
|
|
loading: true, |
|
|
|
|
systemTime: dateFormat(new Date(), 'yyyy/MM/dd hh:mm:ss'), |
|
|
|
|
systemTime: dateFormat(new Date(), "yyyy/MM/dd hh:mm:ss"), |
|
|
|
|
setInterval: 0, |
|
|
|
|
interVal: null, |
|
|
|
|
starTime: '', |
|
|
|
|
lastTime: '', |
|
|
|
|
starTime: "", |
|
|
|
|
lastTime: "", |
|
|
|
|
timeArr: [], |
|
|
|
|
lastCanTime: '', |
|
|
|
|
limitTime: 1000 * 60 * 30 |
|
|
|
|
} |
|
|
|
|
lastCanTime: "", |
|
|
|
|
limitTime: 1000 * 60 * 30, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
let userInfo = sessionStorage.getItem('userInfo') ? JSON.parse(sessionStorage.getItem('userInfo')) : null; |
|
|
|
|
let userInfo = sessionStorage.getItem("userInfo") |
|
|
|
|
? JSON.parse(sessionStorage.getItem("userInfo")) |
|
|
|
|
: null; |
|
|
|
|
if (userInfo) { |
|
|
|
|
this.userInfo = userInfo; |
|
|
|
|
this.querySystemTime(); |
|
|
|
|
// this.queryMyRecord(); |
|
|
|
|
this.onLoad() |
|
|
|
|
this.onLoad(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
}, |
|
|
|
|
computed: {}, |
|
|
|
|
watch: {}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
if (this.setInterval) { |
|
|
|
|
clearInterval(this.setInterval); |
|
|
|
|
@ -99,129 +154,243 @@ export default { |
|
|
|
|
//系统时间 |
|
|
|
|
querySystemTime() { |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczhqxtsj", JSON.stringify({}), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
console.log(typeof (value), 'systemtime', value); |
|
|
|
|
let retData = typeof (value) == 'string' ? JSON.parse(value) : value; |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.systemTime = retData.data.replace(/-/g,'/'); |
|
|
|
|
} |
|
|
|
|
}, err => { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
getSystemTime().then(res => { |
|
|
|
|
this.systemTime = res.data.replace(/-/g,'/'); |
|
|
|
|
}) |
|
|
|
|
vaildInterfacefn( |
|
|
|
|
"cgstjyyxuwxt", |
|
|
|
|
"qdsgajjtjczhqxtsj2", |
|
|
|
|
// JSON.stringify({}), |
|
|
|
|
SM.encrypt( |
|
|
|
|
"{}", |
|
|
|
|
"04fa4a906f872f77cb2e9120f6f8e1f2c0e4b3ca8b5d367e21f02922132cdd868acca77403c650a6717af3538b27a5ab9493d5a101d9e42ca40d6aaa6a2ee3815a" |
|
|
|
|
), |
|
|
|
|
"2", |
|
|
|
|
"https://" + this.GlobalConfig.urlCreatesign, |
|
|
|
|
"https://" + this.GlobalConfig.urlGateway |
|
|
|
|
).then( |
|
|
|
|
(value) => { |
|
|
|
|
value = SM.decrypt( |
|
|
|
|
value, |
|
|
|
|
"5721b6a3000e381f7b9b9ce1b96069469fb653f9c5b9e6874714999863eb8a9c" |
|
|
|
|
); |
|
|
|
|
console.log(typeof value, "systemtime", value); |
|
|
|
|
let retData = typeof value == "string" ? JSON.parse(value) : value; |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.systemTime = retData.data.replace(/-/g, "/"); |
|
|
|
|
} else if (retData.code == 2000 || !retData) { |
|
|
|
|
this.querySystemTime(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
(err) => {} |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
getSystemTime().then((res) => { |
|
|
|
|
this.systemTime = res.data.replace(/-/g, "/"); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//我的预约列表 |
|
|
|
|
queryMyRecord() { |
|
|
|
|
this.$toast.loading({ |
|
|
|
|
message: '加载中', |
|
|
|
|
message: "加载中", |
|
|
|
|
duration: 0, |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
try { |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdckwdyy", JSON.stringify({ createDept: "", cupCardNo: this.Base64.encode(this.userInfo.papersnumber), current: this.current, size: this.size }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
let list = retData.data.records; |
|
|
|
|
this.loading = false |
|
|
|
|
list.map(item1 => { |
|
|
|
|
item1.details.map(item => { |
|
|
|
|
console.log(item) |
|
|
|
|
vaildInterfacefn( |
|
|
|
|
"cgstjyyxuwxt", |
|
|
|
|
"qdsgajjtjczdckwdyy2", |
|
|
|
|
SM.encrypt( |
|
|
|
|
JSON.stringify({ |
|
|
|
|
createDept: "", |
|
|
|
|
cupCardNo: this.userInfo.papersnumber, |
|
|
|
|
current: this.current, |
|
|
|
|
size: this.size, |
|
|
|
|
}), |
|
|
|
|
"04fdaa01435913600162dea9c1892986c2b6bf28ba4110d9892b8e5184750819d8aea3fd7c70aca79a53a6b65200d681c812f61887c176a1cbda00313a76b6322f" |
|
|
|
|
), |
|
|
|
|
"2", |
|
|
|
|
"https://" + this.GlobalConfig.urlCreatesign, |
|
|
|
|
"https://" + this.GlobalConfig.urlGateway |
|
|
|
|
).then( |
|
|
|
|
(value) => { |
|
|
|
|
value = SM.decrypt( |
|
|
|
|
value, |
|
|
|
|
"0084028214ba9561a8e0ebcebe8680820e1639f745ee184f959baad8c7a77f4dd4" |
|
|
|
|
); |
|
|
|
|
console.log( |
|
|
|
|
value, |
|
|
|
|
"valuevaluevaluevaluevaluevaluevaluevaluevaluevaluevalue" |
|
|
|
|
); |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
let list = retData.data.records; |
|
|
|
|
this.loading = false; |
|
|
|
|
list.map((item1) => { |
|
|
|
|
item1.details.map((item) => { |
|
|
|
|
console.log(item); |
|
|
|
|
let systemTime = Date.parse(new Date(this.systemTime)); |
|
|
|
|
item.starTime = systemTime; |
|
|
|
|
let _lattime = |
|
|
|
|
(item.period == "下午" |
|
|
|
|
? 12 + |
|
|
|
|
parseInt(item.timeFrame.split("-")[1].split(":")[0]) |
|
|
|
|
: item.timeFrame.split("-")[1].split(":")[0]) + |
|
|
|
|
":" + |
|
|
|
|
item.timeFrame.split("-")[1].split(":")[1]; |
|
|
|
|
console.log("lattime", _lattime); |
|
|
|
|
let latime = |
|
|
|
|
item1.apmDay.substr(0, 10) + " " + _lattime + ":00"; //预约结束时间 |
|
|
|
|
let _lasCanTime = |
|
|
|
|
(item.period == "下午" |
|
|
|
|
? 12 + |
|
|
|
|
parseInt(item.timeFrame.split("-")[0].split(":")[0]) |
|
|
|
|
: item.timeFrame.split("-")[0].split(":")[0]) + |
|
|
|
|
":" + |
|
|
|
|
item.timeFrame.split("-")[0].split(":")[1]; |
|
|
|
|
console.log("lasCanTime", _lasCanTime); |
|
|
|
|
let lasCanTime = |
|
|
|
|
item1.apmDay.substr(0, 10) + " " + _lasCanTime + ":00"; //预约开始时间 |
|
|
|
|
// item.lastCanTime = Date.parse(new Date(lasCanTime.replaceAll('-', '/'))) |
|
|
|
|
// item.lastTime = Date.parse(new Date(latime.replaceAll('-', '/'))) |
|
|
|
|
item.lastCanTime = Date.parse( |
|
|
|
|
new Date(lasCanTime.replace(/-/g, "/")) |
|
|
|
|
); |
|
|
|
|
item.lastTime = Date.parse( |
|
|
|
|
new Date(latime.replace(/-/g, "/")) |
|
|
|
|
); |
|
|
|
|
item.limitTime = this.intervalTime( |
|
|
|
|
item.starTime, |
|
|
|
|
item.lastTime |
|
|
|
|
); //距离体检体检结束时间还剩多少时间 |
|
|
|
|
//距离预约结束时间剩余毫秒数 大于结束时间并且是当天设为-1作为超时判断 大于当天设为0作为过期判断 |
|
|
|
|
item.lastExamTime = |
|
|
|
|
systemTime < item.lastTime |
|
|
|
|
? item.lastTime - systemTime |
|
|
|
|
: this.isToday(systemTime, item.lastTime) |
|
|
|
|
? -1 |
|
|
|
|
: 0; |
|
|
|
|
item.limitCancelTime = |
|
|
|
|
systemTime < item.lastCanTime |
|
|
|
|
? item.lastCanTime - systemTime |
|
|
|
|
: 0; //距离预约开始时间剩余毫秒数 |
|
|
|
|
// console.log(latime,item.lastTime,lasCanTime,item.lastCanTime,item.limitCancelTime) //670422000 |
|
|
|
|
// this.$set( |
|
|
|
|
// item,"limitTime",item.limitTime |
|
|
|
|
// ); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
this.timeList(); |
|
|
|
|
|
|
|
|
|
// if(res.data.pages > 1){ |
|
|
|
|
// this.examArr = [...this.examArr,...list] |
|
|
|
|
// }else{ |
|
|
|
|
// this.examArr = retData.data.records; |
|
|
|
|
// } |
|
|
|
|
this.examArr = [...this.examArr, ...list]; |
|
|
|
|
console.log(this.examArr); |
|
|
|
|
if (retData.data.records.length == 0) { |
|
|
|
|
// console.log('ces') |
|
|
|
|
this.isFinished = true; |
|
|
|
|
} else { |
|
|
|
|
this.current++; |
|
|
|
|
} |
|
|
|
|
console.log( |
|
|
|
|
this.examArr, |
|
|
|
|
"examArrexamArrexamArrexamArrexamArrexamArrexamArrexamArr" |
|
|
|
|
); |
|
|
|
|
} else if (retData.code == 2000 || !retData) { |
|
|
|
|
this.queryMyRecord(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
(err) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
myRecord( |
|
|
|
|
"", |
|
|
|
|
// this.Base64.encode(this.userInfo.papersnumber), |
|
|
|
|
SM.encrypt( |
|
|
|
|
this.userInfo.papersnumber, |
|
|
|
|
"04fdaa01435913600162dea9c1892986c2b6bf28ba4110d9892b8e5184750819d8aea3fd7c70aca79a53a6b65200d681c812f61887c176a1cbda00313a76b6322f" |
|
|
|
|
), |
|
|
|
|
this.current, |
|
|
|
|
this.size |
|
|
|
|
).then( |
|
|
|
|
(res) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let list = res.data.records; |
|
|
|
|
// if(res.data.pages > 1){ |
|
|
|
|
// this.examArr = [...this.examArr,...list] |
|
|
|
|
// }else{ |
|
|
|
|
// this.examArr = res.data.records; |
|
|
|
|
// } |
|
|
|
|
list.map((item1) => { |
|
|
|
|
item1.details.map((item) => { |
|
|
|
|
let systemTime = Date.parse(new Date(this.systemTime)); |
|
|
|
|
item.starTime = systemTime |
|
|
|
|
let _lattime = (item.period == '下午' ? 12 + parseInt(item.timeFrame.split('-')[1].split(':')[0]) : item.timeFrame.split('-')[1].split(':')[0]) + ':' + item.timeFrame.split('-')[1].split(':')[1]; |
|
|
|
|
console.log('lattime', _lattime); |
|
|
|
|
let latime = item1.apmDay.substr(0, 10) + ' ' + _lattime + ':00';//预约结束时间 |
|
|
|
|
let _lasCanTime = (item.period == '下午' ? 12 + parseInt(item.timeFrame.split('-')[0].split(':')[0]) : item.timeFrame.split('-')[0].split(':')[0]) + ':' + item.timeFrame.split('-')[0].split(':')[1]; |
|
|
|
|
console.log('lasCanTime', _lasCanTime); |
|
|
|
|
let lasCanTime = item1.apmDay.substr(0, 10) + ' ' + _lasCanTime + ':00';//预约开始时间 |
|
|
|
|
item.starTime = systemTime; |
|
|
|
|
let _lattime = |
|
|
|
|
(item.period == "下午" |
|
|
|
|
? 12 + |
|
|
|
|
parseInt(item.timeFrame.split("-")[1].split(":")[0]) |
|
|
|
|
: item.timeFrame.split("-")[1].split(":")[0]) + |
|
|
|
|
":" + |
|
|
|
|
item.timeFrame.split("-")[1].split(":")[1]; |
|
|
|
|
console.log("lattime", _lattime); |
|
|
|
|
let latime = |
|
|
|
|
item1.apmDay.substr(0, 10) + " " + _lattime + ":00"; |
|
|
|
|
let _lasCanTime = |
|
|
|
|
(item.period == "下午" |
|
|
|
|
? 12 + |
|
|
|
|
parseInt(item.timeFrame.split("-")[0].split(":")[0]) |
|
|
|
|
: item.timeFrame.split("-")[0].split(":")[0]) + |
|
|
|
|
":" + |
|
|
|
|
item.timeFrame.split("-")[0].split(":")[1]; |
|
|
|
|
console.log("lasCanTime", _lasCanTime); |
|
|
|
|
let lasCanTime = |
|
|
|
|
item1.apmDay.substr(0, 10) + " " + _lasCanTime + ":00"; |
|
|
|
|
// item.lastCanTime = Date.parse(new Date(lasCanTime.replaceAll('-', '/'))) |
|
|
|
|
// item.lastTime = Date.parse(new Date(latime.replaceAll('-', '/'))) |
|
|
|
|
item.lastCanTime = Date.parse(new Date(lasCanTime.replace(/-/g, '/'))); |
|
|
|
|
item.lastTime = Date.parse(new Date(latime.replace(/-/g, '/'))) |
|
|
|
|
item.limitTime = this.intervalTime(item.starTime, item.lastTime);//距离体检体检结束时间还剩多少时间 |
|
|
|
|
//距离预约结束时间剩余毫秒数 大于结束时间并且是当天设为-1作为超时判断 大于当天设为0作为过期判断 |
|
|
|
|
item.lastExamTime = systemTime < item.lastTime ? item.lastTime - systemTime : this.isToday(systemTime,item.lastTime) ? -1 : 0; |
|
|
|
|
item.limitCancelTime = systemTime < item.lastCanTime ? item.lastCanTime - systemTime : 0;//距离预约开始时间剩余毫秒数 |
|
|
|
|
item.lastCanTime = Date.parse( |
|
|
|
|
new Date(lasCanTime.replace(/-/g, "/")) |
|
|
|
|
); |
|
|
|
|
item.lastTime = Date.parse( |
|
|
|
|
new Date(latime.replace(/-/g, "/")) |
|
|
|
|
); |
|
|
|
|
item.limitTime = this.intervalTime( |
|
|
|
|
item.starTime, |
|
|
|
|
item.lastTime |
|
|
|
|
); |
|
|
|
|
item.lastExamTime = |
|
|
|
|
systemTime < item.lastTime |
|
|
|
|
? item.lastTime - systemTime |
|
|
|
|
: this.isToday(systemTime, item.lastTime) |
|
|
|
|
? -1 |
|
|
|
|
: 0; |
|
|
|
|
item.limitCancelTime = |
|
|
|
|
systemTime < item.lastCanTime |
|
|
|
|
? item.lastCanTime - systemTime |
|
|
|
|
: 0; //距离取消预约剩余毫秒数 |
|
|
|
|
// console.log(latime,item.lastTime,lasCanTime,item.lastCanTime,item.limitCancelTime) //670422000 |
|
|
|
|
// this.$set( |
|
|
|
|
// item,"limitTime",item.limitTime |
|
|
|
|
// ); |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.timeList() |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
this.timeList(); |
|
|
|
|
|
|
|
|
|
// if(res.data.pages > 1){ |
|
|
|
|
// this.examArr = [...this.examArr,...list] |
|
|
|
|
// }else{ |
|
|
|
|
// this.examArr = retData.data.records; |
|
|
|
|
// } |
|
|
|
|
this.examArr = [...this.examArr, ...list]; |
|
|
|
|
console.log(this.examArr) |
|
|
|
|
if (retData.data.records.length == 0) { |
|
|
|
|
// console.log('ces') |
|
|
|
|
this.isFinished = true |
|
|
|
|
if (res.data.records.length === 0) { |
|
|
|
|
this.isFinished = true; |
|
|
|
|
} else { |
|
|
|
|
this.current++ |
|
|
|
|
this.current++; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, err => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
myRecord("", this.Base64.encode(this.userInfo.papersnumber), this.current, this.size).then(res => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
let list = res.data.records; |
|
|
|
|
// if(res.data.pages > 1){ |
|
|
|
|
// this.examArr = [...this.examArr,...list] |
|
|
|
|
// }else{ |
|
|
|
|
// this.examArr = res.data.records; |
|
|
|
|
// } |
|
|
|
|
list.map(item1 => { |
|
|
|
|
item1.details.map(item => { |
|
|
|
|
let systemTime = Date.parse(new Date(this.systemTime)); |
|
|
|
|
item.starTime = systemTime |
|
|
|
|
let _lattime = (item.period == '下午' ? 12 + parseInt(item.timeFrame.split('-')[1].split(':')[0]) : item.timeFrame.split('-')[1].split(':')[0]) + ':' + item.timeFrame.split('-')[1].split(':')[1]; |
|
|
|
|
console.log('lattime', _lattime); |
|
|
|
|
let latime = item1.apmDay.substr(0, 10) + ' ' + _lattime + ':00'; |
|
|
|
|
let _lasCanTime = (item.period == '下午' ? 12 + parseInt(item.timeFrame.split('-')[0].split(':')[0]) : item.timeFrame.split('-')[0].split(':')[0]) + ':' + item.timeFrame.split('-')[0].split(':')[1]; |
|
|
|
|
console.log('lasCanTime', _lasCanTime); |
|
|
|
|
let lasCanTime = item1.apmDay.substr(0, 10) + ' ' + _lasCanTime + ':00'; |
|
|
|
|
// item.lastCanTime = Date.parse(new Date(lasCanTime.replaceAll('-', '/'))) |
|
|
|
|
// item.lastTime = Date.parse(new Date(latime.replaceAll('-', '/'))) |
|
|
|
|
item.lastCanTime = Date.parse(new Date(lasCanTime.replace(/-/g, '/'))) |
|
|
|
|
item.lastTime = Date.parse(new Date(latime.replace(/-/g, '/'))) |
|
|
|
|
item.limitTime = this.intervalTime(item.starTime, item.lastTime) |
|
|
|
|
item.lastExamTime = systemTime < item.lastTime ? item.lastTime - systemTime : this.isToday(systemTime,item.lastTime) ? -1 : 0 |
|
|
|
|
item.limitCancelTime = systemTime < item.lastCanTime ? item.lastCanTime - systemTime : 0;//距离取消预约剩余毫秒数 |
|
|
|
|
// console.log(latime,item.lastTime,lasCanTime,item.lastCanTime,item.limitCancelTime) //670422000 |
|
|
|
|
// this.$set( |
|
|
|
|
// item,"limitTime",item.limitTime |
|
|
|
|
// ); |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.timeList() |
|
|
|
|
|
|
|
|
|
this.examArr = [...this.examArr, ...list]; |
|
|
|
|
if (res.data.records.length === 0) { |
|
|
|
|
this.isFinished = true; |
|
|
|
|
} else { |
|
|
|
|
this.current++ |
|
|
|
|
this.loading = false; |
|
|
|
|
}, |
|
|
|
|
(err) => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
} |
|
|
|
|
this.loading = false |
|
|
|
|
}, err => { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} catch (error) { |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
@ -230,29 +399,35 @@ export default { |
|
|
|
|
|
|
|
|
|
timeList() { |
|
|
|
|
if (this.setInterval) { |
|
|
|
|
clearInterval(this.setInterval) |
|
|
|
|
clearInterval(this.setInterval); |
|
|
|
|
} |
|
|
|
|
this.setInterval = setInterval(() => { |
|
|
|
|
let arr = [] |
|
|
|
|
this.examArr.forEach(item => { |
|
|
|
|
item.details.map(item1 => { |
|
|
|
|
let arr = []; |
|
|
|
|
this.examArr.forEach((item) => { |
|
|
|
|
item.details.map((item1) => { |
|
|
|
|
item1.starTime = item1.starTime > 1000 ? item1.starTime + 1000 : 0; |
|
|
|
|
item1.limitTime = this.intervalTime(item1.starTime, item1.lastTime); |
|
|
|
|
item1.lastExamTime = item1.lastExamTime > 1000 ? item1.lastExamTime - 1000 : this.isToday(this.systemTime,item1.lastTime) ? -1 : 0; |
|
|
|
|
item1.limitCancelTime = item1.limitCancelTime > 1000 ? item1.limitCancelTime - 1000 : 0 |
|
|
|
|
this.$set(item.details, item1.limitTime, item1.limitTime) |
|
|
|
|
item1.lastExamTime = |
|
|
|
|
item1.lastExamTime > 1000 |
|
|
|
|
? item1.lastExamTime - 1000 |
|
|
|
|
: this.isToday(this.systemTime, item1.lastTime) |
|
|
|
|
? -1 |
|
|
|
|
: 0; |
|
|
|
|
item1.limitCancelTime = |
|
|
|
|
item1.limitCancelTime > 1000 ? item1.limitCancelTime - 1000 : 0; |
|
|
|
|
this.$set(item.details, item1.limitTime, item1.limitTime); |
|
|
|
|
// this.$set(item.details,item1.limitCancelTime,item1.limitCancelTime) |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
// console.log(this.examArr) |
|
|
|
|
}) |
|
|
|
|
}, 1000) |
|
|
|
|
}); |
|
|
|
|
}, 1000); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 计算时间差 |
|
|
|
|
//计算两个时间之间的时间差 多少天时分秒 |
|
|
|
|
intervalTime(startTime, endTime) { |
|
|
|
|
// var timestamp=new Date().getTime(); //计算当前时间戳 |
|
|
|
|
var timestamp = (Date.parse(new Date())) / 1000;//计算当前时间戳 (毫秒级) |
|
|
|
|
var timestamp = Date.parse(new Date()) / 1000; //计算当前时间戳 (毫秒级) |
|
|
|
|
var date1 = ""; //开始时间 |
|
|
|
|
if (timestamp < startTime) { |
|
|
|
|
date1 = startTime; |
|
|
|
|
@ -261,11 +436,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
var date2 = endTime; //结束时间 |
|
|
|
|
// var date3 = date2.getTime() - date1.getTime(); //时间差的毫秒数 |
|
|
|
|
var date3 = (date2 - date1); //时间差的毫秒数 |
|
|
|
|
date3 = date3 < 0 ? 0 : date3 |
|
|
|
|
var date3 = date2 - date1; //时间差的毫秒数 |
|
|
|
|
date3 = date3 < 0 ? 0 : date3; |
|
|
|
|
//计算出相差天数 |
|
|
|
|
var days = Math.floor(date3 / (24 * 3600 * 1000)); |
|
|
|
|
days = days < 0 ? '' : days + '天' |
|
|
|
|
days = days < 0 ? "" : days + "天"; |
|
|
|
|
//计算出小时数 |
|
|
|
|
|
|
|
|
|
var leave1 = date3 % (24 * 3600 * 1000); //计算天数后剩余的毫秒数 |
|
|
|
|
@ -273,47 +448,70 @@ export default { |
|
|
|
|
//计算相差分钟数 |
|
|
|
|
var leave2 = leave1 % (3600 * 1000); //计算小时数后剩余的毫秒数 |
|
|
|
|
var minutes = Math.floor(leave2 / (60 * 1000)); |
|
|
|
|
minutes = minutes < 10 ? '0' + minutes : minutes |
|
|
|
|
minutes = minutes < 10 ? "0" + minutes : minutes; |
|
|
|
|
|
|
|
|
|
//计算相差秒数 |
|
|
|
|
|
|
|
|
|
var leave3 = leave2 % (60 * 1000); //计算分钟数后剩余的毫秒数 |
|
|
|
|
var seconds = Math.round(leave3 / 1000); |
|
|
|
|
seconds = seconds < 10 ? '0' + seconds : seconds; |
|
|
|
|
seconds = seconds < 10 ? "0" + seconds : seconds; |
|
|
|
|
// console.log(days + "天 " + hours + "小时 ") |
|
|
|
|
return `距离体检还有${days}${hours}:${minutes}:${seconds}` |
|
|
|
|
return `距离体检还有${days}${hours}:${minutes}:${seconds}`; |
|
|
|
|
// return { |
|
|
|
|
// days, |
|
|
|
|
// hours, |
|
|
|
|
// minutes, |
|
|
|
|
// seconds |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
//判断是否是当天 |
|
|
|
|
isToday(systemTime,lastTime) { |
|
|
|
|
console.log(dateFormat(new Date(systemTime), 'yyyy-MM-dd'), dateFormat(new Date(lastTime), 'yyyy-MM-dd'),dateFormat(new Date(systemTime), 'yyyy-MM-dd') == dateFormat(new Date(lastTime), 'yyyy-MM-dd')) |
|
|
|
|
return dateFormat(new Date(systemTime), 'yyyy-MM-dd') == dateFormat(new Date(lastTime), 'yyyy-MM-dd') |
|
|
|
|
isToday(systemTime, lastTime) { |
|
|
|
|
console.log( |
|
|
|
|
dateFormat(new Date(systemTime), "yyyy-MM-dd"), |
|
|
|
|
dateFormat(new Date(lastTime), "yyyy-MM-dd"), |
|
|
|
|
dateFormat(new Date(systemTime), "yyyy-MM-dd") == |
|
|
|
|
dateFormat(new Date(lastTime), "yyyy-MM-dd") |
|
|
|
|
); |
|
|
|
|
return ( |
|
|
|
|
dateFormat(new Date(systemTime), "yyyy-MM-dd") == |
|
|
|
|
dateFormat(new Date(lastTime), "yyyy-MM-dd") |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//日期格式化 |
|
|
|
|
doDateFormatter(date) { |
|
|
|
|
return dateFormat(new Date(date.replace(/-/g, '/')), 'yyyy-MM-dd'); |
|
|
|
|
return dateFormat(new Date(date.replace(/-/g, "/")), "yyyy-MM-dd"); |
|
|
|
|
}, |
|
|
|
|
//计算距离体检还剩多长时间 |
|
|
|
|
calcDateTime(item) { |
|
|
|
|
let systemTime = Date.parse(new Date(this.systemTime)); |
|
|
|
|
let time = item.timeFrame.split('-')[1].split(':'); |
|
|
|
|
let endTime = Date.parse(new Date(this.doDateFormatter(item.apmDay) + ' ' + (time[0] < 10 ? '0' + time[0] : time[0]) + ':' + (time[1] < 10 ? '0' + time[1] : time[1]) + ':00')); |
|
|
|
|
let time = item.timeFrame.split("-")[1].split(":"); |
|
|
|
|
let endTime = Date.parse( |
|
|
|
|
new Date( |
|
|
|
|
this.doDateFormatter(item.apmDay) + |
|
|
|
|
" " + |
|
|
|
|
(time[0] < 10 ? "0" + time[0] : time[0]) + |
|
|
|
|
":" + |
|
|
|
|
(time[1] < 10 ? "0" + time[1] : time[1]) + |
|
|
|
|
":00" |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
if (systemTime < endTime) { |
|
|
|
|
let ret = calcDate(systemTime, endTime); |
|
|
|
|
return `距离体检还有${ret.days}天${ret.hours}:${ret.minutes}:${(ret.seconds + '').substr(0, 2)}` |
|
|
|
|
return `距离体检还有${ret.days}天${ret.hours}:${ret.minutes}:${( |
|
|
|
|
ret.seconds + "" |
|
|
|
|
).substr(0, 2)}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
calcDateTimeStr(time) { |
|
|
|
|
console.log('剩余 ===>', time) |
|
|
|
|
console.log("剩余 ===>", time); |
|
|
|
|
let ret = calcTime(time); |
|
|
|
|
console.log('ret ===>', ret) |
|
|
|
|
return time > 0 ? `距离体检还有${ret.days}天${ret.hours}:${ret.minutes}:${(ret.seconds + '').substr(0, 2)}` : '' |
|
|
|
|
console.log("ret ===>", ret); |
|
|
|
|
return time > 0 |
|
|
|
|
? `距离体检还有${ret.days}天${ret.hours}:${ret.minutes}:${( |
|
|
|
|
ret.seconds + "" |
|
|
|
|
).substr(0, 2)}` |
|
|
|
|
: ""; |
|
|
|
|
}, |
|
|
|
|
//取消预约 |
|
|
|
|
cancelRegisiter(row) { |
|
|
|
|
@ -334,50 +532,70 @@ export default { |
|
|
|
|
// } |
|
|
|
|
lightAppJssdk.notification.confirm({ |
|
|
|
|
message: "是否取消该体检项目", |
|
|
|
|
title: "提示",//可传空 |
|
|
|
|
buttonLabels: ['确定', '取消'], |
|
|
|
|
title: "提示", //可传空 |
|
|
|
|
buttonLabels: ["确定", "取消"], |
|
|
|
|
success: (data) => { |
|
|
|
|
if (JSON.parse(data).buttonIndex == 1) { |
|
|
|
|
// console.log('ces') |
|
|
|
|
this.$toast.loading({ |
|
|
|
|
message: '', |
|
|
|
|
message: "", |
|
|
|
|
duration: 0, |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
if (this.GlobalConfig.appMode) { |
|
|
|
|
vaildInterfacefn("cgstjyyxuwxt", "qdsgajjtjczdqxtjyy", JSON.stringify({ id: row.id }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.$toast('操作成功'); |
|
|
|
|
this.examArr.map(item => { |
|
|
|
|
let tmp = item.details.find(item1 => item1.id == row.id) |
|
|
|
|
if (tmp) { |
|
|
|
|
tmp.apmStatus = 1; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.$toast.clear() |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.current = 1; |
|
|
|
|
// this.examArr = [] |
|
|
|
|
// this.queryMyRecord(); |
|
|
|
|
// }, 500); |
|
|
|
|
} |
|
|
|
|
}, err => { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
recordCancel(row.id).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
vaildInterfacefn( |
|
|
|
|
"cgstjyyxuwxt", |
|
|
|
|
"qdsgajjtjczdqxtjyy2", |
|
|
|
|
// JSON.stringify({ id: row.id }), |
|
|
|
|
// JSON.stringify({ id: row.id }), |
|
|
|
|
SM.encrypt( |
|
|
|
|
JSON.stringify({ id: row.id }), |
|
|
|
|
"04a99f6a9ff11eb2cac2a4999d5a7fc2002dae6543e327d6a0ffcf001792cb6a89b48e6f87ca7d6826e469600f66c7c9beac911f5375b29fa725e58ae1d0cd848b" |
|
|
|
|
), |
|
|
|
|
"2", |
|
|
|
|
"https://" + this.GlobalConfig.urlCreatesign, |
|
|
|
|
"https://" + this.GlobalConfig.urlGateway |
|
|
|
|
).then( |
|
|
|
|
(value) => { |
|
|
|
|
value = SM.decrypt( |
|
|
|
|
value, |
|
|
|
|
"66b284eeb814354cb6bc2933a94a7ffa75945ba650c25ff0b59353fc00df71cb" |
|
|
|
|
); |
|
|
|
|
let retData = JSON.parse(value); |
|
|
|
|
if (retData.code == 200) { |
|
|
|
|
this.$toast("操作成功"); |
|
|
|
|
this.examArr.map((item) => { |
|
|
|
|
let tmp = item.details.find( |
|
|
|
|
(item1) => item1.id == row.id |
|
|
|
|
); |
|
|
|
|
if (tmp) { |
|
|
|
|
tmp.apmStatus = 1; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.current = 1; |
|
|
|
|
// this.examArr = [] |
|
|
|
|
// this.queryMyRecord(); |
|
|
|
|
// }, 500); |
|
|
|
|
}else if(retData.code == 2000 || !retData){ |
|
|
|
|
this.cancelRegisiter(row) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
(err) => {} |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
recordCancel(row.id).then((res) => { |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.$toast('操作成功'); |
|
|
|
|
this.$toast("操作成功"); |
|
|
|
|
// let tmp = '' |
|
|
|
|
|
|
|
|
|
this.examArr.map(item => { |
|
|
|
|
let tmp = item.details.find(item1 => item1.id == row.id) |
|
|
|
|
this.examArr.map((item) => { |
|
|
|
|
let tmp = item.details.find((item1) => item1.id == row.id); |
|
|
|
|
if (tmp) { |
|
|
|
|
tmp.apmStatus = 1 |
|
|
|
|
tmp.apmStatus = 1; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.$toast.clear() |
|
|
|
|
}); |
|
|
|
|
this.$toast.clear(); |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.current = 1; |
|
|
|
|
// this.examArr = []; |
|
|
|
|
@ -385,14 +603,15 @@ export default { |
|
|
|
|
// this.queryMyRecord(); |
|
|
|
|
// }, 500); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
fail: function (data) { //错误返回 |
|
|
|
|
} |
|
|
|
|
fail: function (data) { |
|
|
|
|
//错误返回 |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
@ -450,11 +669,10 @@ export default { |
|
|
|
|
// margin: 0.4rem auto; |
|
|
|
|
// margin-bottom: 0.7rem; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.pro_top { |
|
|
|
|
display: flex; |
|
|
|
|
padding-bottom: 0.26rem; |
|
|
|
|
border-bottom: 1px solid #EEEEEE; |
|
|
|
|
border-bottom: 1px solid #eeeeee; |
|
|
|
|
|
|
|
|
|
.img_box { |
|
|
|
|
display: flex; |
|
|
|
|
@ -472,7 +690,7 @@ export default { |
|
|
|
|
width: 1.46rem; |
|
|
|
|
height: 0.32rem; |
|
|
|
|
text-align: center; |
|
|
|
|
background: #F6F6F6; |
|
|
|
|
background: #f6f6f6; |
|
|
|
|
border-radius: 0.08rem; |
|
|
|
|
line-height: 0.32rem; |
|
|
|
|
font-size: 0.24rem; |
|
|
|
|
@ -496,7 +714,6 @@ export default { |
|
|
|
|
.pro_left { |
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.img_box { |
|
|
|
|
height: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
@ -505,7 +722,6 @@ export default { |
|
|
|
|
img { |
|
|
|
|
width: 0.5rem; |
|
|
|
|
height: 0.5rem; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -529,11 +745,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
|
color: #00B578; |
|
|
|
|
color: #00b578; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.cancel_tip { |
|
|
|
|
color: #F93A4A; |
|
|
|
|
color: #f93a4a; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.timeout_tip { |
|
|
|
|
@ -549,29 +765,29 @@ export default { |
|
|
|
|
.cancel { |
|
|
|
|
width: 1.5rem; |
|
|
|
|
height: 0.5rem; |
|
|
|
|
background: rgba(22, 119, 255, .1); |
|
|
|
|
background: rgba(22, 119, 255, 0.1); |
|
|
|
|
border-radius: 0.26rem; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
font-size: 0.24rem; |
|
|
|
|
color: #1677FF; |
|
|
|
|
color: #1677ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.finish { |
|
|
|
|
background: #E5E5E5; |
|
|
|
|
background: #e5e5e5; |
|
|
|
|
color: #999; |
|
|
|
|
pointer-events: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.limit { |
|
|
|
|
pointer-events: none; |
|
|
|
|
background: #E5E5E5; |
|
|
|
|
background: #e5e5e5; |
|
|
|
|
color: #999; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.cancel_item { |
|
|
|
|
background: rgba(125, 125, 125, .2); |
|
|
|
|
background: rgba(125, 125, 125, 0.2); |
|
|
|
|
color: #999; |
|
|
|
|
pointer-events: none; |
|
|
|
|
} |
|
|
|
|
|