Commit 74c975be authored by Facius's avatar Facius

fix: 学练记录跳转的位置

parent ac9b0001
...@@ -9,11 +9,12 @@ ...@@ -9,11 +9,12 @@
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"
...@@ -25,6 +26,11 @@ ...@@ -25,6 +26,11 @@
? minHeight + 'px' ? minHeight + 'px'
: 0, : 0,
}" }"
>
<scroll-view
scroll-y
:scroll-into-view="scrollId"
class="select-category-content + key"
> >
<view class="label-title" :id="key + index"> <view class="label-title" :id="key + index">
<!-- 品类title --> <!-- 品类title -->
...@@ -49,13 +55,15 @@ ...@@ -49,13 +55,15 @@
</view> </view>
</view> </view>
</view> </view>
</scroll-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>
...@@ -164,6 +172,22 @@ export default { ...@@ -164,6 +172,22 @@ export default {
for (var item of res) { for (var item of res) {
if (item.parentId == data.id) { if (item.parentId == data.id) {
this.labels[key2][i].push(item) this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
this.labels[key2][i].push(item)
} }
} }
} }
......
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