```html
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active"
wx:for="{{panelList}}" wx:for-index="idx" wx:key="idx">
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
<image class="weui-media-box__thumb" src="{{item.imgUrl}}" />
view>
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title">
<view class="title-txt">{{item.name}}view>
<view class="status online" wx:if="{{item.state.length > 0}}">{{item.state}}view>
{{item.star}}
<template is="star" data="{{item.star}}">template>
view>
<view class="weui-media-box__desc">{{item.info}}view>
view>
view>
```
为什么不能这样传递呢?
网友回复:
昨晚的纠结点,今天请教了下别人问题解决了
正确用法:
1 模板传参 先赋值
2 模板处理