Commit 58057703 authored by huangyuanyuan's avatar huangyuanyuan

添加监听

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