| xqd
@@ -1,18 +1,37 @@
|
|
|
-<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.0)" type="digit" name="data[{{ out_item.id }}][{{ item.id }}]">
|
|
|
- </zan-field>
|
|
|
- </zan-cell>
|
|
|
+<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.0)" type="digit" 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'>课程名称:{{ course_name }}</view>
|
|
|
+ <view class='remark-title'>讲师姓名:{{ item.name }}</view>
|
|
|
</view>
|
|
|
- </zan-panel>
|
|
|
+ <view class='remark-body'>
|
|
|
+ <view class='remark-date'>{{ item.remark_date }}</view>
|
|
|
+ <view class='remark-score-item'>
|
|
|
+ 平均分
|
|
|
+ <view class='remark-score'>{{ item.average_score }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</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>
|