Commit 81d22662 authored by youjie's avatar youjie

no message

parent 823d72a2
......@@ -165,7 +165,10 @@
chosenAddress: [],
goodsType: [],
dateRange: null,
msg: null,
msg: {
pageIndex:1,
pageSize:10,
},
qMsg: null,
dataList: [],
sortNum: 1,
......@@ -192,14 +195,6 @@
const search = inject(DirtionmaryHelper.TICKET_QUERY_PARAM) as any
data.chosenAddress = JSON.parse(JSON.stringify(search.chosenAddress))
data.qMsg = JSON.parse(JSON.stringify(search.msg))
data.msg = JSON.parse(JSON.stringify(search.msg))
data.msg.teamType = [];
data.msg.priceRange = {
min: 1,
max: 100000,
};
data.msg.minPrice = 0;
data.msg.maxPrice = 100000;
data.dateRange = { from: data.msg.startDate, to: data.msg.endDate };
watch(data.msg, (n, o) => {
......@@ -213,12 +208,13 @@
// methods.goSearchHandler();
},{deep:true})
const methods = {
// 删除目的地
removeChosen(x,i) {
console.log(x,'00000')
search.deleteChosen = JSON.parse(JSON.stringify(x))
data.chosenAddress.splice(i,1)
search.chosenAddress = JSON.parse(JSON.stringify(data.chosenAddress))
},
// 排序方式
chosenSortHandler(x) {
data.sortNum = x.value;
data.msg.orderByDate = data.sortNum == 4 ? 1 : data.sortNum == 5 ? 2 : 0;
......@@ -253,7 +249,7 @@
data.msg.priceOrderByField = 2;
}
}
let param = Object.assign(data.msg)
let param = Object.assign(data.msg,search.msg)
scheduledTripService.GetB2BTravelPageList(param).then(r => {
$q.loading.hide();
if (r.data.resultCode == ApiResult.SUCCESS) {
......@@ -291,13 +287,6 @@
})
},
}
const searchCnt = computed(() => {
let setCnt = 0
if ($q.platform.is.mobile) {
if (data.msg.min) setCnt++
}
return setCnt
})
methods.goSearchHandler();
return {
......
This diff is collapsed.
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