113 lines
4.8 KiB
Plaintext
113 lines
4.8 KiB
Plaintext
<!-- packageA/mycomponent/goodsComponent/timeLimit/timeLimit.wxml -->
|
|
<view class="time-buy" wx:if="{{isBuy &&(isTime||isBegTime) && goodsType != 'group_goods'}}">
|
|
<view class="buy-left">
|
|
<view class="span">{{ limitedTimeCustomName }}</view>
|
|
</view>
|
|
<view class="buy-right" wx:if="{{!isBegTime}}">
|
|
<view class="right-end">距离结束时间</view>
|
|
<view class="right-time">
|
|
<view class="bottom_time">
|
|
<view class="span">{{countDownObj.day}} 天</view>
|
|
<view class="span">{{countDownObj.hou}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="span">{{countDownObj.min}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="span">{{countDownObj.sec}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="buy-right" wx:if="{{isBuy && (!isTime||isBegTime)}}">
|
|
<view class="right-end">距开始还剩</view>
|
|
<view class="right-time">
|
|
<view class="bottom_time">
|
|
<view class="span">{{beginDownObj.day}} 天</view>
|
|
<view class="span">{{beginDownObj.hou}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="span">{{beginDownObj.min}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="span">{{beginDownObj.sec}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="price_time" wx:if="{{goodsType == 'group_goods' || goodsType == 'zhpGroup'||goodsType == 'groupwork'}}">
|
|
<view class="img">
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/rob-time.png" width="16%;" />
|
|
</view>
|
|
<view class="text span">
|
|
超值
|
|
<!-- <br /> -->
|
|
开团
|
|
</view>
|
|
<view class="price span">
|
|
<view class="font">
|
|
{{language['money']}}{{goodsInfo.vip_level_status&&goodsInfo.vip_level_status.status==1?goodsInfo.vip_level_status.word:group_price}}起
|
|
</view>
|
|
</view>
|
|
<view class="time" wx:if="{{goodsType == 'group_goods'}}">
|
|
<view wx:if="{{isendTime&&gooddatas.status != '0'}}" class="span" style="text-align:center;width:100%">
|
|
截止倒计时:
|
|
</view>
|
|
<count wx:if="{{isendTime&&gooddatas.status != '0'}}" now-time="{{nowTime}}" over-time="{{end_time}}" style="color:#fff;text-align:center;" />
|
|
<view wx:if="{{gooddatas.status == '0'}}" class="span" style="text-align:center;width:100%">
|
|
距开始:
|
|
</view>
|
|
<count wx:if="{{gooddatas.status == '0'}}" now-time="{{nowTime}}" get-time="{{start_time}}" style="color:#fff;text-align:center;" />
|
|
<view wx:if="{{gooddatas.status!='1'&&gooddatas.status != '0'}}" style="text-align:right;color:#fff;padding-right: 18rpx;font-size: 14px;">
|
|
已结束
|
|
</view>
|
|
</view>
|
|
<view class="time" wx:if="{{goodsType == 'zhpGroup' ||goodsType == 'groupwork'}}">
|
|
<view wx:if="{{timestamp < gooddatas.end_time}}" class="span" style="text-align:center;width:100%">
|
|
截止倒计时:
|
|
</view>
|
|
<count wx:if="{{timestamp < gooddatas.end_time}}" now-time="{{nowTime}}" over-time="{{end_time}}" style="color:#fff;text-align:center;" />
|
|
|
|
<view wx:if="{{timestamp < gooddatas.start_time}}" class="span" style="text-align:center;width:100%">
|
|
距离活动开始时间:
|
|
</view>
|
|
<count wx:if="{{timestamp < gooddatas.start_time}}" now-time="{{nowTime}}" get-time="{{start_time}}" style="color:#fff;text-align:center;" />
|
|
|
|
<block wx:if="{{timestamp >= gooddatas.end_time}}">
|
|
<view wx:if="{{(gooddatas.status == 2 && goodsType == 'zhpGroup')||(gooddatas.status == 3 && goodsType == 'groupwork') }}" style="text-align:right;color:#fff;padding-right: 18rpx;font-size: 14px;">已结束</view>
|
|
</block>
|
|
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{goodsType == 'grabGroup'}}" class="grabGroup">
|
|
<!-- 抢团活动倒计时 -->
|
|
<view class="rob-time">
|
|
<view class="price">
|
|
<view class="li text">
|
|
<view class="span">{{isTime?'活动截止倒计时':'活动开始倒计时'}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="time" wx:if="{{isTime}}">
|
|
<view class="right">
|
|
<view class="content">
|
|
<view class="date">{{countDownObj.day}}</view>
|
|
<view class="mes">天</view>
|
|
<view class="date">{{countDownObj.hou}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="date">{{countDownObj.min}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="date">{{countDownObj.sec}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="time" wx:if="{{!isTime}}">
|
|
<view class="right">
|
|
<view class="content">
|
|
<view class="date">{{beginDownObj.day}}</view>
|
|
<view class="mes">天</view>
|
|
<view class="date">{{beginDownObj.hou}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="date">{{beginDownObj.min}}</view>
|
|
<view class="mes">:</view>
|
|
<view class="date">{{beginDownObj.sec}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|