d9a84b21 by zhangmeng

化妆拍照

1 parent 0ac2721e
......@@ -264,3 +264,59 @@ export function getMealOrderInfoByLogex(data) {
params:data
})
}
export function getShootList(data) {
return request({
url: `/ota/activityShoot/getShootList`,
method: 'get',
params:data
})
}
export function getComShootVoById(data) {
return request({
url: `/ota/activityShoot/getComShootVoById`,
method: 'get',
params:data
})
}
export function getActivityPhotoVoListByShootId(data) {
return request({
url: `/ota/activityPhoto/getActivityPhotoVoListByShootId`,
method: 'get',
params:data
})
}
export function getPhotoConfList(data) {
return request({
url: `/ota/photoConfig/getPhotoConfList`,
method: 'get',
params:data
})
}
export function submitOrderPhoto(data) {
return request({
url: `/ota/norder/submitOrderPhoto`,
method: 'post',
data
})
}
export function getPhotoOrderInfo(data) {
return request({
url: `/ota/orderPhoto/getPhotoOrderInfo`,
method: 'get',
params:data
})
}
export function getPhotoOrderInfoByLogex(data) {
return request({
url: `/ota/orderPhoto/getPhotoOrderInfoByLogex`,
method: 'get',
params:data
})
}
......
......@@ -422,6 +422,18 @@ export const constantRoutes = [
meta: { title: 'Photography Appointment' }
},
{
path: 'photography/:cptId/:id',
component: () => import('@/viewsPc/booking/photographyDetail'),
name: 'photographyDetail',
meta: { title: 'Photography Reservation' }
},
{
path: 'photography/:cptId/:id/:lasId',
component: () => import('@/viewsPc/booking/photographyOrder.vue'),
name: 'photographyOrder',
meta: { title: 'Photography Appointment' }
},
{
path: 'pay',
component: () => import('@/viewsPc/booking/pay'),
name: 'bookingPay',
......
<template>
<div >
<el-calendar v-model="currentDate" :range="calendarRange">
<template #header="{data}">
<template #header="{date}">
<el-row style="width: 100%">
<el-col :span="7">
{{data}}
</el-col>
<el-col :span="10">
<el-row justify="center" align='middle' >
<div class="canBtn"><el-icon><ArrowLeftBold /></el-icon></div>
<div>
<el-row justify="center" align='middle' >
<!-- <div class="canBtn"><el-icon><ArrowLeftBold /></el-icon></div>-->
<div class="cTitle">
<!-- <el-date-picker-->
<!-- v-model="value2"-->
<!-- type="daterange"-->
......@@ -21,9 +20,10 @@
<!-- size="small"-->
<!-- @change="changee"-->
<!-- />-->
<el-input readonly v-model="value2" type="text" size="small" style="width: 280px"></el-input>
<!-- <el-input readonly :value="date" type="text" size="small" style="width: 280px"></el-input>-->
{{date}}
</div>
<div class="canBtn"><el-icon><ArrowRightBold /></el-icon></div>
<!-- <div class="canBtn"><el-icon><ArrowRightBold /></el-icon></div>-->
</el-row>
</el-col>
<el-col :span="7">
......@@ -35,6 +35,7 @@
format="YYYY-MM-DD"
size="small"
@change="dateChange"
:disabled-date="disabledDate"
/>
</div>
</el-col>
......@@ -108,7 +109,6 @@ const loading = ref(false)
const query = ref({
lasId:route.params.id,
})
const value1=ref('')
const value2=ref('')
......@@ -131,8 +131,6 @@ function dateChange(){
currentDate.value=currentDate1.value
calendarRange.value=[dayjs(currentDate.value).toDate(),(dayjs(currentDate.value).toDate())]
getScheduleList()
console.log(currentDate.value)
console.log(currentDate1.value)
}
function goMatch(n) {
......@@ -146,14 +144,15 @@ function goMatch(n) {
params: {
lasId: n.id
},
// query: {
// matchId: n.cptId
// }
query: {
date: dayjs(currentDate.value).format('YYYY-MM-DD')
}
})
}
function changee(){
console.log(value2.value)
function disabledDate(e){
return e.getTime()<=Date.now()
console.log(e)
}
</script>
......@@ -313,4 +312,10 @@ function changee(){
margin: 0 16px -2px 16px;
cursor:pointer
}
.cTitle{
color: #fff;
font-size: 20px;
font-weight: 500;
}
</style>
......
<template>
<div >
<el-calendar v-model="currentDate" :range="calendarRange">
<template #header="{date}">
<el-row style="width: 100%">
<el-col :span="7">
</el-col>
<el-col :span="10">
<el-row justify="center" align='middle' class="cTitle">
<!-- <div class="canBtn"><el-icon><ArrowLeftBold /></el-icon></div>-->
<!-- <div>-->
<!--&lt;!&ndash; <el-date-picker&ndash;&gt;-->
<!--&lt;!&ndash; v-model="value2"&ndash;&gt;-->
<!--&lt;!&ndash; type="daterange"&ndash;&gt;-->
<!--&lt;!&ndash; range-separator="-"&ndash;&gt;-->
<!--&lt;!&ndash; start-placeholder="Start date"&ndash;&gt;-->
<!--&lt;!&ndash; end-placeholder="End date"&ndash;&gt;-->
<!--&lt;!&ndash; format="YYYY-MM-DD"&ndash;&gt;-->
<!--&lt;!&ndash; value-format="YYYY-MM-DD"&ndash;&gt;-->
<!--&lt;!&ndash; size="small"&ndash;&gt;-->
<!--&lt;!&ndash; @change="changee"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!-- <el-input readonly v-model="value2" type="text" size="small" style="width: 280px"></el-input>-->
<!-- </div>-->
<!-- <div class="canBtn"><el-icon><ArrowRightBold /></el-icon></div>-->
{{date}}
</el-row>
</el-col>
<el-col :span="7">
<div style="text-align: right;padding-right: 10px">
<el-date-picker
v-model="currentDate1"
type="date"
placeholder="YYYY-MM-DD"
format="YYYY-MM-DD"
size="small"
@change="dateChange"
/>
</div>
</el-col>
</el-row>
</template>
<template #date-cell="data">
<div :class="data.data.day==query.currentDate?'primaryDate date':'date'" @click="selectDate(data.data.day)">
{{ data.data.day.slice(8, 10) }}
</div>
</template>
</el-calendar>
<div class="calendarList">
<ul v-loading="loading">
<li v-for="n in schList" :key="n.id" @click="goMatch(n)">
<el-row style="width: 100%">
<div style="margin-right: 25px">
<el-image style="width: 90px;height: 115px" :src="fillImgUrl(n.photos?.split(',')[0]) " fit="cover" />
</div>
<div style="flex: 1" >
<div class="hz-title">{{ n.name }}</div>
<div>
<el-row justify="space-between">
<el-row class="hz-p" style="flex: 1">
<el-col :span="8">
<div >{{ language==0?'套餐说明':'Package Description' }}: <span style="margin-right: 20px">{{n.introduction}}</span></div>
</el-col>
<el-col :span="8">
<div>{{ language==0?'剩余':'' }}<span class="sign">{{ n.num-n.counts }}</span>{{language==0?'名额':'Places Remaining' }} </div>
</el-col>
<el-col :span="8">
<div >{{n.goHome==1?language==0?'上门拍照':'Door-to-door photo':''}}</div>
</el-col>
</el-row>
<el-row>
<div class="zh-margin" style="font-size: 36px;color: #ff8124"><span style="font-size: 24px">{{ language==0?'¥':'€'}} </span> {{language==0?n.photoPrice:n.photoPriceEn}}</div>
<el-button :disabled="n.num-n.counts<=0" class="btn-lineG w200px" round type="primary" size="large">{{ language==0?'立即预约':'Select' }} ⇀</el-button>
</el-row>
</el-row>
</div>
</div>
</el-row>
</li>
</ul>
<el-empty v-if="schList.length== 0"
style="--el-empty-padding:0;--el-empty-description-margin-top:0"
:image="`/img/order_no.png`"
:image-size="200"/>
</div>
</div>
</template>
<script setup>
import {ref} from "vue";
import {dayjs} from "element-plus";
import {useRoute,useRouter} from 'vue-router'
import * as booking from "@/apiPc/booking"
import {useStorage} from "@vueuse/core/index";
import useUserStore from "/@/store/modules/user";
import {getActivityPhotoVoListByShootId} from "@/apiPc/booking";
const user = useUserStore().user
const language = useStorage('language', 0)
const router = useRouter()
const route=useRoute()
const currentDate = ref(new Date())
const currentDate1 = ref(new Date())
const calendarRange = ref([dayjs(currentDate.value).toDate(),(dayjs(currentDate.value).toDate())])
const schList = ref([])
const loading = ref(false)
const query = ref({
lasId:route.params.id,
})
const value2=ref('')
getScheduleList()
function getScheduleList() {
loading.value = true
query.value.currentDate = dayjs(currentDate.value).format('YYYY-MM-DD')
booking.getActivityPhotoVoListByShootId(query.value).then(res=>{
loading.value = false
schList.value = res.data
})
}
function selectDate(date) {
currentDate1.value= currentDate.value=dayjs(date).toDate()
console.log(date)
getScheduleList()
}
function dateChange(){
currentDate.value=currentDate1.value
calendarRange.value=[dayjs(currentDate.value).toDate(),(dayjs(currentDate.value).toDate())]
getScheduleList()
console.log(currentDate.value)
console.log(currentDate1.value)
}
function goMatch(n) {
if (!user) {
useUserStore().setVisitor()
return
}
router.push({
name: 'photographyOrder',
params: {
lasId: n.id
},
query: {
date: dayjs(currentDate.value).format('YYYY-MM-DD')
}
})
}
function changee(){
console.log(value2.value)
}
</script>
<style scoped lang="scss">
.el-calendar {
--el-calendar-border: none;
--el-calendar-cell-width: 40px;
text-align: center;
--el-text-color-regular: #8E8D94;
:deep(.el-calendar__header) {
justify-content: center;
padding: 0 0 10px
}
:deep(.el-calendar__body) {
border: 1px solid #F0F0F0;
padding: 0
}
:deep(.el-calendar-table .el-calendar-day) {
padding: 1px;
}
:deep(.el-calendar-table td.is-selected) {
background: transparent;
}
:deep(.el-calendar__button-group) {
display: none;
}
:deep(.el-calendar-table thead th) {
padding: 5px 0 0
}
.primaryDate {
color: #fff;
background: linear-gradient(90deg, #8623FC, #453DEA);
}
.date {
margin: auto;
border-radius: 50%;
width: 30px;
height: 30px;
line-height: 30px;
font-weight: bold;
}
}
.calendarList {
border: 1px solid #F0F0F0;
padding: 12px 20px;
overflow: auto;
height: 625px;
ul {
li {cursor: pointer;
background: #F6F9FE;
margin: 7px 0 7px 20px;
position: relative;
padding: 13px;
border-radius: 10px;
font-weight: 500;
font-size: 15px;
label {
color: #453DEA;
margin-right: 15px;
&::before {
content: '';
background: #fff;
left: -17px;
top: 0px;
bottom: 0;
margin: auto;
border-radius: 50%;
width: 2px;
height: 2px;
position: absolute;
z-index: 1
}
}
}
li::before {
content: '';
background: linear-gradient(0deg, #8623FC, #453DEA);
border-radius: 50%;
width: 8px;
height: 8px;
position: absolute;
left: -20px;
top: 0;
bottom: 0;
margin: auto;
z-index: 1;
}
li::after {
content: '';
left: -16px;
width: 1px;
height: 100%;
background: #EBEBEB;
position: absolute;
top: 20px
}
//li:hover {
// color: #fff;
// background: linear-gradient(-90deg, #8623FC, #453DEA);
//
// label {
// color: #fff;
// }
//}
}
}
.hz-title{
font-size: 20px;
font-weight: 400;
color: #000;
margin-top:20px;
margin-bottom: 10px;
}
.zh-margin{
font-weight: bold;
font-size: 36px;
color: #FF8124;
margin-right: 30px;
}
.hz-p{
font-size: 16px;
color: #4C5359;
font-weight: 400;
}
:deep(.el-calendar__header) {
background: linear-gradient(90deg, #8623FC, #453DEA);
height: 50px;
line-height: 50px;
}
.canBtn{
color: #453DEA;
border-radius: 2px;
width: 22px;
height: 22px;
line-height: 26px;
text-align: center;
background-color: #fff;
margin: 0 16px -2px 16px;
cursor:pointer
}
.cTitle{
color: #fff;
font-size: 20px;
font-weight: 500;
}
</style>
......@@ -31,62 +31,77 @@
</el-row>
</el-card>
<br>
<el-row justify='space-between'>
<div class="img-header" style="width: 40%">
<div class="card">
<el-image style="width: 100%" :src="fillImgUrl(form.photos)?.split(',')[0]" fit="none" :preview-src-list="form?.photos?.split(',')"/>
</div>
</div>
<div class="img-header" style="width: 20%">
<el-row style="height: 50%;">
<el-col :span="12">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</el-col>
<el-col :span="12">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</el-col>
</el-row>
<div style="height: 50%;">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</div>
</div>
<div class="img-header" style="width: 20%">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</div>
<div class="img-header" style="width: 20%">
<el-row style="height: 50%">
<el-col :lg="12" :md="8" :sm="12" :xs="24" >
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</el-col>
<el-col :span="12">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
</div>
</el-col>
</el-row>
<div style="height: 50%;">
<div class="card">
<el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>
<!-- <div class="img-hover">-->
<!-- 查看相册 (12) >-->
<!-- <el-row justify='space-between'>-->
<!-- <div class="img-header" style="width: 40%">-->
<!-- <div class="card">-->
<!-- <el-image style="width: 100%" :src="fillImgUrl(form.photos)?.split(',')[0]" fit="none" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="img-header" style="width: 20%">-->
<!-- <el-row style="height: 50%;">-->
<!-- <el-col :span="12">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="12">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <div style="height: 50%;">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="img-header" style="width: 20%">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="img-header" style="width: 20%">-->
<!-- <el-row style="height: 50%">-->
<!-- <el-col :lg="12" :md="8" :sm="12" :xs="24" >-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="12">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <div style="height: 50%;">-->
<!-- <div class="card">-->
<!-- <el-image :src="fillImgUrl(form.photos)?.split(',')[0] " fit="cover" :preview-src-list="form?.photos?.split(',')"/>-->
<!--&lt;!&ndash; <div class="img-hover">&ndash;&gt;-->
<!--&lt;!&ndash; 查看相册 (12) >&ndash;&gt;-->
<!--&lt;!&ndash; </div>&ndash;&gt;-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </el-row>-->
<div class="mt30">
<el-row :gutter="20">
<el-col :span="10">
<div class="imgbox hotelImg">
<el-image :src="form?.photosList?.[0]" fit="cover" :preview-src-list="form?.photosList"/>
</div>
</div>
</div>
</el-row>
<br>
<br>
</el-col>
<el-col :span="14">
<el-row class="h100" :gutter="20">
<el-col :span="8" class="oddmb" v-for="(p,index) in form?.photosList?.slice(1,7)">
<div class="imgbox hotelImg"><el-image :src="p" fit="cover"/></div>
</el-col>
</el-row>
</el-col>
</el-row>
</div>
<br>
<el-card :body-style="{'padding':'20px 20px'}">
<MakeUpCalendar></MakeUpCalendar>
......@@ -106,6 +121,7 @@ import * as booking from "@/apiPc/booking"
import {useStorage} from "@vueuse/core/index";
import useUserStore from "@/store/modules/user";
import MakeUpCalendar from "@/viewsPc/booking/component/makeUpCalendar.vue";
import {fillImgUrl} from "/@/utils/ruoyi";
const user = useUserStore().user
const language = useStorage('language', 0)
const router = useRouter()
......@@ -127,6 +143,11 @@ function getData() {
booking.makeUpDetail(query.value).then(res => {
loading.value = false
form.value = res.data
form.value.photosList=[]
form.value.photos?.split(',')?.forEach(v=>{
form.value.photosList.push(fillImgUrl(v))
})
console.log(form.value)
// console.log(res)
}).catch(err => {
console.log(err)
......@@ -378,5 +399,9 @@ function getData() {
//display: none;
}
.hotelImg{border-radius: 10px;overflow: hidden;aspect-ratio: 16/9;
img{object-fit: cover;object-position: center;width: 100%;height: 100%;
}
}
.oddmb:nth-child(2){margin-bottom: 20px;}
</style>
......
......@@ -71,6 +71,25 @@
</el-row>
</div>
</div>
<div v-if="type == 'photography'">
<div class="leftboderTT">{{ language == 0 ? '拍摄信息' : 'Shooting Information' }}</div>
<div class="border-info mt20">
<h3>{{ formInfo.shootName }}</h3>
<el-row>
<el-col>
{{ language == 0 ?'地址':'Address' }}
<span >{{ formInfo.remarks }} </span>
{{ form.address }}
</el-col>
<el-col>
{{ language == 0 ?'套餐':'Package' }}{{ formInfo.photoName }} <span style="margin-left: 40px">{{ language==0?'价格':'Price' }}</span><span class="price">{{language==0? '¥'+formInfo.photoPrice:'€'+ formInfo.photoPriceEn}}</span>
</el-col>
<el-col>
{{ language == 0 ?'套餐说明':'Package Description' }}{{ formInfo.introduction}}
</el-col>
</el-row>
</div>
</div>
<div class="leftboderTT">{{ language == 0 ? '预订信息' : 'Booking information' }}</div>
......@@ -147,7 +166,22 @@
<el-row v-if="type == 'makeUp'">
<el-col :lg="8" :md="12" :sm="12" :xs="24">
<div class="mb10">{{ language==0?'化妆时间':'Makeup time' }}
<!-- {{ dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;' }} ~ {{dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'}}-->
<!-- {{ dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;' }} ~ {{dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'}}-->
{{ dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'+ form.nameStart }} ~ {{dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'+form.nameEnd}}
</div>
</el-col>
<el-col :lg="12" :md="12" :sm="12" :xs="24">
<div class="mb10">{{ language==0?'预约数':'Number of appointments' }}{{ form.num }} </div>
</el-col>
<el-col :lg="8" :md="12" :sm="12" :xs="24">
<div class="mb10">{{ language==0?'联系人':'Contact Person' }}{{ form.contacts }}</div>
</el-col>
<el-col :lg="8" :md="12" :sm="12" :xs="24">{{ language==0?'联系方式':'Contact Phone' }}{{ form.phone }}</el-col>
<el-col :span="24" >{{ language==0?'备注':'Remarks' }}{{ form.remarks }}</el-col>
</el-row>
<el-row v-if="type == 'photography'">
<el-col :lg="8" :md="12" :sm="12" :xs="24">
<div class="mb10">{{ language==0?'拍摄时间':'Makeup time' }}
{{ dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'+ form.nameStart }} ~ {{dayjs(form.dcStart).format('YYYY-MM-DD') +'&nbsp;'+form.nameEnd}}
</div>
</el-col>
......@@ -336,7 +370,7 @@ import {
cancelOrder2,
getCarBilldetailbyId,
getFoodBilldetailbyId,
getMealOrderInfoByLogex
getMealOrderInfoByLogex, getPhotoOrderInfo, getPhotoOrderInfoByLogex
} from "@/apiPc/booking";
import dayjs from 'dayjs'
import {delPerson} from "@/api/exam/person";
......@@ -379,6 +413,9 @@ onMounted(() => {
case '3':
type.value = 'makeUp'
break
case '4':
type.value = 'photography'
break
}
}
......@@ -432,6 +469,10 @@ function getData() {
MakeUpOrder()
MakeUpIno()
}
if(type.value=='photography') {
photographyOrder()
photographyInfo()
}
console.log(payType.value)
}
......@@ -499,6 +540,28 @@ function MakeUpIno(){
errorBox.value = true
})
}
function photographyOrder(){
booking.getPhotoOrderInfo({orderId: orderId.value}).then(res => {
form.value=res.data
totalFee.value=language.value==0?form.value.total:form.value.totalEn
}).catch(err => {
console.log(err)
errorBox.value = true
})
}
function photographyInfo(){
booking.getPhotoOrderInfoByLogex({orderId: orderId.value}).then(res=>{
formInfo.value=res.data
})
// .catch((e) => {
// console.log(e)
// errorBox.value = true
// })
}
const cancel = () => {
//取消订单
proxy.$modal.confirm(language.value == 0 ? '确定取消订单吗 ?' :`Are you sure to cancel the order?`).then(() => {
......
<template>
<div>
<div class="box">
<el-card class="mt30"></el-card>
<div>
<div class="banner">
<img v-if="language==0" src="@/assets/booking/pz_text1.png">
<img v-else src="@/assets/booking/pz_text2.png">
</div>
<div class="box">
<div class="searchBar">
<el-input :placeholder="language==0?'请输入关键字搜索':'Search'" v-model="query.name" class="no-border">
</el-input>
<el-button size="large" type="primary" class="btn-lineG" icon="search" @click="getList">
{{ language==0?'搜索':'Search' }}</el-button>
</div>
</div>
<div class="box" v-loading="loading">
<el-row style="width: 100%" :gutter="20">
<el-col :span="8" v-for="(h,index) in list" class="mb20" >
<el-card style="position: relative;">
<img class="w100 hz-img" :src="fillImgUrl(h.cover)"/>
<div class="yuyue">
{{ h.counts }} {{ language==0?'个时间段可预约':"time slots can be reserved" }}
</div>
<div class="hz-text">{{h.name}}</div>
<div class="tagbox esp">
<span v-for="(t,index) in h.label?.split(',')" v-show="index<4">{{t}}</span>
</div>
<div class="hz-row">
<el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><OfficeBuilding /></el-icon>
{{ language==0?'成立':'Established for'}}
<span class="sign">{{ h.ageLimit }}</span>{{language==0?'年':'years'}} |
<el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><UserFilled /></el-icon><span class="sign">{{ h.dresserLimit }}</span>{{language==0?'名摄影师':'Photographers' }}
</div>
<div class="hz-row">
<el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><PhoneFilled /></el-icon>
{{ h.contact }}
</div>
<div class="hz-row">
<el-icon size="16" style="position: relative;top: 2px" color="#929AA0"><LocationFilled /></el-icon>
{{h.remarks}}
</div>
<div style="text-align: center">
<el-button class="btn-lineG w200px" round type="primary" size="large" @click="goDetail(h)">{{ language==0?'立即预约':'Select' }}</el-button>
</div>
</el-card>
</el-col>
</el-row>
</div>
<el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description="" />
<div style="height: 50px"></div>
</div>
</div>
</div>
</template>
<script setup>
import {onMounted} from "@vue/runtime-core"
import * as booking from "@/apiPc/booking"
import {useRouter,useRoute} from "vue-router";
import {useStorage} from "@vueuse/core/index";
import {getMakeUpList, getShootList} from "@/apiPc/booking";
const router = useRouter()
const route = useRoute()
const language= useStorage('language',0)
const query = ref({
name:''
})
const cptId = ref('')
const list = ref([])
const loading = ref(false)
onMounted(()=>{
query.value.activityId = route.params.cptId
getList()
})
function getList() {
loading.value = true
booking.getShootList(query.value).then(res=>{
list.value = res.rows
loading.value = false
}).catch(e=>{
loading.value = false
})
}
function goDetail(item) {
router.push({
name:'photographyDetail',
params:{
id:item.id,
}
})
}
</script>
<style scoped>
<style scoped lang="scss">
.banner{height: 140px;background-size: cover;text-align: center;
background: url("@/assets/booking/pz_bg.png") center;display: flex;align-items: center;
justify-content: center;
img{display: block;margin:-30px auto 0;width: auto;}
}
.searchBar{position: relative;top: -30px;
background: #FFFFFF;display: flex;padding: 20px;
border-radius: 10px;}
.no-border{border: none;background: #F5F7F9;
:deep(.el-input__wrapper){border: none;box-shadow: none;background: #F5F7F9;}
}
.hz-img{
height: 218px;
width: 100%;
border-radius: 2px;
border: 0;
margin-bottom: 20px;
object-fit: cover;
}
.yuyue{
width: 150px;
height: 30px;
background: #000000;
border-radius: 20px 0px 0px 2px;
padding-left: 15px;
opacity: 0.45;
color: #fff;
font-size: 14px;
line-height: 30px;
position: absolute;
top: 207px;
right:21px;
}
.hz-text{
font-size: 20px;
font-weight: 500;
color: #000;
margin-bottom: 8px;
}
//.hz-tag{
// border-radius: 13px;
// height: 25px;
// line-height: 25px;
// font-size: 12px;
// font-weight: 400;
// padding: 0 15px;
//}
//.tag1{
// background: rgba(50, 177, 108, 0.2);
// color:rgba(50, 177, 108, 1);
//}
//.tag2{
// background-color: rgba(243, 152, 0, 0.2);
// color: #F39800;
//}
//.tag3{
// background-color: rgba(0, 160, 233, 0.2);
// color: #00A0E9;
//}
//.tag4{
// background-color: rgba(247, 64, 166, 0.2);
// color: #F740A6;
//}
//
//.hz-row{
// font-size: 14px;
// font-weight: 400;
// color: #929AA0;
// margin-bottom: 16px;
// .sign{
// color: #493CEB;
// }
//}
.tagbox{margin: 10px 0;
a{color: #AFB5B9;font-size: 12px;}
span{border-radius: 13px;font-size: 12px;padding: 3px 10px;margin-right:10px;font-weight: 400;}
span:nth-child(4n){background: rgba(50, 177, 108, 0.2);color: rgba(50, 177, 108, 1);}
span:nth-child(4n+1){background:rgba(243, 152, 0, 0.2);color: rgba(243, 152, 0, 1);}
span:nth-child(4n+2){background: rgba(0, 160, 233, 0.2);color: rgba(0, 160, 233, 1);}
span:nth-child(4n+3){background: rgba(247, 64, 166, 0.2);color:rgba(247, 64, 166, 1);}
}
</style>
......
......@@ -16,6 +16,7 @@
<label class="purpleTag" v-if="b.orderType == 1"> {{ language==0?'车辆':'TRANSPORTATION' }} </label>
<label class="orangeTag" v-if="b.orderType == 2"> {{ language==0?'餐饮':'DINING' }} </label>
<label class="orangeTag" v-if="b.orderType == 3"> {{ language==0?'化妆':'MakeUp' }} </label>
<label class="orangeTag" v-if="b.orderType == 4"> {{ language==0?'拍摄':'Shooting ' }} </label>
<span>{{ language==0?'订单编号:':'No.' }} {{ b.id }}</span>
</div>
......@@ -59,7 +60,7 @@
<p>{{language==0?'配送日期':'Delivery Date'}}{{b.extJsonObj.dcEnd }} ~ {{b.extJsonObj.dcEnd}}</p>
</div>
<div v-if="b.orderType==3">
<div v-if="b.orderType==3 ||b.orderType == 4">
<h3 class="name">{{b.name}}</h3>
<p v-if="language==0">
{{dayjs(b.deliveryTime).format('YYYY-MM-DD')+' '+b.extJsonObj.timePeriod?.split('-')[0]+'-'+dayjs(b.deliveryTime).format('YYYY-MM-DD')+' '+b.extJsonObj.timePeriod?.split('-')[1] }}
......@@ -75,7 +76,7 @@
</div>
<div v-if="b.orderType == 2">
</div>
<div v-if="b.orderType == 3">
<div v-if="b.orderType == 3||b.orderType == 4">
<p>{{ b.extJsonObj.packageName }}</p>
</div>
</el-col>
......@@ -137,6 +138,7 @@ function getList() {
b.countdown = Date.now() + a+c
}
}
console.log(list.value)
})
}
function goDetail(b) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!