wxml代码
<
view
class=
"product-list">
<!--条件选择-->
<
view
class=
"choice-bar">
<
view
bindtap=
"opens"
data-item=
"1"
class=
"chioce-item"
hover-class=
"click-once-opaque">{
{start}}
<
image
class=
"icon-chioce"
src=
"{
{!isstart?openimg: offimg}}"></
image
>
</
view
>
<
view
bindtap=
"opens"
data-item=
"2"
class=
"chioce-item"
hover-class=
"click-once-opaque">{
{finish}}
<
image
class=
"icon-chioce"
src=
"{
{!isfinish?openimg:offimg}}"></
image
>
</
view
>
<
view
bindtap=
"opens"
data-item=
"3"
class=
"chioce-item"
hover-class=
"click-once-opaque">{
{dates}}
<
image
class=
"icon-chioce"
src=
"{
{!isdates?openimg:offimg}}"></
image
>
</
view
>
<
view
class=
"sorting-list{
{!isstart?' chioce-list-hide':' chioce-list-show'}}">
<
view
wx:for=
"{
{slist}}"
catchtap=
"onclicks1"
data-index=