2021-07-20 15:45:29 +08:00
|
|
|
<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%;">
|
2021-08-12 09:22:40 +08:00
|
|
|
<view class="group-box" wx:for-item="group" wx:for="{{menuList}}" wx:key="index"
|
|
|
|
wx:if="{{group.configColumnGroupStatus=='1'}}">
|
|
|
|
<!-- 横向滑动 -->
|
|
|
|
<view wx:if="{{group.configColumnGroupDirection=='1'}}" class="ver-box">
|
|
|
|
<view class="ver-box-title">
|
|
|
|
{{group.configColumnGroupName}}
|
|
|
|
</view>
|
|
|
|
<view class="ver-box-list">
|
|
|
|
<view class="ver-box-items" bindtap="choosePage" data-item="{{item}}"
|
|
|
|
wx:for="{{group.configColumnList}}" wx:for-index="idx" wx:for-item="item" wx:key="idx">
|
|
|
|
<image src="{{imgUrl+item.configColumnPhoto}}" mode="scaleToFill">
|
2021-07-20 15:45:29 +08:00
|
|
|
</image>
|
2021-08-12 09:22:40 +08:00
|
|
|
<text class="text-cut text-df text-black" data-id="{{item.configColumnId}}"
|
|
|
|
data-index="{{index}}" data-idx="{{idx}}"
|
|
|
|
catchtap="showInput">{{item.configColumnName}}</text>
|
|
|
|
<van-switch checked="{{ item.configColumnSet == '1' }}" size="20px"
|
|
|
|
data-id="{{item.configColumnId}}" catchtap="doSaveColumnDisplay" style="margin-top: 15rpx;"
|
|
|
|
data-index="{{index}}" data-idx="{{idx}}" />
|
2021-07-20 15:45:29 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 纵向 -->
|
2021-07-26 15:04:33 +08:00
|
|
|
<view wx:elif="{{group.configColumnGroupDirection=='2'}}">
|
2021-08-12 09:22:40 +08:00
|
|
|
<view class="ver-box-title">
|
|
|
|
{{group.configColumnGroupName}}
|
|
|
|
</view>
|
2021-07-20 15:45:29 +08:00
|
|
|
<view wx:for="{{group.configColumnList}}" wx:for-item="item" data-path="{{item.configColumnTargetUrl}}"
|
2021-08-12 09:22:40 +08:00
|
|
|
data-type="{{item.configColumnTargetMode}}" wx:for-index="idx" wx:key="idx" data-item="{{item}}"
|
|
|
|
class="item-box">
|
|
|
|
<image wx:if="{{item.configColumnPhoto.length>0}}" class="cu-avatar radius lg"
|
|
|
|
src="{{imgUrl + item.configColumnPhoto}}" mode="scaleToFill"></image>
|
|
|
|
<view class="item-content" data-id="{{item.configColumnId}}" data-index="{{index}}"
|
|
|
|
data-idx="{{idx}}" catchtap="showInput">
|
|
|
|
<text class="text-cut text-black text-bold">{{item.configColumnName}}</text>
|
|
|
|
<text class="text-cut text-gray">原名称:{{item.configColumnRemark}}</text>
|
|
|
|
</view>
|
|
|
|
<view class="action" data-id="{{item.configColumnId}}" catchtap="doSaveColumnDisplay"
|
|
|
|
data-index="{{index}}" data-idx="{{idx}}">
|
|
|
|
<van-switch checked="{{ item.configColumnSet == '1' }}" size="20px" />
|
2021-07-20 15:45:29 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view wx:else style="margin-top:200rpx;width:100%;">
|
2021-08-12 09:22:40 +08:00
|
|
|
<van-empty description="暂无数据" />
|
2021-07-20 15:45:29 +08:00
|
|
|
</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>
|