<view class='page'>
  <include src='/components/common/common'></include>
  <include src='/components/header/header'></include>
  <view class='body after-navber'>
    <view class='block'>

      <view class='flex-row block-row'>
        <view class='flex-grow-1'> 下单时间：</view>
        <view class='flex-grow-0'>{{order.scan_time}}</view>
      </view>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'> 操作员：</view>
        <view class='flex-grow-0'>{{order.create_name}}</view>
      </view>
    </view>
    <view class='block'>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'> 公司名称：</view>
        <view class='flex-grow-0'> {{order.supplier.name}} </view>
      </view>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'> 门店名称：</view>
        <view class='flex-grow-0'> {{order.shop.name}} </view>
      </view>
      <!-- <view class='flex-row block-row'>
        <view class='flex-grow-1'> 订单号：{{order.name}} </view>
        <view class='flex-grow-0'> {{order.mobile}} </view>
      </view> -->
    </view>
    <view class='block'>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'>商品总额：</view>
        <block wx:if='{{order}}'>
          <view class='flex-grow-0'>￥{{order.price}}</view>
        </block>
        <block wx:else>
          <view class='flex-grow-0'>￥0.00</view>
        </block>
      </view>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'>商品数量：</view>
        <view class='flex-grow-0' wx:if='{{order.num}}'>×{{order.num}}</view>
        <block wx:else>
          <view class='flex-grow-0'>×1</view>
        </block>
      </view>
      <view class='flex-row block-row'>
        <view class='flex-grow-1'>订单备注：</view>
        <view class='flex-grow-0'></view>
      </view>
      <!-- <view class="block-row" style="text-indent:112rpx">{{order.detail}}</view> -->
      <view class="block-row">{{order.detail}}</view>
      <view class='block-footer'>合计： <text style='color: #ff4544'>￥{{order.price}}</text></view>
    </view>
    <!-- <view class='block' style='margin-bottom:200rpx;'>
      <block wx:for='{{order.goods_list}}' wx:for-item='item' wx:for-index='index' wx:key='{{index}}'>
        <view class='flex-row goods-item'>
          <view class='flex-grow-0'>
            <image mode='aspectFill' src='{{item.goods_pic}}' style='width: 156rpx;height: 156rpx'></image>
          </view>
          <view class='flex-grow-1' style='padding-left: 20rpx'>
            <view style='margin-bottom: 10rpx'> {{item.name}} </view>
            <view class='flex-row'>
              <view class='flex-grow-1'>
                <block wx:for='{{item.attr}}' wx:for-item='item' wx:for-index='index' wx:key='{{index}}'>
                  <view style='font-size: 9pt;color: #888;margin-right: 20rpx;display: inline-block'>
                    {{item.attr_group_name}}：{{item.attr_name}} </view>
                </block>
              </view>
              <view class='flex-grow-0' style='text-align: right'>
                <view>×{{item.num}}</view>
                <view style='color: #ff4544'>￥：{{item.total_price}}</view>
              </view>
            </view>
          </view>
        </view>
      </block>
    </view> -->
    <view bindtap='pay' class='block flex-x-center' style='position:fixed;width:100%;bottom:-20rpx'>
      <view class='flex-y-center flex-x-center'
        style='width:100%;padding:10rpx 0;background:#ff4544;color:#fff;border-radius:10rpx;height:100rpx;'>支付订单</view>
    </view>
  </view>
  <include src='/components/footer/footer'></include>
</view>