当前位置:网站首页>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>
边栏推荐
- containerd1.5.5的安装
- 罗氏线圈工作原理
- Build the first neural network with pytoch and optimize it
- Map. ToCharArray( ),Map. getOrDefault(). Map. charAt()
- break database---mysql
- Where is CentOS mysql5.5 configuration file
- nuxt3入门
- [cloud native | kubernetes] in depth understanding of pod (VI)
- 找合适的PMP机构只需2步搞定,一查二问
- Force buckle 1884 Egg drop - two eggs
猜你喜欢

The 6th smart home Asia 2022 will be held in Shanghai in October

第六届智能家居亚洲峰会暨精品展(Smart Home Asia 2022)将于10月在沪召开

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

Privacy computing fat----- offline prediction

AWS saves data on the cloud (3)

找合适的PMP机构只需2步搞定,一查二问

Kali Notes(1)

Infinite penetration test
![[learning notes] matroid](/img/e3/4e003f5d89752306ea901c70230deb.png)
[learning notes] matroid
![[untitled]](/img/bb/213f213c695795daecb81a4cf2adcd.jpg)
[untitled]
随机推荐
Cloudcompare & PCL point cloud clipping (based on closed surfaces or polygons)
Characteristics and prevention of electrical fire
[learning notes] simulation
抖音服務器帶寬有多大,才能供上億人同時刷?
[learning notes] search
Fire safety hazards
【转载】STM32 GPIO类型
[learning notes] linear basis
Copy & Deepcopy
为什么函数模板没有偏特化?
[learning notes] differential constraint
Discussion on safety management of centralized maintenance construction site of substation under the mode of operation and maintenance
A - deep sea exploration
[go ~ 0 to 1] the third day June 27 slice, map and function
Almost Union-Find(带权并查集)
Super Jumping! Jumping! Jumping!
【云原生 | Kubernetes篇】深入了解Pod(六)
Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.
【无标题】
TCP那点事