Commit 480a24b6d2b020b5df1facd9f39ca82b37ac9f92

Authored by wangfan
1 parent 8ea00fe6

v2 customer view

... ... @@ -14,6 +14,10 @@ Component({
this.init();
}
},
hasMaster:{
type:Boolean,
value:false
}
},
/**
... ...
... ... @@ -30,7 +30,7 @@
{{seller.map_address}}
</view>
</view>
<view class="seller master flex-lr">
<view class="seller master flex-lr" wx:if="{{hasMaster}}">
<view class="master-label">
预订人
</view>
... ...
... ... @@ -11,9 +11,9 @@
</view>
-->
<block wx:if="{{total==0}}">
<view wx:if="{{tabindex==tabFlag}}" class="flex-vc empry">
<view class="flex-vc empry">
<image src="http://qn.colorcun.com/custom/lite/image/empty-order.png"></image>
<view class="Medium">{{0==tabFlag?'暂无日程':'暂无订座'}}</view>
<view class="Medium">暂无日程</view>
</view>
</block>
<block wx:else="">
... ... @@ -23,7 +23,8 @@
<block wx:for="{{part}}" wx:key="part.key" wx:for-item="detail">
<navigator url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<view class="card">
<card seller="{{detail.seller}}" detail="{{detail}}"></card>
<card hasMaster
seller="{{detail.seller}}" detail="{{detail}}"></card>
</view>
</navigator>
</block>
... ... @@ -36,7 +37,8 @@
<block wx:for="{{part}}" wx:key="part.key" wx:for-item="detail">
<navigator url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<view class="card">
<card seller="{{detail.seller}}" detail="{{detail}}"></card>
<card hasMaster
seller="{{detail.seller}}" detail="{{detail}}"></card>
</view>
</navigator>
</block>
... ...
... ... @@ -49,7 +49,7 @@ Page({
},
getListData(){
App.Reserve.GetListFromScheAndRes({
flag:this.data.tabFlag,
flag:1,
openid:getApp().openid,
}).then(res => {
let data=this.formatList(res.data);
... ...
<!--pages/customer/list.wxml-->
<nav hasHome>订个座儿</nav>
<nav hasHome>我的订单</nav>
<view class="page">
<!--
<view class="tabs flex-cc">
<view class="item {{0==tabFlag?'active':''}}"
bindtap="switchTab" data-index="0">我的日程</view>
<view class="item" style="width: 246rpx;"></view>
<view class="item {{1==tabFlag?'active':''}}"
bindtap="switchTab" data-index="1">我的订座</view>
</view>
-->
<block wx:if="{{total==0}}">
<view wx:if="{{tabindex==tabFlag}}" class="flex-vc empry">
<view class="flex-vc empry">
<image src="http://qn.colorcun.com/custom/lite/image/empty-order.png"></image>
<view class="Medium">{{0==tabFlag?'暂无日程':'暂无订座'}}</view>
<view class="Medium">'暂无订座'</view>
</view>
</block>
<block wx:else="">
<block wx:for="{{success}}" wx:key="success.key" wx:for-item="part" wx:for-index="dateIndex">
<view class="list-content" wx:if="{{part.length>0}}">
<view class="cate-class" style="margin-bottom: 40rpx;margin-left: 44rpx;">{{dateIndex}}</view>
<block wx:for="{{part}}" wx:key="part.key" wx:for-item="detail">
<navigator url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<view class="card">
<card seller="{{detail.seller}}" detail="{{detail}}"></card>
</view>
</navigator>
</block>
</view>
</block>
<block wx:for="{{padding}}" wx:key="padding.key" wx:for-item="part" wx:for-index="dateIndex">
<view class="list-content" wx:if="{{part.length>0}}">
<view class="cate-class" style="margin-bottom: 26rpx;">待处理<text>({{part.length}}条)</text></view>
<view class="cate-class" style="margin-bottom: 40rpx;margin-top: 0;margin-left: 44rpx;">{{dateIndex}}</view>
<block wx:for="{{part}}" wx:key="part.key" wx:for-item="detail">
<navigator url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<view class="card">
<card seller="{{detail.seller}}" detail="{{detail}}"></card>
<card
seller="{{detail.seller}}" detail="{{detail}}"></card>
</view>
</navigator>
</block>
... ...