|
@ -1,14 +1,23 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="home"> |
|
|
<view class="home"> |
|
|
|
|
|
|
|
|
<image src="/static/image/bg/1.png" |
|
|
|
|
|
|
|
|
<image :src="configList.img_13" |
|
|
class="page-bg" |
|
|
class="page-bg" |
|
|
mode="aspectFill"></image> |
|
|
mode="aspectFill"></image> |
|
|
|
|
|
|
|
|
<view class="content_now"> |
|
|
|
|
|
<view class="flex-col" |
|
|
|
|
|
v-if="!id" |
|
|
|
|
|
style="width: 600rpx; padding: 20rpx 0; gap: 10rpx; border-radius: 12rpx; border: 2rpx solid #ecb864;"> |
|
|
|
|
|
|
|
|
<image :src="configList.img_7" |
|
|
|
|
|
class="logo" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
|
|
|
|
|
|
|
|
|
<view class="content"> |
|
|
|
|
|
|
|
|
|
|
|
<image :src="configList.img_11" |
|
|
|
|
|
class="content-bg" |
|
|
|
|
|
mode="scaleToFill"></image> |
|
|
|
|
|
|
|
|
|
|
|
<view |
|
|
|
|
|
class="topt" |
|
|
|
|
|
v-if="!id"> |
|
|
<span style="font-size: 25rpx;">请选择您方便的时间,</span> |
|
|
<span style="font-size: 25rpx;">请选择您方便的时间,</span> |
|
|
<span style="font-size: 25rpx;">我们将根据您的日程为您安排上门威士忌品鉴服务,</span> |
|
|
<span style="font-size: 25rpx;">我们将根据您的日程为您安排上门威士忌品鉴服务,</span> |
|
|
<span style="font-size: 25rpx;">确保您能在舒适的环境中尽享专属体验</span> |
|
|
<span style="font-size: 25rpx;">确保您能在舒适的环境中尽享专属体验</span> |
|
@ -36,51 +45,49 @@ |
|
|
<span>姓名:</span> |
|
|
<span>姓名:</span> |
|
|
<input v-model="form.username" |
|
|
<input v-model="form.username" |
|
|
:disabled="id" |
|
|
:disabled="id" |
|
|
type="text" class="input" style="width: 20vw;"></input> |
|
|
|
|
|
|
|
|
placeholder="请输入姓名" |
|
|
|
|
|
type="text" class="input" style="width: 580rpx;"></input> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <span style="margin-left: 20rpx; color: #dddddc; font-size: 26rpx;">(最开始填写的直接导入)</span> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="flex-center" style="align-items: flex-end;"> |
|
|
<view class="flex-center" style="align-items: flex-end;"> |
|
|
<view class="flex-start-col" style="gap: 10rpx;"> |
|
|
<view class="flex-start-col" style="gap: 10rpx;"> |
|
|
<span>联系电话:</span> |
|
|
<span>联系电话:</span> |
|
|
<input v-model="form.phone" |
|
|
<input v-model="form.phone" |
|
|
:disabled="id" |
|
|
:disabled="id" |
|
|
type="tel" class="input"></input> |
|
|
|
|
|
|
|
|
placeholder="请输入联系电话" |
|
|
|
|
|
type="tel" class="input" style="width: 580rpx;"></input> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <span style="margin-left: 20rpx; color: #dddddc; font-size: 26rpx;">(最开始填写的直接导入)</span> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="flex-center"> |
|
|
<view class="flex-center"> |
|
|
<view class="flex-start-col" style="gap: 10rpx; width: 80vw;"> |
|
|
|
|
|
<span>地址: {{ addressCity }}</span> |
|
|
|
|
|
<input v-model="address.address" |
|
|
|
|
|
|
|
|
<view class="flex-start-col"> |
|
|
|
|
|
<span>详细地址</span> |
|
|
|
|
|
<input v-model="form.address" |
|
|
:disabled="id" |
|
|
:disabled="id" |
|
|
placeholder="请输入详情地址" |
|
|
placeholder="请输入详情地址" |
|
|
type="text" class="input" |
|
|
type="text" class="input" |
|
|
style="width: 100%; height: 60rpx;"></input> |
|
|
|
|
|
|
|
|
style="width: 580rpx;"></input> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="an"> |
|
|
|
|
|
<view class="flex-center" style="gap: 30rpx;"> |
|
|
|
|
|
<view class="btn2" style="padding: 16rpx 80rpx;" @click="pre"> |
|
|
|
|
|
返回 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="btn2" |
|
|
|
|
|
v-if="!id" |
|
|
|
|
|
style="padding: 16rpx 80rpx;" @click="submit"> |
|
|
|
|
|
预约 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="btn2" |
|
|
|
|
|
v-else |
|
|
|
|
|
style="padding: 16rpx 80rpx;" @click="closeSubmit"> |
|
|
|
|
|
取消预约 |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="flex-center" style="gap: 30rpx;"> |
|
|
|
|
|
<view class="next-btn" style="padding: 16rpx 80rpx;" @click="pre"> |
|
|
|
|
|
返回 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="next-btn-2" |
|
|
|
|
|
v-if="!id" |
|
|
|
|
|
style="padding: 16rpx 80rpx;" @click="submit"> |
|
|
|
|
|
确认/提交 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="next-btn-2" |
|
|
|
|
|
v-else |
|
|
|
|
|
style="padding: 16rpx 80rpx;" @click="closeSubmit"> |
|
|
|
|
|
取消预约 |
|
|
</view> |
|
|
</view> |
|
|
<text class="second-color">{{ configList.bg_title }}</text> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="second-color">{{ configList.bg_title }}</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<uv-datetime-picker |
|
|
<uv-datetime-picker |
|
@ -166,12 +173,10 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
pre(){ |
|
|
pre(){ |
|
|
// uni.navigateBack({ |
|
|
|
|
|
// delta:1 |
|
|
|
|
|
|
|
|
uni.navigateBack(-1) |
|
|
|
|
|
// uni.reLaunch({ |
|
|
|
|
|
// url: '/pages/index/index' |
|
|
// }) |
|
|
// }) |
|
|
uni.reLaunch({ |
|
|
|
|
|
url: '/pages/index/index' |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
confirm(e){ |
|
|
confirm(e){ |
|
|
this.date = e.value |
|
|
this.date = e.value |
|
@ -181,6 +186,7 @@ |
|
|
if(this.$utils.verificationAll(this.form, { |
|
|
if(this.$utils.verificationAll(this.form, { |
|
|
username : '请输入姓名', |
|
|
username : '请输入姓名', |
|
|
phone : '请输入电话号码', |
|
|
phone : '请输入电话号码', |
|
|
|
|
|
address : '请输入详情地址', |
|
|
})){ |
|
|
})){ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@ -193,19 +199,9 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(this.$utils.verificationAll(this.address, { |
|
|
|
|
|
address : '请输入详情地址', |
|
|
|
|
|
})){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uni.setStorageSync('user_address', this.address) |
|
|
|
|
|
|
|
|
|
|
|
this.$api('submit', { |
|
|
this.$api('submit', { |
|
|
...this.address, |
|
|
|
|
|
...this.form, |
|
|
...this.form, |
|
|
name : this.form.username, |
|
|
name : this.form.username, |
|
|
area : this.address.district, |
|
|
|
|
|
yearValue : this.$dayjs(this.date).format('YYYY'), |
|
|
yearValue : this.$dayjs(this.date).format('YYYY'), |
|
|
monthDay : this.$dayjs(this.date).format('MM-DD'), |
|
|
monthDay : this.$dayjs(this.date).format('MM-DD'), |
|
|
dayTime : this.$dayjs(this.date).format('HH:mm'), |
|
|
dayTime : this.$dayjs(this.date).format('HH:mm'), |
|
@ -246,18 +242,46 @@ |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.home{ |
|
|
.home{ |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
|
|
|
.logo{ |
|
|
|
|
|
width: 600rpx; |
|
|
|
|
|
height: 100rpx; |
|
|
|
|
|
margin: 150rpx 75rpx; |
|
|
|
|
|
} |
|
|
|
|
|
.content{ |
|
|
|
|
|
position: relative; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
padding: 60rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
width: 720rpx; |
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
.content-bg{ |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
width: 700rpx; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
z-index: -1; |
|
|
|
|
|
} |
|
|
|
|
|
.topt{ |
|
|
|
|
|
width: 600rpx; |
|
|
|
|
|
padding: 20rpx 0; |
|
|
|
|
|
gap: 10rpx; |
|
|
|
|
|
border-radius: 12rpx; |
|
|
|
|
|
border: 2rpx solid #ecb864; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
.second-color{ |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
margin-top: 40rpx; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.an{ |
|
|
|
|
|
position: fixed; |
|
|
|
|
|
bottom: 300rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.date { |
|
|
.date { |
|
|
border: 2rpx solid $uni-color; |
|
|
border: 2rpx solid $uni-color; |
|
@ -274,4 +298,24 @@ |
|
|
border-radius: 10rpx; |
|
|
border-radius: 10rpx; |
|
|
padding: 4rpx 10rpx; |
|
|
padding: 4rpx 10rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
.next-btn{ |
|
|
|
|
|
width: 160rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
color: white; |
|
|
|
|
|
padding: 16rpx 90rpx; |
|
|
|
|
|
background-color: $uni-color; |
|
|
|
|
|
border-radius: 30rpx; |
|
|
|
|
|
} |
|
|
|
|
|
.next-btn-2{ |
|
|
|
|
|
width: 160rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
color: white; |
|
|
|
|
|
padding: 16rpx 90rpx; |
|
|
|
|
|
background-color: $uni-color-primary; |
|
|
|
|
|
border-radius: 30rpx; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |