1

parent e30b0992
...@@ -4,7 +4,7 @@ import { request } from '../../utils/request'; ...@@ -4,7 +4,7 @@ import { request } from '../../utils/request';
export function queryOfferProdList(data) { export function queryOfferProdList(data) {
return request({ return request({
url: `/sgyrdd/prod/queryOfferProdList`, url: `/sgyrdd/prod/queryOfferProdList`,
method: 'GET', method: 'POST',
data, data,
}); });
} }
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
</template> </template>
<script setup> <script setup>
import { getPresaleList } from '@/api/assistingAgriculture/building';
import { queryOfferProdList } from '@/api/assistingAgriculture/specialOfferZoneList'; import { queryOfferProdList } from '@/api/assistingAgriculture/specialOfferZoneList';
import Sort from '../../../components/assistingAgriculture/index/Sort.vue'; import Sort from '../../../components/assistingAgriculture/index/Sort.vue';
import DepartureDate from '../../../components/assistingAgriculture/index/Date.vue'; import DepartureDate from '../../../components/assistingAgriculture/index/Date.vue';
...@@ -130,11 +131,7 @@ const params = ref({ ...@@ -130,11 +131,7 @@ const params = ref({
size: 15, size: 15,
isEnd: false, isEnd: false,
}); });
const shopSwiperList = ref([ const shopSwiperList = ref([]);
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg',
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg',
]);
const locationFiltering = (index) => { const locationFiltering = (index) => {
const rotates = [rotate, rotate2, rotate3, rotate4]; const rotates = [rotate, rotate2, rotate3, rotate4];
rotates.forEach((rotate, i) => { rotates.forEach((rotate, i) => {
...@@ -144,6 +141,12 @@ const locationFiltering = (index) => { ...@@ -144,6 +141,12 @@ const locationFiltering = (index) => {
onMounted(() => { onMounted(() => {
queryOfferProdListFn(); queryOfferProdListFn();
getPresaleList({ place: 'sojourn' }).then((res) => {
shopSwiperList.value = res.data.map((item) => {
item.imgUrl = import.meta.env.VITE_APP_IMG_URL + item.imgUrl;
return item.imgUrl;
});
});
}); });
function handleClick(e) { function handleClick(e) {
console.log(e); console.log(e);
...@@ -183,7 +186,9 @@ const dataParams = (item, datePart) => { ...@@ -183,7 +186,9 @@ const dataParams = (item, datePart) => {
}; };
// 景点 // 景点
const placeParams = (info) => { const placeParams = (info) => {
params.value.attractionIdList = [info.id]; console.log('info', info);
// params.value.attractionIdList = [info.id];
refresh().then(() => { refresh().then(() => {
queryOfferProdListFn(); queryOfferProdListFn();
}); });
......
...@@ -229,7 +229,7 @@ onShow(() => { ...@@ -229,7 +229,7 @@ onShow(() => {
success() { success() {
setTimeout(() => { setTimeout(() => {
xma.redirectTo({ xma.redirectTo({
url: `/pages/assistingAgriculture/order/detail?orderNumber=${outTradeNos.value}`, url: `/pages/order/order?status=not_pay`,
}); });
}, 1500); }, 1500);
}, },
......
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