小程序
小游戏
企业微信
微信支付
扫描小程序码分享
一模一样得取值方式 ,值不一样吗,还是在这里写的不更新?如何解决?
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
<
view
class
=
"item"
wx:for
"{{itemLists}}"
wx:key
"x"
data-itemCd
"{{itemLists[index][1].value}}"
data-barcode
"{{itemLists[index][5].value}}"
wx:for-index
"index"
data-name
"明细跳转"
bindtap
'chooseOneItem'
style
'background-image: url("{{watermark}}")'
>
"img"
image
src
'{{itemLists[index][1].imgUrl}}'
mode
"aspectFit"
binderror
'imageError'
data-index
"{{index}}"
></
</
"itemData"
data-a
"name"
>{{itemLists[index][0].value}}</
"itemPrice"
"code"
>{{itemLists[index][1].value}}======{{itemLists[index][1].value}}</
"{{itemLists[index][4].value =='-'}}"
'priceView'
wx:if
"{{itemLists[index][4].value !='-'}}"
text
'newSalePirce'
>{{itemLists[index][4].value}}</
'orderPirce'
>{{itemLists[index][2].value==null?'':itemLists[index][2].value}}</
'unitRight'
>元/{{itemLists[index][3].value}}</
wx:else>
'pirceLeft'
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
要实现什么?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
<
view
class
=
"item"
wx:for
=
"{{itemLists}}"
wx:key
=
"x"
data-itemCd
=
"{{itemLists[index][1].value}}"
data-barcode
=
"{{itemLists[index][5].value}}"
wx:for-index
=
"index"
data-name
=
"明细跳转"
bindtap
=
'chooseOneItem'
style
=
'background-image: url("{{watermark}}")'
>
<
view
class
=
"img"
>
<
image
src
=
'{{itemLists[index][1].imgUrl}}'
mode
=
"aspectFit"
binderror
=
'imageError'
data-index
=
"{{index}}"
></
image
>
</
view
>
<
view
class
=
"itemData"
data-a
=
"{{itemLists[index][1].value}}"
>
<
view
class
=
"name"
>{{itemLists[index][0].value}}</
view
>
<
view
class
=
"itemPrice"
>
<
view
class
=
"code"
>{{itemLists[index][1].value}}======{{itemLists[index][1].value}}</
view
>
<
view
data-a
=
"{{itemLists[index][4].value =='-'}}"
class
=
'priceView'
wx:if
=
"{{itemLists[index][4].value !='-'}}"
>
<
text
class
=
'newSalePirce'
>{{itemLists[index][4].value}}</
text
>
<
text
class
=
'orderPirce'
>{{itemLists[index][2].value==null?'':itemLists[index][2].value}}</
text
>
<
text
class
=
'unitRight'
>元/{{itemLists[index][3].value}}</
text
>
</
view
>
<
view
data-a
=
"{{itemLists[index][4].value =='-'}}"
class
=
'priceView'
wx:else>
<
text
class
=
'pirceLeft'
>{{itemLists[index][2].value==null?'':itemLists[index][2].value}}</
text
>
<
text
class
=
'unitRight'
>元/{{itemLists[index][3].value}}</
text
>
</
view
>
</
view
>
要实现什么?