Showing
5 changed files
with
12 additions
and
3 deletions
| @@ -40,6 +40,9 @@ Component({ | @@ -40,6 +40,9 @@ Component({ | ||
| 40 | this.setData({vitem:item}) | 40 | this.setData({vitem:item}) |
| 41 | }, | 41 | }, |
| 42 | callPhone(e){ | 42 | callPhone(e){ |
| 43 | + if(util.attr(e,'phone').length<3){ | ||
| 44 | + return util.toast('号码错误','none'); | ||
| 45 | + } | ||
| 43 | wx.makePhoneCall({ | 46 | wx.makePhoneCall({ |
| 44 | phoneNumber: util.attr(e,'phone'), //仅为示例,并非真实的电话号码 | 47 | phoneNumber: util.attr(e,'phone'), //仅为示例,并非真实的电话号码 |
| 45 | }) | 48 | }) |
| @@ -48,6 +48,9 @@ Component({ | @@ -48,6 +48,9 @@ Component({ | ||
| 48 | }); | 48 | }); |
| 49 | break; | 49 | break; |
| 50 | case 2: | 50 | case 2: |
| 51 | + if(this.data.bookInfo.phone.length<3){ | ||
| 52 | + return util.toast('号码错误','none'); | ||
| 53 | + } | ||
| 51 | wx.makePhoneCall({ | 54 | wx.makePhoneCall({ |
| 52 | phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码 | 55 | phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码 |
| 53 | complete:()=>{ | 56 | complete:()=>{ |
| @@ -51,6 +51,9 @@ Page({ | @@ -51,6 +51,9 @@ Page({ | ||
| 51 | }; | 51 | }; |
| 52 | }, | 52 | }, |
| 53 | getcall:function(){ | 53 | getcall:function(){ |
| 54 | + if(this.data.bookInfo.phone.length<3){ | ||
| 55 | + return util.toast('号码错误','none'); | ||
| 56 | + } | ||
| 54 | wx.makePhoneCall({ | 57 | wx.makePhoneCall({ |
| 55 | phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码 | 58 | phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码 |
| 56 | complete:()=>{ | 59 | complete:()=>{ |
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | </view> | 24 | </view> |
| 25 | <view class="flex-lr order-detail"> | 25 | <view class="flex-lr order-detail"> |
| 26 | <text class="gray-deep-font font30r" space="true" decode="true">预 订 人</text> | 26 | <text class="gray-deep-font font30r" space="true" decode="true">预 订 人</text> |
| 27 | - <view class="black-font font34r">{{bookInfo.rname}}</view> | 27 | + <view class="black-font font34r">{{bookInfo.rname}} {{bookInfo.sex==1?'先生':'女士'}}</view> |
| 28 | </view> | 28 | </view> |
| 29 | <view class="flex-lr order-detail"> | 29 | <view class="flex-lr order-detail"> |
| 30 | <view class="gray-deep-font font30r">手机号码</view> | 30 | <view class="gray-deep-font font30r">手机号码</view> |
| @@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
| 30 | "list": [] | 30 | "list": [] |
| 31 | }, | 31 | }, |
| 32 | "miniprogram": { | 32 | "miniprogram": { |
| 33 | - "current": 0, | 33 | + "current": 21, |
| 34 | "list": [ | 34 | "list": [ |
| 35 | { | 35 | { |
| 36 | "id": 0, | 36 | "id": 0, |
| @@ -196,7 +196,7 @@ | @@ -196,7 +196,7 @@ | ||
| 196 | "query": "" | 196 | "query": "" |
| 197 | }, | 197 | }, |
| 198 | { | 198 | { |
| 199 | - "id": -1, | 199 | + "id": 21, |
| 200 | "name": "预定本-80商家", | 200 | "name": "预定本-80商家", |
| 201 | "pathName": "pages/book/b_index", | 201 | "pathName": "pages/book/b_index", |
| 202 | "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=", | 202 | "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=", |
-
Please register or login to post a comment