首页 卡片


卡片A
卡片标题
这是卡片说明
银行卡
中国银行
尾号 ********123456
默认
详细属性卡片
意向 卡片面板 2021年3月29日
入库时间: 2021年3月29日16:33:21
用户名称: 奥古斯宏
公司名称: 临沂奥宏网络科技有限公司
电话: 13012341234
相册:
极简图标卡片
图标
消息信息操作卡片
奥宏科技·预约会议
技术人员
预约时间
2022年4月4日14:29:12
地点
一楼会议室
备注
备注内容备注内容备注内容备注内容备注内容备注内容备注内容备注内容备注内容备注内容备注内容备注内容
数据详情卡片-简约
奥古斯宏
详情
姓名:
张三
地址:
内蒙古大兴安岭雷达峰红岸基地
用户头像信息卡片
预览效果
张三
A类
13012341234
山东省临沂市兰山区xxx街道xxx小区
13012341234
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-card-avatar-info">
    <div class="main">
        <div class="main-title">
            <div class="item">张三</div>
            <span class="item layui-badge layui-bg-orange">A类</span>
        </div>
        <div class="item-title">
            <i class="item layui-icon layui-icon-cellphone"></i>
            <div class="item">13012341234</div>
        </div>
        <div class="item-title">
            <i class="item layui-icon layui-icon-location"></i>
            <div class="item">山东省临沂市兰山区xxx街道xxx小区 </div>
        </div>
        <div class="item-title">
            <i class="item layui-icon layui-icon-login-wechat"></i>
            <div class="item">13012341234</div>
        </div>
        <div class="footer-title">
            <div class="item">创建者:奥古斯宏 </div>
            <div class="item">创建时间:2023年5月20日16:24:17</div>
        </div>
        <div class="fixed-container">
            <div class="ul-demo-img-bg circle" style="width: 48px;height: 48px;"></div>
        </div>
    </div>
</div>
.ul-card-avatar-info {
    .main {
        padding: 12px;
        background-color: #1E9FFF;
        color: #fff;
        border-radius: 6px;
        position: relative;
    }

    .main-title {
        font-size: 22px;
        display: flex;
        margin-bottom: 14px;
        align-items: center;

        .item {
            margin-right: 6px;
        }
    }

    .item-title {
        font-size: 14px;
        display: flex;
        margin-bottom: 8px;
        align-items: center;

        .item {
            margin-right: 6px;
        }
    }

    .footer-title {
        display: flex;
        font-size: 12px;
        justify-content: space-between;
        margin-top: 12px;
        align-items: center;

    }

    .fixed-container {
        position: absolute;
        top: 0;
        right: 0;
        padding: 15px;
        z-index: 9;
    }
}
.ul-card-avatar-info .main {
  padding: 12px;
  background-color: #1E9FFF;
  color: #fff;
  border-radius: 6px;
  position: relative;
}
.ul-card-avatar-info .main-title {
  font-size: 22px;
  display: flex;
  margin-bottom: 14px;
  align-items: center;
}
.ul-card-avatar-info .main-title .item {
  margin-right: 6px;
}
.ul-card-avatar-info .item-title {
  font-size: 14px;
  display: flex;
  margin-bottom: 8px;
  align-items: center;
}
.ul-card-avatar-info .item-title .item {
  margin-right: 6px;
}
.ul-card-avatar-info .footer-title {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 12px;
  align-items: center;
}
.ul-card-avatar-info .fixed-container {
  position: absolute;
  top: 0;
  right: 0;
  padding: 15px;
  z-index: 9;
}
<view class="ul-card-avatar-info">
    <view class="main">
        <view class="main-title">
            <view class="item">张三</view>
            <span class="item layui-badge layui-bg-orange">A类</span>
        </view>
        <view class="item-title">
            <i class="item layui-icon layui-icon-cellphone"></i>
            <view class="item">13012341234</view>
        </view>
        <view class="item-title">
            <i class="item layui-icon layui-icon-location"></i>
            <view class="item">山东省临沂市兰山区xxx街道xxx小区 </view>
        </view>
        <view class="item-title">
            <i class="item layui-icon layui-icon-login-wechat"></i>
            <view class="item">13012341234</view>
        </view>
        <view class="footer-title">
            <view class="item">创建者:奥古斯宏 </view>
            <view class="item">创建时间:2023年5月20日16:24:17</view>
        </view>
        <view class="fixed-container">
            <view class="ul-demo-img-bg circle" style="width: 48px;height: 48px;"></view>
        </view>
    </view>
