Commit 210cba349ea6e55710fe76c23f65fcfecc3ee1d5
Merge branch 'master' of http://123.56.79.57/xt/xcx-book into online-book
# By vking # Via vking * 'master' of http://123.56.79.57/xt/xcx-book: online
Showing
2 changed files
with
6 additions
and
1 deletions
| @@ -129,6 +129,11 @@ Page({ | @@ -129,6 +129,11 @@ Page({ | ||
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | reserve(){ | 131 | reserve(){ |
| 132 | + if(this.data.hasOnlineReserve){ | ||
| 133 | + return this.setData({ | ||
| 134 | + activeTab:'reserve' | ||
| 135 | + }) | ||
| 136 | + } | ||
| 132 | let seller_tel=this.data.seller.seller_tel | 137 | let seller_tel=this.data.seller.seller_tel |
| 133 | if(seller_tel.length<1) return util.toast('商家电话错误','none') | 138 | if(seller_tel.length<1) return util.toast('商家电话错误','none') |
| 134 | if(seller_tel.length==1){//只有一个电话 | 139 | if(seller_tel.length==1){//只有一个电话 |
| @@ -369,7 +369,7 @@ | @@ -369,7 +369,7 @@ | ||
| 369 | </view> | 369 | </view> |
| 370 | <view class="reserve"> | 370 | <view class="reserve"> |
| 371 | <formids class="flex-vc" bindclick="reserve" id="reserve-button"> | 371 | <formids class="flex-vc" bindclick="reserve" id="reserve-button"> |
| 372 | - <view class="text">电话预订</view> | 372 | + <view class="text">{{hasOnlineReserve?'包间预订':'联系餐厅'}}</view> |
| 373 | </formids> | 373 | </formids> |
| 374 | </view> | 374 | </view> |
| 375 | 375 |
-
Please register or login to post a comment