Commit ebe0d634 authored by 张娇(东信)'s avatar 张娇(东信)

严选轮播图

parent b4607013
......@@ -155,6 +155,7 @@ import fab from '../../../components/fab/fab.vue';
import {
getGoodSaleProdList,
getPlatformProdList,
getPresaleList,
} from '../../../api/assistingAgriculture/building';
import { getshoppingCartList } from '@/api/packageDetail';
import { onMounted, ref } from 'vue';
......@@ -167,13 +168,11 @@ const light = ref(0);
const hotImgList = ref([]);
const testData = ref([]);
const subscript = ref(0);
let sortData;
// 轮播图数据
let lunboData;
// 轮播图
const swiperList = ref([
'../../../static/assistingAgriculture/assets/village.png',
'../../../static/assistingAgriculture/assets/village.png',
'../../../static/assistingAgriculture/assets/village.png',
]);
const swiperList = ref([]);
// 分类列表数据
const detailList = ref([]);
const whh = ref({});
......@@ -190,11 +189,23 @@ const params1 = {
const filteredProdList = ref([]);
onMounted(async () => {
getPresale();
getGoodSaleProd();
platformProdList();
getshoppingCartListFn();
});
// 筑农板块轮播图
const getPresale = () => {
getPresaleList({ place: 'znyx' }).then((res) => {
res.data.forEach((item) => {
item.imgUrl = import.meta.env.VITE_APP_IMG_URL + item.imgUrl;
});
lunboData = res.data;
swiperList.value = res.data.map((item) => {
return item.imgUrl;
});
});
};
// 搜索
const toSearch = () => {
xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodTypes=7' });
......@@ -282,8 +293,6 @@ page {
.container {
position: relative;
left: 0rpx;
top: -45rpx;
opacity: 1;
}
.top {
width: 750rpx;
......
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