这个是微信小程序的框架,TouchUI,做页面查询数据是list的对象,但是要用栅格每行显示两条数据
<
ui-row
wx:for=
"{{
resumeCoverImg
}}"
wx:key=
"unique"
class=
"resumeCoverImg"
>
<
ui-col
span=
"6"
vertical-align=
"middle"
align=
"center"
>
<
image
src=
"{{
item
.
src
}}"
data-src=
"{{
item
.
src
}}"
style=
"width:100px;height:100px;"
bindtap=
"previewImage"
></
image
>
<
view
class=
"p"
>{{
item.
title}}
</
view
>
</
ui-col
>
</
ui-row
>
添加属性:
.resumeCoverImg{
display:
inline;
}
按照每行是12个栅格,每行显示两条数据即:
span="6"