<wrapper>
  <view class="warning-msg-container" a:if="{{flag && showMsg}}">
    <warning-msg onClose="handleCloseClick" distance="{{distance}}" />
  </view>
  <view class="order-container">
    <!-- 地址栏 -->
    <view class="order-address" a:if="{{deliverType === 'SELF_PICK_UP_DELIVERY'}}" >
      <mall-store-address showNavigateIcon="{{false}}" />
    </view>
    <!-- 电话号 -->
    <view
      a:if="{{isPhoneReady && deliverType === 'SELF_PICK_UP_DELIVERY'}}"
      class="order-phone-container"
    >
      <get-phone
        ref="saveRef"
        phone="{{phone}}"
        hasPermission="{{hasPermission}}"
      />
    </view>
    <!-- 收货地址栏 -->
    <address-box
      a:if="{{deliverType === 'DELIVERY_LOGISTICS' && addressList}}"
      isEmpty="{{!addressList.length}}"
      isDeliver="{{deliverType === 'DELIVERY_LOGISTICS'}}"
      emptyText="请选择收货地址"
      title="收货信息"
      onClick="gotoAddress"
      addressItem="{{addressList[0]}}"
    />
    <!-- 自提信息 -->
    <!-- <address-box
      a:if="{{deliverType === 'SELF_PICK_UP_DELIVERY' && addressList}}"
      isEmpty="{{!addressList.length}}"
      isDeliver="{{deliverType === 'DELIVERY_LOGISTICS'}}"
      emptyText="请选择提货人信息"
      title="提货人信息"
      onClick="gotoAddress"
      addressItem="{{addressList[0]}}"
    /> -->
    <!-- 订单item -->
    <view
      class="order-list-container"
      a:if="{{list.length}}"
    >
      <block a:for="{{list}}">
        <order-item isDetail="{{false}}" orderItem="{{item}}"></order-item>
      </block>
    </view>
    <view class="extra-info-container extra-flex">
      <view class="extra-info-label" style="max-width: 200rpx">
        备注
      </view>
      <textarea
        style="flex: 1"
        placeholder="可以给商家备注或留言"
        controlled="{{true}}"
        enableNative="{{false}}"
        auto-height="{{true}}"
        maxlength="{{30}}"
        type="text"
        value="{{remark}}"
        onInput="handleItemChange"
      />
      </view>
  </view>
  <mall-footer-button
    a:if="{{list.length}}"
    showIcon="{{false}}"
    discountShow="{{false}}"
    buttonText="{{btnText}}"
    onConfirmClick="handelSubmit"
    totalPrice="{{totalPrice}}"
    packingFee="{{packingFee}}"
    disCountTotalPrice="{{disCountTotalPrice}}"
    showColorBtn="{{true}}"
    position="fixed"
    isConfirm="{{true}}"
    item="{{deliverTypeItem}}"
  />
</wrapper>