1.

示例:

!--评分--viewclass'rowlove'blockwx:for"{{[1,2,3,4,5]}}"imagedata-index'{{index}}'src"{{clickindex?'../img/kps_03.png':'../img/kps_un03.png'}}"bindtap'select'/image/block/view2.

js

data:{click:0,//默认一星},select:function(e){console.log(e.currentTarget.dataset.index);varthatthis;varindexe.currentTarget.dataset.index;that.setData({click:index})},

TAG标签: 微信小程序打分微信现场打分系统微信现场打分小程序

http://www.xiaochengxub.com/read-96364.html