order-details.vue 3.6 KB
<template>
  <view>
    <view class="" v-for="(item,index) in 2" :key="index">
      <view class="order-item">
        <view class="pickup-code">
          <image src="/static/checkbox.png" mode=""></image>
          <text style="margin: 0 12rpx 0 18rpx;font-size: 28rpx;">取货码</text>
          <text class="code-number">122452</text>
        </view>
        <view class="address">福建省三明市梅列区列西街道17幢</view>
        <view class="address-desc">
          <text style="font-size: 26rpx;">谢筠竹</text>
          <text style="margin-left: 16rpx;">13000000000</text>
        </view>
        <view class="shopping-desc">
          <view class="title">订单编号:123456795262366</view>
          <view class="shopping-item" v-for="(item,index) in 2" :key="index"
            :style="{'margin-bottom':index!==1?'48rpx':''}">
            <image src="/static/logo.png" mode=""></image>
            <view class="right-desc">
              <view class="desc-title">一加 9RT 5GoneLine1汉米尔顿女士复古一加
                9RoneLineoneLineoneLineoneLineoneLineoneLineoneLineoneLine.</view>
              <view class="product-specifications">
                <text> 海蓝色,256G</text><text>x1</text>
              </view>
              <view class="expedited-orders">着急需要,麻烦尽快接单</view>
            </view>
          </view>
        </view>
      </view>
      <view class="split-line"></view>
    </view>
    <!-- 按钮 -->
    <view class="bottomBar">
      <view class="barBox">
        <view class="btn">立即取货 </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
  page {
    font-size: 24rpx;
    padding-bottom: 188rpx;
  }

  .order-item {
    @include wrapPadding(750rpx, 32rpx, 24rpx, 32rpx, 24rpx);
    width: 702rpx;
  }

  .pickup-code {
    font-weight: 700;
    @include flexcenter();

    image {
      @include commonIconWh(36rpx);
    }

    .code-number {
      color: #EC3323;
      font-size: 55rpx;
    }
  }

  .address {
    font-size: 28rpx;
    font-weight: 700;
    margin: 16rpx 0 8rpx 0;
  }

  .shopping-desc {
    @include wrapPadding(702rpx, 24rpx, 24rpx, 24rpx, 24rpx);
    margin-top: 16rpx;
    height: 452rpx;
    border-radius: 16rpx;
    background: #f5f5f5ff;

    .title {
      margin-bottom: 14rpx;
    }

    .shopping-item {
      @include flexCj();
      height: 160rpx;
      border-radius: 8rpx;

      image {
        @include commonIconWh(160rpx, 16rpx);
        margin-right: 16rpx;
      }

      .right-desc {

        .desc-title {
          width: 478rpx;
          @include oneLine(2);
        }

        .product-specifications {
          @include flexCj();
          color: #00000066;
          margin-top: 8rpx;
        }

        .expedited-orders {
          color: #EC3323;
          margin-top: 8rpx;
          padding-left: 16rpx;
          width: 478rpx;
          height: 44rpx;
          line-height: 44rpx;
          border-radius: 8rpx;
          background: #ffffffff;
        }
      }
    }
  }

  .split-line {
    width: 750rpx;
    height: 16rpx;
    background: #f5f5f5ff;
  }

  .bottomBar {
    position: fixed;
    z-index: 999;
    left: 0;
    right: 0;
    bottom: 0;
    height: 188rpx;
    width: 750rpx;
    background-color: #fff;

    .barBox {
      @include wrapPadding(750rpx, 16rpx, 32rpx, 0, 32rpx);

      .btn {
        @include flexCj(center);
        color: #ffffffff;
        font-size: 32rpx;
        font-weight: 700;
        height: 88rpx;
        border-radius: 54rpx;
        background: #ec3323ff;
      }
    }
  }
</style>