</view>
数据卡片
预览效果
509778.80
余额
充值
提现
记录
盈亏总额(元)
0.00
0
余额
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-card-data-a ul-card-data" data-repeat="2">
    <div class="ul-card-data-a-title">509778.80</div>
    <div class="ul-card-data-a-options">
        <div class="ul-card-data-a-item"><i class="layui-icon layui-icon-gift"></i> 余额</div>
        <div class="ul-card-data-a-item">
            <div class="layui-btn layui-btn-xs">充值</div>
            <div class="layui-btn layui-btn-xs">提现</div>
            <div class="layui-btn layui-btn-xs">记录</div>
        </div>
    </div>
</div>
<div class="ul-card-data-b ul-card-data" data-repeat="2">
    <div class="ul-card-data-b-main">
        <div class="ul-card-data-b-icon layui-icon layui-icon-gift"></div>
        <div class="ul-card-data-b-info">
            <div class="ul-card-data-b-title">盈亏总额(元) </div>
            <div class="ul-card-data-b-value">0.00</div>
        </div>
    </div>
</div>
<div class="ul-card-data-c ul-card-data">
    <div class="ul-card-data-c-item" data-repeat="3">
        <div class="ul-card-data-c-value">0</div>
        <div class="ul-card-data-c-title">余额</div>
    </div>
</div>
.ul-card-data {
    display: inline-block;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    /* height       : 70px; */
}

.ul-card-data-a-title {
    padding-bottom: 15px;
    color: #6cf;
    font-size: 28px;
}

.ul-card-data-a-item {
    display: inline-block;
    margin-right: 5px;
}

.ul-card-data-b-icon {
    display: inline-block;
    margin-right: 15px;
    font-size: 46px;
    background-color: #6cf;
    padding: 8px;
    color: #fff;
    border-radius: 5px;
}

.ul-card-data-b-info {
    display: inline-block;
    margin-right: 15px;

}

.ul-card-data-b-value {
    font-size: 28px;
    color: #6cf;
    margin-top: 5px;
}

.ul-card-data-b-main {
    display: flex;
    align-items: center;
}

.ul-card-data-b-title {
    line-height: 24px;
}


.ul-card-data-c-item {
    display: inline-block;
    padding: 10px 40px;
    text-align: center;
    color: #999;
}

.ul-card-data-c-item:not(:last-child) {
    border-right: 1px solid #ddd;

}

.ul-card-data-c-value {
    font-size: 18px;
    line-height: 30px;
}

.ul-card-data-c-title {
    font-size: 12px;
}
.ul-card-data {
  display: inline-block;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  /* height       : 70px; */
}
.ul-card-data-a-title {
  padding-bottom: 15px;
  color: #6cf;
  font-size: 28px;
}
.ul-card-data-a-item {
  display: inline-block;
  margin-right: 5px;
}
.ul-card-data-b-icon {
  display: inline-block;
  margin-right: 15px;
  font-size: 46px;
  background-color: #6cf;
  padding: 8px;
  color: #fff;
  border-radius: 5px;
}
.ul-card-data-b-info {
  display: inline-block;
  margin-right: 15px;
}
.ul-card-data-b-value {
  font-size: 28px;
  color: #6cf;
  margin-top: 5px;
}
.ul-card-data-b-main {
  display: flex;
  align-items: center;
}
.ul-card-data-b-title {
  line-height: 24px;
}
.ul-card-data-c-item {
  display: inline-block;
  padding: 10px 40px;
  text-align: center;
  color: #999;
}
.ul-card-data-c-item:not(:last-child) {
  border-right: 1px solid #ddd;
}
.ul-card-data-c-value {
  font-size: 18px;
  line-height: 30px;
}
.ul-card-data-c-title {
  font-size: 12px;
}
<view class="ul-card-data-a ul-card-data" data-repeat="2">
    <view class="ul-card-data-a-title">509778.80</view>
    <view class="ul-card-data-a-options">
        <view class="ul-card-data-a-item"><i class="layui-icon layui-icon-gift"></i> 余额</view>
        <view class="ul-card-data-a-item">
            <view class="layui-btn layui-btn-xs">充值</view>
            <view class="layui-btn layui-btn-xs">提现</view>
            <view class="layui-btn layui-btn-xs">记录</view>
        </view>
    </view>
