<!-- 拼接服务项目dom -->
<script type="text/template" id="productOptions">
{{each options value index}}
<div>{{value.name}}</div>
{{/each}}
</script>
<script>
$(function () {
var pageData={
serviceName:"康美家",
orderId:"KMJ2019091700002",
imgUrl:"http://resource.qxdaojia.com/home/recommend1.png",
options:[
{
name:"家电蒸汽洗·套餐J2",
haveProductSelect:true,
productSelection:[
"微波炉清洗","饮水机清洗","空气净化器","40升以下烤箱清洗","40升以上烤箱清洗","油烟机蒸汽洗(送燃气灶清洗)","洗衣机清洗",
"空调挂机清洗","空调柜机清洗","家用中央空调出风口","三门及以下冰箱深度蒸汽洗","对开门冰箱深度蒸汽洗","四门冰箱深度蒸汽洗",
"五门及以上冰箱深度蒸汽洗"
],
selectionNum:8,
},
{name:"精细擦窗 2居室 90㎡",haveProductSelect:false,},
{name:"窗帘蒸汽挂洗 2居室 90㎡",haveProductSelect:false,},
{name:"皮沙发养护 6座",haveProductSelect:false,}
],
}
var html=template("productOptions",pageData);
$(".options").html(html);
});
</script>