From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 23 十二月 2024 14:58:49 +0800 Subject: [PATCH] 111 --- packageDomain/pages/sampleBookList/applicationForm/index.wxml | 204 +++++++++++++++++++++++++++++++++------------------ 1 files changed, 132 insertions(+), 72 deletions(-) diff --git a/packageDomain/pages/sampleBookList/applicationForm/index.wxml b/packageDomain/pages/sampleBookList/applicationForm/index.wxml index c6ea8b8..7b74f1a 100644 --- a/packageDomain/pages/sampleBookList/applicationForm/index.wxml +++ b/packageDomain/pages/sampleBookList/applicationForm/index.wxml @@ -1,81 +1,141 @@ -<view class="page-header"> - <t-tabs t-class="t-tabs" defaultValue="{{active}}" split="{{false}}" bind:change="tabClick"> +<view class="container"> +<view class="tab"> + <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="page-content"> - <view class="bookListBox"> - <view class="tips"> - <rich-text space="emsp" nodes="{{description}}" class="content" /> - </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"> - <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="" /> - </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">鍑虹増鏃堕棿:{{item.publicationDate}}</view> - </view> +<view class="content"> +<view class="bookListBox"> + <view class="tips"> + <rich-text space="emsp" nodes="{{description}}" /> + </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" + > + <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="" + /> </view> - </t-cell> - <view slot="right" class="btn delete-btn" bind:tap="onDelete" data-book="{{item}}">鍒犻櫎</view> - </t-swipe-cell> - </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> + </view> + </t-cell> + <view + slot="right" + class="btn delete-btn" + bind:tap="onDelete" + data-book="{{item}}" + >鍒犻櫎</view + > + </t-swipe-cell> </view> - <view wx:if="{{bookList.length == 0}}" class="empyt"> - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + </view> + <view wx:if="{{bookList.length == 0}}" class="empyt"> + <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> + <empty /> + </view> + </view> +</view> +<view class="formBox"> + <view class="title"> 鎺堣鎯呭喌 </view> + <view class="teachingInfo"> + <view class="item"> + <text class="label">瀛︽牎锛�</text> + <text>{{teacherInfo.schoolName}}</text> + </view> + <view class="item"> + <text class="label">浠绘暀璇剧▼锛�</text> + <text>{{teacherInfo.courseName}}</text> + </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 class="icon">*</text>濮撳悕锛�</text> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ョ湡瀹炲鍚�" + borderless + value="{{contactInfo.user}}" + bindchange="onFullNameInput" + adjust-position="{{false}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-1" + /> + </view> + </view> + <view class="item form-input-2"> + <text class="label"><text class="icon">*</text>鑱旂郴鐢佃瘽锛�</text> + <view class="item-content"> + <t-input + placeholder="杈撳叆鑱旂郴鐢佃瘽" + borderless + value="{{contactInfo.phone}}" + type="number" + tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" + bindchange="onPhoneInput" + adjust-position="{{false}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-2" + /> + </view> + </view> + <view class="item form-input-3"> + <text class="label"><text class="icon">*</text>璇︾粏鍦板潃锛�</text> + <view class="item-content"> + <t-input + placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" + borderless + value="{{contactInfo.address}}" + bindchange="onAddressInput" + adjust-position="{{false}}" + bindkeyboardheightchange="bindkeyboardheightchange" + bindblur="changeParam" + data-class="form-input-3" + /> </view> </view> </view> - <view class="formBox"> - <view class="title"> - 鎺堣鎯呭喌 - </view> - <view class="teachingInfo"> - <view class="item"> - <text class="label">瀛︽牎锛�</text> - <text>{{teacherInfo.schoolName}}</text> - </view> - <view class="item"> - <text class="label">浠绘暀璇剧▼锛�</text> - <text>{{teacherInfo.courseName}}</text> - </view> - </view> - <view class="title" wx:if="{{active =='0'}}"> - 鏀惰揣浜烘儏鍐� - </view> - <view class="receiverInfo" wx:if="{{active =='0'}}"> - <view class="item"> - <text class="label">濮撳悕锛�</text> - <view class="item-content"> - <input class="weui-input" name="userName" auto-focus="true" adjust-position="true" value="{{contactInfo.fullName}}" placeholder="璇疯緭鍏ュ鍚�" bindinput="bindTnputBlur" /> - </view> - </view> - <view class="item"> - <text class="label">鑱旂郴鐢佃瘽锛�</text> - <view class="item-content"> - <input class="weui-input" name="userName" auto-focus="true" adjust-position="true" value="{{contactInfo.phone}}" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" bindinput="bindTnputBlur" /> - </view> - </view> - <view class="item"> - <text class="label">璇︾粏鍦板潃锛�</text> - <view class="item-content"> - <input class="weui-input" name="userName" auto-focus="true" adjust-position="true" value="{{contactInfo.detailedAddress}}" placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" bindinput="bindTnputBlur" /> - </view> - </view> - </view> - </view> - <view class="btn-area"> - <button class="submit" bindtap="submit">鎻愪氦</button> - </view> - -</view> \ No newline at end of file +</view> +<view + class="btn-area" + style="padding-bottom: {{keyboardHeight ? keyboardHeight + 'rpx' : '60rpx'}}" +> + <button class="submit" bindtap="submit">鎻愪氦</button> +</view> +</view> +</view> -- Gitblit v1.9.1