</view>
<view class="ul-card-data-b ul-card-data" data-repeat="2">
    <view class="ul-card-data-b-main">
        <view class="ul-card-data-b-icon layui-icon layui-icon-gift"></view>
        <view class="ul-card-data-b-info">
            <view class="ul-card-data-b-title">盈亏总额(元) </view>
            <view class="ul-card-data-b-value">0.00</view>
        </view>
    </view>
</view>
<view class="ul-card-data-c ul-card-data">
    <view class="ul-card-data-c-item" data-repeat="3">
        <view class="ul-card-data-c-value">0</view>
        <view class="ul-card-data-c-title">余额</view>
    </view>
</view>
数据卡片极简
预览效果
订单数量
120
30%
订单数量
120
30%
线下订单
120
30%
订单数量
120
订单数量
120
线下订单
120
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-section">
    <div class="ul-card-data-simple">
        <div class="item line">
            <div class="item-title">订单数量</div>
            <div class="item-value">120</div>
            <div class="item-rate up">30%</div>
        </div>
        <div class="item">
            <div class="item-title">订单数量</div>
            <div class="item-value">120</div>
            <div class="item-rate down">30%</div>
        </div>
        <div class="item">
            <div class="item-title">线下订单</div>
            <div class="item-value">120</div>
            <div class="item-rate">30%</div>
        </div>
    </div>
</div>
<div class="ul-section">
    <div class="ul-card-data-simple bg-black">
        <div class="item main">
            <div class="item-title">订单数量</div>
            <div class="item-value">120</div>
        </div>
        <div class="item">
            <div class="item-title">订单数量</div>
            <div class="item-value">120</div>
        </div>
        <div class="item">
            <div class="item-title">线下订单</div>
            <div class="item-value">120</div>
        </div>
    </div>
</div>
.ul-card-data-simple {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;

    .item {

        margin: 15px 0;
        padding: 0 15px;
        text-align: left;

        .item-title {
            font-size: 12px;
            color: #666;
        }

        .item-value {
            font-size: 16px;
            font-weight: 600;
            line-height: 30px;
        }

        .item-rate {
            font-size: 12px;

        }

        .item-rate.up {
            color: #FF5722;

            &::after {
                content: '  ↑';
            }
        }

        .item-rate.down {
            color: #1E9FFF;

            &::after {
                content: ' ↓';
            }
        }
    }

    .item.line {
        border-right: 1px solid #eee;
    }

    &.bg-black {
        background-color: #393D49;
        color: #fff;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 0 4px #999;

        .item {
            padding: 15px;
            margin: 0 10px 0 0;

            .item-title {
                color: #fff;
            }

            .item-value {
                font-size: 20px;
            }
        }

        .item.main {
            background-color: #fff;
            color: #393D49;
            border-radius: 15px;

            box-shadow: 1px 1px 3px #999;
            margin-right: 25px;

            .item-title {
                color: #393D49;
            }
        }
    }
}
@charset "UTF-8";
.ul-card-data-simple {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #fff;
}
.ul-card-data-simple .item {
  margin: 15px 0;
  padding: 0 15px;
  text-align: left;
}
.ul-card-data-simple .item .item-title {
  font-size: 12px;
  color: #666;
}
.ul-card-data-simple .item .item-value {
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
}
.ul-card-data-simple .item .item-rate {
  font-size: 12px;
}
.ul-card-data-simple .item .item-rate.up {
  color: #FF5722;
}
.ul-card-data-simple .item .item-rate.up::after {
  content: "  ↑";
}
.ul-card-data-simple .item .item-rate.down {
  color: #1E9FFF;
}
.ul-card-data-simple .item .item-rate.down::after {
  content: " ↓";
}
.ul-card-data-simple .item.line {
  border-right: 1px solid #eee;
}
.ul-card-data-simple.bg-black {
  background-color: #393D49;
  color: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 4px #999;
}
.ul-card-data-simple.bg-black .item {
  padding: 15px;
  margin: 0 10px 0 0;
}
.ul-card-data-simple.bg-black .item .item-title {
  color: #fff;
}
.ul-card-data-simple.bg-black .item .item-value {
  font-size: 20px;
}
.ul-card-data-simple.bg-black .item.main {
  background-color: #fff;
  color: #393D49;
  border-radius: 15px;
  box-shadow: 1px 1px 3px #999;
  margin-right: 25px;
}
.ul-card-data-simple.bg-black .item.main .item-title {
  color: #393D49;
}
<view class="ul-section">
    <view class="ul-card-data-simple">
        <view class="item line">
            <view class="item-title">订单数量</view>
            <view class="item-value">120</view>
            <view class="item-rate up">30%</view>
        </view>
        <view class="item">
            <view class="item-title">订单数量</view>
            <view class="item-value">120</view>
            <view class="item-rate down">30%</view>
        </view>
        <view class="item">
            <view class="item-title">线下订单</view>
            <view class="item-value">120</view>
            <view class="item-rate">30%</view>
        </view>
    </view>
