Showing
7 changed files
with
20 additions
and
10 deletions
| @@ -2,11 +2,11 @@ | @@ -2,11 +2,11 @@ | ||
| 2 | <block wx:for="{{roomlist}}" wx:key="{{index}}"> | 2 | <block wx:for="{{roomlist}}" wx:key="{{index}}"> |
| 3 | <block wx:if="{{item.status==1}}"> | 3 | <block wx:if="{{item.status==1}}"> |
| 4 | <view class="room-item black-font {{(item.isFull && item.isFull==1) || (item.isorderFull && item.isorderFull==1) ? 'border-gray bg-gray' : 'border-yellow bg-yellow'}} flex-vl" style="justify-content:center;" data-id="{{item.id}}" data-index="{{index}}" data-selectnum="{{item.selectnum ? item.selectnum : 0}}" data-fid="{{item.fid ? item.fid : null}}" catchtap="{{usecondition=='seller' ? (item.isorderFull && item.isorderFull==1 ? '' : 'selectroom') : (item.isFull && item.isFull==1 ? '' : 'selectroom')}}"> | 4 | <view class="room-item black-font {{(item.isFull && item.isFull==1) || (item.isorderFull && item.isorderFull==1) ? 'border-gray bg-gray' : 'border-yellow bg-yellow'}} flex-vl" style="justify-content:center;" data-id="{{item.id}}" data-index="{{index}}" data-selectnum="{{item.selectnum ? item.selectnum : 0}}" data-fid="{{item.fid ? item.fid : null}}" catchtap="{{usecondition=='seller' ? (item.isorderFull && item.isorderFull==1 ? '' : 'selectroom') : (item.isFull && item.isFull==1 ? '' : 'selectroom')}}"> |
| 5 | - <view class="font30r font-bold">{{item.name}}</view> | ||
| 6 | - <block wx:if="{{item.max}}"> | 5 | + <view class="font30r font-bold" style="width:100%;padding-right:62rpx;box-sizing:border-box; block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{item.name}}</view> |
| 6 | + <block wx:if="{{item.max && item.max!=0}}"> | ||
| 7 | <view class="font24r room-more">最多可坐{{item.max}}人</view> | 7 | <view class="font24r room-more">最多可坐{{item.max}}人</view> |
| 8 | </block> | 8 | </block> |
| 9 | - <block wx:if="{{item.low}}"> | 9 | + <block wx:if="{{item.low && item.low!=0}}"> |
| 10 | <view class="font20r room-consume">最低消费{{item.low}}元</view> | 10 | <view class="font20r room-consume">最低消费{{item.low}}元</view> |
| 11 | </block> | 11 | </block> |
| 12 | <block wx:if="{{item.selectnum && item.selectnum>0}}"> | 12 | <block wx:if="{{item.selectnum && item.selectnum>0}}"> |
| @@ -21,7 +21,11 @@ Component({ | @@ -21,7 +21,11 @@ Component({ | ||
| 21 | let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD'); | 21 | let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD'); |
| 22 | this.getsectionlist(); | 22 | this.getsectionlist(); |
| 23 | if(today==newdate){ | 23 | if(today==newdate){ |
| 24 | - this.markoversection(); | 24 | + if(this.data.section){ |
| 25 | + this.changesectionstyle(this.data.section); | ||
| 26 | + }else{ | ||
| 27 | + this.markoversection(); | ||
| 28 | + } | ||
| 25 | }else{ | 29 | }else{ |
| 26 | if(this.data.section){ | 30 | if(this.data.section){ |
| 27 | this.changesectionstyle(this.data.section); | 31 | this.changesectionstyle(this.data.section); |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <view class="select-rooms-title black-font font-bold font30r flex-ll">已选包间</view> | 2 | <view class="select-rooms-title black-font font-bold font30r flex-ll">已选包间</view> |
| 3 | <block wx:for="{{seletroomlist}}" wx:key="{{index}}"> | 3 | <block wx:for="{{seletroomlist}}" wx:key="{{index}}"> |
| 4 | <view class="select-rooms-item flex-vc" data-index="{{index}}" data-id="{{item.id}}" catchtap="cancelroom"> | 4 | <view class="select-rooms-item flex-vc" data-index="{{index}}" data-id="{{item.id}}" catchtap="cancelroom"> |
| 5 | - <view class="white-font font-bold font30r">{{item.name}}</view> | 5 | + <view class="white-font font-bold font30r" style="width:100%;block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;text-align:center;">{{item.name}}</view> |
| 6 | <view class="select-rooms-close flex-cc"> | 6 | <view class="select-rooms-close flex-cc"> |
| 7 | <image src="../../../pages/image/close.jpg" class="close-icon"></image> | 7 | <image src="../../../pages/image/close.jpg" class="close-icon"></image> |
| 8 | </view> | 8 | </view> |
| @@ -20,6 +20,8 @@ | @@ -20,6 +20,8 @@ | ||
| 20 | border-radius:10rpx; | 20 | border-radius:10rpx; |
| 21 | position: relative; | 21 | position: relative; |
| 22 | margin-bottom:20rpx; | 22 | margin-bottom:20rpx; |
| 23 | + padding:0 12rpx; | ||
| 24 | + box-sizing: border-box; | ||
| 23 | } | 25 | } |
| 24 | .select-rooms-close{ | 26 | .select-rooms-close{ |
| 25 | width:36rpx; | 27 | width:36rpx; |
| @@ -60,7 +60,7 @@ Component({ | @@ -60,7 +60,7 @@ Component({ | ||
| 60 | App.Customer.GetHouseFullDate(parmdata).then((json)=>{ | 60 | App.Customer.GetHouseFullDate(parmdata).then((json)=>{ |
| 61 | console.log(json) | 61 | console.log(json) |
| 62 | if(json.ret==200){ | 62 | if(json.ret==200){ |
| 63 | - let marklist=this.marklist; | 63 | + let marklist=[]; |
| 64 | console.log(marklist) | 64 | console.log(marklist) |
| 65 | if(json.data && json.data.length>0){ | 65 | if(json.data && json.data.length>0){ |
| 66 | json.data.forEach((v,i)=>{ | 66 | json.data.forEach((v,i)=>{ |
| @@ -68,7 +68,11 @@ Page({ | @@ -68,7 +68,11 @@ Page({ | ||
| 68 | App.Customer.SetCustomerInfo({ | 68 | App.Customer.SetCustomerInfo({ |
| 69 | ...this.user | 69 | ...this.user |
| 70 | }).then(res=>{ | 70 | }).then(res=>{ |
| 71 | - App.Customer.GetCustomerInfo({},'clear') | 71 | + if(res.ret==200){ |
| 72 | + App.Customer.GetCustomerInfo({},'clear') | ||
| 73 | + }else{ | ||
| 74 | + return util.toast(res.msg,'none') | ||
| 75 | + } | ||
| 72 | wx.navigateBack() | 76 | wx.navigateBack() |
| 73 | }) | 77 | }) |
| 74 | }, | 78 | }, |
| @@ -49,13 +49,13 @@ | @@ -49,13 +49,13 @@ | ||
| 49 | "list": [] | 49 | "list": [] |
| 50 | }, | 50 | }, |
| 51 | "miniprogram": { | 51 | "miniprogram": { |
| 52 | - "current": 0, | 52 | + "current": 56, |
| 53 | "list": [ | 53 | "list": [ |
| 54 | { | 54 | { |
| 55 | "id": 0, | 55 | "id": 0, |
| 56 | "name": "预订本-商家1", | 56 | "name": "预订本-商家1", |
| 57 | "pathName": "pack-book/pages/book/b_index", | 57 | "pathName": "pack-book/pages/book/b_index", |
| 58 | - "query": "seller_id=154&seller_openid=o9pcQ0cbjRKnRWczcOJaaSRGP1lE&manager_id=500", | 58 | + "query": "seller_id=80&seller_openid=o9pcQ0cbjRKnRWczcOJaaSRGP1lE&manager_id=500", |
| 59 | "scene": 1001 | 59 | "scene": 1001 |
| 60 | }, | 60 | }, |
| 61 | { | 61 | { |
| @@ -471,7 +471,7 @@ | @@ -471,7 +471,7 @@ | ||
| 471 | "id": 56, | 471 | "id": 56, |
| 472 | "name": "测试组件", | 472 | "name": "测试组件", |
| 473 | "pathName": "pages/reserve/detail", | 473 | "pathName": "pages/reserve/detail", |
| 474 | - "query": "id=48", | 474 | + "query": "id=80", |
| 475 | "scene": null | 475 | "scene": null |
| 476 | }, | 476 | }, |
| 477 | { | 477 | { |
-
Please register or login to post a comment