Commit 631c3089 authored by wxf's avatar wxf

feat: 修改文件路径

parent 90439cec
export const baseUrl = 'https://essence.jzvcode.com/feihe'
export const baseUrl = 'https://feihe.jzvcode.com'
// 声明字体
@font-face {
font-family: 'fz';
src: url('https://essence.jzvcode.com/feihe/images/fz.ttf') format('truetype');
src: url('https://feihe.jzvcode.com/images/fz.ttf') format('truetype');
}
@font-face {
font-family: 'fz-bold';
src: url('https://essence.jzvcode.com/feihe/images/fz-bold.ttf')
format('truetype');
src: url('https://feihe.jzvcode.com/images/fz-bold.ttf') format('truetype');
}
.blur-bg {
......
// 声明字体
@font-face {
font-family: 'fz';
src: url('https://essence.jzvcode.com/feihe/images/fz.ttf') format('truetype');
src: url('https://feihe.jzvcode.com/images/fz.ttf') format('truetype');
}
@font-face {
font-family: 'fz-bold';
src: url('https://essence.jzvcode.com/feihe/images/fz-bold.ttf')
format('truetype');
src: url('https://feihe.jzvcode.com/images/fz-bold.ttf') format('truetype');
}
.record {
......
// 声明字体
@font-face {
font-family: 'fz';
src: url('https://essence.jzvcode.com/feihe/images/fz.ttf') format('truetype');
src: url('https://feihe.jzvcode.com/images/fz.ttf') format('truetype');
}
@font-face {
font-family: 'fz-bold';
src: url('https://essence.jzvcode.com/feihe/images/fz-bold.ttf')
format('truetype');
src: url('https://feihe.jzvcode.com/images/fz-bold.ttf') format('truetype');
}
.record {
......
// 声明字体
@font-face {
font-family: 'fz';
src: url('https://essence.jzvcode.com/feihe/images/fz.ttf') format('truetype');
src: url('https://feihe.jzvcode.com/images/fz.ttf') format('truetype');
}
@font-face {
font-family: 'fz-bold';
src: url('https://essence.jzvcode.com/feihe/images/fz-bold.ttf')
format('truetype');
src: url('https://feihe.jzvcode.com/images/fz-bold.ttf') format('truetype');
}
.subscribe {
......
......@@ -355,6 +355,12 @@ onMounted(async () => {
// 如果日期是今天,则设置为选中
is_selected: item.day == formatDateCompare(),
}))
// 设置默认选中日期
dateList.value.forEach((item) => {
if (item.day == formatDateCompare()) {
formData.value.reservation_date = item.day
}
})
// 如果dateList 有值,则默认查询第一条数据的timeList
if (dateList.value.length > 0) {
getTimeList(dateList.value[0].day)
......@@ -570,6 +576,13 @@ const validateForm = () => {
if (!formData.value.visitor_number) {
reject('请填写访客人数')
}
// 判断访客人数是否为正整数
if (
!/^\d+$/.test(formData.value.visitor_number) ||
formData.value.visitor_number <= 0
) {
reject('访客人数请输入正整数')
}
if (!formData.value.type) {
reject('请选择访客类型')
}
......@@ -580,10 +593,12 @@ const handleSubmit = () => {
// 校验表单
validateForm()
.then(() => {
reservation({
let o = {
...formData.value,
ground: currentGround.value?.ground || '',
}).then((res) => {
}
delete o.typeStr
reservation(o).then((res) => {
console.log(res, 'res')
if (res.code == 0) {
uni.showToast({
......
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