</view>
<view class="ul-section">
    <view class="ul-card-data-simple bg-black">
        <view class="item main">
            <view class="item-title">订单数量</view>
            <view class="item-value">120</view>
        </view>
        <view class="item">
            <view class="item-title">订单数量</view>
            <view class="item-value">120</view>
        </view>
        <view class="item">
            <view class="item-title">线下订单</view>
            <view class="item-value">120</view>
        </view>
    </view>
</view>
文件预览卡片
预览效果
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
核弹制作与发射 从入门到精通
75GB
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon excel"><i class="fa fa-file-excel"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon zipper"><i class="fa fa-file-zipper"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon word"><i class="fa fa-file-word"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon pdf"><i class="fa fa-file-pdf"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon powerpoint"><i class="fa fa-file-powerpoint"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon audio"><i class="fa fa-file-audio"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon code"><i class="fa fa-file-code"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon image"><i class="fa fa-file-image"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon video"><i class="fa fa-file-video"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon text"><i class="fa fa-file-text"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon file"><i class="fa-regular fa-file"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
<div class="ul-card-file ul-inline-block">
    <div class="main">
        <div class="info">
            <div class="name">核弹制作与发射 从入门到精通 </div>
            <div class="desc">75GB</div>
        </div>
        <div class="icon link"><i class="fa fa-link"></i></div>
    </div>
    <div class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></div>
