Showing
7 changed files
with
35 additions
and
18 deletions
| 1 | <!--components/2.0/taocan/subject.wxml--> | 1 | <!--components/2.0/taocan/subject.wxml--> |
| 2 | -<view class="view card padding-lg padding-top"> | 2 | +<view class="view card padding-lr-lg padding-tb"> |
| 3 | <view class="header view flex align-center"> | 3 | <view class="header view flex align-center"> |
| 4 | <view class="view avatar margin-right-sm" style="background-image: url('{{order.seller.oooo}}')"></view> | 4 | <view class="view avatar margin-right-sm" style="background-image: url('{{order.seller.oooo}}')"></view> |
| 5 | <view class="flex-treble"> | 5 | <view class="flex-treble"> |
| 6 | <view class="txt-32-h text-cut" style="margin-bottom: 2rpx;">123</view> | 6 | <view class="txt-32-h text-cut" style="margin-bottom: 2rpx;">123</view> |
| 7 | <view class="txt-24-h text-gray text-cut">地址</view> | 7 | <view class="txt-24-h text-gray text-cut">地址</view> |
| 8 | </view> | 8 | </view> |
| 9 | - <view class="phone view"></view> | 9 | + <view class="view txt-28-h text-blue" wx:if="{{hasTopStatus}}">以哈哈</view> |
| 10 | + <view class="phone view" wx:else=""></view> | ||
| 10 | </view> | 11 | </view> |
| 11 | <view class="view flex solid-bottom" style="padding-bottom: 36rpx;padding-top: 36rpx;"> | 12 | <view class="view flex solid-bottom" style="padding-bottom: 36rpx;padding-top: 36rpx;"> |
| 12 | <view class="thumb margin-right-lg"></view> | 13 | <view class="thumb margin-right-lg"></view> |
| @@ -5,6 +5,7 @@ import RS from '../../utils/reserveStatus' | @@ -5,6 +5,7 @@ import RS from '../../utils/reserveStatus' | ||
| 5 | import PubSub from '../../utils/PubSub' | 5 | import PubSub from '../../utils/PubSub' |
| 6 | 6 | ||
| 7 | const {regeneratorRuntime} = global | 7 | const {regeneratorRuntime} = global |
| 8 | +const defTabType=5 | ||
| 8 | Page({ | 9 | Page({ |
| 9 | 10 | ||
| 10 | /** | 11 | /** |
| @@ -16,11 +17,11 @@ Page({ | @@ -16,11 +17,11 @@ Page({ | ||
| 16 | [],[],[],[] | 17 | [],[],[],[] |
| 17 | ], | 18 | ], |
| 18 | total: 0, | 19 | total: 0, |
| 19 | - tabType:1, | 20 | + tabType:defTabType, |
| 20 | hasMore:true, | 21 | hasMore:true, |
| 21 | rsl:[],//推荐商家 | 22 | rsl:[],//推荐商家 |
| 22 | }, | 23 | }, |
| 23 | - tabType:1, | 24 | + tabType:defTabType, |
| 24 | offset:0, | 25 | offset:0, |
| 25 | limit:10, | 26 | limit:10, |
| 26 | hasMore:true, | 27 | hasMore:true, |
| @@ -95,6 +96,9 @@ Page({ | @@ -95,6 +96,9 @@ Page({ | ||
| 95 | if(this.hasMore){ | 96 | if(this.hasMore){ |
| 96 | this.offset+=this.limit | 97 | this.offset+=this.limit |
| 97 | } | 98 | } |
| 99 | + if(tabType>4){ | ||
| 100 | + data=[{},{},{}] | ||
| 101 | + } | ||
| 98 | this.setData({ | 102 | this.setData({ |
| 99 | [`list[`+tabType+`]`]: this.data.list[tabType].concat(data), | 103 | [`list[`+tabType+`]`]: this.data.list[tabType].concat(data), |
| 100 | hasMore:this.hasMore | 104 | hasMore:this.hasMore |
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | "getpos":"/components/userinfo/getpos", | 10 | "getpos":"/components/userinfo/getpos", |
| 11 | "as-phone":"/components/actionSheet/phone", | 11 | "as-phone":"/components/actionSheet/phone", |
| 12 | "card-bak":"/components/seller-card/seller-card", | 12 | "card-bak":"/components/seller-card/seller-card", |
| 13 | - "card":"/components/2.0/reserve/card" | 13 | + "card":"/components/2.0/reserve/card", |
| 14 | + "subject":"/components/2.0/taocan/subject" | ||
| 14 | } | 15 | } |
| 15 | } | 16 | } |
| @@ -5,17 +5,17 @@ | @@ -5,17 +5,17 @@ | ||
| 5 | <view class="view item {{tabType>4?'active':''}}" data-type="5" bindtap="switchType">我的套餐</view> | 5 | <view class="view item {{tabType>4?'active':''}}" data-type="5" bindtap="switchType">我的套餐</view> |
| 6 | </view> | 6 | </view> |
| 7 | </nav> | 7 | </nav> |
| 8 | -<view class="view tabs flex padding-lg padding-top-xs justify-between" wx:if="{{tabType<5}}"> | 8 | +<view class="view tabs flex padding-lr-lg padding-top-xs justify-between padding-bottom-sm margin-bottom-sm" wx:if="{{tabType<5}}"> |
| 9 | <view class="view item {{tabType==1?'active':''}}" data-type="1" bindtap="switchType">等待确认</view> | 9 | <view class="view item {{tabType==1?'active':''}}" data-type="1" bindtap="switchType">等待确认</view> |
| 10 | <view class="view item {{tabType==2?'active':''}}" data-type="2" bindtap="switchType">预订成功</view> | 10 | <view class="view item {{tabType==2?'active':''}}" data-type="2" bindtap="switchType">预订成功</view> |
| 11 | <view class="view item {{tabType==3?'active':''}}" data-type="3" bindtap="switchType">历史订单</view> | 11 | <view class="view item {{tabType==3?'active':''}}" data-type="3" bindtap="switchType">历史订单</view> |
| 12 | <view class="view item {{tabType==4?'active':''}}" data-type="4" bindtap="switchType">无效预订</view> | 12 | <view class="view item {{tabType==4?'active':''}}" data-type="4" bindtap="switchType">无效预订</view> |
| 13 | </view> | 13 | </view> |
| 14 | -<view class="view tabs flex padding-lg padding-top-xs justify-between" wx:else=""> | ||
| 15 | - <view class="view item {{tabType==5?'active':''}}" data-type="5" bindtap="switchType">全部套餐</view> | ||
| 16 | - <view class="view item {{tabType==6?'active':''}}" data-type="6" bindtap="switchType">待使用</view> | ||
| 17 | - <view class="view item {{tabType==7?'active':''}}" data-type="7" bindtap="switchType">已使用</view> | ||
| 18 | - <view class="view item {{tabType==8?'active':''}}" data-type="8" bindtap="switchType">已退款</view> | 14 | +<view class="view tabs flex padding-lr-lg padding-top-xs justify-between padding-bottom-sm margin-bottom-sm" wx:else=""> |
| 15 | + <view class="view item {{tabType==5?'active':''}}" data-type="5" bindtap="switchType">待使用</view> | ||
| 16 | + <view class="view item {{tabType==6?'active':''}}" data-type="6" bindtap="switchType">已使用</view> | ||
| 17 | + <view class="view item {{tabType==7?'active':''}}" data-type="7" bindtap="switchType">已过期</view> | ||
| 18 | + <view class="view item {{tabType==8?'active':''}}" data-type="8" bindtap="switchType">退款</view> | ||
| 19 | </view> | 19 | </view> |
| 20 | <view class="view pages"> | 20 | <view class="view pages"> |
| 21 | <block wx:if="{{list[tabType].length==0}}"> | 21 | <block wx:if="{{list[tabType].length==0}}"> |
| @@ -34,13 +34,18 @@ | @@ -34,13 +34,18 @@ | ||
| 34 | seller="{{detail.seller}}" detail="{{detail}}"></card> | 34 | seller="{{detail.seller}}" detail="{{detail}}"></card> |
| 35 | </navigator> | 35 | </navigator> |
| 36 | </block> | 36 | </block> |
| 37 | - <block wx:else=""> | 37 | + <view class="view padding-lr" wx:else=""> |
| 38 | <navigator wx:for="{{list[tabType]}}" wx:key="success.key" | 38 | <navigator wx:for="{{list[tabType]}}" wx:key="success.key" |
| 39 | wx:for-item="order" wx:for-index="dateIndex" | 39 | wx:for-item="order" wx:for-index="dateIndex" |
| 40 | + class="margin-bottom-lg" | ||
| 40 | url="/pages/taocan/order?id={{order.id}}"> | 41 | url="/pages/taocan/order?id={{order.id}}"> |
| 41 | - <tcard order="{{order}}"></tcard> | 42 | + <subject order="{{order}}" hasTopStatus> |
| 43 | + <view class="view flex justify-end margin-top"> | ||
| 44 | + <view class="solid txt-26-h text-blue">到店使用</view> | ||
| 45 | + </view> | ||
| 46 | + </subject> | ||
| 42 | </navigator> | 47 | </navigator> |
| 43 | - </block> | 48 | + </view> |
| 44 | <view class="view" style="height: 192rpx;"></view> | 49 | <view class="view" style="height: 192rpx;"></view> |
| 45 | </block> | 50 | </block> |
| 46 | </view> | 51 | </view> |
| @@ -10,10 +10,12 @@ | @@ -10,10 +10,12 @@ | ||
| 10 | <image src="{{false?'':'http://nosqn.colorcun.com/taocan/1%20%2813%29.png'}}" mode="heightFix" style="height: 340rpx;"></image> | 10 | <image src="{{false?'':'http://nosqn.colorcun.com/taocan/1%20%2813%29.png'}}" mode="heightFix" style="height: 340rpx;"></image> |
| 11 | </view> | 11 | </view> |
| 12 | </subject> | 12 | </subject> |
| 13 | - <view class="view card flex margin-tb-sm padding-lg justify-between"> | ||
| 14 | - <view class="view text-bold txt-32-h">您还可以预订包间</view> | ||
| 15 | - <view class="view bg-blue-blue round" style="padding: 8rpx 20rpx;">订包间</view> | ||
| 16 | - </view> | 13 | + <navigator url="/pages/reserve/detail?id={{order.seller.id}}&activeTab=reserve"> |
| 14 | + <view class="view card flex margin-tb-sm padding-lg justify-between"> | ||
| 15 | + <view class="view text-bold txt-32-h">您还可以预订包间</view> | ||
| 16 | + <view class="view bg-blue-blue round" style="padding: 8rpx 20rpx;">订包间</view> | ||
| 17 | + </view> | ||
| 18 | + </navigator> | ||
| 17 | <view class="view card"> | 19 | <view class="view card"> |
| 18 | <view class="txt-30-h padding solid-bottom text-bold">使用须知</view> | 20 | <view class="txt-30-h padding solid-bottom text-bold">使用须知</view> |
| 19 | <view class="view padding block"> | 21 | <view class="view padding block"> |
-
Please register or login to post a comment