Commit 81d22662 authored by youjie's avatar youjie

no message

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