当前位置:网站首页>Applet: traverse the value of an array in the list, which is equivalent to for= "list" list An item in comment
Applet: traverse the value of an array in the list, which is equivalent to for= "list" list An item in comment
2022-06-28 08:45:00 【Description. A cow】
// The outermost layer is : wx:for="{
{list}}" His item There is wx:for="{
{item.commentList}}" , To traverse the item.commentList Of index, Method :wx:for="{
{item.commentList}}" wx:for-item="val" wx:for-index="i" wx:key="i"
<view class="content_box_item content_box_item1" style="margin-top: {
{margintop}}rpx;{
{list.length==index+1?'margin-bottom:0px;':'margin-bottom:'+ marginbottom+ 'rpx;'}}" wx:key="index" wx:for="{
{list}}" catchtap="toOrderDetail" data-showStatus="{
{item.showStatus}}" data-category="{
{item.category}}" data-id="{
{item.id}}" data-directOrder="{
{item.directOrder}}" data-status="{
{item.status}}" data-index="{
{index}}" data-fgr="fgrtype">
<view class="usercontentbox" wx:for="{
{item.commentList}}" wx:for-item="val" wx:for-index="i" wx:key="i" wx:if="{
{i<=2}}">
<view class="userconntenname downstairbox">
<view class="downstairbox1">
<block wx:if="{
{val.hotComment}}">
<image src="https://zhili-resource.oss-cn-shenzhen.aliyuncs.com/static/DRminapp/hotgif.gif" lazy-load="true" class="hotgif" alt=""/>
</block>
<view class="downstair2" style="margin-right:{
{item.user.id==val.user.id?48:0}}rpx;color:#1152B5">
<text>{
{
val.anonymousNickName || val.user.anonymousNickName|| val.user.nickName}}</text>
<text class="downstair" wx:if="{
{item.user.id==val.user.id}}"> Landlord </text>
</view>
<text style="margin-left:10rpx">:</text>
{
{
val.content}}
<view class="pic_text" wx:if="{
{val.imgUrl}}" src="{
{val.imgUrl}}" data-src="{
{val.imgUrl}}">
<image lazy-load="true" src="http://zhili-resource.oss-cn-shenzhen.aliyuncs.com/static/DRminapp/mall/headline/icon_upload_pic_small%402x.png" class="commend_icon" />
view picture
</view>
</view>
边栏推荐
- 使用transform:scale之后导致页面鼠标悬浮事件消失
- FatMouse and Cheese
- How to solve the problem of high concurrency and seckill
- CloudCompare&PCL 点云裁剪(基于封闭曲面或多边形)
- The Falling Leaves
- 用Pytorch搭建第一个神经网络且进行优化
- 【力扣10天SQL入门】Day5+6 合并表
- Discussion on safety management of centralized maintenance construction site of substation under the mode of operation and maintenance
- Anniversary party
- Case tool
猜你喜欢

Almost Union-Find(带权并查集)

WasmEdge 0.10.0 发布!全新的插件扩展机制、Socket API 增强、LLVM 14 支持

DB

MATLAB小技巧(20)矩阵分析--主成分回归

【大案例】学成在线网站

Protection range and optimization of motor protector for hoist equipment

Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.

Redis02 -- an operation command of five data types for ending redis (it can be learned, reviewed, interviewed and collected for backup)

AWS builds a virtual infrastructure including servers and networks (2)
![[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service](/img/19/296f124becb87461accf8b73b0a8bc.png)
[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service
随机推荐
Understanding of CUDA, cudnn and tensorrt
[go ~ 0 to 1] on the first day, June 24, variables, conditional judgment cycle statement
TCP
FFMpeg (一) av_register_all()
Operating principle of Rogowski coil
MySQL8.0 忘记 root 密码
Discussion on the improvement and application of the prepayment system in the management of electricity charge and price
整数划分
Redis02 -- an operation command of five data types for ending redis (it can be learned, reviewed, interviewed and collected for backup)
centos mysql5.5配置文件在哪
How to suppress SiC MOSFET crosstalk?
AWS builds a virtual infrastructure including servers and networks (2)
Anniversary party
状态机程序框架
Ffmpeg (I) AV_ register_ all()
[learning notes] simulation
Robot Rapping Results Report
Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.
AVFrame内存管理api
网上炒股开户安不安全?