Commit 2dc7d7bff9d17319753d4f8136e52b3305d29c59

Authored by vking
1 parent 115079d6

判断是否过了今天时段,并设置date

... ... @@ -6,6 +6,7 @@ Component({
*/
properties: {
cla:String,
hasPTactivity:Boolean,//平台红包开启状态
seller:{
type:Object,
value:{}
... ...
... ... @@ -38,7 +38,7 @@
<view class="activity-right-info">注:仅可以线上买单时使用</view>
</view>
</view>
<view class="flex-lr activity-item" wx:if="{{seller.isopen_md==1}}"
<view class="flex-lr activity-item" wx:if="{{seller.isopen_md==1 && hasPTactivity}}"
style="align-items: flex-start">
<view class="activity-left">平台红包</view>
<view class="activity-right">可叠加使用平台红包</view>
... ...
... ... @@ -222,7 +222,9 @@
</view>
</layout>
<getpos bindpos="onpos" id="getpos" hasAllowLoading="{{false}}"></getpos>
<discount id="discount" seller="{{seller}}" wx:if="{{seller}}" cla="{{activeTab=='reserve'?'seller-reserve':''}}"
<discount id="discount" seller="{{seller}}" wx:if="{{seller}}"
hasPTactivity="{{hasPTactivity}}"
cla="{{activeTab=='reserve'?'seller-reserve':''}}"
bindevent="reserveEvent"
bindhide="discountHide"
bindshow="discountShow"></discount>
... ...