<block wx:if="{{!loadding}}"><view class="haggle"><image class="bg_topimg" src="../../../../static/haggle.png" mode></image><view class="ww100" style="{{('height:'+$root.m0+'px;')}}"></view><view class="tc head_top" style="{{($root.m1==0?'':'height:'+$root.m2+'px;')}}"><view data-event-opts="{{[['tap',[['goback',['$event']]]]]}}" class="reg180" bindtap="__e"><text class="icon iconfont icon-jiantou"></text></view><view class="fb">砍价购</view></view><block wx:if="{{task.status==0}}"><view class="ad-datetime p-40-0 d-c-c"><countdown class="vue-ref" vue-id="9b506b60-1" config="{{countdownConfig}}" data-ref="countdown" bind:__l="__l"></countdown></view></block><view class="haggle-content"><view data-event-opts="{{[['tap',[['gotoHome',['$event']]]]]}}" class="goto-home d-c-c" bindtap="__e"><text class="iconfont icon-Homehomepagemenu"></text></view><view data-event-opts="{{[['tap',[['openRule',['$event']]]]]}}" class="rule" bindtap="__e">活动规则<text class="icon iconfont icon-jiantou" style="color:#333333;font-size:26rpx;"></text></view><view class="user d-c-c d-c"><image src="{{task.user.avatarUrl}}" mode></image><text class="gray3 mt20 mb30 f26">{{task.user.nickName}}</text></view><block wx:if="{{product}}"><view class="product o-h d-b-s p-20-0 pb60"><view class="pic"><image src="{{product.product.image[0].file_path}}" mode></image></view><view class="info flex-1 ml30"><view class="text-ellipsis-2 f26 gray3" style="width:360rpx;">{{task.product_name}}</view><view class="pt10"><text class="gray9">规格:</text><text>{{task.product_attr}}</text></view><view style="margin:20rpx 0;margin-bottom:16rpx;"><text class="gray9 f26">剩余:</text><text class="gray9 f26">{{product.stock+"件"}}</text></view><view class="d-s-c p-10-0"><view class="d-c-c"><view class="gray9 haggle_btn_l">砍到底价</view><view class="haggle_btn_r"><text class="f20">¥</text>{{task.bargain_price}}</view></view></view></view></view></block><view class="f26 ww100 tc">已砍<text style="color:#723BFF;">{{task.cut_money}}</text>元,继续加油</view><view class="progress pr"><view class="progress-box"><view class="progress-box-active" style="{{('width:'+task.bargain_rate+'%;')}}"></view></view><view class="progressState" style="{{('left:'+task.bargain_rate+'%;')}}">{{task.bargain_rate+'%'}}</view></view><view class="d-b-c gray9" style="width:80%;margin:0 auto;margin-top:20rpx;"><text>{{"¥"+task.product_price}}</text><text class="f30 haggle-color fb">{{"¥"+task.bargain_price}}</text></view><block wx:if="{{task.status==0||task.status==1}}"><view class="btns mt30"><block wx:if="{{is_bargain}}"><button type="primary" disabled="{{submitting}}" data-event-opts="{{[['tap',[['bargainFunc',['$event']]]]]}}" bindtap="__e">{{''+(is_creater?'我要砍价':'帮好友砍一刀')+''}}</button></block><block wx:if="{{!is_bargain&&task.is_floor!=1&&task.is_buy!=1}}"><button type="primary" open-type="share" data-event-opts="{{[['tap',[['shareFunc',['$event']]]]]}}" bindtap="__e">邀请好友帮忙砍价</button></block><block wx:if="{{is_creater===true&&active!=null}}"><block wx:if="{{is_buy&&active.conditions==0}}"><button class="mt20" type="primary" data-event-opts="{{[['tap',[['buyNow',['$event']]]]]}}" bindtap="__e"><block wx:if="{{task.is_floor==0}}">当前价购买</block><block wx:if="{{task.is_floor==1}}">砍价成功 立即购买</block></button></block><block wx:if="{{is_buy&&active.conditions==1}}"><button class="mt20" type="primary" data-event-opts="{{[['tap',[['buyNow',['$event']]]]]}}" bindtap="__e">砍价成功 立即购买</button></block><block wx:if="{{task.is_buy==1}}"><view class="mt20 f34 haggle-color tc">砍价成功,已购买</view></block></block><block wx:if="{{is_creater==false}}"><button class="buy-btn mt20" type="primary" data-event-opts="{{[['tap',[['involvedFunc',['$event']]]]]}}" bindtap="__e">我要参与</button></block></view></block><view class="help-list mt30"><view class="p-30-0 border-b fb f30">砍价记录</view><block wx:for="{{help_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="d-b-c p-20-0 border-b-e"><view class="user d-s-c"><image src="{{item.user.avatarUrl}}" mode="aspectFill"></image><text class="ml20">{{item.user.nickName}}</text></view><view class="{{['haggle-color',(item.is_creater==0)?'fb':'']}}">{{"-"+item.cut_money}}</view></view></block></view></view><rule vue-id="9b506b60-2" isRule="{{isRule}}" setting="{{setting}}" data-event-opts="{{[['^close',[['closeRule']]]]}}" bind:close="__e" bind:__l="__l"></rule><share vue-id="9b506b60-3" isMpShare="{{isMpShare}}" data-event-opts="{{[['^close',[['closeShare']]]]}}" bind:close="__e" bind:__l="__l"></share><app-share vue-id="9b506b60-4" isAppShare="{{isAppShare}}" appParams="{{appParams}}" data-event-opts="{{[['^close',[['closeAppShare']]]]}}" bind:close="__e" bind:__l="__l"></app-share><popup vue-id="9b506b60-5" show="{{isPopup}}" width="{{400}}" height="{{300}}" padding="{{0}}" data-event-opts="{{[['^hidePopup',[['hidePopupFunc']]]]}}" bind:hidePopup="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="d-c-c d-c ww100 p-30-0"><text>本次砍掉</text><view class="pt10">¥<text class="fb f34 haggle-color">{{my_cut_money}}</text></view><view class="pt30"><button class="btn-gray" type="primary" data-event-opts="{{[['tap',[['hidePopupFunc',['$event']]]]]}}" bindtap="__e">关闭</button></view></view></popup></view></block>
|