You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
6.8 KiB
107 lines
6.8 KiB
<!--pages/bidding/detail/index.wxml-->
|
|
<wxs module="bidding" src="../../bidding/bidding.wxs"></wxs>
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">竞价详情</view>
|
|
</cu-custom>
|
|
|
|
<view wx:if="{{biddingInfo}}">
|
|
<view wx:if="{{biddingInfo.status==1}}" class="flex flex-justify bg-white slowChange" style="width:100%;padding: 24rpx 24rpx 24rpx 24rpx">
|
|
<view class="page-tietl-message"><image src="/assets/image/icon-jjsuccess.png" class="imgicon"></image><text style="margin-left:20rpx">竞价成功!(商家已经确认您的竞价,请尽快下单!)</text></view>
|
|
</view>
|
|
<view class="flex flex-justify bg-white" style="width:100%;padding: 24rpx 24rpx 0rpx 24rpx">
|
|
<view class="page-name">单号:{{biddingInfo.id}}</view>
|
|
<view class="page-name">{{bidding.orderBidding(biddingInfo.status)}}</view>
|
|
</view>
|
|
<view class="flex bg-white" style="width:100%;padding: 24rpx">
|
|
<wux-image width="{{90}}" height="{{90}}" shape="rounded" lazyLoad="true" src="{{biddingInfo.coverImgUrl||biddingInfo.productCoverImgUrl}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view style="flex:1;padding-left:20rpx;padding-top:8rpx;height:80px">
|
|
<view class="flex flex-justify">
|
|
<view class="page-name">{{biddingInfo.secondCategoryName||biddingInfo.productSecondCategoryName}}</view>
|
|
<!-- <view class="page-num">起拍价1.30元/kg</view> -->
|
|
</view>
|
|
<view style="height:60px">
|
|
<view class="page-outline">{{biddingInfo.description||biddingInfo.productSummary}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="height:18rpx;width:100%"></view>
|
|
<view class="flex flex-justify bg-white" style="width:100%;padding: 24rpx 24rpx 12rpx 24rpx" wx:if="{{biddingInfo.status == 0 || type == 1}}">
|
|
<view class="page-name">{{recordList.length}}人{{expiredTime ? '正在' : ''}}参与竞价</view>
|
|
<view class="page-name" style="font-size:13px" wx:if="{{expiredTime}}">倒计时:{{expiredTime || ''}}</view>
|
|
</view>
|
|
<wux-divider show-text="{{ false }}" wx:if="{{recordList.length}}"></wux-divider>
|
|
<view wx:for="{{recordList}}" wx:key="index">
|
|
<view class="flex flex-justify bg-white" style="width:100%;padding: 18rpx 24rpx" data-index="{{index}}" bindtap="checkRecord">
|
|
<view class="flex flex-justify">
|
|
<wux-image width="{{20}}" height="{{20}}" shape="circle" lazyLoad="true" src="{{item.avatarUrl}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view class="page-num">{{item.mobile}}</view>
|
|
</view>
|
|
<view class="page-num" style="color:red">报价:¥{{formate.formatePrice2(item.biddingUnitPrice, kg)}}</view>
|
|
<view class="page-num">{{item.updateTime}}</view>
|
|
<text class="cuIcon-{{recordIndex == index ? 'roundcheckfill' : 'round'}} text-{{recordIndex == index ? 'blue' : 'gray'}}" style="font-size:48rpx" wx:if="{{type == 1 && biddingInfo.status == 0}}"/>
|
|
</view>
|
|
<wux-divider show-text="{{ false }}"></wux-divider>
|
|
</view>
|
|
|
|
<view class="flex flex-justify bg-white" style="width:100%;padding: 24rpx" wx:if="{{biddingInfo.status == 0 && type == 1 && recordList.length}}">
|
|
<view class="page-name">请选择一个买家的报价</view>
|
|
<wux-button outline size="tag" bind:click="biddingConfrim">确认报价</wux-button>
|
|
</view>
|
|
<view class="flex flex-justify bg-white" style="width:100%;padding: 24rpx" wx:elif="{{biddingInfo.status == 1 && type == 1}}">
|
|
<view class="flex" style="align-items: center;justify-content: start">
|
|
<wux-image width="{{20}}" height="{{20}}" shape="circle" lazyLoad="true" src="{{recordInfo.avatarUrl}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view class="page-num" style="margin-left:">{{recordInfo.mobile}}</view>
|
|
</view>
|
|
<view class="page-num" style="color:red">报价¥{{formate.formatePrice2(recordInfo.biddingUnitPrice, kg)}}</view>
|
|
<view class="page-name" style="font-size:14px">已确认报价</view>
|
|
</view>
|
|
<view class="flex flex-center flex-column bg-white" style="width:100%;padding: 24rpx" wx:elif="{{biddingInfo.status == 0 && type == 0}}">
|
|
<view class="page-name" style="margin-top:12rpx">当前我的报价:{{formate.formatePrice2(biddingInfo.unitPrice, kg)}}</view>
|
|
</view>
|
|
<view class="flex flex-center flex-column bg-white" style="width:100%;padding: 24rpx" wx:elif="{{biddingInfo.status == 1 && type == 0}}">
|
|
<text class="cuIcon-time" style="font-size: 20px">等待下单</text>
|
|
<view class="page-num text-blue" style="font-size:14px;margin-top:24rpx" wx:if="{{recordInfo}}">我的报价:¥{{formate.formatePrice2(recordInfo.biddingUnitPrice, kg)}}</view>
|
|
<view class="page-num" style="font-size:14px;margin-top:12rpx">剩余时间:{{expiredTime || ''}}</view>
|
|
</view>
|
|
<view class="flex bg-white" style="width:100%;padding: 24rpx;" wx:if="{{biddingInfo.orderId}}">
|
|
<view class="page-name">订单编号:{{biddingInfo.orderId}}</view>
|
|
</view>
|
|
|
|
<view class="bg-white" style="padding:32rpx;margin-top:18rpx">
|
|
<view class="text-black" style="font-size:32rpx">商品详情</view>
|
|
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{biddingInfo.description}}</view>
|
|
</view>
|
|
|
|
<!-- <view class="bg-white" style="padding:32rpx;margin-top:18rpx">
|
|
<view class="text-black" style="font-size:32rpx">竞价规则</view>
|
|
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">1、退货时间,什么情况下允许退货等信息描述
|
|
2、物流费用说明
|
|
3、其他说明</view>
|
|
</view> -->
|
|
|
|
</view>
|
|
|
|
<view style="height:{{136 + safeBottom}}rpx" wx:if="{{type == 0 && (biddingInfo.status == 0 || biddingInfo.status == 1)}}"></view>
|
|
<view class="cu-bar bg-white tabbar foot flex" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 16rpx;" wx:if="{{type == 0 && (biddingInfo.status == 0 || biddingInfo.status == 1)}}">
|
|
<view class="action" style="width: 100rpx" bindtap="toShopInfo">
|
|
<view class="cuIcon-shop"></view>
|
|
店铺
|
|
</view>
|
|
<view style="width:100%">
|
|
<wux-button block type="assertive" bind:click="showBiddingDialog" wx:if="{{biddingInfo.status == 0}}">修改报价</wux-button>
|
|
<wux-button block type="positive" bind:click="offerOrder" wx:if="{{biddingInfo.status == 1}}">立即下单</wux-button>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="height:118rpx" wx:if="{{type == 1 && (biddingInfo.status == 0 || biddingInfo.status == -1)}}"></view>
|
|
<view class="cu-bar flex flex-center bg-blue tabbar foot" bindtap="showDialog" wx:if="{{type == 1 && biddingInfo.status == 0}}">取消竞价</view>
|
|
<view class="cu-bar flex flex-center bg-blue tabbar foot" bindtap="restartActivity" wx:if="{{type == 1 && (biddingInfo.status == -1 || biddingInfo.status == 2)}}">重新竞拍</view>
|
|
|
|
<wux-dialog id="wux-dialog"></wux-dialog>
|