1

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