subject.wxml 2.27 KB
<!--components/2.0/taocan/subject.wxml-->
<wxs src="../../../utils/util.wxs" module="util" />
<view class="view card padding-lr-lg padding-tb">
    <view class="header view flex align-center" bindtap="clickSeller">
        <view class="view avatar margin-right-sm" style="background-image: url('{{order_info.seller_image}}?imageView2/2/w/320')"></view>
        <view class="flex-treble">
            <view class="txt-32-h text-cut text-bold" style="margin-bottom: 2rpx;">{{order_info.sellername}}</view>
            <view class="txt-24-h text-gray text-cut">{{order_info.real_address||order_info.map_address}}</view>
        </view>
        <view class="view txt-28-h {{order_info.status==2?'text-blue':'bg-white'}}" wx:if="{{hasTopStatus}}">{{order_info.status_tips.status}}</view>
        <view class="phone view" wx:else=""></view>
    </view>
    <view class="view flex solid-bottom" style="padding-bottom: 36rpx;padding-top: 36rpx;">
        <view class="thumb margin-right-lg" style="background-image: url('{{foods_info.main_url}}?imageView2/2/w/320')"></view>
        <view class="flex flex-direction justify-between">
            <view class="flex align-center">
                <view class="view bg-white label txt-20-h flex align-center justify-center">套餐名称</view>
                <view class="view txt-28-h margin-left-lg">{{foods_info.name}}</view>
            </view>
            <view class="flex align-center">
                <view class="view bg-white label txt-20-h flex align-center justify-center">套餐数量</view>
                <view class="view txt-28-h margin-left-lg">1份</view>
            </view>
            <view class="flex align-center" wx:if="{{order_info.status==2}}">
                <view class="view bg-white label txt-20-h flex align-center justify-center">有效期限</view>
                <view class="view txt-28-h margin-left-lg">{{util.unixtoTime(foods_info.eff_time_end,'YYYY-MM-DD')}}</view>
            </view>
            <view class="flex align-center">
                <view class="view bg-white label txt-20-h flex align-center justify-center">套餐价格</view>
                <view class="view txt-28-h margin-left-lg">¥{{foods_info.sale_price}}</view>
            </view>
        </view>
    </view>
    <slot></slot>
</view>
<as-phone id="as"></as-phone>