Commit 58057703 authored by huangyuanyuan's avatar huangyuanyuan

添加监听

parent 4dd273be
......@@ -389,6 +389,7 @@ export default {
this.loading=true;
this.apipost('b2b_get_GetB2BFreePageList',this.listmsg,res=>{
this.loading=false;
this.getAction(4);
if(res.data.resultCode==1){
this.datalist=res.data.data.pageData;
......
......@@ -11,6 +11,7 @@
:numPeople="numPeople"
v-if="tcid && ID"
:teamType="teamType"
:free="free"
></trade>
<div class="baidumap" id="allmap"></div>
</el-col>
......@@ -40,6 +41,7 @@ export default {
loadingDataList: false,
priceList: [],
dataList: [],
free:-1,
};
},
computed: {},
......@@ -48,6 +50,8 @@ export default {
this.tcid = decodeURIComponent(this.$route.query.tcid)
this.numPeople = JSON.parse(this.$route.query.numPeople)
this.teamType=this.$route.query.teamType;
this.free=this.$route.query.free;
},
mounted() {
this.b2b_get_GetCustomerInfo();
......
......@@ -667,6 +667,7 @@ export default {
bus.$on('order-chosen', this.orderChosen)
if(this.$route.query.local){
this.local=1;
this.getAction(6);
}
},
mounted () {
......
......@@ -203,7 +203,7 @@
</el-col>
</el-col>
</el-row>
<trade :teamType="teamType" :priceList='dataList.priceList' :trip='dataList' :numPeople="null" v-if="dataList.priceList && dataList.priceList.length>0"></trade>
<trade :free="free" :teamType="teamType" :priceList='dataList.priceList' :trip='dataList' :numPeople="null" v-if="dataList.priceList && dataList.priceList.length>0"></trade>
<div ref="nav">
<el-row>
<el-col :span="20" :offset="2">
......@@ -909,12 +909,16 @@ export default {
getData: function (msg) {
this.loadingDataList=true
this.apipost('b2b_get_GetB2BTravelInfoV1',msg,r=>{
if(r.data.resultCode==1){
let data = (r.data.data);
this.sonData = data;
this.dayList = data.dayList;
this.feature = data.feature;
this.isDirect = data.isDirect;
if(!this.$route.query.free){
this.getAction(7,data.lineId);
}
if (data.videoStr) {
let path = data.videoStr.indexOf('http') > -1 ? data.videoStr : domainManager().ViittoFileUrl + data.videoStr;
this.VideoStr = path;
......
......@@ -205,6 +205,7 @@ export default {
}
},
created(){
this.getAction(8);
this.cityId=localStorage.cityId;
this.companyId=parseInt(localStorage.site);
},
......@@ -367,6 +368,7 @@ export default {
}
let cmd='b2b_get_GetB2BTravelPageList'
this.apipost(cmd,msg,r=>{
this.teamDatas=r.data.data.pageData
this.totalCount=r.data.data.pageCount
this.isLoading=false
......
......@@ -193,7 +193,7 @@
import moment from 'moment'
import bus from '../../../plugins/event-bus'
export default {
props:['priceList','trip','numPeople',"teamType"],
props:['priceList','trip','numPeople',"teamType","free"],
data () {
let that=this
return {
......@@ -410,7 +410,7 @@ export default {
}
this.$router.push({
path: '/OrderInvoiceTwo',
query: {id: encodeURIComponent(ID), tcid: tcid, numPeople: JSON.stringify(numPeople),teamType:this.teamType}
query: {id: encodeURIComponent(ID), tcid: tcid, numPeople: JSON.stringify(numPeople),teamType:this.teamType,free:this.free}
})
return
}
......
......@@ -412,7 +412,7 @@ import bus from '../../../plugins/event-bus'
import LuckDraw from '../../mall/LuckDraw'
export default {
components: {LuckDraw},
props:['ID','tcid','numPeople',"teamType"],
props:['ID','tcid','numPeople',"teamType","free"],
data () {
let that=this
return {
......@@ -825,6 +825,12 @@ export default {
this.apipost("sellorder_post_SetOrderInfoForB2B",msg,
res => {
if(res.data.resultCode==1){
if(this.free==1){
this.getAction(5);
}
if(this.free==0){
this.getAction(9);
}
this.$router.push({ path:'/newPersonalCenter?key=8-1' })
}else{
this.Error(res.data.message)
......
......@@ -269,10 +269,15 @@ export default {
}, faildCall)
},
Vue.prototype.getAction = function(actionId,lineId){
if(actionId==1){
console.log("浏览签证产品",actionId)
}
console.log("lineId",lineId)
// if(actionId==1){
// console.log("浏览签证产品",actionId)
// }
// if(actionId==7){
// console.log("浏览跟团游",actionId)
// }
// if(actionId==9){
// console.log("浏览跟团游下单",actionId)
// }
let msg={};
msg.actionId=actionId;
if(lineId){
......
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