Commit 610b1f34 authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents 731b4724 c51dac8b
...@@ -155,6 +155,7 @@ import fab from '../../../components/fab/fab.vue'; ...@@ -155,6 +155,7 @@ import fab from '../../../components/fab/fab.vue';
import { import {
getGoodSaleProdList, getGoodSaleProdList,
getPlatformProdList, getPlatformProdList,
getPresaleList,
} from '../../../api/assistingAgriculture/building'; } from '../../../api/assistingAgriculture/building';
import { getshoppingCartList } from '@/api/packageDetail'; import { getshoppingCartList } from '@/api/packageDetail';
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
...@@ -167,13 +168,11 @@ const light = ref(0); ...@@ -167,13 +168,11 @@ const light = ref(0);
const hotImgList = ref([]); const hotImgList = ref([]);
const testData = ref([]); const testData = ref([]);
const subscript = ref(0); const subscript = ref(0);
let sortData; // 轮播图数据
let lunboData;
// 轮播图 // 轮播图
const swiperList = ref([ const swiperList = ref([]);
'../../../static/assistingAgriculture/assets/village.png',
'../../../static/assistingAgriculture/assets/village.png',
'../../../static/assistingAgriculture/assets/village.png',
]);
// 分类列表数据 // 分类列表数据
const detailList = ref([]); const detailList = ref([]);
const whh = ref({}); const whh = ref({});
...@@ -190,11 +189,23 @@ const params1 = { ...@@ -190,11 +189,23 @@ const params1 = {
const filteredProdList = ref([]); const filteredProdList = ref([]);
onMounted(async () => { onMounted(async () => {
getPresale();
getGoodSaleProd(); getGoodSaleProd();
platformProdList(); platformProdList();
getshoppingCartListFn(); 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 = () => { const toSearch = () => {
xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodTypes=7' }); xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodTypes=7' });
...@@ -282,8 +293,6 @@ page { ...@@ -282,8 +293,6 @@ page {
.container { .container {
position: relative; position: relative;
left: 0rpx; left: 0rpx;
top: -45rpx;
opacity: 1;
} }
.top { .top {
width: 750rpx; width: 750rpx;
......
...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index'; ...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth'; import { getToken } from '../../utils/auth';
onLoad(async (options) => { onLoad(async (options) => {
// await signIn(); await signIn();
if (!getToken()) await signIn2(); // if (!getToken()) await signIn2();
const { type } = options; const { type } = options;
switch (type) { switch (type) {
case '0': case '0':
......
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
{{ iconList[item.orderType].text }} {{ iconList[item.orderType].text }}
</text> </text>
<!-- <image src="@/static/order/shop.png" /> --> <!-- <image src="@/static/order/shop.png" /> -->
<view class="title">{{ item.shopName }}</view> <view class="title">
{{ item.shopName }}
</view>
</view> </view>
<view class="right"> <view class="right">
<span class="status">{{ stateList[item.orderType][item.status].label }}</span> <span class="status">{{ stateList[item.orderType][item.status].label }}</span>
...@@ -798,6 +800,10 @@ page { ...@@ -798,6 +800,10 @@ page {
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
font-family: PingFang SC; font-family: PingFang SC;
width: 420rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
......
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