• demo_29 详情页页面展示


    1. 创建详情页,并链接

     2. 页面布局

    代码

    <template>
        <view class="detail">
            <view class="detail-title">
                我是一个前端开发者,我到底要不要学习NodeJS?
            </view>
            <view class="detail-header">
                <view class="detail-header_logo">
                    <image src="../../static/logo.png" mode="aspectFill"></image>
                </view>
                <view class="detail-header_content">
                    <view class="detail-header_content-title">
                        meHaotian
                    </view>
                    <view class="listcard-content_info">
                        <text>2020-08-18 20:54:81</text>
                        <text>1234 浏览</text>
                        <text> 2345 赞</text>
                    </view>
                </view>
            </view>
            <view class="detail-content">
                详情数据
            </view>
            <view class="detail-bottom">
                <view class="detail-bottom_input">
                    <text>谈谈你的看法</text>
                    <uni-icons type="compose" size="16" color="#F07373"></uni-icons>
                </view>
                <view class="detail-bottom_icons">
                    <view class="detail-bottom_icons-box">
                        <uni-icons type="chat" size="22" color="#F07373"></uni-icons>
                    </view>
                    <view class="detail-bottom_icons-box">
                        <uni-icons type="heart" size="22" color="#F07373"></uni-icons>
                    </view>
                    <view class="detail-bottom_icons-box">
                        <uni-icons type="hand-thumbsup" size="22" color="#F07373"></uni-icons>
                    </view>
                </view>
            </view>
        </view>
    </template>

    <script>
        export default {
            data() {
                return {

                }
            },
            methods: {

            }
        }
    </script>

    <style lang="scss" scoped>
        .detail {
            padding: 15px 0;
            padding-bottom: 54px;
        }

        .detail-title {
            padding: 0 15px;
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }

        .detail-header {
            display: flex;
            align-items: center;
            margin-top: 10px;
            padding: 0 15px;

            .detail-header_logo {
                flex-shrink: 0;
                 40px;
                height: 40px;
                border-radius: 50%;
                overflow: hidden;

                image {
                     100%;
                    height: 100%;
                }
            }

            .detail-header_content {
                 100%;
                padding-left: 10px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                font-size: 12px;

                .detail-header_content-title {
                    font-size: 14px;
                    color: #333;
                }

                .detail-header_content-info {
                    color: #999;

                    test {
                        margin-right: 10px;
                    }
                }
            }
        }

        .detail-content {
            height: 1000px;
            border: 1px solid red;
        }

        .detail-bottom {
            position: fixed;
            bottom: 0;
            left: 0;
            display: flex;
            align-items: center;
             100%;
            height: 44px;
            border-top: 1px solid #f5f5f5;
            background-color: #fff;
            box-sizing: border-box;

            .detail-bottom_input {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-left: 10px;
                padding: 0 10px;
                 100%;
                height: 30px;
                border: 1px solid #ddd;
                border-radius: 5px;

                text {
                    font-size: 14px;
                    color: #999;
                }

            }

            .detail-bottom_icons {
                display: flex;
                flex-shrink: 0;
                padding: 0 10px;

                .detail-bottom_icons-box {
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                     44px;
                }
            }
        }
    </style>
  • 相关阅读:
    [JLOI2011]飞行路线 不同的算法,不同的悲伤
    洛谷 [USACO17OPEN]Bovine Genomics G奶牛基因组(金) ———— 1道骗人的二分+trie树(其实是差分算法)
    P3203 [HNOI2010]弹飞绵羊 —— 懒标记?分块?
    tarjan 题目汇总(含解析)
    P1262 间谍网络 (tarjan缩点 水过去)
    #1117. 编码 ( 字典树版 ) 题解分析
    一道并查集的(坑)题:关闭农场closing the farm
    四重解法---P1047 校门外的树
    一道搜索题【2013 noip提高组 DAY2 t3】华容道
    ●BZOJ 1499 [NOI2005]瑰丽华尔兹
  • 原文地址:https://www.cnblogs.com/luwei0915/p/13526147.html
Copyright © 2020-2023  润新知