Showing
4 changed files
with
22 additions
and
5 deletions
| @@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
| 39 | </block> | 39 | </block> |
| 40 | <view class="cu-tag round line-white text-blue view cu-tag-end"></view> | 40 | <view class="cu-tag round line-white text-blue view cu-tag-end"></view> |
| 41 | </view> | 41 | </view> |
| 42 | - <view class="view button-view flex justify-end" catchtap="reserve"> | 42 | + <view class="view button-view flex justify-end" bindtap="reserve"> |
| 43 | <view class="cu-btn bg-blue text-white round reserve-button text-df text-bold view padding-xs">订包间</view> | 43 | <view class="cu-btn bg-blue text-white round reserve-button text-df text-bold view padding-xs">订包间</view> |
| 44 | </view> | 44 | </view> |
| 45 | </view> | 45 | </view> |
| @@ -31,12 +31,12 @@ | @@ -31,12 +31,12 @@ | ||
| 31 | <view class="money-title">红包</view> | 31 | <view class="money-title">红包</view> |
| 32 | </view> | 32 | </view> |
| 33 | </navigator> | 33 | </navigator> |
| 34 | - <navigator url="./coupon" class="money-item"> | 34 | + <!-- <navigator url="./coupon" class="money-item"> |
| 35 | <view class="flex-vc"> | 35 | <view class="flex-vc"> |
| 36 | <view class="money-value">{{user.card}}</view> | 36 | <view class="money-value">{{user.card}}</view> |
| 37 | <view class="money-title">卡券</view> | 37 | <view class="money-title">卡券</view> |
| 38 | </view> | 38 | </view> |
| 39 | - </navigator> | 39 | + </navigator> --> |
| 40 | </view> | 40 | </view> |
| 41 | <view class="block-rev"> | 41 | <view class="block-rev"> |
| 42 | <navigator url="/pages/me/list" open-type="switchTab"> | 42 | <navigator url="/pages/me/list" open-type="switchTab"> |
| @@ -349,4 +349,21 @@ Page({ | @@ -349,4 +349,21 @@ Page({ | ||
| 349 | shareDisplay(){ | 349 | shareDisplay(){ |
| 350 | this.selectComponent('#share').show() | 350 | this.selectComponent('#share').show() |
| 351 | }, | 351 | }, |
| 352 | + reserve(e){ | ||
| 353 | + if(this.data.seller.is_online_reserve==1){ | ||
| 354 | + let url=util.http_build_query({id:this.data.seller.id,activeTab:'reserve'},'./reserve') | ||
| 355 | + let cid=util.attr(e,'cid') | ||
| 356 | + if(cid){ | ||
| 357 | + url=util.http_build_query({ | ||
| 358 | + classID:cid, | ||
| 359 | + className:util.attr(e,'cname'), | ||
| 360 | + },url) | ||
| 361 | + } | ||
| 362 | + return wx.navigateTo({ | ||
| 363 | + url:url, | ||
| 364 | + }) | ||
| 365 | + }else{ | ||
| 366 | + this.selectComponent('#as').show(this.data.seller); | ||
| 367 | + } | ||
| 368 | + }, | ||
| 352 | }) | 369 | }) |
| @@ -212,9 +212,9 @@ | @@ -212,9 +212,9 @@ | ||
| 212 | <view class="Medium txt-20-h">分享</view> | 212 | <view class="Medium txt-20-h">分享</view> |
| 213 | </view> | 213 | </view> |
| 214 | </view> | 214 | </view> |
| 215 | - <navigator url="/pages/reserve/reserve?id={{seller.id}}&activeTab=reserve"> | 215 | + <view catchtap="reserve"> |
| 216 | <view class="view bg-blue-blue margin-right-lg reserve-button txt-36-h text-bold flex justify-center align-center">订包间</view> | 216 | <view class="view bg-blue-blue margin-right-lg reserve-button txt-36-h text-bold flex justify-center align-center">订包间</view> |
| 217 | - </navigator> | 217 | + </view> |
| 218 | </view> | 218 | </view> |
| 219 | </view> | 219 | </view> |
| 220 | </page> | 220 | </page> |
-
Please register or login to post a comment