Commit 5d08b826 authored by 沈良进's avatar 沈良进

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

parents 4fa176db dfc01203
...@@ -12,13 +12,13 @@ const product = { ...@@ -12,13 +12,13 @@ const product = {
// 接送机,包车 // 接送机,包车
url = "/detailCar/" + configId url = "/detailCar/" + configId
} else if (t === 3) { } else if (t === 3) {
url = "/detailHotal/" + configId url = "/detailHotal/" + configId + '/' + productInfo.b2CPrice
} else if (t === 2) { } else if (t === 2) {
url = "/detailsScenicSpotTicket/" + configId url = "/detailsScenicSpotTicket/" + configId
} else if (t === 1) { } else if (t === 1) {
url = "/detail/" + encodeURIComponent(productInfo.id ? productInfo.id : productInfo.ID) + "/" + 0 + "/" + configId url = "/detail/" + encodeURIComponent(productInfo.id ? productInfo.id : productInfo.ID) + "/" + 0 + "/" + configId
} else if (t === 5) { } else if (t === 5) {
url = "/detailHotal/" + configId+'/'+productInfo.b2CPrice url = "/detailHotal/" + configId + '/' + productInfo.b2CPrice
} }
} else { } else {
throw new Error("參數不合法"); throw new Error("參數不合法");
......
...@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() { ...@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() {
domainUrl = "http://testapi.oytour.com"; domainUrl = "http://testapi.oytour.com";
} else if (domainNameUrl.indexOf('oytour') !== -1) { } else if (domainNameUrl.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com"; domainUrl = "http://reborn.oytour.com";
domainUrl = 'http://192.168.10.206:8015' //'http://192.168.10.206:8015' ''http://192.168.10.11:8083' ' //domainUrl = 'http://192.168.10.206:8015' //'http://192.168.10.206:8015' ''http://192.168.10.11:8083' '
} }
var obj = { var obj = {
//主地址 //主地址
...@@ -41,7 +41,7 @@ Vue.prototype.domainManager = function() { ...@@ -41,7 +41,7 @@ Vue.prototype.domainManager = function() {
//获取当前域名 //获取当前域名
Vue.prototype.GetDomain = function() { Vue.prototype.GetDomain = function() {
var domainNameUrl = window.location.hostname; var domainNameUrl = window.location.hostname;
domainNameUrl = "t.oytour.com"; domainNameUrl = "www.oytour.com";
return domainNameUrl; return domainNameUrl;
} }
Vue.prototype.groupBy = function(array, f) { Vue.prototype.groupBy = function(array, f) {
......
<template> <template>
<section class="photo1 section-block"> <section class="photo1 section-block">
<div class="photo" v-if="plugData.ImageUrl"> <div class="photo mobile-only rounded-borders" v-if="plugData.ImageUrl" style="overflow:hidden;margin-bottom: 0px;">
<img :src="plugData.ImageUrl" :alt="plugData.Title" /> <img :src="plugData.ImageUrl" :alt="plugData.Title" style="height:20vh;width:auto;" />
</div>
<div class="photo desktop-only" v-if="plugData.ImageUrl">
<img :src="plugData.ImageUrl" :alt="plugData.Title"/>
</div> </div>
</section> </section>
</template> </template>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
:key="index" :key="index"
class="relative-position" class="relative-position"
style=" min-width: 200px;" style=" min-width: 200px;"
:class="{ 'col': current != index && $q.platform.is.desktop, 'col-4': current == index&& $q.platform.is.desktop }" :class="{ 'col': ((current != index && $q.platform.is.desktop) || realCount!=5), 'col-4': current == index && $q.platform.is.desktop && realCount==5 }"
@mouseenter="hoverHandler(index)" @mouseenter="hoverHandler(index)"
> >
<q-img <q-img
...@@ -55,10 +55,10 @@ ...@@ -55,10 +55,10 @@
{{ {{
item.TripTitle.split('|')[0]}} item.TripTitle.split('|')[0]}}
</a> </a>
<div class="q-mt-sm row items-center no-wrap overflow-hidden" v-if="current==index && plugData.Title.indexOf('|tag')!=-1"> <div class="q-mt-sm row items-center no-wrap overflow-hidden" v-if="current==index && plugData.Title.indexOf('|tag')!=-1 && realCount==5">
<q-chip outline color="grey-2" class="f12 cursor-pointer" text-color="grey-2" >觀光行程</q-chip> <q-chip outline color="grey-2" class="f12 cursor-pointer" text-color="grey-2" clickable @click="goProductListHandler(0,item.TripTitle.split('|')[1])">觀光行程</q-chip>
<q-chip outline color="grey-2" class="f12 cursor-pointer" text-color="grey-2" >熱門票券</q-chip> <q-chip outline color="grey-2" class="f12 cursor-pointer" text-color="grey-2" clickable @click="goProductListHandler(1,item.TripTitle.split('|')[1])">熱門票券</q-chip>
<q-chip style="background:rgba(255,255,255,.3)" class="f12 cursor-pointer" text-color="grey-2" >更多在地體驗</q-chip> <q-chip style="background:rgba(255,255,255,.3)" clickable class="f12 cursor-pointer" text-color="grey-2" @click="CommonJump(`/city/${item.TripTitle.split('|')[1]}`,{},'blank')">更多在地體驗</q-chip>
</div> </div>
</div> </div>
</div> </div>
...@@ -70,14 +70,20 @@ ...@@ -70,14 +70,20 @@
</template> </template>
<script> <script>
import {date} from 'quasar'
//圖片 - 6x1 //圖片 - 6x1
export default { export default {
props: ["plugData"], props: ["plugData"],
data() { data() {
return { return {
current: 0, current: 0,
realCount: 0
}; };
}, },
created() {
//console.log(this.plugData.Details,this.plugData.Details.filter(x=> x.ImageUrl!=''))
this.realCount = this.plugData.Details.filter(x=> x.ImageUrl!='').length
},
methods: { methods: {
hoverHandler(i) { hoverHandler(i) {
this.current = i; this.current = i;
...@@ -89,6 +95,15 @@ export default { ...@@ -89,6 +95,15 @@ export default {
arr=strs[1].split(',') arr=strs[1].split(',')
} }
return arr return arr
},
goProductListHandler(t,id){
let CategoryName=t==0?'观光行程':'景点门票'
this.CommonJump('/search',{
areaId:id,
qsearchDate:date.formatDate(new Date(),'YYYY-MM-DD'),
qsearchEndDate:date.formatDate(date.addToDate(new Date(),{month:2}),'YYYY-MM-DD'),
CategoryName
})
} }
}, },
}; };
......
...@@ -2,24 +2,31 @@ ...@@ -2,24 +2,31 @@
<!--圖片 - 4x4--> <!--圖片 - 4x4-->
<div class="q-mt-md"> <div class="q-mt-md">
<section class="pr1 section-block"> <section class="pr1 section-block">
<div class="mobile-only">
<h2 class="block-title">{{plugData.Title}}</h2>
<p class="title-teaser">{{plugData.SubTitle}}</p>
</div>
<div class="pr-banner-block"> <div class="pr-banner-block">
<ul class="pr-banner-list"> <ul class="pr-banner-list">
<li v-for="(item,index) in plugData.Details" :key="index"> <li v-for="(item,index) in plugData.Details" :key="index" class="relative-position">
<a @click="OpenNewUrl(item.LinkUrl)" :title="item.TripTitle" <a @click="OpenNewUrl(item.LinkUrl+'/0')" class="rounded-borders" :title="item.TripTitle"
:style="{backgroundImage:`url('${(item.TripImageUrl&&item.TripImageUrl!=''?item.TripImageUrl:item.ImageUrl)}')`}"></a> :style="{backgroundImage:`url('${(item.TripImageUrl&&item.TripImageUrl!=''?item.TripImageUrl:item.ImageUrl)}')`}"></a>
<div class="absolute absolute-bottom-left absolute-bottom-right rounded-borders q-pa-md text-shadow text-subtitle2 text-white" style=" background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5))">
{{ item.TripTitle }}
</div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="pr-text-block"> <div class="pr-text-block light-shadow rounded-borders desktop-only">
<h2 class="block-title">{{plugData.Title}}</h2> <h2 class="block-title">{{plugData.Title}}</h2>
<p class="title-teaser">{{plugData.SubTitle}}</p> <p class="title-teaser">{{plugData.SubTitle}}</p>
<ul class="pr-text-list"> <ul class="pr-text-list">
<li v-for="(item,index) in plugData.Details" :key="index"> <li v-for="(item,index) in plugData.Details" :key="index">
<a @click="OpenNewUrl(item.LinkUrl)"> <a @click="OpenNewUrl(item.LinkUrl+'/0')">
<h3 class="pd-title">{{item.TripTitle}}</h3> <h3 class="text-subtitle2">{{item.TripTitle}}</h3>
<div class="price"> <div class="price text-dark">
<small class="unit">NT$</small>{{item.Price}} <small class="text-subtitle2 q-mr-sm">CNY</small>
<small class="unit">元起</small> <span class="text-subtitle2 text-weight-bolder text-dark">{{ moneyFormat(item.Price,2) }}</span>
</div> </div>
</a> </a>
</li> </li>
...@@ -162,7 +169,6 @@ ...@@ -162,7 +169,6 @@
color: #00afff; color: #00afff;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
font-family: "oswald";
} }
.pr1 .pr-text-block .pr-text-list .price .unit { .pr1 .pr-text-block .pr-text-list .price .unit {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!--圖片 - 4x1--> <!--圖片 - 4x1-->
<div :class="{'q-mt-md':plugData.Title.split('|')[0]=='','q-mt-xl':plugData.Title.split('|')[0]!=''}"> <div :class="{'q-mt-md':plugData.Title.split('|')[0]=='','q-mt-xl':plugData.Title.split('|')[0]!=''}">
<section class="tour1 section-block" v-if="plugData"> <section class="tour1 section-block" v-if="plugData">
<h2 class="block-title">{{ plugData.Title.split("|")[0] }}</h2> <h2 class="block-title" style="line-height: normal !important;">{{ plugData.Title.split("|")[0] }}</h2>
<p class="title-teaser">{{ plugData.SubTitle }}</p> <p class="title-teaser">{{ plugData.SubTitle }}</p>
<ul class="pd-list" v-if="showType == 1"> <ul class="pd-list" v-if="showType == 1">
<li <li
...@@ -40,27 +40,17 @@ ...@@ -40,27 +40,17 @@
</a> </a>
</li> </li>
</ul> </ul>
<div class="row q-col-gutter-md" style="item" v-else-if="showType == 2"> <div class="q-col-gutter-md q-mt-md" :class="{'row':$q.platform.is.desktop,'':$q.platform.is.mobile}" v-else-if="showType == 2">
<template v-for="(item, index) in plugData.Details"> <template v-for="(item, index) in plugData.Details">
<div <div
class="col-3 relative-position column" class="relative-position "
:key="index" :key="index"
:class="{'col-3 column':$q.platform.is.desktop}"
v-if="item.TripImageUrl" v-if="item.TripImageUrl"
> >
<div <div
class="absolute-top-left q-pa-sm" class="absolute-top-left q-pa-sm"
style=" style="background: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0));top: 16px;left: 16px;right: 0;border-radius: 12px;z-index: 1;"
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0)
);
top: 16px;
left: 16px;
right: 0;
border-radius: 12px;
z-index: 1;
"
> >
<div <div
class="text-grey-4" class="text-grey-4"
......
...@@ -133,11 +133,11 @@ ...@@ -133,11 +133,11 @@
font-weight: 400; font-weight: 400;
} }
.category-l2:hover { .category-l2:hover {
background: #ee4454; background: var(--q-color-primary);
color: #fff; color: #fff;
} }
.category-l2-select { .category-l2-select {
background: #ee4454; background: var(--q-color-primary);
color: #fff; color: #fff;
} }
.category-l3 { .category-l3 {
...@@ -479,9 +479,7 @@ export default { ...@@ -479,9 +479,7 @@ export default {
} }
}, },
handleSelectArea(item) { handleSelectArea(item) {
this.CommonJump("/city/" + item.Id, { this.CommonJump("/city/" + item.Id);
id: item.Id,
});
}, },
handleCategoryChage(item) { handleCategoryChage(item) {
this.CommonJump("/search", { this.CommonJump("/search", {
......
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.scroll{
overflow: inherit;
}
.banner { .banner {
width: 100%; width: 100%;
} }
...@@ -70,7 +73,7 @@ ...@@ -70,7 +73,7 @@
.circle { .circle {
width: 32px; width: 32px;
height: 32px; height: 32px;
background: $primary; background: var(--q-color-primary);
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
color: #fff; color: #fff;
...@@ -227,7 +230,7 @@ margin-right: 70px; ...@@ -227,7 +230,7 @@ margin-right: 70px;
control-type="regular" control-type="regular"
padding padding
arrows arrows
height="100px" height="115px"
flat flat
class="bg-transparent rounded-borders q-mt-md" class="bg-transparent rounded-borders q-mt-md"
> >
......
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
></travelList> ></travelList>
</div> </div>
</template> </template>
<end-page v-if="isPic"></end-page> <end-page v-if="isPic" class="desktop-only"></end-page>
</q-page> </q-page>
</template> </template>
......
<style lang="scss" scoped> <style lang="scss" scoped>
.select-day { .select-day {
background: $primary; background: var(--q-color-primary);
color: #fff !important; color: #fff !important;
border-radius: 8px; border-radius: 8px;
} }
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
width: 20px; width: 20px;
height: 4px; height: 4px;
border-radius: 2px; border-radius: 2px;
background-color: $primary; background-color: var(--q-color-primary);
margin: -8px auto 0 auto; margin: -8px auto 0 auto;
} }
.img { .img {
...@@ -158,8 +158,12 @@ ...@@ -158,8 +158,12 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="!couponList.length "> <div v-if="!couponList.length " class="text-center q-my-xl">
<none-data></none-data> <none-data
iconType="order"
title="沒有找到您的優惠券信息哦"
subtitle=""
></none-data>
</div> </div>
</div> </div>
<div v-show="pageCount" class="mt flex justify-end"> <div v-show="pageCount" class="mt flex justify-end">
...@@ -176,7 +180,7 @@ ...@@ -176,7 +180,7 @@
</div> </div>
</template> </template>
<script> <script>
import noneData from '../../components/noneData.vue' import noneData from 'src/components/common/noneData.vue'
export default { export default {
components: { components: {
noneData noneData
......
...@@ -68,7 +68,7 @@ margin: 10px 13px 0 13px; ...@@ -68,7 +68,7 @@ margin: 10px 13px 0 13px;
line-height: 14px; line-height: 14px;
border-radius: 50%; border-radius: 50%;
color: #fff; color: #fff;
background-color: $primary; background-color: var(--q-color-primary);
} }
</style> </style>
<template> <template>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<div class=""> <div class="">
<div class="f12 text-grey-6">訂單編號:#{{detail.OrderNo}}</div> <div class="f12 text-grey-6">訂單編號:#{{detail.OrderNo}}</div>
<div class="f12 text-grey-6 q-mt-md">下單日期:{{detail.CreateTime}}</div> <div class="f12 text-grey-6 q-mt-md">下單日期:{{detail.SelectStartTime}}</div>
</div> </div>
</div> </div>
<q-separator color="grey-2" class="q-my-md" /> <q-separator color="grey-2" class="q-my-md" />
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
</template> </template>
<script> <script>
import noneData from 'src/components/common/noneData.vue'
import componentsMap from "../../../components/car/Map.vue"; import componentsMap from "../../../components/car/Map.vue";
import carPriceDetail from './carPriceDetail.vue' import carPriceDetail from './carPriceDetail.vue'
import groupPriceDetail from './groupPriceDetail.vue' import groupPriceDetail from './groupPriceDetail.vue'
...@@ -130,7 +131,7 @@ import groupMap from './groupMap.vue' ...@@ -130,7 +131,7 @@ import groupMap from './groupMap.vue'
import hotelMap from './hotelMap.vue' import hotelMap from './hotelMap.vue'
import ticketMap from './ticketMap.vue' import ticketMap from './ticketMap.vue'
export default { export default {
components: {componentsMap, carPriceDetail,groupPriceDetail,hotelPriceDetail,ticketPriceDetail,carMap,groupMap,hotelMap,ticketMap}, components: {noneData,componentsMap, carPriceDetail,groupPriceDetail,hotelPriceDetail,ticketPriceDetail,carMap,groupMap,hotelMap,ticketMap},
// GoodsType: this.productType,//商品类型(见枚举) 12包车 13 接机 14送机 // GoodsType: this.productType,//商品类型(见枚举) 12包车 13 接机 14送机
data() { data() {
return { return {
......
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
</div></div> </div></div>
</template> </template>
<script> <script>
import componentsMap from "src/components/car/Map.vue";
export default { export default {
components: {componentsMap},
props: { props: {
orderInfo: { orderInfo: {
type: Object, type: Object,
...@@ -89,28 +91,6 @@ export default { ...@@ -89,28 +91,6 @@ export default {
}, 1000); }, 1000);
}); });
} }
this.$nextTick(() => {
this.getCarPriceData()
setTimeout(() => {
this.navs.forEach((x) => {
x.top =
this.$refs[x.val].getBoundingClientRect().top + this.currentHeight - 60;
});
this.priceListHeight =
this.$refs.pricelist.getBoundingClientRect().top +
this.currentHeight -
60;
}, 1000);
try {
document
.querySelector("#scrollId .q-page-container")
.addEventListener("scroll", this.handleScrollDay);
} catch (error) {
// console.log(document.querySelector('#scrollId .q-page-container'))
// console.log('异常信息', error)
}
});
} else { } else {
this.$q.notify({ this.$q.notify({
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
width: 20px; width: 20px;
height: 4px; height: 4px;
border-radius: 2px; border-radius: 2px;
background-color: $primary; background-color: var(--q-color-primary);
margin: -8px auto 0 auto; margin: -8px auto 0 auto;
} }
.card-info { .card-info {
......
...@@ -7,14 +7,14 @@ const ProductTypeEnum = Object.freeze({ ...@@ -7,14 +7,14 @@ const ProductTypeEnum = Object.freeze({
*/ */
ONE_DAY: { ONE_DAY: {
value: 1, value: 1,
desc: '一日游产品' desc: '當地遊产品'
}, },
/** /**
* 多日游 * 多日游
*/ */
TEAM_TRIP: { TEAM_TRIP: {
value: 2, value: 2,
desc: '多日游产品' desc: '出境遊产品'
}, },
/** /**
* 小包团 * 小包团
......
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