Commit 8e964b6dfa1b4b5fd70370c07f99eda1e2827489

Authored by vking
1 parent a6d70c8a

online

... ... @@ -15,7 +15,7 @@ Component({
type: Object,
value: {},
observer: function () {
console.log('observer', arguments);
//console.log('observer', arguments);
this.init();
}
},
... ... @@ -91,8 +91,8 @@ Component({
masterMan: masterMan,
}
if (this.data.hasShowStatus) {
let ns = new Date() / 1000
obj.showStatusStr = RS.reserve(obj).getStatusStr;
//let ns = new Date() / 1000
obj.showStatusStr = RS.reserve(this.data.detail).getStatusStr;
/*
if (this.data.detail.status == 4) {
obj.showStatusStr = '已取消'
... ... @@ -101,6 +101,7 @@ Component({
}
*/
}
console.log(obj.showStatusStr)
this.setData(obj)
}
},
... ...
<!--components/seller-card/seller-card.wxml-->
<view class="card {{hasOnlineReserve?'online':''}}">
<formids url="/pages/reserve/detail?id={{seller.id}}">
<formids url="/pages/reserve/detail?id={{seller.id}}" catchtap="">
<view class="seller flex-lr">
<view class="flex-ll">
<view class="flex-ll" style="max-width: {{hasShowStatus?'80%':'94%'}};">
<view class="avatar" wx:if="{{seller.seller_image}}">
<image src="{{seller.seller_image}}"></image>
</view>
... ... @@ -16,7 +16,7 @@
</view>
</view>
</formids>
<view class="context flex-lr" catchtap="tapEvent">
<view class="context flex-lr" bindtap="tapEvent">
<view class="left info Medium">
<view class="label">时间</view>
<view class="value">{{rdateStr}}</view>
... ...
... ... @@ -31,6 +31,9 @@
.seller .name{
font-size: 36rpx;
color:#AD7644;
overflow: hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.context{
background-color: #E6EBEE;
... ...