From c96612e8a63ecef9590be0f8b5199277ec94e5b9 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 18 九月 2024 18:43:12 +0800 Subject: [PATCH] 云学习购买目录,修改bug --- packageDomain/pages/publickBookForm/index.wxml | 169 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 142 insertions(+), 27 deletions(-) diff --git a/packageDomain/pages/publickBookForm/index.wxml b/packageDomain/pages/publickBookForm/index.wxml index a24bfe5..1dd6d69 100644 --- a/packageDomain/pages/publickBookForm/index.wxml +++ b/packageDomain/pages/publickBookForm/index.wxml @@ -1,103 +1,218 @@ -<view class="container" style="height:calc(100vh + {{keyboardHeight ? (keyboardHeight + 'px'):'0'}});padding-bottom:calc(180rpx + {{keyboardHeight ? 120 + 'px':0}}) "> - <scroll-view class="scroll content" scroll-y> - <view class="tips"> 璇氭寶鐨勬杩庢偍鎶曠鍑轰功锛屽苟閮戦噸鎵胯锛氭垜浠皢璁ょ湡瀹¢槄鎵�鏈夌殑鏉ョ锛屼互浠や汉淇℃湇鐨勬晥鐜囥�佽川閲忓拰绋块叕鎷╀紭鍑虹増锛� </view> +<view class="container"> + <scroll-view class="scroll content" scroll-y="{{true}}" bindscroll="scroll"> + <view class="tips"> + 璇氭寶鐨勬杩庢偍鎶曠鍑轰功锛屽苟閮戦噸鎵胯锛氭垜浠皢璁ょ湡瀹¢槄鎵�鏈夌殑鏉ョ锛屼互浠や汉淇℃湇鐨勬晥鐜囥�佽川閲忓拰绋块叕鎷╀紭鍑虹増锛� + </view> <view class="page-body"> - <view class=" baseInfoBox"> + <view class="baseInfoBox"> <view class="from-item"> <view class="label"> <text class="icon">*</text>閫夐鍚嶇О: </view> <view class="item-content"> - <t-textarea placeholder="涓涗功瑕佸垪鍑烘�诲悕绉板拰鍚勬湰涔︾殑鍚嶇О" value="{{teacherInfo.topicName}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTopicNameInput" /> + <t-textarea + placeholder="涓涗功瑕佸垪鍑烘�诲悕绉板拰鍚勬湰涔︾殑鍚嶇О" + value="{{teacherInfo.topicName}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onTopicNameInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>鐢虫姤浜�: </view> <view class="item-content"> - <t-input placeholder="璇疯緭鍏ョ敵鎶ヤ汉濮撳悕" borderless value="{{teacherInfo.declarer}}" bindchange="onDeclarerInput" /> + <t-input + placeholder="璇疯緭鍏ョ敵鎶ヤ汉濮撳悕" + borderless + value="{{teacherInfo.declarer}}" + bindchange="onDeclarerInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>鐢虫姤鍗曚綅: </view> <view class="item-content"> - <t-input placeholder="璇疯緭鍏ョ敵鎶ュ崟浣�" borderless value="{{teacherInfo.declarationUnit}}" bindchange="ondeclarationUnitInput" /> + <t-input + placeholder="璇疯緭鍏ョ敵鎶ュ崟浣�" + borderless + value="{{teacherInfo.declarationUnit}}" + bindchange="ondeclarationUnitInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>瀛︾涓撲笟锛� </view> <view class="item-content"> - <t-input placeholder="璇疯緭鍏ュ绉戜笓涓�" borderless value="{{teacherInfo.disciplineMajor}}" bindchange="onDisciplineMajorInput" /> + <t-input + placeholder="璇疯緭鍏ュ绉戜笓涓�" + borderless + value="{{teacherInfo.disciplineMajor}}" + bindchange="onDisciplineMajorInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>浣滆�呭熀鏈儏鍐�: </view> <view class="item-content"> - <t-textarea placeholder="濮撳悕銆佽亴鍔°�佺爺绌堕鍩熴�佹�濇兂鍊惧悜銆佸笀寰峰笀椋庛�佸鏈按骞炽�佺爺绌舵垚鏋滅瓑" value="{{teacherInfo.authorBasicInformation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onAuthorBasicInfoInput" /> + <t-textarea + placeholder="濮撳悕銆佽亴鍔°�佺爺绌堕鍩熴�佹�濇兂鍊惧悜銆佸笀寰峰笀椋庛�佸鏈按骞炽�佺爺绌舵垚鏋滅瓑" + value="{{teacherInfo.authorBasicInformation}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onAuthorBasicInfoInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>鎵嬫満鍙凤細 </view> <view class="item-content"> - <t-input placeholder="杈撳叆鎵嬫満鍙风爜" borderless value="{{teacherInfo.phone}}" type="number" tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onPhoneInput" /> + <t-input + placeholder="杈撳叆鎵嬫満鍙风爜" + borderless + value="{{teacherInfo.phone}}" + type="number" + tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" + bindchange="onPhoneInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>閭锛� </view> <view class="item-content"> - <t-input placeholder="杈撳叆閭" borderless value="{{teacherInfo.email}}" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" /> + <t-input + placeholder="杈撳叆閭" + borderless + value="{{teacherInfo.email}}" + tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" + bindchange="onEmailInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>璇昏�呭璞★細 </view> <view class="item-content"> - <t-input placeholder="瀹氫綅銆佽寖鍥淬�佹暟閲忕瓑" borderless value="{{teacherInfo.targetReaders}}" bindchange="onTargetReadersInput" /> + <t-input + placeholder="瀹氫綅銆佽寖鍥淬�佹暟閲忕瓑" + borderless + value="{{teacherInfo.targetReaders}}" + bindchange="onTargetReadersInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>閫夐鐗硅壊锛� </view> <view class="item-content"> - <t-textarea placeholder="閫夐鑳屾櫙銆佷富瑕佸唴瀹广�佸嚭鐗堜环鍊肩瓑" value="{{teacherInfo.topicFeatures}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTopicFeaturesInput" /> + <t-textarea + placeholder="閫夐鑳屾櫙銆佷富瑕佸唴瀹广�佸嚭鐗堜环鍊肩瓑" + value="{{teacherInfo.topicFeatures}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onTopicFeaturesInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> - <view class="label"> <text class="empty"></text>閫夐瀛︽湳褰卞搷涓庨鏈熺ぞ浼氭晥鐩婏細 </view> + <view class="label"> + <text class="empty"></text>閫夐瀛︽湳褰卞搷涓庨鏈熺ぞ浼氭晥鐩婏細 + </view> <view class="item-content"> - <t-textarea placeholder="閫夐瀛︽湳褰卞搷涓庨鏈熺ぞ浼氭晥鐩�" value="{{teacherInfo.topicImpactAndExpected}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTopicImpactAndExpectedInput" /> + <t-textarea + placeholder="閫夐瀛︽湳褰卞搷涓庨鏈熺ぞ浼氭晥鐩�" + value="{{teacherInfo.topicImpactAndExpected}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onTopicImpactAndExpectedInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> - <view class="label"> <text class="empty"></text>閫夐鐨勮繘搴﹀畨鎺掞細 </view> + <view class="label"> + <text class="empty"></text>閫夐鐨勮繘搴﹀畨鎺掞細 + </view> <view class="item-content"> - <t-textarea placeholder="棰勮鏉ョ鏃堕棿銆佸嚭鐗堟椂闂寸瓑" value="{{teacherInfo.topicProgress}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTopicProgressInput" /> + <t-textarea + placeholder="棰勮鏉ョ鏃堕棿銆佸嚭鐗堟椂闂寸瓑" + value="{{teacherInfo.topicProgress}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onTopicProgressInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> <view class="label"> <text class="empty"></text>甯傚満鍒嗘瀽: </view> <view class="item-content"> - <t-textarea placeholder="甯傚満闇�姹傘�佷笌鍚岀被涔︾殑宸紓鍜屼紭鍔裤�佸畾浠锋爣鍑嗐�侀璁¢攢閲忋�佺泩浜忓垎鏋愮瓑锛屾槸鍚︽湁鍑虹増璧勫姪璐�" value="{{teacherInfo.marketAnalysis}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMarketAnalysisInput" /> + <t-textarea + placeholder="甯傚満闇�姹傘�佷笌鍚岀被涔︾殑宸紓鍜屼紭鍔裤�佸畾浠锋爣鍑嗐�侀璁¢攢閲忋�佺泩浜忓垎鏋愮瓑锛屾槸鍚︽湁鍑虹増璧勫姪璐�" + value="{{teacherInfo.marketAnalysis}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onMarketAnalysisInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> - <view class="label"> <text class="empty"></text>钀ラ攢涓庡浼犳帹骞胯鍒�: </view> + <view class="label"> + <text class="empty"></text>钀ラ攢涓庡浼犳帹骞胯鍒�: + </view> <view class="item-content"> - <t-textarea placeholder="甯傚満闇�姹傘�佷笌鍚岀被涔︾殑宸紓鍜屼紭鍔裤�佸畾浠锋爣鍑嗐�侀璁¢攢閲忋�佺泩浜忓垎鏋愮瓑锛屾槸鍚︽湁鍑虹増璧勫姪璐�" value="{{teacherInfo.marketingAndPromotionPlan}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMarketingAndPromotionPlanInput" /> + <t-textarea + placeholder="甯傚満闇�姹傘�佷笌鍚岀被涔︾殑宸紓鍜屼紭鍔裤�佸畾浠锋爣鍑嗐�侀璁¢攢閲忋�佺泩浜忓垎鏋愮瓑锛屾槸鍚︽湁鍑虹増璧勫姪璐�" + value="{{teacherInfo.marketingAndPromotionPlan}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onMarketingAndPromotionPlanInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> - <view class="label"> <text class="empty"></text>閰嶅鏁板瓧璧勬簮寮�鍙戞柟妗�: </view> + <view class="label"> + <text class="empty"></text>閰嶅鏁板瓧璧勬簮寮�鍙戞柟妗�: + </view> <view class="item-content"> - <t-textarea placeholder="閰嶅鏁板瓧璧勬簮鍚嶇О銆佺被鍨嬨�佸唴瀹广�佺粡璐归绠椼�佹晥鐩婂垎鏋愮瓑" value="{{teacherInfo.digitalResourceDevelopmentPlan}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="ondigitalResourceInput" /> + <t-textarea + placeholder="閰嶅鏁板瓧璧勬簮鍚嶇О銆佺被鍨嬨�佸唴瀹广�佺粡璐归绠椼�佹晥鐩婂垎鏋愮瓑" + value="{{teacherInfo.digitalResourceDevelopmentPlan}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="ondigitalResourceInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="from-item"> - <view class="label"> <text class="empty"></text>瀛樺湪鐨勫叾浠栭棶棰�: </view> + <view class="label"> + <text class="empty"></text>瀛樺湪鐨勫叾浠栭棶棰�: + </view> <view class="item-content"> - <t-textarea placeholder="璇疯緭鍏ュ叾浠栭棶棰�" value="{{teacherInfo.otherExistingIssues}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onOtherExistingIssuesInput" /> + <t-textarea + placeholder="璇疯緭鍏ュ叾浠栭棶棰�" + value="{{teacherInfo.otherExistingIssues}}" + disableDefaultPadding="{{true}}" + autosize="{{autosize}}" + bindchange="onOtherExistingIssuesInput" + bindkeyboardheightchange="bindkeyboardheightchange" + /> </view> </view> <view class="btn-area"> - <button class="submit" bindtap="submit" loading="{{loading}}">鎻愪氦</button> + <button class="submit" bindtap="submit" loading="{{loading}}"> + 鎻愪氦 + </button> </view> </view> - </view> </scroll-view> -</view> \ No newline at end of file +</view> -- Gitblit v1.9.1