当前位置:网站首页>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>
边栏推荐
猜你喜欢
Application of current limiting protector in preventing electrical fire in shopping malls
MySQL8.0 忘记 root 密码
Build the first neural network with pytoch and optimize it
Application of energy management system in iron and steel enterprises
隐私计算FATE-----离线预测
Solution: selenium common. exceptions. WebDriverException: Message: ‘chromedriver‘ execu
Idea related issues
DB
电子元器件销售ERP管理系统哪个比较好?
Dell r730 server startup error: [xxx] USB 1-1-port4: disabled by hub (EMI?), re-enabling...
随机推荐
[.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
WasmEdge 0.10.0 发布!全新的插件扩展机制、Socket API 增强、LLVM 14 支持
Preparation for Oracle 11g RAC deployment on centos7
[learning notes] search
Power data
40多岁的人如何配置年金险?哪款产品比较合适?
Kali Notes(1)
Tree
[learning notes] differential constraint
整数划分
Almost Union-Find(带权并查集)
Quelle est la largeur de bande du serveur de bavardage sonore pour des centaines de millions de personnes en même temps?
Three body attack (three-dimensional split plus two points)
Dell r730 server startup error: [xxx] USB 1-1-port4: disabled by hub (EMI?), re-enabling...
[untitled]
抖音服务器带宽有多大,才能供上亿人同时刷?
Not so Mobile
如何抑制SiC MOSFET Crosstalk(串擾)?
【无标题】
[go ~ 0 to 1] on the first day, June 24, variables, conditional judgment cycle statement