|
@@ -11,7 +11,9 @@
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
<van-cell v-for="(item, i) in queueList" :key="i">
|
|
<van-cell v-for="(item, i) in queueList" :key="i">
|
|
<template #title>
|
|
<template #title>
|
|
- {{ [i + 1 + ".", item.orderTime + " ", item.userName].join(" ") }}
|
|
|
|
|
|
+ <van-tag v-if="item.orderType === 1" type="success">APP</van-tag>
|
|
|
|
+ <van-tag v-else type="warning ">现场</van-tag>
|
|
|
|
+ {{ [item.orderTime + " ", item.userName].join(" ") }}
|
|
</template>
|
|
</template>
|
|
<template #default>
|
|
<template #default>
|
|
<van-button
|
|
<van-button
|
|
@@ -36,7 +38,7 @@
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
|
|
|
|
|
|
|
- <van-popup v-model="open" position="right" class="open">
|
|
|
|
|
|
+ <van-popup closeable v-model="open" position="right" class="open">
|
|
<van-checkbox-group v-model="checkbox" v-if="showPopover.length">
|
|
<van-checkbox-group v-model="checkbox" v-if="showPopover.length">
|
|
<van-row v-for="(item,i) in weeks" :key="i">
|
|
<van-row v-for="(item,i) in weeks" :key="i">
|
|
<van-col span="8">
|
|
<van-col span="8">
|
|
@@ -95,7 +97,7 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<template #reference>
|
|
<template #reference>
|
|
- <div class="timerange van-hairline--surround">
|
|
|
|
|
|
+ <div class="timerange">
|
|
{{timerange[i]}}
|
|
{{timerange[i]}}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -124,9 +126,11 @@ import {
|
|
CheckboxGroup as vanCheckboxGroup,
|
|
CheckboxGroup as vanCheckboxGroup,
|
|
Popover as vanPopover,
|
|
Popover as vanPopover,
|
|
DatetimePicker as vanDatetimePicker,
|
|
DatetimePicker as vanDatetimePicker,
|
|
|
|
+ Tag as vanTag,
|
|
Dialog,
|
|
Dialog,
|
|
Notify
|
|
Notify
|
|
} from "vant";
|
|
} from "vant";
|
|
|
|
+import "vant/lib/tag/style/index";
|
|
import "vant/lib/cell/style/index";
|
|
import "vant/lib/cell/style/index";
|
|
import "vant/lib/cell-group/style/index";
|
|
import "vant/lib/cell-group/style/index";
|
|
import "vant/lib/dialog/style/index";
|
|
import "vant/lib/dialog/style/index";
|
|
@@ -150,8 +154,8 @@ export default {
|
|
queueList: [],
|
|
queueList: [],
|
|
showPopover: [],
|
|
showPopover: [],
|
|
open: false,
|
|
open: false,
|
|
- time: ["00:00"],
|
|
|
|
- time2: ["00:00"],
|
|
|
|
|
|
+ time: [],
|
|
|
|
+ time2: [],
|
|
timerange: ["00:00 - 00:00"],
|
|
timerange: ["00:00 - 00:00"],
|
|
checkbox: [],
|
|
checkbox: [],
|
|
weeks: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
|
weeks: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
|
@@ -163,6 +167,8 @@ export default {
|
|
showPopover.fill(false);
|
|
showPopover.fill(false);
|
|
timerange.fill("00:00 - 00:00");
|
|
timerange.fill("00:00 - 00:00");
|
|
this.showPopover = showPopover;
|
|
this.showPopover = showPopover;
|
|
|
|
+ this.time = (new Array(this.weeks.length)).fill("00:00");
|
|
|
|
+ this.time2 = (new Array(this.weeks.length)).fill("00:00");
|
|
this.timerange = timerange;
|
|
this.timerange = timerange;
|
|
this.reloadOrder();
|
|
this.reloadOrder();
|
|
},
|
|
},
|
|
@@ -179,7 +185,7 @@ export default {
|
|
let sMin = Number(s[0]*60 || 0) + Number(s[1] || 0);
|
|
let sMin = Number(s[0]*60 || 0) + Number(s[1] || 0);
|
|
let eMin = Number(e[0]*60 || 0) + Number(e[1] || 0);
|
|
let eMin = Number(e[0]*60 || 0) + Number(e[1] || 0);
|
|
if(eMin < sMin) return Notify("结束时间应在开始时间之后")
|
|
if(eMin < sMin) return Notify("结束时间应在开始时间之后")
|
|
- this.timerange[t] = this.time + " - " + this.time2;
|
|
|
|
|
|
+ this.timerange[t] = this.time[t] + " - " + this.time2[t];
|
|
this.closeTime(t)
|
|
this.closeTime(t)
|
|
},
|
|
},
|
|
toOpen() {
|
|
toOpen() {
|
|
@@ -191,7 +197,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
toAdmin() {
|
|
toAdmin() {
|
|
- this.$router.push({ name: "Apply", params: { a: 0 } });
|
|
|
|
|
|
+ this.$router.push({ name: "Applyreal", params: { a: 0 } });
|
|
},
|
|
},
|
|
skipUser() {
|
|
skipUser() {
|
|
Dialog.confirm({
|
|
Dialog.confirm({
|
|
@@ -243,6 +249,7 @@ export default {
|
|
vanCheckboxGroup,
|
|
vanCheckboxGroup,
|
|
vanPopover,
|
|
vanPopover,
|
|
vanDatetimePicker,
|
|
vanDatetimePicker,
|
|
|
|
+ vanTag
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -257,8 +264,9 @@ export default {
|
|
.queue .open {
|
|
.queue .open {
|
|
height: 100%;
|
|
height: 100%;
|
|
min-width: 500px;
|
|
min-width: 500px;
|
|
- padding: 1em;
|
|
|
|
|
|
+ padding: 3.5em 1em 1em 2em;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+
|
|
}
|
|
}
|
|
.queue .van-col {
|
|
.queue .van-col {
|
|
height: 2.5em;
|
|
height: 2.5em;
|
|
@@ -269,5 +277,7 @@ export default {
|
|
padding: 3px 5px;
|
|
padding: 3px 5px;
|
|
width: 100%;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+ border: 1px solid #eee;
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|