Commit 73aa2f84 authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents fe5dcf0f a8cb8872
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
||(dataList.CarType!=3&&!selectedAirportObj) ||(dataList.CarType!=3&&!selectedAirportObj)
||(dataList.CarType==1&&!unCarObj)||(dataList.CarType==2&&!onCarObj) ||(dataList.CarType==1&&!unCarObj)||(dataList.CarType==2&&!onCarObj)
||(dataList.CarType==3&&(!onCarObj||!unCarObj))" ||(dataList.CarType==3&&(!onCarObj||!unCarObj))"
@click="goUrl"/> @click="goOrderHandler"/>
</div> </div>
</div> </div>
</div> </div>
...@@ -199,27 +199,15 @@ export default { ...@@ -199,27 +199,15 @@ export default {
}, },
methods: { methods: {
goUrl(){ goOrderHandler(){
let OrderDate = { let order = {
CarObj: this.selectedCarObj, CarId: this.selectedCarObj.Id,
AirportObj: { AirportId: this.selectedAirportObj?this.selectedAirportObj.Id:'',
Address: this.selectedAirportObj?this.selectedAirportObj.Address:'', startDate: this.p.startDate,
AirportId: this.selectedAirportObj?this.selectedAirportObj.AirportId:'', originalB2CPrice: this.p.originalB2CPrice,
AirportName: this.selectedAirportObj?this.selectedAirportObj.AirportName:'', orderInfo: this.chosenObj,
Id: this.selectedAirportObj?this.selectedAirportObj.Id:'',
Name: this.selectedAirportObj?this.selectedAirportObj.Name:''
},
calculationAmount: this.p,
calculationNum: this.chosenObj,
sumPrice: this.sumPrice, sumPrice: this.sumPrice,
details: { Id: this.dataList.Id,
Name: this.dataList.Name,
Description: this.dataList.Description,
videoStr: this.dataList.videoStr,
imgCover: this.dataList.imgCover,
CarType: this.dataList.CarType,
Id: this.dataList.Id,
},
onCarObj: { onCarObj: {
Address: this.onCarObj?this.onCarObj.Address:'', Address: this.onCarObj?this.onCarObj.Address:'',
Name: this.onCarObj?this.onCarObj.Name:'', Name: this.onCarObj?this.onCarObj.Name:'',
...@@ -235,20 +223,15 @@ export default { ...@@ -235,20 +223,15 @@ export default {
Range: this.unCarObj?this.unCarObj.Range:'' Range: this.unCarObj?this.unCarObj.Range:''
}, },
} }
// console.log(OrderDate,'========') let key = this.$md5(JSON.stringify(order))
// return let pickuporderCars = localStorage.getItem('pickuporderCars')
this.CommonJump( pickuporderCars = pickuporderCars?JSON.parse(pickuporderCars):[]
"/PickuporderForm", pickuporderCars.push({
{ key,
OrderDate: encodeURIComponent(JSON.stringify(OrderDate)), order
// CarObj: JSON.stringify(this.selectedCarObj), })
// AirportObj: JSON.stringify(this.selectedAirportObj), localStorage.setItem("pickuporderCars",JSON.stringify(pickuporderCars))
// calculationAmount: JSON.stringify(this.p), this.CommonJump('/PickuporderForm/'+key, {});
// calculationNum: JSON.stringify(this.chosenObj),
// sumPrice: JSON.stringify(this.sumPrice),
// details: JSON.stringify(this.dataList)
}
);
}, },
// 获取车的详情 // 获取车的详情
getCarPriceData2() { getCarPriceData2() {
......
This diff is collapsed.
<template> <template>
<div style="min-height: 80vh"> <div style="min-height: 80vh">
<div <div
style=" style="
position: fixed; position: fixed;
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
class="col product-price text-subtitle1 text-weight-bold" class="col product-price text-subtitle1 text-weight-bold"
style="text-align: left" style="text-align: left"
> >
<span v-if="dataList&&dataList.MinPrice">CNY {{ moneyFormat(dataList.MinPrice, 0) }}</span> <span v-if="dataList&&dataList.MinPrice">{{dataList.CurrencyCode}} {{ moneyFormat(dataList.MinPrice, 0) }}</span>
<span class="q-ml-sm f12 text-grey-7"></span> <span class="q-ml-sm f12 text-grey-7"></span>
</span> </span>
<q-btn <q-btn
...@@ -172,7 +173,7 @@ ...@@ -172,7 +173,7 @@
> >
<div class="product-price text-h6" v-if="dataList.MinPrice > 0"> <div class="product-price text-h6" v-if="dataList.MinPrice > 0">
<!-- CNY:{{ dataList. }} --> <!-- CNY:{{ dataList. }} -->
CNY{{ moneyFormat(dataList.MinPrice, 0) }} {{dataList.CurrencyCode}}{{ moneyFormat(dataList.MinPrice, 0) }}
<span class="f12 text-grey-6"></span> <span class="f12 text-grey-6"></span>
</div> </div>
<div v-else class="text-subtitle1 text-grey-6">暫無報價</div> <div v-else class="text-subtitle1 text-grey-6">暫無報價</div>
...@@ -326,7 +327,7 @@ ...@@ -326,7 +327,7 @@
<div class="" v-if="$q.platform.is.desktop"> <div class="" v-if="$q.platform.is.desktop">
<div class="row items-center"> <div class="row items-center">
<span class="product-price text-h6 q-mr-md" <span class="product-price text-h6 q-mr-md"
>CNY >{{dataList.CurrencyCode}}
{{ {{
moneyFormat(priceList[0].originalB2CPrice, 0) moneyFormat(priceList[0].originalB2CPrice, 0)
}}</span }}</span
...@@ -597,10 +598,12 @@ ...@@ -597,10 +598,12 @@
</div> </div>
</template> </template>
</div> </div>
<!-- <auth></auth> -->
</div> </div>
</template> </template>
<script> <script>
import auth from "src/components/common/auth.vue";
import { slider, slideritem } from "vue-concise-slider"; import { slider, slideritem } from "vue-concise-slider";
import calendar from "../components/trip/calendar.vue"; import calendar from "../components/trip/calendar.vue";
import OrderPreview from "src/components/car/orderPreview.vue"; import OrderPreview from "src/components/car/orderPreview.vue";
...@@ -729,7 +732,8 @@ export default { ...@@ -729,7 +732,8 @@ export default {
smaple, smaple,
Trip, Trip,
block, block,
componentsMap componentsMap,
auth,
}, },
watch: { watch: {
days: { days: {
......
...@@ -33,7 +33,7 @@ const routes = [{ ...@@ -33,7 +33,7 @@ const routes = [{
component: () => component: () =>
import ('pages/detailsCar.vue') import ('pages/detailsCar.vue')
}, { // 包车,接机下单 }, { // 包车,接机下单
path: '/PickuporderForm', path: '/PickuporderForm/:id',
component: () => component: () =>
import ('pages/Pickuporder/orderForm.vue') import ('pages/Pickuporder/orderForm.vue')
}, { // 酒店 }, { // 酒店
......
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