<cu-custom isCustom="{{false}}" isBack="{{true}}">
    <view slot="content">设置</view>
</cu-custom>
<view class="scroll-content">
    <!-- 菜单 -->
    <view wx:if="{{menuList.length>0}}" style="width:100%;">
        <view class="cu-list menu card-menu shadow-lg radius"
            style="margin-top:30rpx;margin-left:0rpx;margin-right:0rpx;" wx:for-item="group" wx:for="{{menuList}}"
            wx:key="index" wx:if="{{group.configColumnGroupStatus=='1'}}">
            <!-- 横向 -->
            <view wx:if="{{group.configColumnGroupDirection=='1'}}">
                <view class="cu-list grid col-4 no-border">
                    <view class="cu-item align-center justify-center" data-path="{{item.configColumnTargetUrl}}"
                        wx:if="{{item.configColumnStatus=='1'}}" data-type="{{item.configColumnTargetMode}}"
                        bindtap="choosePage" data-item="{{item}}" wx:for="{{group.configColumnList}}" wx:for-index="idx"
                        wx:for-item="item" wx:key="idx">
                        <image style="width:96rpx;height:96rpx;border-radius:10rpx;"
                            src="{{imgUrl+item.configColumnPhoto}}" mode="scaleToFill">
                        </image>
                        <text class="text-df text-black" data-id="{{item.configColumnId}}" data-index="{{index}}"
                            data-idx="{{idx}}" catchtap="showInput">{{item.configColumnName}}</text>
                        <view data-id="{{item.configColumnId}}" catchtap="doSaveColumnDisplay" data-index="{{index}}"
                            data-idx="{{idx}}">
                            <van-switch checked="{{ item.configColumnSet == '1' }}" size="24px" />
                        </view>
                    </view>
                </view>
            </view>
            <!-- 纵向 -->
            <view wx:else>
                <view wx:for="{{group.configColumnList}}" wx:for-item="item" data-path="{{item.configColumnTargetUrl}}"
                    data-type="{{item.configColumnTargetMode}}" wx:for-index="idx" wx:key="idx" data-item="{{item}}">
                    <view class="cu-list menu  card-menu shadow-lg radius">
                        <view class="cu-item border-bottom-sm" style="padding:20rpx;margin-top:5rpx;">
                            <image wx:if="{{item.configColumnPhoto.length>0}}" class="cu-avatar radius lg"
                                src="{{imgUrl + item.configColumnPhoto}}" mode="scaleToFill"></image>
                            <view class="content padding-left-xs" style="width:80%;" data-id="{{item.configColumnId}}"
                                data-index="{{index}}" data-idx="{{idx}}" catchtap="showInput">
                                <view class="text-black">
                                    <text class="text-cut">{{item.configColumnName}}</text>
                                </view>
                                <view class="text-gray text-sm flex">
                                    <text class="text-cut">原名称:{{item.configColumnRemark}}</text>
                                </view>
                            </view>
                            <view class="action" data-id="{{item.configColumnId}}" catchtap="doSaveColumnDisplay"
                                data-index="{{index}}" data-idx="{{idx}}">
                                <van-switch checked="{{ item.configColumnSet == '1' }}" size="24px" />
                            </view>
                        </view>
                    </view>
                </view>
            </view>
        </view>
    </view>
    <view wx:else style="margin-top:200rpx;width:100%;">
        <van-empty description="暂无数据" image="/images/ic_empty_data.png" />
    </view>
</view>
<!-- 文本内容弹框 -->
<van-action-sheet show="{{ isShowInput }}" title="栏目名称修改" bind:close="onHide" data-type="5"
    style="padding-bottom:180rpx;">
    <view class="flex flex-direction align-center" style="margin-top:10rpx;padding-bottom:30rpx;">
        <input id="linkStr" placeholder="请输入栏目名称"
            style="width:90%;border:1rpx solid #DFDFDF;padding:8rpx;line-height:70rpx;height:70rpx; border-radius:3rpx;"
            value="{{inputColumnName}}" bindinput="textInput" />
        <view class="cu-btn bg-blue radius margin-top-sm" style="width:30%;" bindtap="addName">保存</view>
    </view>
</van-action-sheet>