card-mini/pages/mine/index/index.wxml

95 lines
3.9 KiB
Plaintext

<!-- 标题 -->
<view class="UCenter-bg">
<image src="../../../images/ic_mine_title_bg.png" mode="scaleToFill"></image>
<view class="user-info">
<image class="user-icon" src="{{userIcon}}" mode="scaleToFill">
</image>
<view class="user-content">
<text class="title">{{name}}</text>
<text class="des">{{nickName}}</text>
</view>
</view>
</view>
<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:20rpx;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">{{item.configColumnName}}</text>
</view>
</view>
</view>
<!-- 纵向 -->
<view wx:else>
<view wx:for="{{group.configColumnList}}" wx:for-item="item" data-path="{{item.configColumnTargetUrl}}"
data-type="{{item.configColumnTargetMode}}" wx:key="index" data-item="{{item}}" bindtap="choosePage">
<view class="cu-list menu card-menu shadow-lg radius">
<view class="cu-item arrow">
<view wx:if="{{item.configColumnPhoto.length>0}}" class="cu-avatar radius lg"
style="background-image:url({{imgUrl+ item.configColumnPhoto}});">
</view>
<view class="content padding-left-xs" style="width:80%;">
<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">
</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>
<!-- 标题 -->
<!-- <view class="cu-item arrow border-bottom-sm" data-path="{{item.jumpUrl}}" data-type="{{item.jumpType}}"
bindtap="choosePage">
<view class="content flex align-center">
<image src="{{imgUrl+item.logo}}" mode="scaleToFill" style="width:40rpx;height:40rpx;"></image>
<text class="text-black">{{item.name}}</text>
</view>
<view class="text-sm">
{{item.otherName}}
</view>
</view> -->
<!-- 子集横向 -->
<!-- <view wx:if="{{item.subList.length>0}}">
</view> -->
<!-- 子集竖向 -->
<!-- <view wx:else>
<view class="cu-item arrow border-bottom-sm " style="margin-top:0rpx;" wx:for="{{item.subList}}"
wx:for-index="idx" wx:for-item="subItem" wx:key="idx">
<view class="content flex align-center" data-path="{{subItem.jumpUrl}}" data-type="{{subItem.jumpType}}"
bindtap="choosePage">
<image src="{{imgUrl+subItem.logo}}" mode="scaleToFill" style="width:40rpx;height:40rpx;"></image>
<text class="text-black">{{subItem.name}}</text>
</view>
<view class="text-sm">
{{subItem.otherName}}
</view>
</view>
</view>
</view> -->