首页更改

This commit is contained in:
魏啾
2024-06-05 16:07:03 +08:00
parent 636a8e2915
commit 8f0114bb00

View File

@@ -52,17 +52,17 @@
<!-- 类目 --> <!-- 类目 -->
<view class="fourcontent"> <view class="fourcontent">
<!-- 用于防止榻卸 --> <!-- 用于防止榻卸 -->
<view class="flex-between" style="flex-wrap: inherit;" v-if="!isFixedTop"> <view class="flex-between" style="flex-wrap: inherit;" v-if="!isFixedTop">
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index" <view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
@click="viewHistory(item,index)" @click="viewHistory(item,index)"
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''"> :class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
<text style="margin-right: 10rpx;">{{item.name}}</text> <text style="margin-right: 10rpx;">{{item.name}}</text>
<u-icon v-if="item.isChild" style="margin-left: 10rpx;" name="arrow-down-fill" color="#333333" <u-icon v-if="item.isChild" style="margin-left: 10rpx;" name="arrow-down-fill"
size="16"></u-icon> color="#333333" size="16"></u-icon>
</view> </view>
</view> </view>
</view> </view>
<view class="fivecontent"> <view class="fivecontent">
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> --> <!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore" <!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
@@ -511,8 +511,9 @@
this.form.type = '' //先清空后赋值 this.form.type = '' //先清空后赋值
this.showproductlist = true this.showproductlist = true
} else { } else {
this.showproductlist = false
// 以下没有多选处理 // 以下没有多选处理
if(item.value == this.form.type){// 再次选择取消选中 if (item.value == this.form.type) { // 再次选择取消选中
this.viewHistoryindex = '' this.viewHistoryindex = ''
} }
this.form.type = item.value == this.form.type ? "" : item.value //附近1KM 1选中 0不选中 this.form.type = item.value == this.form.type ? "" : item.value //附近1KM 1选中 0不选中
@@ -522,7 +523,7 @@
this.homelist = [] this.homelist = []
this.onLoadhome() this.onLoadhome()
} }
}, },
// 选择元素的指定选项 // 选择元素的指定选项
clickdetail(item, index) { clickdetail(item, index) {