</div>
.ul-card-file {
    background-color: #fff;
    display: block;
    width: 240px;
    color: #000 !important;
    cursor: pointer;

    box-shadow: 0 0 2px #bbb;

    .main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 15px 15px 5px 15px;
        height: 60px;

        .info {

            .name {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                width: 160px;
            }

            .desc {
                color: #bbb;
                font-weight: normal;
                font-size: 12px;
                margin-top: 5px;
            }
        }


        .icon {
            font-size: 40px;
            color: #999;
            width: 40px;
            text-align: center;

            &.file {
                color: #bbb;
            }

            &.excel {
                color: rgb(32, 115, 70);
            }

            &.zip {
                color: rgb(139, 87, 42);
            }

            &.word {
                color: rgb(44, 86, 154);
            }

            &.powerpoint {
                color: rgb(242, 97, 63);
            }

            &.pdf {
                color: rgb(250, 81, 81);
            }

            &.video {
                color: #7c8eee;
            }

            &.audio {
                color: #f16c00;
            }

            &.image {
                color: #f6ad00;
            }

            &.text {
                color: #8289ad;
            }

            &.link {
                color: #4876f9;
            }
        }
    }

    .footer {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #999;
        border-top: 1px solid #eee;
        padding: 5px 15px 5px 15px;
    }
}
.ul-card-file {
  background-color: #fff;
  display: block;
  width: 240px;
  color: #000 !important;
  cursor: pointer;
  box-shadow: 0 0 2px #bbb;
}
.ul-card-file .main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 15px 5px 15px;
  height: 60px;
}
.ul-card-file .main .info .name {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 160px;
}
.ul-card-file .main .info .desc {
  color: #bbb;
  font-weight: normal;
  font-size: 12px;
  margin-top: 5px;
}
.ul-card-file .main .icon {
  font-size: 40px;
  color: #999;
  width: 40px;
  text-align: center;
}
.ul-card-file .main .icon.file {
  color: #bbb;
}
.ul-card-file .main .icon.excel {
  color: #207346;
}
.ul-card-file .main .icon.zip {
  color: #8b572a;
}
.ul-card-file .main .icon.word {
  color: #2c569a;
}
.ul-card-file .main .icon.powerpoint {
  color: #f2613f;
}
.ul-card-file .main .icon.pdf {
  color: #fa5151;
}
.ul-card-file .main .icon.video {
  color: #7c8eee;
}
.ul-card-file .main .icon.audio {
  color: #f16c00;
}
.ul-card-file .main .icon.image {
  color: #f6ad00;
}
.ul-card-file .main .icon.text {
  color: #8289ad;
}
.ul-card-file .main .icon.link {
  color: #4876f9;
}
.ul-card-file .footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
  padding: 5px 15px 5px 15px;
}
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon excel"><i class="fa fa-file-excel"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon zipper"><i class="fa fa-file-zipper"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon word"><i class="fa fa-file-word"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon pdf"><i class="fa fa-file-pdf"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon powerpoint"><i class="fa fa-file-powerpoint"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon audio"><i class="fa fa-file-audio"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon code"><i class="fa fa-file-code"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon image"><i class="fa fa-file-image"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon video"><i class="fa fa-file-video"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon text"><i class="fa fa-file-text"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon file"><i class="fa-regular fa-file"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>
<view class="ul-card-file ul-inline-block">
    <view class="main">
        <view class="info">
            <view class="name">核弹制作与发射 从入门到精通 </view>
            <view class="desc">75GB</view>
        </view>
        <view class="icon link"><i class="fa fa-link"></i></view>
    </view>
    <view class="footer"><span>来自ulthon邮箱</span> <span>2022年6月24日</span></view>
</view>

注意:需要引入font awesome 字体文件,但也可以使用任何其他的字体文件或图片。只不过使用图片的话,内置的文件类型的图标颜色就不能用了

内置实现的fa图标如下:

fa-file-excel
fa-file-zipper
fa-file-word
fa-file-pdf
fa-file-powerpoint
fa-file-audio
fa-file-code
fa-file-image
fa-file-video
fa-file-text

其实可以传入任何图标:

fa-file
fa-link

以上图标仅供参考,

内置实现的颜色如下:

file: #bbb;
excel: rgb(32, 115, 70);
zip: rgb(139, 87, 42);
word: rgb(44, 86, 154);
powerpoint:242, 97, 63);
pdf: rgb(250, 81, 81);
video: #7c8eee;
audio: #f16c00;
image: #f6ad00;
text: #8289ad;
link: #4876f9;
余额卡片
预览效果
可提现收入
5675.05
提现
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-card-money">
    <div class="main">
        <div class="title">可提现收入</div>
        <div class="option">
            <div class="value">5675.05</div>
            <div class="button">
                <div class="layui-btn layui-btn-sm layui-btn-warm layui-btn-radius layui-btn-xs">提现</div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="item">
            <div class="label">总收入(元) </div>
            <div class="value">9788.6</div>
        </div>
        <div class="item">
            <div class="label">已提现(元) </div>
            <div class="value">978.6</div>
        </div>
    </div>
