<template>
  <zj-page-layout
  	:hasFooter="true"
  	:isScroll="true"
  	:refresherTriggered="refresherTriggered"
  	@refresherrefresh="refresherrefresh">

    <view class="address-container">
      <view class="icon"><text class="iconfont icon-dingwei1"></text></view>
      <view class="hasdata">
        <view class="name">莫先生<text>13686123123</text></view>
        <view class="address ellipsis-2">广东省广州市</view>
      </view>
    </view>

    <view class="goods-container">
      <view class="title">商品信息</view>
      <view class="goods">
        <image src="@/static/user/other_book.png"></image>
        <view class="main">
          <view class="name">商品名称</view>
          <view class="des">商品描述</view>
          <view class="price"><text>¥18.00</text>x2</view>
        </view>
      </view>
      <view class="total">订单总金额<text>¥1200.00</text></view>
    </view>

    <view class="order-container">
      <view class="title">订单信息</view>
      <view class="row">订单编号：1234321232</view>
      <view class="row">创建时间：1234321232</view>
      <view class="row">付款时间：1234321232</view>
      <view class="row">支付方式：1234321232</view>
      <view class="row">支付单号：1234321232</view>
      <view class="row">发货时间：1234321232</view>
      <view class="row">收货时间：1234321232</view>
    </view>

    <template slot="footer">
      <view class="bottom-container">
        <u-button text="取消订单" shape="circle"></u-button>
      </view>
    </template>

  </zj-page-layout>
</template>

<script>

</script>

<style lang="scss" scoped>
.address-container {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  height: 150rpx;
  padding: 0 20rpx;
  margin-top: 30rpx;
  .icon {
    width: 52rpx;
    height: 52rpx;
    border-radius: 50%;
    background: $theme-color;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    margin-right: 20rpx;
    .iconfont {
      font-size: 36rpx;
      color: #ffffff;
    }
  }
  .hasdata {
    .name {
      font-size: 32rpx;
      color: #333333;
      text {
        color: #999999;
        font-size: 28rpx;
        margin-left: 16rpx;
      }
    }
    .address {
      font-size: 28rpx;
      color: #666666;
      line-height: 34rpx;
      margin-top: 10rpx;
    }
  }
}

.goods-container {
  background: #ffffff;
  margin-top: 30rpx;
  padding: 30rpx 30rpx 0;
  .title {
    font-weight: 500;
  }
  .goods {
    display: flex;
    padding: 30rpx 0;
    image {
      width: 120rpx;
      height: 120rpx;
    }
    .main {
      flex: 1;
      margin-left: 20rpx;
      .name {
        font-size: 32rpx;
      }
      .des {
        margin-top: 12rpx;
        font-size: 28rpx;
        color: $reg-font;
      }
      .price {
        margin-top: 12rpx;
      	text {
      		color: $assist-color;
      		font-weight: 500;
      		font-size: 32rpx;
          margin-right: 12rpx;
      	}
      }
    }
  }
  .total {
    border-top: 1px solid #eaeaea;
    height: 80rpx;
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 28rpx;
    text {
      margin-left: 12rpx;
      color: $assist-color;
    }
  }
}

.order-container {
  background: #ffffff;
  margin-top: 30rpx;
  padding: 30rpx;
  .title {
    font-weight: 500;
    margin-bottom: 20rpx;
  }
  .row {
    margin-top: 12rpx;
    font-size: 28rpx;
    text {
      color: $assist-color;
    }
  }
}

.bottom-container {
  padding: 20rpx 30rpx;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  .u-button {
    width: auto;
    height: 60rpx;
    margin: 0;
    margin-left: 20rpx;
  }
}

</style>
