12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!--templates/knowledge/knowledge.wxml-->
- <template name="knowledge">
- <view class="model-container">
- <view class="model-wrapper">
- <view class="model-items">
- <view class="model-item" wx:for="{{konwHowList}}" wx:key="item.name">
- <view class="model-item-title model-item-row" data-index="{{index}}" bindtap="modelToggleItemCtl">
- <view class="model-item-label">{{index + 1 + '、' + item.name}}</view>
- <view class="model-item-arrow {{item.howActive == 'active' ? 'arrow-top' : ''}}">
- <image src="../../assets/arrow_gray.png"></image>
- </view>
- </view>
- <view class="model-list" wx:if="{{item.howActive == 'active'}}">
- <view class="model-li" wx:for="{{item.howDetailsList}}" wx:for-item="val" wx:for-index="key" wx:key="{{key}}">
- <view class="model-li-title" data-index="{{index}}" data-key="{{key}}" bindtap="modelToggleLiCtl">
- <image class="model-li-image" src="{{val.howActive == 'active' ? '../../assets/check.png' : '../../assets/check_gray.png'}}"></image>
- <text class="model-li-text {{val.howActive == 'active' ? 'li-text-active' : ''}}">{{val.name}}</text>
- </view>
- <!-- <view class="model-li-content" wx:if="{{val.howActive == 'active'}}">
- <input class="textarea" placeholder="请输入您的内容" placeholder-class="textarea-placeholder" value="{{val.howName}}" data-index="{{index}}" data-key="{{key}}" bindinput="modelReasonInput"></input>
- <view class="model-li-content-label">上传错题记录</view>
- <view class="model-li-content-button" data-index="{{index}}" data-key="{{key}}" bindtap="modelUploadFile">
- <image src="../../assets/add.png"></image>
- <text>添加错题照片</text>
- </view>
- <view class="model-li-content-images" wx:if="{{val.imgList.length > 0}}">
- <view class="model-li-content-images-item" wx:for="{{val.imgList}}" wx:for-item="i" wx:for-index="j" wx:key="{{i}}">
- <image mode="aspectFill" data-images="{{val.imgList}}" data-index="{{j}}" data-baseurl="{{baseImgUrl}}" bindtap="viewImageCtl" src="{{baseImgUrl + i.img}}"></image>
- <view class="model-li-content-images-del" data-index="{{index}}" data-key="{{key}}" data-j="{{j}}" bindtap="modelImgDelCtl">+</view>
- </view>
- </view>
- </view> -->
- </view>
- </view>
- </view>
- </view>
- <view class="model-more-container" wx:if="{{isShowModelMore}}" bindtap="modeLoadAllCtl">
- <view class="model-more-button">
- <image src="../../assets/reload.png"></image>
- <text>加载全部知识点</text>
- </view>
- </view>
- </view>
- <view class="model-footer">
- <view class="model-footer-item model-footer-item-white" bindtap="modelCancelKnowledgeCtl">取消</view>
- <view class="model-footer-item" bindtap="modelSaveKnowledgeCtl">确定</view>
- </view>
- </view>
- </template>
|