</div>
.ul-card-money {
    padding: 26px;
    background-color: #1E9FFF;
    border-radius: 16px;
    color: #fff;

    .main {

        .title {
            font-weight: 600;
            font-size: 12px;
        }

        .option {
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            margin-top: 10px;

            .value {
                font-size: 26px;
                font-weight: 600;
            }

            .button {
                margin-left: 16px;
                padding-bottom: 6px;
            }
        }


    }

    .footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        margin-top: 18px;

        .label {
            font-size: 12px;
        }

        .value {
            margin-top: 8px;
            font-size: 16px;
        }
    }
}
.ul-card-money {
  padding: 26px;
  background-color: #1E9FFF;
  border-radius: 16px;
  color: #fff;
}
.ul-card-money .main .title {
  font-weight: 600;
  font-size: 12px;
}
.ul-card-money .main .option {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 10px;
}
.ul-card-money .main .option .value {
  font-size: 26px;
  font-weight: 600;
}
.ul-card-money .main .option .button {
  margin-left: 16px;
  padding-bottom: 6px;
}
.ul-card-money .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin-top: 18px;
}
.ul-card-money .footer .label {
  font-size: 12px;
}
.ul-card-money .footer .value {
  margin-top: 8px;
  font-size: 16px;
}
<view class="ul-card-money">
    <view class="main">
        <view class="title">可提现收入</view>
        <view class="option">
            <view class="value">5675.05</view>
            <view class="button">
                <view class="layui-btn layui-btn-sm layui-btn-warm layui-btn-radius layui-btn-xs">提现</view>
            </view>
        </view>
    </view>
    <view class="footer">
        <view class="item">
            <view class="label">总收入(元) </view>
            <view class="value">9788.6</view>
        </view>
        <view class="item">
            <view class="label">已提现(元) </view>
            <view class="value">978.6</view>
        </view>
    </view>
</view>
二维码卡片
预览效果
张三
法外狂徒不寂寞
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-card-qrcode">
    <div class="ul-card-qrcode__main">
        <div class="header">
            <div class="ul-avatar-sidebar-list">
                <div class="ul-avatar-sidebar-list-item">
                    <div class="ul-avatar-sidebar-list-item-img"></div>
                    <div class="ul-avatar-sidebar-list-item-info">
                        <div class="ul-avatar-sidebar-list-item-title">张三</div>
                        <div class="ul-avatar-sidebar-list-item-intro">法外狂徒不寂寞</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="body">
            <div class="ul-card-qrcode__point-left"></div>
            <div class="ul-card-qrcode__point-right"></div>
            <div class="ul-card-qrcode__line"></div>
            <div class="main">
                <img class="img" src="/static/images/qrcode.jpg" alt="">
            </div>
        </div>
    </div>
