Commit f7dc9a02 authored by Facius's avatar Facius

chore: 去掉测试代码

parent d3639886
...@@ -9,12 +9,11 @@ ...@@ -9,12 +9,11 @@
title-bold title-bold
></u-navbar> ></u-navbar>
<!-- 标签列表 --> <!-- 标签列表 -->
<!-- <scroll-view <scroll-view
class="select-category-content" class="select-category-content"
scroll-y scroll-y
:scroll-into-view="scrollId" :scroll-into-view="scrollId"
> --> >
<view class="select-category-content">
<view v-for="(items, key) in labels" :key="key" class="label-list"> <view v-for="(items, key) in labels" :key="key" class="label-list">
<view <view
v-for="(list, index) in items" v-for="(list, index) in items"
...@@ -27,43 +26,36 @@ ...@@ -27,43 +26,36 @@
: 0, : 0,
}" }"
> >
<scroll-view <view class="label-title" :id="key + index">
scroll-y <!-- 品类title -->
:scroll-into-view="scrollId" <view>{{
class="select-category-content + key" key == secondKey ? labels[firstKey][0][index].label : '非煤矿类'
> }}</view>
<view class="label-title" :id="key + index"> </view>
<!-- 品类title --> <view class="label-content">
<view>{{ <view v-for="(label, ind) in list" :key="ind" class="label-item">
key == secondKey ? labels[firstKey][0][index].label : '非煤矿类' <!-- 选中为蓝底,非选中状态为白底 -->
}}</view> <view
</view> :class="[
<view class="label-content"> 'label-normal',
<view v-for="(label, ind) in list" :key="ind" class="label-item"> {
<!-- 选中为蓝底,非选中状态为白底 --> selected: label.id == selected[key].id,
<view wide: key == secondKey,
:class="[ },
'label-normal', ]"
{ @click="handleClick(key, index, ind, label)"
selected: label.id == selected[key].id, >
wide: key == secondKey, <text class="label-text">{{ label.label }}</text>
},
]"
@click="handleClick(key, index, ind, label)"
>
<text class="label-text">{{ label.label }}</text>
</view>
</view> </view>
</view> </view>
</scroll-view> </view>
</view> </view>
</view> </view>
<!-- 标签加载中 --> <!-- 标签加载中 -->
<view class="tag-loading-view" v-if="tapLoading"> <view class="tag-loading-view" v-if="tapLoading">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
</view> </view>
<!-- </scroll-view> --> </scroll-view>
</view>
</view> </view>
</template> </template>
......
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