Commit 464c38df authored by huangyuanyuan's avatar huangyuanyuan

优惠

parent ae18ea32
...@@ -262,6 +262,31 @@ ...@@ -262,6 +262,31 @@
cursor: pointer; cursor: pointer;
box-shadow:0px 1px 4px 0px rgba(94,94,94,0.61); box-shadow:0px 1px 4px 0px rgba(94,94,94,0.61);
} }
.AdmissionTicket .hottour_ul li{
position: relative;
height: 76px;
margin-top:10px;
}
.AdmissionTicket .hottour_ul li img{
position: absolute;
width: 60px;
height: 60px;
top: 8px;
left: 10px;
}
.AdmissionTicket .hottour_ul li .hotcontent{
padding-left: 79px;
box-sizing: border-box;
padding-top:12px;
}
.AdmissionTicket .hottour_ul li:hover{
cursor: pointer;
box-shadow:0px 1px 4px 0px rgba(94,94,94,0.61);
}
.Localtourhome .ticketContent>div{ .Localtourhome .ticketContent>div{
float: left; float: left;
} }
......
...@@ -48,13 +48,13 @@ ...@@ -48,13 +48,13 @@
</ul> </ul>
<ul class="hottour_ul"> <ul class="hottour_ul">
<p class="pfR font14" style="margin-bottom:8px">热门景点</p> <p class="pfR font14" style="margin-bottom:8px">热门景点</p>
<div class="hotsecn"> <li @click="GoUrl(item)" v-for="(item,index) in hotList" :key="index+2000">
<span>日本-急乐园 </span> <img :src="item.coverImgs[0]" alt="">
<span>日本-急乐园 </span> <div class="hotcontent">
<span>日本-豪斯登堡主题乐园</span> <span class="textHidden font12">{{item.name}}</span>
<span>韩国-首尔乱打秀</span> <p class="font12" style="color:#FDAC11;text-align:right;padding-top:4px;padding-right:6px"><span class="pfR font14">{{item.b2bPrice | NoDesnum}}</span></p>
<span>日本-豪斯登堡主题乐园</span>
</div> </div>
</li>
</ul> </ul>
</div> </div>
...@@ -62,10 +62,11 @@ ...@@ -62,10 +62,11 @@
</template> </template>
<script> <script>
export default { export default {
props:["ticketList"], props:["ticketList","hotList"],
data () { data () {
return { return {
dataList:[], dataList:[],
hotdataList:[],
} }
}, },
mounted() { mounted() {
...@@ -73,6 +74,7 @@ export default { ...@@ -73,6 +74,7 @@ export default {
}, },
methods: { methods: {
YdUrl(item,ticket){ YdUrl(item,ticket){
sessionStorage.dataDes=JSON.stringify(item); sessionStorage.dataDes=JSON.stringify(item);
sessionStorage.Ticketinfo=JSON.stringify(ticket); sessionStorage.Ticketinfo=JSON.stringify(ticket);
...@@ -91,7 +93,14 @@ export default { ...@@ -91,7 +93,14 @@ export default {
} }
},
hotList:{
handler:function(val,oldvalue){
this.hotdataList=val;
} }
},
} }
} }
</script> </script>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</el-form-item> </el-form-item>
<el-form-item label="购买数量"> <el-form-item label="购买数量">
<el-input-number size="small" v-model="form.purchaseQuantity" :min="1" :max="10" @change="PurchaseQuantity"></el-input-number> <el-input-number size="small" v-model="form.purchaseQuantity" :min="1" @change="PurchaseQuantity"></el-input-number>
</el-form-item> </el-form-item>
<div class="fg"></div> <div class="fg"></div>
<div style="padding:0 20px"> <div style="padding:0 20px">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div style="text-align:right"> <div style="text-align:right">
<div class="payMoney basefix"> <div class="payMoney basefix">
<p style="font-size:12px;margin-top:20px">小计:<span>{{price}}</span></p> <p style="font-size:12px;margin-top:20px">小计:<span>{{price}}</span></p>
<p style="margin:7px 0">优惠:<span class="pfR">-{{form.discountMoney}}</span></p> <p style="margin:7px 0">优惠:<span class="pfR">{{form.discountMoney}}</span></p>
<p class="pfR">实付款:<span style="color:#AAAAAA;font-size:24px"><span style="color:#E95252;font-size:24px">{{SettlementPrice}}</span></span></p> <p class="pfR">实付款:<span style="color:#AAAAAA;font-size:24px"><span style="color:#E95252;font-size:24px">{{SettlementPrice}}</span></span></p>
</div> </div>
</div> </div>
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
this.dataDes=JSON.parse(sessionStorage.dataDes); this.dataDes=JSON.parse(sessionStorage.dataDes);
this.Ticketinfo=JSON.parse(sessionStorage.Ticketinfo); this.Ticketinfo=JSON.parse(sessionStorage.Ticketinfo);
this.price=(this.Ticketinfo.b2bPrice*this.form.purchaseQuantity).toFixed(2); this.price=(this.Ticketinfo.b2bPrice*this.form.purchaseQuantity).toFixed(2);
this.SettlementPrice=this.price; this.SettlementPrice=this.price-this.form.discountMoney;
}, },
mounted() { mounted() {
...@@ -193,7 +193,10 @@ export default { ...@@ -193,7 +193,10 @@ export default {
methods: { methods: {
PurchaseQuantity(val){ PurchaseQuantity(val){
this.form.discountMoney=0;
this.price=(this.Ticketinfo.b2bPrice*val).toFixed(2); this.price=(this.Ticketinfo.b2bPrice*val).toFixed(2);
this.SettlementPrice= this.price;
}, },
clickCoupon: function (item) { clickCoupon: function (item) {
...@@ -310,7 +313,6 @@ export default { ...@@ -310,7 +313,6 @@ export default {
}); });
}, },
SelectChild(item) { SelectChild(item) {
console.log(item);
this.form.useDate=item.date_str; this.form.useDate=item.date_str;
this.form.couponsId=item.couponsId; this.form.couponsId=item.couponsId;
this.form.ticketId=item.ticketId; this.form.ticketId=item.ticketId;
......
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
<!-- 数据 --> <!-- 数据 -->
<div style="margin-top:14px" v-loading="Loading"> <div style="margin-top:14px" v-loading="Loading">
<OnedayList :onelist="onelist" v-show="tab==1"></OnedayList> <OnedayList :onelist="onelist" v-show="tab==1"></OnedayList>
<AdmissionTicket :ticketList="ticketList" v-show="tab==2"></AdmissionTicket> <AdmissionTicket :ticketList="ticketList" :hotList="hotList" v-show="tab==2"></AdmissionTicket>
</div> </div>
<div style="text-align:right;width:950px;margin-top:15px"> <div style="text-align:right;width:950px;margin-top:15px">
<el-pagination <el-pagination
...@@ -264,6 +264,7 @@ export default { ...@@ -264,6 +264,7 @@ export default {
cityList:[], cityList:[],
cityshow:false, cityshow:false,
ticketList:[], ticketList:[],
hotList:[],
} }
}, },
components:{ components:{
...@@ -285,9 +286,26 @@ export default { ...@@ -285,9 +286,26 @@ export default {
}, },
mounted() { mounted() {
this.CountryCity(); this.CountryCity();
this.GetHotScen();
}, },
methods: { methods: {
GetHotScen(){
let msg={
pageIndex:0,
pageSize:5,
countryId:0,
};
msg.countryId=this.msg.countryId;
this.apiJavaPost("/api/b2b/scenic/getHotTickeCouponstList",msg,
res => {
if(res.data.resultCode==1){
this.hotList=res.data.data.pageData;
}
},
null
);
},
handleCurrentChange(val){ handleCurrentChange(val){
this.msg.pageIndex=val; this.msg.pageIndex=val;
if(this.tab==1){ if(this.tab==1){
...@@ -316,6 +334,7 @@ export default { ...@@ -316,6 +334,7 @@ export default {
}, },
SelectCountry(countryId){ SelectCountry(countryId){
this.msg.countryId=countryId; this.msg.countryId=countryId;
this.GetHotScen();
if(countryId==0){ if(countryId==0){
this.cityList=[]; this.cityList=[];
this.msg.cityId=0; this.msg.cityId=0;
......
...@@ -59,6 +59,9 @@ ...@@ -59,6 +59,9 @@
font-size: 12px; font-size: 12px;
padding-right: 5px; padding-right: 5px;
box-sizing: border-box; box-sizing: border-box;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
} }
.LocalTourCalendar .monthDayList{ .LocalTourCalendar .monthDayList{
/* overflow: auto; */ /* overflow: auto; */
......
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