<view wx:if="{{ is_new }}">
  <form bindsubmit="formSubmit">
    <view wx:for="{{ teachers }}" wx:for-item="out_item">
      <zan-panel title='课程名称：{{ course_name }}\n讲师姓名：{{ out_item.name }}'>
        <view>
          <view wx:for="{{ titles }}">
            <zan-cell title="{{ item.name }}">
              <zan-field placeholder="（满分10）" inputType="number" name="data[{{ out_item.id }}][{{ item.id }}]">
              </zan-field>
            </zan-cell>
          </view>
        </view>
      </zan-panel>
    </view>
    <zan-button-group>
      <!-- <zan-button type="primary" bindtap="onSubmit">提交</zan-button> -->
      <button formType="submit" type='primary' class='submit-btn'>提交</button>
    </zan-button-group>
  </form>
</view>
<view wx:else>
  <view wx:for="{{ teachers }}">
    <view class='remark-box'>
      <view class='remark-header'>
        <view class='remark-title'>讲师姓名：{{ item.name }}<text class='remark-date'>{{ item.remark_time }}</text></view>
      </view>
      <view class='remark-body'>
        <view class='remark-score-item'>平均分<text class='remark-score'>{{ item.average_score }}分</text>
        </view>
      </view>
    </view>
  </view>
</view>