3282934d by zhangmeng

优化

1 parent a265e32a
......@@ -60,7 +60,7 @@
<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>
<div class="esp_3">{{ language==0?'套餐说明':'Package Description' }}: <span style="margin-right: 20px">{{n.introduction}}</span></div>
</el-col>
<el-col :span="8">
......@@ -89,13 +89,13 @@
</template>
<script setup>
import {ref} from "vue";
import {ref,onMounted} 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";
import {getActivityPhotoVoListByShootId, getBaseInfoByActiveId} from "@/apiPc/booking";
const user = useUserStore().user
const language = useStorage('language', 0)
......@@ -110,6 +110,33 @@ const query = ref({
lasId:route.params.id,
})
const value2=ref('')
const formTime=ref()
onMounted(() => {
getBaseInfoByActiveId(route.params.cptId).then(res=>{
formTime.value = res.data || null
}).catch(err=>{
console.log(err)
formTime.value = null
}).finally(()=>{
// getData()
getScheduleList()
})
})
function getData(){
if (!formTime.value.photoStart) return
const toDay=dayjs(dayjs().format('YYYY-MM-DD')).valueOf()
const start=dayjs(formTime.value.photoStart).valueOf()
if(toDay<start){
currentDate1.value= query.value.currentDate = dayjs(start).format('YYYY-MM-DD')
}else{
currentDate1.value = query.value.currentDate = dayjs(toDay).format('YYYY-MM-DD')
}
}
getScheduleList()
function getScheduleList() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!