<!-- pages/myModule/components/myCollect/myAttention.wxml -->
<view class="my-attention-page page-container">
    <view class="list-loading text-center" wx:if="{{ pageLoading }}">
        <van-loading size="24px">加载中...</van-loading>
    </view>
    <view wx:else>
        <view class="attention-view">
            <view class="attention-title-view">
                你关注的类型
                <text class="sub-title">（最多可选5项）</text>
            </view>
            <view class="attention-info">选择后，平台推荐将更符合你的偏好</view>
            <view class="types-box">
                <van-row class="attention-types-view clearfix" gutter="15">
                    <van-col span="8" class="attention-type" wx:for="{{ types }}" wx:key="*this">
                        <view class="item-type {{ item.isActive ? 'isActive' : '' }}" bindtap="changeTags" data-typename="{{ item.typeName }}">
                            {{ item.typeName }}
                        </view>
                    </van-col>
                </van-row>
            </view>
        </view>
        <view class="submit-btn">
            <van-button 
                block 
                color="#5e73e5" 
                round 
                disabled="{{ selectedTags.length < 1 }}" 
                bind:click="setAttentionTypeIds" 
            >
                保存
            </van-button>
        </view>
    </view>
</view>