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

优化

parent 2ee28736
......@@ -258,7 +258,7 @@ const choice = (index, item) => {
// 跳转预售
const toPresale = () => {
xma.navigateTo({
url: `/pages/assistingAgriculture/index/presale?categoryId=3273`,
url: `/pages/assistingAgriculture/index/presale?categoryId=9`,
});
};
// 处理content
......
......@@ -22,6 +22,7 @@
@focus="toSearch"
/>
</view>
<!-- <text class="env-info">贵阳市农业农村局 贵阳日报传媒集团联合打造</text>-->
</Search>
<view>
<wd-swiper
......@@ -210,6 +211,13 @@ page {
.box-red {
white-space: nowrap;
width: 100%;
::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
background-color: transparent;
}
.borderClass {
width: 96rpx;
......@@ -322,4 +330,11 @@ page {
color: #ffffff;
}
}
.env-info {
font-size: 28rpx;
position: absolute;
margin-top: 30rpx;
margin-left: 10rpx;
z-index: 0;
}
</style>
......@@ -35,7 +35,7 @@
<view style="display: flex; flex-direction: row">
<view
class="borderClass"
@tap="chooseTab(index, item.categoryId)"
@tap="chooseBTab(index, item.categoryId)"
v-for="(item, index) in sortList"
:key="index"
>
......@@ -45,19 +45,19 @@
</view>
</view>
<view>
<view>
<scroll-view class="tabs" show-scrollbar="false" scroll-x :scroll-with-animation="true">
<text
@tap="chooseBTab(index, item.categoryId)"
v-for="(item, index) in tabsData"
:key="index"
class="text"
:class="light === index ? 'light' : ''"
>
{{ item.categoryName }}
</text>
</scroll-view>
</view>
<!-- <view>-->
<!-- <scroll-view class="tabs" show-scrollbar="false" scroll-x :scroll-with-animation="true">-->
<!-- <text-->
<!-- @tap="chooseBTab(index, item.categoryId)"-->
<!-- v-for="(item, index) in tabsData"-->
<!-- :key="index"-->
<!-- class="text"-->
<!-- :class="light === index ? 'light' : ''"-->
<!-- >-->
<!-- {{ item.categoryName }}-->
<!-- </text>-->
<!-- </scroll-view>-->
<!-- </view>-->
<view class="tab-list" v-for="(item, index) in buyList" :key="index" @tap="toDetail(item)">
<img
class="buy-list"
......@@ -163,6 +163,7 @@ onMounted(async () => {
getPresale();
presaleSortList();
getshoppingCartListFn();
chooseBTab(0, '3444');
});
// 搜索
const toSearch = () => {
......@@ -224,7 +225,7 @@ const chooseBTab = (index, categoryId) => {
});
buyList.value = res.data.records;
});
light.value = index;
// light.value = index;
};
// 筑农首页-分类查询商品列表
......
......@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma.reLaunch({ url: '/pages/index/index' });
break;
case '2':
xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=7' });
xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=8' });
break;
case '3':
xma.reLaunch({
url: '/pages/assistingAgriculture/index/building?categoryId=8',
url: '/pages/assistingAgriculture/index/building?categoryId=10',
});
break;
default:
......
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