Commit 21fcf8dc5d452d9140bdad0eb23fae384d1a935b

Authored by vking
1 parent 8ca2c31d

【一键订C端:输入备注,提交预订未预留出】https://www.tapd.cn/57419716/bugtrace/bugs/view?bug_id=1157419716001002780

... ... @@ -9,6 +9,7 @@ const _u = {
}
let dur=['morning','noon','night','midnight']
Page({
paddingBottom:0,
user: _u,
/**
* 页面的初始数据
... ... @@ -206,4 +207,21 @@ Page({
cardEvent(e){
this.editorReserve()
},
keyboardheightchange(e){
console.log(e);
this.setData({
paddingBottom:e.detail.height?(parseInt(e.detail.height)+100):0
})
setTimeout(()=>{
this.pageScrollToBottom()
},0)
},
pageScrollToBottom: function () {
wx.createSelectorQuery().select('.pages').boundingClientRect(function (rect) {
// 使页面滚动到底部
wx.pageScrollTo({
scrollTop: rect.bottom
})
}).exec()
},
})
\ No newline at end of file
... ...
<!--pages/reserve/submit.wxml-->
<layout>
<nav hasBack>预订详情</nav>
<view class="pages bg_white">
<view class="pages bg_white" style="padding-bottom: {{paddingBottom}}px;">
<card hasShowStatus hasAddress="{{false}}" bindevent="cardEvent"
hasOnlineReserve
seller="{{seller}}" detail="{{detail}}">
... ... @@ -73,6 +73,9 @@
<view class="Medium">
<input class="cusdem input" placeholder="您的特殊要求,我们会尽量安排(20字)"
bindinput="changeInput"
bindkeyboardheightchange="keyboardheightchange"
bindblur="keyboardheightchange"
bindconfirm="keyboardheightchange"
data-key="remark"
value="{{user.remark}}"
placeholder-class="input-pl" maxlength="25"/>
... ...