Commit 75a8781e authored by huangyuanyuan's avatar huangyuanyuan

update

parent 3620f990
......@@ -463,6 +463,11 @@
height: 100%;
}
/* 列表页样式 */
.LocalTourList .item-pager .el-pagination__editor, .LocalTourList .item-pager .el-pager li, .LocalTourList .el-pagination .btn-next, .LocalTourList .el-pagination .btn-prev{
width: 30px;
height: 30px;
line-height: 30px;
}
.LocalTourList .tab{
border-bottom:2px solid #4CB960;
}
......@@ -1023,7 +1028,7 @@
}
.Appointment .payMoney p>span{
display: inline-block;
width: 100px;
min-width: 100px;
margin-right:10px;
}
......@@ -1042,6 +1047,7 @@
font-size:14px;
line-height: 32px;
margin-left:15px;
cursor: pointer;
}
.Appointment .Rotate .icon-more{
......
......@@ -19,7 +19,7 @@
</p>
</div>
<div class="threeDiv">
<p><span style="color:#FDAC11;font-size:22px">{{item.b2bPrice}}</span></p>
<p><span style="color:#FDAC11;font-size:22px">{{item.b2bPrice | NoDesnum}}</span></p>
</div>
</li>
<ul class="ticketDiv">
......@@ -28,7 +28,7 @@
<span class="ticketdes">{{item.name}} {{ticket.ticketDesc}}门票></span>
<span class="peopleType">{{ticket.ticketName}}</span></span>
<span class="SecondSpan">
<span class="price">{{ticket.b2bPrice}}</span>
<span class="price">{{ticket.b2bPrice | NoDesnum}}</span>
<!-- <span style="color:#999999;font-size:12px;margin-left:7px;text-decoration: line-through">原价:¥300</span> -->
</span>
<span class="ThreeSpan">
......@@ -113,6 +113,7 @@ export default {
height:24px;
background:rgba(238,68,84,1);
color:#fff;
cursor: pointer;
}
.AdmissionTicket .ticketDiv li .SecondSpan .price{
color: #FDAC11;
......
This diff is collapsed.
......@@ -42,11 +42,12 @@
线路
</div>
<div class="tabRight spanMargin">
<span @click="SelectLineId(0)" :class="msg.lineId==0?'spanActive':''">不限</span>
<span @click="SelectLineId(item.lineId)" :class="msg.lineId==item.lineId?'spanActive':''" v-for="(item,index) in lineTeamList" :key="index">{{item.lineShortName}}</span>
</div>
</li>
<li v-if="tab==1">
<li v-if="tab==1 && lineList.length>0">
<div class="tabLeft">
系列
</div>
......@@ -186,6 +187,16 @@
<OnedayList :onelist="onelist" v-show="tab==1"></OnedayList>
<AdmissionTicket :ticketList="ticketList" v-show="tab==2"></AdmissionTicket>
</div>
<div style="text-align:right;width:950px;margin-top:15px">
<el-pagination
:page-size="msg.pageSize"
:current-page.sync="CurrentPage"
layout="total, prev, pager, next"
:total="totalCount"
@current-change="handleCurrentChange"
></el-pagination>
</div>
</div>
</div>
</template>
......@@ -202,7 +213,11 @@ export default {
maxPrice:"",
startDate:"",
endDate:"",
totalCount:0,
CurrentPage:1,
msg:{
pageIndex:1,
pageSize:5,
lineId:0,
lineTeamId:0,
startDate:"",
......@@ -259,23 +274,36 @@ export default {
this.GetLine();
if(this.$route.query.tab){
this.tab= this.$route.query.tab;
if(this.tab==1){
this.GetList();
}else{
this.GetTicketList();
}
}
},
mounted() {
this.CountryCity();
this.GetList();
this.GetTicketList();
},
methods: {
handleCurrentChange(val){
this.msg.pageIndex=val;
if(this.tab==1){
this.GetList();
}
if(this.tab==2){
this.GetTicketList();
}
},
GetTicketList(){
this.Loading=true;
this.apiJavaPost('/api/b2b/scenic/getScenicTicketList',this.msg,res=>{
this.Loading=false;
if(res.data.resultCode==1){
this.ticketList=res.data.data.pageData;
this.totalCount=res.data.data.count;
}else{
this.Error(res.data.message);
......@@ -350,7 +378,7 @@ export default {
if(this.maxPrice==""){
this.msg.maxPrice=-1;
}else{
this.msg.minPrice=this.maxPrice;
this.msg.maxPrice=this.maxPrice;
}
if(!this.msg.startDate){
this.msg.startDate="";
......@@ -358,8 +386,10 @@ export default {
if(!this.msg.endDate){
this.msg.endDate="";
}
this.Loading=true;
this.apiJavaPost('/api/b2b/dayTrip/getDayTripProductList',this.msg,res=>{
this.totalCount=res.data.data.count;
this.Loading=false;
if(res.data.resultCode==1){
......@@ -410,16 +440,26 @@ export default {
this.GetList();
},
SelectLineId(lineId){
this.msg.lineId=lineId;
this.lineTeamList.forEach(item=>{
this.msg.lineId=lineId;
if(lineId==0){
this.lineList=[];
this.msg.lineTeamId=0;
this.GetList();
}else{
this.lineTeamList.forEach(item=>{
if(lineId==item.lineId){
this.lineList=item.lineTeamList;
}
})
}
},
ChangeTab(num){
this.tab=num;
this.msg.pageIndex=1;
this.CurrentPage=1;
if(this.tab==1){
this.GetList();
}
......@@ -439,12 +479,12 @@ export default {
if(this.$route.query.ltId){
this.msg.lineTeamId= this.$route.query.ltId
}
if(this.msg.lineId==0){
this.msg.lineId=this.lineTeamList[0].lineId;
if(this.lineTeamList.length>0){
this.lineList=this.lineTeamList[0].lineTeamList;
}
}
// if(this.msg.lineId==0){
// this.msg.lineId=this.lineTeamList[0].lineId;
// if(this.lineTeamList.length>0){
// this.lineList=this.lineTeamList[0].lineTeamList;
// }
// }
}else{
this.Error(res.data.message);
......
......@@ -150,7 +150,7 @@
</div> -->
<div class="bottom">
<span>{{item.name}}</span>
<span class="font12 textHidden1">¥<a class="font14">{{item.b2bPrice | priceFormat}}</a>起/人</span>
<span class="font12 textHidden1">¥<a class="font14">{{item.b2bPrice | NoDesnum}}</a>起/人</span>
</div>
</li>
</ul>
......
<template>
<div class="OnedayList">
<ul class="oneList">
<li v-for="(item,index) in dataList" :key="index+200">
<li @click="goOneDayDetail(item)" v-for="(item,index) in dataList" :key="index+200">
<div>
<img style="width:199px;height:148px;" :src="item.imgCover[0].url" alt="">
</div>
<div class="secondDiv">
<p style="font-size:16px;color:#2A5532">{{item.title}}</p>
<p class="taglist" style="margin-top:18px;">
<span>明日可订</span>
<span>明日可订</span>
<!-- <span>明日可订</span>
<span>明日可订</span> -->
</p>
<p style="margin-top:14px;" class="font12">
<i class="iconfont icon-bb-chufadi"></i>
......@@ -23,7 +23,7 @@
</p>
</div>
<div class="threeDiv">
<p><span style="color:#FDAC11;font-size:22px">{{item.b2BPrice}}</span></p>
<p><span style="color:#FDAC11;font-size:22px">{{item.b2BPrice | NoDesnum}}</span></p>
<p style="margin-top:80px"><span class="ckxq" @click="GetDes(item)">查看详情</span></p>
</div>
</li>
......@@ -35,7 +35,7 @@
</ul>
<ul class="hottour_ul">
<p class="pfR font14" style="margin-bottom:8px">历史浏览</p>
<li v-for="(item,index) in Historylist" :key="index+2000">
<li @click="goOneDayDetail(item)" v-for="(item,index) in Historylist" :key="index+2000">
<img :src="item.imgCover[0].url" alt="">
<div class="hotcontent">
<span class="textHidden font12">{{item.title}}</span>
......@@ -63,6 +63,11 @@ export default {
this.Historylist=arr;
},
methods: {
goOneDayDetail(item){
let path = 'OneDayDetailTwo';
path=`${path}/${encodeURIComponent(item.idDes)}/${item.tcid}`;
this.$router.push({ path })
},
GetDes(item){
if(this.Historylist.length>4 || this.Historylist.length==4){
this.Historylist.pop();
......@@ -120,6 +125,7 @@ export default {
.OnedayList .hottour_ul li{
position: relative;
margin-bottom:14px;
cursor: pointer;
}
.OnedayList .hottour_ul{
width: 228px;
......
......@@ -28,7 +28,7 @@
<p class="pfR" style="color:#2A5532;font-size:20px;">{{dataDes.name}}</p>
<!-- <p style="margin-top:20px" class="ticketSpan">票类包括:<span>大小同价</span><span>大小价</span></p> -->
<div class="price">
{{dataDes.minPrice | priceFormat}}~¥{{dataDes.maxPrice | priceFormat}}
{{dataDes.minPrice | NoDesnum}}~¥{{dataDes.maxPrice | NoDesnum}}
</div>
<p>
<span style="color:#666666">景点地址:</span>
......@@ -76,7 +76,7 @@
<!-- <span class="colorG">可订今日</span>
<span class="colorG">可订今日</span> -->
</el-col>
<el-col class="pfR" :span="3" style="color:#FDAC11"><span class="font22">{{item.b2bPrice | priceFormat}}</span></el-col>
<el-col class="pfR" :span="3" style="color:#FDAC11"><span class="font22">{{item.b2bPrice | NoDesnum}}</span></el-col>
<el-col :span="2">
<span @click="YdUrl(dataDes,item)" class="ydBtn">预定</span>
</el-col>
......
......@@ -163,7 +163,7 @@ export default {
// dayDict.price = price.price;
dayDict.date_str=price.dateStr;
dayDict.couponsId=price.couponsId;
dayDict.id=price.id;
dayDict.priceId=price.priceId;
dayDict.ticketId=price.ticketId;
if(dayIndex<strDate&&strMonth==currentMonth){
dayDict.price='';
......
......@@ -112,6 +112,22 @@ Vue.filter('priceFormat', function (value) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
})
// 不要小数点
Vue.filter('NoDesnum', function (value) {
if (value == null) {
return 0.00;
}
let nStr = value.toFixed(0)
nStr += '';
let x = nStr.split('.');
let x1 = x[0];
let x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
})
// 时间格式YYYY-MM-DD
Vue.filter("YMD", function (date) {
......
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