</div>
.ul-card-qrcode {

    $borderColor: #eee;

    position: relative;
    min-height: 100px;
    display: inline-block;
    background-color: $borderColor;
    padding: 10px;

    .header {
        padding: 20px;
    }

    .body {
        position: relative;

        .main {
            padding: 36px;

            .img {
                width: 100%;

            }

        }
    }

    &__main {
        background-color: #fff;
        border-radius: 20px;
        overflow: hidden;
    }

    &__point-left {
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        background-color: $borderColor;
        left: -10px;
        top: 0;
    }

    &__point-right {
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        background-color: $borderColor;
        right: -10px;
        top: 0;
    }

    &__line {
        position: absolute;
        width: 100%;
        height: 0;
        border-bottom: 2px dashed $borderColor;
        top: 8px;
        left: 0;
    }
}
.ul-card-qrcode {
  position: relative;
  min-height: 100px;
  display: inline-block;
  background-color: #eee;
  padding: 10px;
}
.ul-card-qrcode .header {
  padding: 20px;
}
.ul-card-qrcode .body {
  position: relative;
}
.ul-card-qrcode .body .main {
  padding: 36px;
}
.ul-card-qrcode .body .main .img {
  width: 100%;
}
.ul-card-qrcode__main {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.ul-card-qrcode__point-left {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background-color: #eee;
  left: -10px;
  top: 0;
}
.ul-card-qrcode__point-right {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background-color: #eee;
  right: -10px;
  top: 0;
}
.ul-card-qrcode__line {
  position: absolute;
  width: 100%;
  height: 0;
  border-bottom: 2px dashed #eee;
  top: 8px;
  left: 0;
}
<view class="ul-card-qrcode">
    <view class="ul-card-qrcode__main">
        <view class="header">
            <view class="ul-avatar-sidebar-list">
                <view class="ul-avatar-sidebar-list-item">
                    <view class="ul-avatar-sidebar-list-item-img"></view>
                    <view class="ul-avatar-sidebar-list-item-info">
                        <view class="ul-avatar-sidebar-list-item-title">张三</view>
                        <view class="ul-avatar-sidebar-list-item-intro">法外狂徒不寂寞</view>
                    </view>
                </view>
            </view>
        </view>
        <view class="body">
            <view class="ul-card-qrcode__point-left"></view>
            <view class="ul-card-qrcode__point-right"></view>
            <view class="ul-card-qrcode__line"></view>
            <view class="main">
                <img class="img" src="/static/images/qrcode.jpg" alt="">
            </view>
        </view>
    </view>
</view>
数据详情卡片-简约
预览效果
奥古斯宏
详情
姓名:
张三
地址:
内蒙古大兴安岭雷达峰红岸基地
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-data-card">
    <div class="header">
        <div class="mian"><i class="layui-icon layui-icon-user"></i> <span>奥古斯宏</span></div>
        <div class="plus">
            <div class="layui-btn layui-btn-sm">详情</div>
        </div>
    </div>
    <div class="body">
        <div class="main">
            <div class="item" data-repeat="3">
                <div class="item-title">姓名:</div>
                <div class="item-value">张三</div>
            </div>
            <div class="item">
                <div class="item-title">地址:</div>
                <div class="item-value">内蒙古大兴安岭雷达峰红岸基地 </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="main">2022年4月14日21:28:44</div>
        <div class="plus">
            <div class="layui-btn layui-btn-sm layui-btn-normal">删除</div>
            <div class="layui-btn layui-btn-sm layui-btn-primary">修改</div>
        </div>
    </div>
</div>
.ul-data-card {
    margin       : 15px;
    padding      : 15px;
    box-shadow   : 0 0 3px #bbb;
    border-radius: 5px;

    .header {
        display        : flex;
        align-items    : center;
        justify-content: space-between;
        padding-bottom : 10px;
        border-bottom  : 1px solid #eee;

    }

    .body {
        padding: 10px 0;

        .main {
            display        : flex;
            align-items    : flex-start;
            justify-content: flex-start;
            flex-wrap      : wrap;

            .item {
                min-width    : 50%;
                display      : flex;
                align-items  : center;
                margin-bottom: 10px;

                .item-title {
                    font-size  : 14px;
                    font-weight: 600;
                }

                .item-value {
                    font-size: 14px;
                }
            }
        }

    }

    .footer {
        border-top     : 1px solid #eee;
        padding-top    : 10px;
        display        : flex;
        justify-content: space-between;
        align-items    : center
    }
}
.ul-data-card {
  margin: 15px;
  padding: 15px;
  box-shadow: 0 0 3px #bbb;
  border-radius: 5px;
}
.ul-data-card .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.ul-data-card .body {
  padding: 10px 0;
}
.ul-data-card .body .main {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.ul-data-card .body .main .item {
  min-width: 50%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.ul-data-card .body .main .item .item-title {
  font-size: 14px;
  font-weight: 600;
}
.ul-data-card .body .main .item .item-value {
  font-size: 14px;
}
.ul-data-card .footer {
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
<view class="ul-data-card">
    <view class="header">
        <view class="mian"><i class="layui-icon layui-icon-user"></i> <span>奥古斯宏</span></view>
        <view class="plus">
            <view class="layui-btn layui-btn-sm">详情</view>
        </view>
    </view>
    <view class="body">
        <view class="main">
            <view class="item" data-repeat="3">
                <view class="item-title">姓名:</view>
                <view class="item-value">张三</view>
            </view>
            <view class="item">
                <view class="item-title">地址:</view>
                <view class="item-value">内蒙古大兴安岭雷达峰红岸基地 </view>
            </view>
        </view>
    </view>
    <view class="footer">
        <view class="main">2022年4月14日21:28:44</view>
        <view class="plus">
            <view class="layui-btn layui-btn-sm layui-btn-normal">删除</view>
            <view class="layui-btn layui-btn-sm layui-btn-primary">修改</view>
        </view>
    </view>
</view>
简洁主图卡片
预览效果
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-easy-image">
    <div class="ul-easy-image__main ul-demo-img-bg"></div>
    <div class="ul-easy-image__footer">
        <div class="ul-easy-image__title">画写板</div>
        <div class="ul-easy-image__option">
            <div class="layui-btn layui-btn-xs layui-btn-primary">立即咨询</div>
        </div>
    </div>
</div>
.ul-easy-image {
    margin: 5px;
    border-radius   : 15px;
    overflow        : hidden;
    background-color: #fff;
    box-shadow      : 1px 1px 5px rgba(0, 0, 0, 0.4);

    &__main {
        width : 100%;
        height: 160px;
    }

    &__footer {
        padding        : 5px 15px;
        display        : flex;
        align-items    : flex-end;
        justify-content: space-between;
    }

    &__title {
        margin-top    : 10px;
        padding-bottom: 10px;
        font-size     : 16px;
        font-weight   : 600;
    }
}
.ul-easy-image {
  margin: 5px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}
.ul-easy-image__main {
  width: 100%;
  height: 160px;
}
.ul-easy-image__footer {
  padding: 5px 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.ul-easy-image__title {
  margin-top: 10px;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}
<view class="ul-easy-image">
    <view class="ul-easy-image__main ul-demo-img-bg"></view>
    <view class="ul-easy-image__footer">
        <view class="ul-easy-image__title">画写板</view>
        <view class="ul-easy-image__option">
            <view class="layui-btn layui-btn-xs layui-btn-primary">立即咨询</view>
        </view>
    </view>
</view>
用户主页名片
预览效果
奥宏科技
ID
2369
性别
工作时间
3年
地址
山东省临沂市兰山区
  • HTML
  • SCSS
  • CSS
  • UniApp
<div class="ul-info-card">
    <div class="header">
        <div class="img" style="background-image: url('/static/images/view.jpg');"></div>
    </div>
    <div class="body">
        <div class="title">奥宏科技</div>
        <div class="line"></div>
        <div class="info">
            <div class="info-item">
                <div class="info-title">ID</div>
                <div class="info-value">2369</div>
            </div>
            <div class="info-item">
                <div class="info-title">性别</div>
                <div class="info-value">男</div>
            </div>
            <div class="info-item">
                <div class="info-title">工作时间</div>
                <div class="info-value">3年</div>
            </div>
            <div class="info-item">
                <div class="info-title">地址</div>
                <div class="info-value">山东省临沂市兰山区</div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="layui-btn layui-btn-fluid layui-btn-normal"><i class="layui-icon layui-icon-cellphone"></i> 立即联系</div>
    </div>
</div>
.ul-info-card {

    background-color: #fff;

    .header {
        .img {
            width              : 100%;
            height             : 160px;
            background-size    : cover;
            background-position: center;
        }
    }

    .body {
        margin-top: 15px;

        .title {
            text-align : center;
            font-size  : 18px;
            font-weight: 600;
            color      : #333;
        }

        .line {
            height          : 3px;
            width           : 60px;
            background-color: #1E9FFF;
            margin          : 10px auto;
        }

        .info {
            padding: 15px;

            .info-item {
                display      : inline-block;
                min-width    : 30%;
                margin-bottom: 10px;
                margin-right : 1%;

                .info-title {
                    font-size    : 12px;
                    color        : #999;
                    margin-bottom: 6px;
                }
            }
        }
    }
}
.ul-info-card {
  background-color: #fff;
}
.ul-info-card .header .img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
}
.ul-info-card .body {
  margin-top: 15px;
}
.ul-info-card .body .title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.ul-info-card .body .line {
  height: 3px;
  width: 60px;
  background-color: #1E9FFF;
  margin: 10px auto;
}
.ul-info-card .body .info {
  padding: 15px;
}
.ul-info-card .body .info .info-item {
  display: inline-block;
  min-width: 30%;
  margin-bottom: 10px;
  margin-right: 1%;
}
.ul-info-card .body .info .info-item .info-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
<view class="ul-info-card">
    <view class="header">
        <view class="img" style="background-image: url('/static/images/view.jpg');"></view>
    </view>
    <view class="body">
        <view class="title">奥宏科技</view>
        <view class="line"></view>
        <view class="info">
            <view class="info-item">
                <view class="info-title">ID</view>
                <view class="info-value">2369</view>
            </view>
            <view class="info-item">
                <view class="info-title">性别</view>
                <view class="info-value">男</view>
            </view>
            <view class="info-item">
                <view class="info-title">工作时间</view>
                <view class="info-value">3年</view>
            </view>
            <view class="info-item">
                <view class="info-title">地址</view>
                <view class="info-value">山东省临沂市兰山区</view>
            </view>
        </view>
    </view>
    <view class="footer">
        <view class="layui-btn layui-btn-fluid layui-btn-normal"><i class="layui-icon layui-icon-cellphone"></i> 立即联系</view>
    </view>
</view>