Commit 10fcfc8b46235f9b399caea1dc227a59252518b2

Authored by liuxuqinfhp1220
1 parent 7e1b81e3

no message

@@ -53,14 +53,20 @@ Page({ @@ -53,14 +53,20 @@ Page({
53 } 53 }
54 }) 54 })
55 }, 55 },
56 - focusinput(e){  
57 - this.setData({  
58 - inputfocus:true,  
59 - buttonbottom:560  
60 - })  
61 - },  
62 save(){ 56 save(){
63 wx.setStorageSync('remark',this.remark); 57 wx.setStorageSync('remark',this.remark);
64 wx.navigateBack(); 58 wx.navigateBack();
65 }, 59 },
  60 + getboardheight(e){
  61 + if(e.detail.height==0){
  62 + this.setData({
  63 + buttonbottom:30
  64 + })
  65 + }else{
  66 + this.setData({
  67 + buttonbottom:e.detail.height+20
  68 + })
  69 + }
  70 +
  71 + }
66 }) 72 })
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <nav>备注</nav> 2 <nav>备注</nav>
3 <view class="contain" style="height: minheight+'px';overflow-y: scroll;"> 3 <view class="contain" style="height: minheight+'px';overflow-y: scroll;">
4 <view class="bg-gray textarea-cover"> 4 <view class="bg-gray textarea-cover">
5 - <textarea placeholder="请输入您的特殊要求,我们会尽量安排" placeholder-class="gray-font font28r" class="black-font font28r" value="{{remark}}" maxlength="25" show-confirm-bar="{{false}}" auto-focus bindinput="inputremark" bindblur="inputblur" adjust-position cursor-spacing="130" bindfocus="focusinput"></textarea> 5 + <textarea placeholder="请输入您的特殊要求,我们会尽量安排" placeholder-class="gray-font font28r" class="black-font font28r" value="{{remark}}" maxlength="25" show-confirm-bar="{{false}}" auto-focus bindinput="inputremark" bindblur="inputblur" adjust-position cursor-spacing="130" bindkeyboardheightchange="getboardheight"></textarea>
6 <view class="gray-font font24r flex-rr" style="padding-top: 20rpx;">最多输入25个字</view> 6 <view class="gray-font font24r flex-rr" style="padding-top: 20rpx;">最多输入25个字</view>
7 </view> 7 </view>
8 <view class="label"> 8 <view class="label">
@@ -14,5 +14,5 @@ @@ -14,5 +14,5 @@
14 </view> 14 </view>
15 </view> 15 </view>
16 </view> 16 </view>
17 - <view class="save-button white-font flex-cc font32r" bindtap="save" style="bottom:{{buttonbottom}}rpx;">保存</view> 17 + <view class="save-button white-font flex-cc font32r" bindtap="save" style="bottom:{{buttonbottom}}px;">保存</view>
18 </layout> 18 </layout>