Commit 645fe747 authored by youjie's avatar youjie

no message

parent 51ed05c5
......@@ -108,12 +108,14 @@ export default {
price: {
handler(n, o) {
this.p = n;
console.log(n,'-----')
this.chosenObj.startDate = n.startDate;
if(n&&n.startDate){
this.chosenObj.startDate = n.startDate;
}
this.calcMoney()
},
deep: true,
immediate: true
immediate: false
},
CarTypeList: {
handler(n, o) {
......@@ -165,7 +167,9 @@ export default {
x.Count = 1
x.isSupportChildren = 1
x.safeMoney = 0
this.p.originalB2CPrice = x.Price
if(this.chosenObj.startDate==x.startDate){
this.p.originalB2CPrice = x.Price
}
})
this.$emit('getPriceList',JSON.stringify(r.data.data),this.selectedCar)
}
......
......@@ -544,6 +544,7 @@ import OrderPreview from "src/components/car/orderPreview.vue";
import smaple from "src/components/trip/smaple.vue";
import Trip from "src/components/trip/trip.vue";
import block from "src/components/trip/block/index";
import { date } from "quasar";
import * as dayjs from "dayjs";
export default {
props: [],
......@@ -626,6 +627,18 @@ export default {
isActive: false,
display: "購買須知",
},
{
id: "#boardingAddress",
top: 0,
isActive: false,
display: "上车地址",
},
{
id: "#dropoffaddress",
top: 0,
isActive: false,
display: "下车地址",
},
{
id: "#tips",
top: 0,
......@@ -678,6 +691,13 @@ export default {
}
},
mounted() {
const timeStamp = Date.now()
const formattedString = date.formatDate(timeStamp, 'YYYY-MM-DD')
this.currentYM = {
year: date.formatDate(timeStamp, 'YYYY'),
month: date.formatDate(timeStamp, 'MM'),
str: formattedString
}
if (localStorage.baseifo) {
this.TripConfig = JSON.parse(window.localStorage.getItem("baseifo"));
}
......
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