Commit 10fcfc8b46235f9b399caea1dc227a59252518b2

Authored by liuxuqinfhp1220
1 parent 7e1b81e3

no message

... ... @@ -53,14 +53,20 @@ Page({
}
})
},
focusinput(e){
this.setData({
inputfocus:true,
buttonbottom:560
})
},
save(){
wx.setStorageSync('remark',this.remark);
wx.navigateBack();
},
getboardheight(e){
if(e.detail.height==0){
this.setData({
buttonbottom:30
})
}else{
this.setData({
buttonbottom:e.detail.height+20
})
}
}
})
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@
<nav>备注</nav>
<view class="contain" style="height: minheight+'px';overflow-y: scroll;">
<view class="bg-gray textarea-cover">
<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>
<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>
<view class="gray-font font24r flex-rr" style="padding-top: 20rpx;">最多输入25个字</view>
</view>
<view class="label">
... ... @@ -14,5 +14,5 @@
</view>
</view>
</view>
<view class="save-button white-font flex-cc font32r" bindtap="save" style="bottom:{{buttonbottom}}rpx;">保存</view>
<view class="save-button white-font flex-cc font32r" bindtap="save" style="bottom:{{buttonbottom}}px;">保存</view>
</layout>
... ...