| | |
| | | <view |
| | | class="container" |
| | | style="height:calc(100vh + {{keyboardHeight ? (keyboardHeight + 'px'):'0'}});padding-bottom:calc(180rpx+ {{keyboardHeight ? 120 + 'px':0}})" |
| | | > |
| | | <t-tabs |
| | | t-class="t-tabs" |
| | | defaultValue="{{active}}" |
| | | split="{{false}}" |
| | | bind:change="tabClick" |
| | | show-bottom-line="false" |
| | | > |
| | | <view class="container" style="height:calc(100vh + {{keyboardHeight ? (keyboardHeight + 'px'):'0'}});padding-bottom:calc(180rpx+ {{keyboardHeight ? 120 + 'px':0}})"> |
| | | <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabClick" show-bottom-line="false"> |
| | | <t-tab-panel label="纸质样书" value="0" /> |
| | | <t-tab-panel label="电子样书" value="1" /> |
| | | </t-tabs> |
| | |
| | | </view> |
| | | <view class="bookList"> |
| | | <view wx:if="{{bookList.length > 0}}"> |
| | | <view |
| | | wx:for="{{bookList}}" |
| | | wx:for-item="item" |
| | | wx:for-index="index" |
| | | wx:key="index" |
| | | class="textbooksItemBox" |
| | | > |
| | | <view wx:for="{{bookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="textbooksItemBox"> |
| | | <t-swipe-cell> |
| | | <t-cell title="左滑单操作" note="辅助信息" bordered="{{false}}"> |
| | | <view class="listItem flex"> |
| | | <view class="specialSubject-img"> |
| | | <image |
| | | src="{{item.icon}}" |
| | | mode="aspectFill" |
| | | class="img" |
| | | wx:if="{{item.icon}}" |
| | | /> |
| | | <image |
| | | src="/static/images/default-book-img.png" |
| | | mode="aspectFill" |
| | | class="img" |
| | | wx:else="" |
| | | /> |
| | | <image src="{{item.icon}}" mode="aspectFill" class="img" wx:if="{{item.icon}}" /> |
| | | <image src="/static/images/default-book-img.png" mode="aspectFill" class="img" wx:else="" /> |
| | | </view> |
| | | <view class="body-info"> |
| | | <view class="name">{{item.title}}</view> |
| | | <view class="author">作者:{{item.author}}</view> |
| | | <view class="author">ISBN:{{item.isbn}}</view> |
| | | <view class="author" wx:if="{{item.publicationDate}}" |
| | | >出版时间:{{item.publicationDate}}</view |
| | | > |
| | | <view class="author" wx:if="{{item.publicationDate}}">出版时间:{{item.publicationDate}}</view> |
| | | </view> |
| | | </view> |
| | | </t-cell> |
| | | <view |
| | | slot="right" |
| | | class="btn delete-btn" |
| | | bind:tap="onDelete" |
| | | data-book="{{item}}" |
| | | >删除</view |
| | | > |
| | | <view slot="right" class="btn delete-btn" bind:tap="onDelete" data-book="{{item}}">删除</view> |
| | | </t-swipe-cell> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="title" wx:if="{{active =='0'}}"> 收货人情况 </view> |
| | | <view class="receiverInfo" wx:if="{{active =='0'}}"> |
| | | <view class="item form-input-1"> |
| | | <text class="label">姓名:</text> |
| | | <text class="label"><text class="icon">*</text>姓名:</text> |
| | | <view class="item-content"> |
| | | <t-input |
| | | placeholder="请输入真实姓名" |
| | | borderless |
| | | value="{{contactInfo.fullName}}" |
| | | bindchange="onFullNameInput" |
| | | adjust-position="{{isIos?false:true}}" |
| | | bindkeyboardheightchange="bindkeyboardheightchange" |
| | | bindblur="changeParam" |
| | | data-class="form-input-1" |
| | | /> |
| | | <t-input placeholder="请输入真实姓名" borderless value="{{contactInfo.fullName}}" bindchange="onFullNameInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-1" /> |
| | | </view> |
| | | </view> |
| | | <view class="item form-input-2"> |
| | | <text class="label">联系电话:</text> |
| | | <text class="label"><text class="icon">*</text>联系电话:</text> |
| | | <view class="item-content"> |
| | | <t-input |
| | | placeholder="输入联系电话" |
| | | borderless |
| | | value="{{contactInfo.phone}}" |
| | | type="number" |
| | | tips="{{phoneError ? '手机号输入不正确' : ''}}" |
| | | bindchange="onPhoneInput" |
| | | adjust-position="{{isIos?false:true}}" |
| | | bindkeyboardheightchange="bindkeyboardheightchange" |
| | | bindblur="changeParam" |
| | | data-class="form-input-2" |
| | | /> |
| | | <t-input placeholder="输入联系电话" borderless value="{{contactInfo.phone}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-2" /> |
| | | </view> |
| | | </view> |
| | | <view class="item form-input-3"> |
| | | <text class="label">详细地址:</text> |
| | | <text class="label"><text class="icon">*</text>详细地址:</text> |
| | | <view class="item-content"> |
| | | <t-input |
| | | placeholder="请输入详细地址" |
| | | borderless |
| | | value="{{contactInfo.detailedAddress}}" |
| | | bindchange="onAddressInput" |
| | | adjust-position="{{isIos?false:true}}" |
| | | bindkeyboardheightchange="bindkeyboardheightchange" |
| | | bindblur="changeParam" |
| | | data-class="form-input-3" |
| | | /> |
| | | <t-input placeholder="请输入详细地址" borderless value="{{contactInfo.detailedAddress}}" bindchange="onAddressInput" adjust-position="{{isIos?false:true}}" bindkeyboardheightchange="bindkeyboardheightchange" bindblur="changeParam" data-class="form-input-3" /> |
| | | </view> |
| | | </view> |
| | | </view> |