• 小程序和h5垂直时间轴


    <template>
        <view class="steps">
    		<view class="list" v-for="(item,index) in  listArr":key="index">
    			<view class="left-time">
    				<text class="data-da">
    					12-12
    				</text>
    				<view class="weeks">
    					12:03
    				</view>
    				<view class="round"></view>
    				<view class="line-line"></view>
    			</view>
    			
    			<view class="right">
    				<view class="zheng-result">
    					<image class="linit-wh" v-if="item.imageBz"  :src="item.imageBz"></image>
    				</view>
    				<view class="cont-modeule">
    					<view class="top-box">
    						<txet  class="name-name">{{item.userName}}</txet>
    						<text  class="name-leave-finsh">
    						  完成
    						</text>
    					</view>
    					<view class="class-hygiene">
    						<view class="contentText">
    							{{item.fullMessage }}
    						</view>
    					</view>
    				</view>
    				
    			</view>
    		</view>
        </view>
    </template>
    
    <script>
    export default {
    	data(){
    		return{
    			listArr:[
    				{  
    					fullMessage: "啊倒萨说的阿松大阿松大阿阿松大暗时",
    					imageBz: "https://img01.yzcdn.cn/vant/cat.jpeg",
    					userName: "老师",
    				},
    				{	
    					
    					fullMessage: '啊倒萨说的阿松大阿松大1',
    					imageBz: "https://img01.yzcdn.cn/vant/cat.jpeg",
    					taskDefName: "家长",
    					userId: "577275925884964864",
    					userName: "教导主任",
    				},
    				{
    					fullMessage: '啊倒萨说的阿松大阿',
    					imageBz: "https://img01.yzcdn.cn/vant/cat.jpeg",
    					taskDefName: "班主任",
    					userId: "598488801660243968",
    					userName: "校长",
    				}
    			]
    	    }
    	}
    }
    </script>
    <style  lang="scss">
    	page{
    		height: 100%;
    		background-color: #F7F7F7;
    		padding-top: 50rpx;
    	}
        .list{
        	display: flex; 
        	.left-time{
        		display: flex;
        		flex-direction: column;
        		align-items: center;
        		156rpx;
        		padding-top: 24rpx;
        		position: relative;
        			.data-da{
        				font-size: 28rpx;
        				font-family: PingFang SC, PingFang SC-Regular;
        				font-weight: 400;
        				color:#909399;
        			}
        			.weeks{
        				font-size: 28rpx;
        				font-family: PingFang SC, PingFang SC-Regular;
        				font-weight: 400;
        				color: #909399;
        			}
        			.round{
        				 28rpx;
        				height: 28rpx;
        				background-color: #4A80F6;
        				position: absolute;
        				top: 60rpx;
        				right: -14rpx;
        				border: 4rpx solid #4A80F6;
        				border-radius: 50%;
        				z-index: 10;
        			}
        			.line-line{
        				position: absolute;
        				top: 60rpx;
        				right: 3rpx;
        				height: 100%;
        				 1rpx;
        				border: 1rpx solid #4A80F6;
        			}
        	}
        	// 右边的部分哈
        	.right{
        		 518rpx;
        		background: #fff;
        		border-radius: 16rpx;
        		box-sizing: border-box;
        		margin-left: 32rpx;
        		margin-bottom: 32rpx;
        		display: flex;
        		padding: 33rpx 24rpx 31rpx;
        		.zheng-result{
        			 56rpx;
        			height: 56rpx;
        			margin-right: 25rpx;
        			.linit-wh{
        				 56rpx;
        				height: 56rpx;
        				border-radius: 50%;
        			}
        		}
        		.cont-modeule{
    				// 换行显示
        			word-break:break-all;
        			word-wrap:break-word;
        			.top-box{
        				.name-name{
        					font-size: 28rpx;
        					font-family: PingFang SC Medium, PingFang SC Medium-Medium;
        					font-weight: 500;
        					color: #303133;
        					margin-right: 10rpx;
        				}
        				.name-leave-finsh{
        					font-size: 28rpx;
        					font-family: PingFang SC Medium, PingFang SC Medium-Medium;
        					font-weight: 500;
        					color: #909399;
        				}
        			}
    				.class-hygiene{
    					.contentText{
    						font-size: 24rpx;
    						font-family: PingFang SC Medium, PingFang SC Medium-Medium;
    						font-weight: 500;
    						color: #909399;
    					}
    				}
        		}
        	}
    		&:last-child .line-line{
    			border: none !important;
    		}
        }
    
    </style>
    

    作者:流年少年
    出处:https://www.cnblogs.com/ishoulgodo/

    想问问题,打赏了卑微的博主,求求你备注一下的扣扣或者微信;这样我好联系你;(っ•̀ω•́)っ✎⁾⁾!

    如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个“推荐”哦,或者关注博主,在此感谢!

    万水千山总是情,打赏5毛买辣条行不行,所以如果你心情还比较高兴,也是可以扫码打赏博主(っ•̀ω•́)っ✎⁾⁾!

    想问问题,打赏了卑微的博主,求求你备注一下的扣扣或者微信;这样我好联系你;(っ•̀ω•́)っ✎⁾⁾!

    支付宝
    微信
    本文版权归作者所有,欢迎转载,未经作者同意须保留此段声明,在文章页面明显位置给出原文连接
    如果文中有什么错误,欢迎指出。以免更多的人被误导。
  • 相关阅读:
    Hadoop及HIVE学习宝典收集
    【iOS知识学习】_int、NSInteger、NSUInteger、NSNumber的差别和联系
    mysql 连接慢的问题
    CF704D Captain America
    常用流
    流的概念及基本分类
    是否可从一个static方法内发出对非static方法的调用?
    hashCode方法的作用?
    ClassLoader如何加载class?
    class.forName的作用?
  • 原文地址:https://www.cnblogs.com/ishoulgodo/p/15012209.html
Copyright © 2020-2023  润新知