Commit f66eb03b4fe0b654ad8a938a61a36f09dc1bcb3f

Authored by wangfan
1 parent 42cdb931

v2 customer view

... ... @@ -24,6 +24,10 @@ Component({
hasListShare:{ //首页列表的预订人+分享
type:Boolean,
value:false
},
hasShowStatus:{ //右上角显示状态
type:Boolean,
value:false
}
},
... ... @@ -67,11 +71,16 @@ Component({
+(this.data.detail.tables[0].tid==2?'包间':'');
}
}
this.setData({
let obj={
rdateStr:util.unixtoTime(this.data.detail.rdate,'MM月DD日 HH:II'),
tableSubInfo:tableSubInfo,
masterMan:masterMan,
})
}
if(this.data.hasShowStatus){
let ns=new Date()/1000
obj.showStatusStr=ns>this.data.detail.rdate?'已结束':'已预定';
}
this.setData(obj)
}
}
}
... ...
... ... @@ -7,7 +7,10 @@
</view>
<view class="name Medium">{{seller.sellername}}</view>
</view>
<view class="more">
<view wx:if="{{hasShowStatus}}" style="font-size: 30rpx;">
{{showStatusStr}}
</view>
<view class="more" wx:else="">
<image src="/pages/image/click.png"></image>
</view>
</view>
... ...
... ... @@ -14,6 +14,7 @@
<navigator url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<view class="card">
<card
hasShowStatus
seller="{{detail.seller}}" detail="{{detail}}"></card>
</view>
</navigator>
... ...