Commit 70ec5138232d3797262d00367fe4662848a23fe9

Authored by vking
1 parent ce2f19be

cancel

@@ -20,6 +20,7 @@ Page({ @@ -20,6 +20,7 @@ Page({
20 reasons:reasons, 20 reasons:reasons,
21 radioIndex:-1, 21 radioIndex:-1,
22 inputFouce:false, 22 inputFouce:false,
  23 + paddingBottom:20,
23 }, 24 },
24 25
25 /** 26 /**
@@ -78,7 +79,7 @@ Page({ @@ -78,7 +79,7 @@ Page({
78 } 79 }
79 this.setData({ 80 this.setData({
80 //paddingBottom:e.detail.height?(parseInt(e.detail.height)+100):0 81 //paddingBottom:e.detail.height?(parseInt(e.detail.height)+100):0
81 - paddingBottom:this.keyboardheight>0?(parseInt(this.keyboardheight)+20):0 82 + paddingBottom:this.keyboardheight>0?(parseInt(this.keyboardheight)+20):20
82 }) 83 })
83 setTimeout(()=>{ 84 setTimeout(()=>{
84 this.pageScrollToBottom() 85 this.pageScrollToBottom()
@@ -94,7 +95,7 @@ Page({ @@ -94,7 +95,7 @@ Page({
94 }, 95 },
95 hideKeyboard(){ 96 hideKeyboard(){
96 this.setData({ 97 this.setData({
97 - paddingBottom:0 98 + paddingBottom:20
98 }) 99 })
99 }, 100 },
100 cancelSubmit(){ 101 cancelSubmit(){
1 <!--pages/customer/cancel.wxml--> 1 <!--pages/customer/cancel.wxml-->
2 <nav hasHome>取消订座</nav> 2 <nav hasHome>取消订座</nav>
3 -<view class="pages" style="padding-bottom: {{paddingBottom}}px;"> 3 +<view class="pages" style="padding-bottom: {{paddingBottom+50}}px;">
4 <view class="tips"> 4 <view class="tips">
5 请告知取消原因以便为您提供更好的服务 5 请告知取消原因以便为您提供更好的服务
6 </view> 6 </view>
@@ -24,5 +24,5 @@ @@ -24,5 +24,5 @@
24 placeholder-class="input-pl" maxlength="30"></textarea> 24 placeholder-class="input-pl" maxlength="30"></textarea>
25 <view class="cancel-button" 25 <view class="cancel-button"
26 bindtap="cancelSubmit" 26 bindtap="cancelSubmit"
27 - style="{{paddingBottom>0?'margin-top: 40rpx;':''}}">申请取消</view> 27 + style="bottom:{{paddingBottom}}px;">申请取消</view>
28 </view> 28 </view>
@@ -9,12 +9,15 @@ @@ -9,12 +9,15 @@
9 height:80rpx; 9 height:80rpx;
10 background:rgba(36,35,32,1); 10 background:rgba(36,35,32,1);
11 line-height: 80rpx; 11 line-height: 80rpx;
12 - width: 100%; 12 + width: calc(100% - 80rpx);
13 text-align: center; 13 text-align: center;
14 font-size:34rpx; 14 font-size:34rpx;
15 font-weight:400; 15 font-weight:400;
16 color:rgba(254,254,254,1); 16 color:rgba(254,254,254,1);
17 - margin: 182rpx auto 0; 17 + margin: 0 auto;
  18 + position: fixed;
  19 + bottom: 20rpx;
  20 +
18 } 21 }
19 .cancel-input{ 22 .cancel-input{
20 border: 2rpx solid #F5F5F5; 23 border: 2rpx solid #F5F5F5;
@@ -590,10 +590,10 @@ @@ -590,10 +590,10 @@
590 "scene": null 590 "scene": null
591 }, 591 },
592 { 592 {
593 - "id": -1, 593 + "id": 73,
594 "name": "pages/customer/cancel", 594 "name": "pages/customer/cancel",
595 "pathName": "pages/customer/cancel", 595 "pathName": "pages/customer/cancel",
596 - "query": "id=58241", 596 + "query": "id=59102",
597 "scene": null 597 "scene": null
598 } 598 }
599 ] 599 ]