Commit 94183dbc authored by 彭佳妮(贵阳日报)'s avatar 彭佳妮(贵阳日报)
parents 308b7d9e 610b1f34
......@@ -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;
......
......@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth';
onLoad(async (options) => {
// await signIn();
if (!getToken()) await signIn2();
await signIn();
// if (!getToken()) await signIn2();
const { type } = options;
switch (type) {
case '0':
......
......@@ -203,7 +203,7 @@
<wd-icon color="#ABAAAA" name="caret-right-small" size="22px"></wd-icon>
<view class="step">
<image class="icon" src="@/static/shop/xcx.png"></image>
打开小程序
打开爽贵阳APP
</view>
<wd-icon color="#ABAAAA" name="caret-right-small" size="22px"></wd-icon>
<view class="step">
......
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