{{#each colors}} <ul class="size{{#unless focus}} hide{{/unless}}"> {{#each size}} <li class="{{#unless num}}disable{{/unless}}{{#if focus}}focus{{/if}}" data-sku="{{sku}}" data-num="{{num}}" data-name="{{name}}" data-title="{{title}}">{{name}}</li> {{/each}} <span class="size-warn warn-tip hide"> <i class="iconfont"></i> 请选择尺码 </span> </ul> {{/each}}