| | |
| | | <view class="courseId"> |
| | | <text>ID: {{item.id}}</text> |
| | | <t-tag class="margin-16" wx:if="{{item.applyState == 'WaitAudit'}}" variant="light" theme="warning">审核中</t-tag> |
| | | <t-tag class="margin-16" wx:if="{{item.applyState == 'Reject'}}" variant="light" theme="danger">未通过</t-tag> |
| | | <view wx:if="{{item.applyState == 'Reject'}}"> |
| | | <t-tag class="margin-16" variant="light" theme="danger">未通过</t-tag> |
| | | <t-tag bindtap="replayCourse" data-item="{{item}}" class="margin-16 replay" theme="danger">重新申请</t-tag> |
| | | </view> |
| | | <t-tag class="margin-16" wx:if="{{item.applyState == 'Normal'}}" variant="light" theme="success">使用中</t-tag> |
| | | </view> |
| | | <view wx:if="{{item.applyState == 'Reject'}}" class="reason">拒绝原因: {{item.reason}}</view> |
| | |
| | | <view class="selectBox"> |
| | | <text>选择教材</text> |
| | | <t-button style="margin: 0;" bindtap="selectedBook" icon="add" content="选择教材" size="extra-small"></t-button> |
| | | <t-popup visible="{{visibleCart}}" style="top: 0;" usingCustomNavbar show-overlay="{{true}}" placement="right"> |
| | | <view class="cartTilte"> |
| | | <text class="cartText">选择教材</text> |
| | | <t-search value="{{selectName}}" bind:clear="changeHandleBook" bind:submit="changeHandleBook" placeholder="搜索教材名称" clearable /> |
| | | </view> |
| | | <view class="cartBox"> |
| | | <view class="cartList" wx:if="{{cartList.length > 0}}"> |
| | | <t-radio-group t-class="theme-card" value="{{radioVal}}" allow-uncheck bind:change="onChange"> |
| | | <view wx:for="{{cartList}}" wx:key="index" class="card {{radioVal == index ? 'card--active' : ''}}"> |
| | | <t-icon wx:if="{{radioVal == index}}" name="check" t-class="card__icon" /> |
| | | <t-radio value="{{index}}" label="{{item.product.name}}" icon="none" borderless> |
| | | <view class="radioCon" slot='content'> |
| | | <image wx:if="{{item.icon}}" class="radioIcon" src="{{item.icon}}" mode="widthFix" /> |
| | | <image wx:else class="radioIcon" src="/static/images/default-book-img.png" mode="widthFix" /> |
| | | </view> |
| | | </t-radio> |
| | | </view> |
| | | </t-radio-group> |
| | | </view> |
| | | <view wx:else> |
| | | <empty /> |
| | | </view> |
| | | </view> |
| | | <view class="radioSubmit"> |
| | | <t-button style="margin: 0;" size="extra-small" bindtap="radioCancle" variant="outline">关闭</t-button> |
| | | <t-button style="margin: 0 16px;" size="extra-small" bindtap="radioSubmit">确认</t-button> |
| | | </view> |
| | | </t-popup> |
| | | </view> |
| | | <view class="selectedBook"> |
| | | <view class="selectTitle">已选教材</view> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="courseSubmit"> |
| | | <t-button style="margin: 0 15px;" size="small" bindtap="cancle" variant="outline">取消</t-button> |
| | | <t-button style="margin: 0;" size="small" bindtap="submitCourse">确认</t-button> |
| | | <t-button style="padding:0 25px;margin: 0 15px;" size="small" bindtap="cancle" variant="outline">取消</t-button> |
| | | <t-button style="padding:0 25px;margin: 0;" size="small" bindtap="submitCourse">确认</t-button> |
| | | </view> |
| | | </view> |
| | | <view class="block" wx:if="{{pageBook.loading}}"> |
| | |
| | | </view> |
| | | </view> |
| | | <t-toast id="t-toast" /> |
| | | <t-popup visible="{{visibleCart}}" style="top: 0;" usingCustomNavbar placement="right"> |
| | | <view class="wall"> |
| | | <view class="cartTilte"> |
| | | <text class="cartText">选择教材</text> |
| | | <t-search value="{{selectName}}" bind:clear="changeHandleBook" bind:submit="changeHandleBook" placeholder="搜索教材名称" clearable /> |
| | | </view> |
| | | <view class="cartBox"> |
| | | <view class="cartList" wx:if="{{cartList.length > 0}}"> |
| | | <scroll-view class="scroll" class="content" scroll-y bindrefresherpulling="{{refresh.onPulling}}"> |
| | | <view wx:for="{{cartList}}" bindtap="onChange" data-index="{{index}}" wx:key="index" class="card {{radioVal == index ? 'card--active' : ''}}"> |
| | | <t-icon wx:if="{{radioVal == index}}" name="check" t-class="card__icon" /> |
| | | <t-radio value="{{index}}" label="{{item.product.name}}" icon="none" borderless> |
| | | <view class="radioCon" slot='content'> |
| | | <image wx:if="{{item.icon}}" class="radioIcon" src="{{item.icon}}" mode="aspectFit" /> |
| | | <image wx:else class="radioIcon" src="/static/images/default-book-img.png" mode="aspectFit" /> |
| | | </view> |
| | | </t-radio> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <view wx:else> |
| | | <empty /> |
| | | </view> |
| | | </view> |
| | | <view class="radioSubmit"> |
| | | <t-button style="padding:0 25px;margin: 0;" size="extra-small" bindtap="radioCancle" variant="outline">关闭</t-button> |
| | | <t-button style=" padding:0 25px;margin: 0 16px;" size="extra-small" bindtap="radioSubmit">确认</t-button> |
| | | </view> |
| | | </view> |
| | | </t-popup> |
| | | </t-popup> |
| | | </view> |
| | | |