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){//只有一个电话 |
| @@ -183,7 +183,7 @@ | @@ -183,7 +183,7 @@ | ||
| 183 | </view> | 183 | </view> |
| 184 | <view class="reserve"> | 184 | <view class="reserve"> |
| 185 | <formids class="flex-vc" bindclick="reserve" id="reserve-button"> | 185 | <formids class="flex-vc" bindclick="reserve" id="reserve-button"> |
| 186 | - <view class="text">电话预订</view> | 186 | + <view class="text">{{hasOnlineReserve?'包间预订':'联系餐厅'}}</view> |
| 187 | </formids> | 187 | </formids> |
| 188 | </view> | 188 | </view> |
| 189 | 189 |
-
Please register or login to post a comment