优化
Showing
1 changed file
with
30 additions
and
3 deletions
| ... | @@ -60,7 +60,7 @@ | ... | @@ -60,7 +60,7 @@ |
| 60 | <el-row justify="space-between"> | 60 | <el-row justify="space-between"> |
| 61 | <el-row class="hz-p" style="flex: 1"> | 61 | <el-row class="hz-p" style="flex: 1"> |
| 62 | <el-col :span="8"> | 62 | <el-col :span="8"> |
| 63 | <div >{{ language==0?'套餐说明':'Package Description' }}: <span style="margin-right: 20px">{{n.introduction}}</span></div> | 63 | <div class="esp_3">{{ language==0?'套餐说明':'Package Description' }}: <span style="margin-right: 20px">{{n.introduction}}</span></div> |
| 64 | </el-col> | 64 | </el-col> |
| 65 | 65 | ||
| 66 | <el-col :span="8"> | 66 | <el-col :span="8"> |
| ... | @@ -89,13 +89,13 @@ | ... | @@ -89,13 +89,13 @@ |
| 89 | </template> | 89 | </template> |
| 90 | 90 | ||
| 91 | <script setup> | 91 | <script setup> |
| 92 | import {ref} from "vue"; | 92 | import {ref,onMounted} from "vue"; |
| 93 | import {dayjs} from "element-plus"; | 93 | import {dayjs} from "element-plus"; |
| 94 | import {useRoute,useRouter} from 'vue-router' | 94 | import {useRoute,useRouter} from 'vue-router' |
| 95 | import * as booking from "@/apiPc/booking" | 95 | import * as booking from "@/apiPc/booking" |
| 96 | import {useStorage} from "@vueuse/core/index"; | 96 | import {useStorage} from "@vueuse/core/index"; |
| 97 | import useUserStore from "/@/store/modules/user"; | 97 | import useUserStore from "/@/store/modules/user"; |
| 98 | import {getActivityPhotoVoListByShootId} from "@/apiPc/booking"; | 98 | import {getActivityPhotoVoListByShootId, getBaseInfoByActiveId} from "@/apiPc/booking"; |
| 99 | 99 | ||
| 100 | const user = useUserStore().user | 100 | const user = useUserStore().user |
| 101 | const language = useStorage('language', 0) | 101 | const language = useStorage('language', 0) |
| ... | @@ -110,6 +110,33 @@ const query = ref({ | ... | @@ -110,6 +110,33 @@ const query = ref({ |
| 110 | lasId:route.params.id, | 110 | lasId:route.params.id, |
| 111 | }) | 111 | }) |
| 112 | const value2=ref('') | 112 | const value2=ref('') |
| 113 | const formTime=ref() | ||
| 114 | |||
| 115 | onMounted(() => { | ||
| 116 | getBaseInfoByActiveId(route.params.cptId).then(res=>{ | ||
| 117 | formTime.value = res.data || null | ||
| 118 | }).catch(err=>{ | ||
| 119 | console.log(err) | ||
| 120 | formTime.value = null | ||
| 121 | }).finally(()=>{ | ||
| 122 | // getData() | ||
| 123 | getScheduleList() | ||
| 124 | }) | ||
| 125 | }) | ||
| 126 | |||
| 127 | |||
| 128 | function getData(){ | ||
| 129 | if (!formTime.value.photoStart) return | ||
| 130 | const toDay=dayjs(dayjs().format('YYYY-MM-DD')).valueOf() | ||
| 131 | const start=dayjs(formTime.value.photoStart).valueOf() | ||
| 132 | if(toDay<start){ | ||
| 133 | currentDate1.value= query.value.currentDate = dayjs(start).format('YYYY-MM-DD') | ||
| 134 | |||
| 135 | }else{ | ||
| 136 | currentDate1.value = query.value.currentDate = dayjs(toDay).format('YYYY-MM-DD') | ||
| 137 | } | ||
| 138 | } | ||
| 139 | |||
| 113 | 140 | ||
| 114 | getScheduleList() | 141 | getScheduleList() |
| 115 | function getScheduleList() { | 142 | function getScheduleList() { | ... | ... |
-
Please register or sign in to post a comment