| | |
| | | <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> |
| | | <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> |
| | | <!-- </t-radio-group> --> |
| | | |
| | | </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> |
| | | </view> |
| | | </t-popup> |
| | | </t-popup> |
| | | </view> |
| | | |