Commit dc49086e48a38c0770d695a447ae3c2218eceb32

Authored by liuxuqinfhp1220
1 parent c6f4a0c7

no message

@@ -62,9 +62,9 @@ Page({ @@ -62,9 +62,9 @@ Page({
62 62
63 saved() { 63 saved() {
64 console.log(this.user.name) 64 console.log(this.user.name)
65 - if(!this.user.name){  
66 - return util.toast('请填写预定人','none')  
67 - } 65 + if(!this.user.name){
  66 + return util.toast('请填写预定人','none')
  67 + }
68 if(!this.user.phone){ 68 if(!this.user.phone){
69 return util.toast('请填写正确的手机号','none') 69 return util.toast('请填写正确的手机号','none')
70 } 70 }
@@ -96,7 +96,7 @@ Page({ @@ -96,7 +96,7 @@ Page({
96 return util.val(e); 96 return util.val(e);
97 } 97 }
98 } 98 }
99 - val = util.val(e); 99 + val = util.val(e);
100 } 100 }
101 this.user[key] = val; 101 this.user[key] = val;
102 if (key == 'sex' || key == 'is_default') { 102 if (key == 'sex' || key == 'is_default') {
@@ -105,6 +105,11 @@ Page({ @@ -105,6 +105,11 @@ Page({
105 }) 105 })
106 } 106 }
107 }, 107 },
  108 + changeborder(){
  109 + this.setData({
  110 + keyborder:false
  111 + })
  112 + },
108 getphone(e){ 113 getphone(e){
109 console.log('getphone',e); 114 console.log('getphone',e);
110 if(e.detail.ret!=200){ 115 if(e.detail.ret!=200){
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 <view class="Medium flex-ll"> 34 <view class="Medium flex-ll">
35 <view class="item-label">手机</view> 35 <view class="item-label">手机</view>
36 <input class="phone input" placeholder="请填写联系方式" 36 <input class="phone input" placeholder="请填写联系方式"
  37 + cursor-spacing="180"
37 bindinput="changeInput" 38 bindinput="changeInput"
38 data-key="phone" 39 data-key="phone"
39 type="number" 40 type="number"
@@ -41,7 +42,7 @@ @@ -41,7 +42,7 @@
41 placeholder-class="input-pl" maxlength="11"/> 42 placeholder-class="input-pl" maxlength="11"/>
42 </view> 43 </view>
43 <view class="flex-rr"> 44 <view class="flex-rr">
44 - <!-- 一键获取 --> 45 + <!-- 一键获取 -->
45 <phone bindgetphone="getphone"> 46 <phone bindgetphone="getphone">
46 <view class="smooth white-font get-phone flex-vc" style="font-size:28rpx;">一键获取</view> 47 <view class="smooth white-font get-phone flex-vc" style="font-size:28rpx;">一键获取</view>
47 </phone> 48 </phone>
@@ -102,7 +102,6 @@ Page({ @@ -102,7 +102,6 @@ Page({
102 //已经完成预订的情况---清除日期、时段、选中包间 102 //已经完成预订的情况---清除日期、时段、选中包间
103 if(wx.getStorageSync('order')){ 103 if(wx.getStorageSync('order')){
104 this.setData({ 104 this.setData({
105 - reserveSection:null,  
106 seletroomlist:[] 105 seletroomlist:[]
107 }) 106 })
108 wx.removeStorageSync('order') 107 wx.removeStorageSync('order')