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

优化

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