当前位置: 首页 > news >正文

前端速查速记系列----评论列表

小程序评论列表

效果图

在这里插入图片描述

wxml代码

<view id="econtent"><block wx:for="{{commentlist}}" wx:for-item="item" wx:for-index="index" wx:key="{{item.id}}"><view class="box1"><view class="box1_6"><image src="图片地址" class="header_img" mode="" /></view><view class="box1_7"><view class="box1_1"><view class="box1_3"><view class="box1_3_1 fontw600">{{item.name}}</view><view class="box1_3_2 c91">{{tools.format(item.addtime,'YY-MM-DD')}}</view></view><view><block wx:for="{{5}}" wx:for-item="itn"><image wx:if="{{itn<item.star1}}" src="星星图片地址" class="star" mode="" /><image wx:else src="图片地址" class="star" mode="" /></block></view></view><view class="box1_4"><view>{{item.text}}</view><view class="box1_5"><block wx:for="{{item.chlist}}" wx:for-item="cit" wx:for-index="cin" wx:key="{{cit.id}}"><video wx:if="{{cit.type==2}}" src="图片地址" bindtap="checkmap" data-nid="{{cin}}" data-id="{{index}}" data-url="图片地址" /><image wx:else src="图片地址" bindtap="checkmap" data-nid="{{cin}}" data-id="{{index}}" data-url="图片地址" /></block></view></view></view></view></block></view>

wxss代码

.box1 {width: 100%;height: auto;margin-top: 30rpx;padding-bottom: 10rpx;position: relative;
}
.box1_6 {width: 20%;height: auto;float: left;position: relative;
}
.header_img {width: 100rpx;height: 100rpx;object-fit: cover;border-radius: 55%;margin-left: 8%;
}
.box1_7 {position: relative;width: 80%;height: auto;margin-left: 0;display: inline-block;
}
.box1_1 {position: relative;width: 100%;height: 100rpx;
}
.box1_3 {width: 100%;height: 50rpx;
}
.box1_3_1 {width: 50%;height: auto;float: left;
}
.fontw600 {font-weight: 700;
}
.box1_3_2 {width: 40%;height: 100%;float: right;text-align: right;
}
.c91 {color: #919191;
}
.star {width: 20rpx;height: 20rpx;
}
.box1_4 {position: relative;width: 100%;margin-right: 0;
}
.box1_5 {position: relative;margin-top: 10rpx;
}
.box1_5 image {width: 100rpx;height: 100rpx;margin-right: 8rpx;margin-top: 5rpx;
}
.box1_5 video {width: 100rpx;height: 100rpx;margin-right: 8rpx;margin-top: 5rpx;
}
http://www.lryc.cn/news/143956.html

相关文章:

  • hiredis的安装与使用
  • 【InsCode】InsCode打造的JavaSE与Linux命令互融的伪Linux文件系统小项目
  • “深入解析JVM:探索Java虚拟机的内部机制“
  • 内网远程控制总结
  • Excel显示此值与此单元格定义的数据验证限制不匹配怎么办?
  • mysql(八)事务隔离级别及加锁流程详解
  • 华为云Stack的学习(二)
  • 好用的网页制作工具就是这6个,快点来看!
  • 一文讲通物联网嵌入式
  • Unity3D Pico VR 手势识别 二
  • ubuntu中使用iptables限制端口
  • Orchestrator介绍二 自身高可用性方案
  • 成集云 | 旺店通多包裹数据同步钉钉 | 解决方案
  • 什么是字体图标(Icon Font)?如何在网页中使用字体图标?
  • Blender文件云端GPU渲染
  • C++——引用
  • Flask入门一 ——虚拟环境及Flask安装
  • 接口测试json入参,不同类型参数格式书写
  • go web框架 gin-gonic源码解读03————middleware
  • win10电脑记事本在哪里?电脑记事本如何查看字数?
  • 【微服务】06-安全问题
  • js的this指向问题
  • Redis常用数据类型及命令
  • 软件工程(六) 面向对象分析(OOA)之UML图特点
  • QT 消息对话框按钮显示
  • 平衡二叉树及其应用详解
  • vue3+ ts ts语法在script写不知道为啥一直报错
  • c#写的端口监听,程序退出后,再次运行提示端口占用,且进程不存在
  • 跨域案例go gf ,请求代理,前端请求后端A转发给多个后端B
  • 9.4 集成功率放大电路