card.wxml 2.03 KB
<view class="order-card">
	<view class="order-head flex-lr" bindtap="todetail">
		<view class="black-font font30r font-more" style="width: 500rpx;">{{item.sellername}}</view>
		<view class="gray-font font30r">
			<block wx:if="{{item.status==0}}">待付款</block>
			<block wx:if="{{item.status==1}}">已接单</block>
			<block wx:if="{{item.status==2}}">配送中</block>
			<block wx:if="{{item.status==3}}">已完成</block>
			<block wx:if="{{item.status==4}}">已退款</block>
		</view>
	</view>
	<view class="order-me-line bg-line-gray"></view>
	<view class="order-content flex-ll" bindtap="todetail">
		<image src="{{item.cookbook_img ? item.cookbook_img :'http://nosqn.colorcun.com/empty.jpg'}}" class="food-image" mode="aspectFill"></image>
		<view class="">
			<view class="gray-deep-font font28r" style="margin-bottom: 20rpx;">下单时间:{{item.showdate}}</view>
			<view class="flex-ll">
				<view class="gray-ddep-font font28r" style="margin-right: 26rpx;">共{{item.total}}件</view>
				<view class="black-font font30r">合计 <text class="font-bold">¥{{item.price}}</text></view>
			</view>
		</view>
	</view>
	<view class="flex-rr font30r">
		<block wx:if="{{item.status!=4 && item.status!=0}}">
			<block wx:if="{{telist.length>1}}">
				<view class="order-info-button black-font gray-light-border flex-cc" style="margin-right: 40rpx;" catchtap="showtel">退款</view>
			</block>
			<block wx:else>
				<tel phoneNumber="{{item.selle_tel ? telist[0] : item.phone}}"><view class="order-info-button black-font gray-light-border flex-cc" style="margin-right: 40rpx;">退款</view></tel>
			</block>
		</block>
		<block wx:if="{{item.status==0}}">
			<view class="order-info-button white-font bg-red-pink flex-cc pay-button" bindtap="pay" data-item="{{item}}" style="margin-right: 40rpx;">去支付</view>
		</block>
		<navigator class="order-info-button red-pink-font pink-border flex-cc" url="../seller/menu?id={{item.sellerid}}" open-type="reLaunch">再来一单</navigator>
	</view>
</view>

<telModal tellist="{{telist}}" id="tellist"></telModal>