<template>
  <view class="main">
      <view class="header">
        <!--  占位  -->
        <view :style="{height: menu.bottom + 6 + 'px',marginBottom:'8px'}"></view>
        <view class="selectTimeBox" :style="{height: menu.bottom + 6 + 'px'}">
          <view class="selectTime" :style="{height: menu.height + 'px'}">
            <image class="backIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/navigation-left.svg" @click="handleBack"/>
            <picker mode="date" fields="month" :value="single" :start="startDate" :end="endData" @change="bindDateChange">
              <view class="timeBox">
                <image class="timeIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/selectIcon.svg"/>
                <text class="timeText">{{single}}</text>
                <image class="downIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/downIcon.svg"/>
              </view>
            </picker>
          </view>
        </view>

        <swiper :current="currentSwiper" @change="changeSwiper">
<!--          :indicator-dots="true" indicator-color="rgb(225, 227, 232)" indicator-active-color="rgb(178, 180, 185)"-->
          <swiper-item v-for="(item,index) in swiperList" :key="index">
            <view class="detailBox" >
              <view class="listItem">
                <view class="typeBox">商家</view>
                <view class="itemTop">
                  <view class="itemLeft">
                    <image class="listItemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/shopIcon.svg"/>
                  </view>

                  <view class="itemRight">
                    <view class="rightTitleBox">
                      <text class="title">{{item.MerchantName}}</text>
                    </view>
                    <view style="display: inline-block">
                      <view class="numberProject">{{ `${item.ProjectCount}个项目` }}</view>
                    </view>
                  </view>
                </view>

                <view class="moneyBox">
                  <view class="moneyItem">
                    <view class="moneyLeft">
                      <image class="moneyItemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/accountIcon.svg"/>
                    </view>
                    <view class="moneyDetail">
                      <text class="itemLabel">到账 /万元</text>
                      <text class="itemValue">{{item.SubRoyaltyPrice?$util.getMoney(item.SubRoyaltyPrice/10000):'-'}}</text>
                    </view>
                  </view>

                  <view class="moneyItem">
                    <view class="moneyLeft">
                      <image class="moneyItemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/entryIcon.svg"/>
                    </view>
                    <view class="moneyDetail">
                      <text class="itemLabel">入账 /万元</text>
                      <text class="itemValue">{{item.SubRoyaltyTheory?$util.getMoney(item.SubRoyaltyTheory/10000):'-'}}</text>
                    </view>
                  </view>

                  <view class="moneyItem">
                    <view class="moneyLeft">
                      <image class="moneyItemIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/payIcon.svg"/>
                    </view>
                    <view class="moneyDetail">
                      <text class="itemLabel">应缴 /万元</text>
                      <text class="itemValue">{{item.ReceivableAmount?$util.getMoney(item.ReceivableAmount/10000):'-'}}</text>
                    </view>
                  </view>
                </view>
              </view>
            </view>
          </swiper-item>
        </swiper>
      </view>

    <view class="merchantData">
      <view class="titleBox">
        <view class="smallBox">
          <image class="storeIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/merchantIcon.svg"/>
          <text class="title">商家数据</text>
        </view>
        <view class="sortBox">
          <view class="sortItem" style="margin-right: 48rpx" @click="handleChangeSortName(1)">
            <text class="sortText">到账</text>
            <view class="sortIconBox">
              <image class="upIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:``}" :src="sortType===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg':sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
              <image class="bottomIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:'rotate(-180deg)'}":src="sortType===1 && sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
            </view>
          </view>

          <view class="sortItem" style="margin-right: 48rpx" @click="handleChangeSortName(2)">
            <text class="sortText">入账</text>
            <view class="sortIconBox">
              <image class="upIcon" :style="{transform: sortName===2?sortType===1?``:`rotate(180deg)`:``}" :src="sortType===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg':sortName===2?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
              <image class="bottomIcon" :style="{transform: sortName===2?sortType===1?``:`rotate(180deg)`:'rotate(-180deg)'}":src="sortType===1 && sortName===2?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
            </view>
          </view>

          <view class="sortItem" @click="handleChangeSortName(3)">
            <text class="sortText">应缴</text>
            <view class="sortIconBox">
              <image class="upIcon" :style="{transform: sortName===3?sortType===1?``:`rotate(180deg)`:``}" :src="sortType===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg':sortName===3?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
              <image class="bottomIcon" :style="{transform: sortName===3?sortType===1?``:`rotate(180deg)`:'rotate(-180deg)'}":src="sortType===1 && sortName===3?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
            </view>
          </view>
        </view>
      </view>

      <scroll-view :show-scrollbar="false" scroll-y="true" class="listBox" :style="{height: 'calc(100vh - 320px)'}" v-if="dataList && dataList.length>0">
        <view class="listItem" v-for="(item,index) in dataList">
          <view class="bigBox">
            <view class="itemLeft" >
              <image class="bg" src="https://eshangtech.com/ShopICO/ahyd-BID/car/itemLeftBg.svg"/>
              <!--            <view class="statueBox" :style="{backgroundImage:`url(${item.RevenueAmount?'https://eshangtech.com/ShopICO/ahyd-BID/car/statusHaveBg.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/statusNoHaveBg.svg'})`}">{{item.RevenueAmount?'营业中':'休息中'}}</view>-->
              <view class="nameBox">
                <text class="serviceName">{{item.ServerpartName.split('服务区')[0]}}</text>
                <text class="serviceLabel">服务区</text>
              </view>
            </view>
            <view class="itemRight">
              <view class="itemRightTop">
                <view class="topLeft">
                  <view class="indexBox" :style="{backgroundImage:`url(${0===0?'https://eshangtech.com/ShopICO/ahyd-BID/car/1stBg.svg':index===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/2stBg.svg':index===2?'https://eshangtech.com/ShopICO/ahyd-BID/car/3stBg.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/4stBg.svg'})`}">
                    {{index+1}}
                  </view>
                  <text class="brandLabel">品牌数量<text class="brandValue">{{item.BrandCount?item.BrandCount:''}}</text></text>
                </view>
                <view class="topRight" @click="handleExpand(item)">
                  <text class="retract">{{ item.showChild?'收起':'展开' }}</text>
                  <image class="retractIcon" :style="{transform: `rotate(${item.showChild?'180deg':''})`}" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/retractIcon.svg"/>
                </view>
              </view>

              <view class="itemRightBottom">
                <view class="bottomItem">
                  <text class="bottomLabel">到账<text class="bottomUnit">/万元</text></text>
                  <text class="bottomValue">{{item.SubRoyaltyPrice?$util.getMoney(item.SubRoyaltyPrice/10000):'-'}}</text>
                </view>

                <view class="bottomItem">
                  <text class="bottomLabel">入账<text class="bottomUnit">/万元</text></text>
                  <text class="bottomValue">{{item.SubRoyaltyTheory?$util.getMoney(item.SubRoyaltyTheory/10000):'-'}}</text>
                </view>

                <view class="bottomItem">
                  <text class="bottomLabel">应缴<text class="bottomUnit">/万元</text></text>
                  <text class="bottomValue">{{item.ReceivableAmount ?$util.getMoney(item.ReceivableAmount/10000):'-'}}</text>
                </view>
              </view>
            </view>
          </view>

          <view class="smallListBox" v-if="item.BrandAccountList && item.BrandAccountList.length>0 && item.showChild">
            <view class="smallItem" v-for="(subItem,subIndex) in item.BrandAccountList" :key="subIndex">
              <view class="smallItemTop">
                <view class="brandIcon">
                  <image class="brandImage" :src="subItem.BrandICO?subItem.BrandICO:'https://eshangtech.com/ShopICO/ahyd-BID/brand/defaultIcon.png'"/>
                </view>

                <view class="smallDetailBox">
                  <view class="brandNameBox">
                    <text class="brandName">{{subItem.BrandName || '-'}}</text>
                    <image class="brandMore" src="https://eshangtech.com/ShopICO/ahyd-BID/merchantAccount/goMore.svg"/>
                  </view>
                  <view class="typeBox">
                    <view class="typeItem" style="background: #FFEFEA;color: #FF6531" v-if="subItem.SettlementMods">{{settlementModes[subItem.SettlementMods]}}</view>
<!--                    {{settlementModes[subItem.SettlementMods]}}-->
                    <view class="typeItem" style="background: #E3EFFF;color: #1979FE" v-if="subItem.BusinessType">{{businessType[subItem.BusinessType]}}</view>
<!--                    {{businessType[subItem.BusinessType]}}-->
                  </view>
                </view>
              </view>

              <view class="otherBox">
                <view class="otherItem">
                  <text class="otherLabel">到账<text class="otherUnit">/元</text></text>
                  <text class="otherValue">{{subItem.SubRoyaltyPrice?$util.getMoney(subItem.SubRoyaltyPrice):'-'}}</text>
                </view>
                <view class="otherItem">
                  <text class="otherLabel">入账<text class="otherUnit">/元</text></text>
                  <text class="otherValue">{{subItem.SubRoyaltyTheory?$util.getMoney(subItem.SubRoyaltyTheory):'-'}}</text>
                </view>
                <view class="otherItem">
                  <text class="otherLabel">应缴<text class="otherUnit">/元</text></text>
                  <text class="otherValue">{{subItem.ReceivableAmount ?$util.getMoney(subItem.ReceivableAmount):'-'}}</text>
                </view>
              </view>
            </view>
          </view>
        </view>
      </scroll-view>

      <view class="noDataBox" :style="{height: 'calc(100vh - 360px)'}" v-else>
        <image class="typeImg" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/noData.svg"></image>
        <text class="noDataText">暂无数据</text>
      </view>
    </view>
  </view>
</template>
<script>
import request from '@/util/index.js'
export default {
  name:'detail',
  data(){
    return {
      menu:{},
      single:'',
      startDate:'2023-01',
      endData:'',
      sortName:3, // 排序字段 1到账 2入账 3应缴
      sortType:1, // 正序降序 0正序  1降序
      currentSwiper:0,
      swiperList:[],// 横向滑动的列表
      pageData:{},// 页面数据
      dataList:[],// 数据列表
      businessType:{},
      settlementModes:{},
      currentObj:{}
    }
  },
  async onLoad(query){
    this.menu = uni.getMenuButtonBoundingClientRect()
    let lastDay = ''
    const endDate = uni.getStorageSync('lastDay')
    if (query.selectTime){
      lastDay = query.selectTime
    }else{
      lastDay = uni.getStorageSync('lastDay')
    }

    const date = new Date(lastDay)
    let y = date.getFullYear()
    let m = date.getMonth() + 1
    this.single = `${y}-${m<10?'0'+m :m}`
    this.endData = endDate
    console.log('query',query)
    let list = []
    if (query.list){
      list = JSON.parse(query.list)
      console.log('list',list)
      this.swiperList = list
    }
    let currentObj = {}
    if (query.currentItem){
      currentObj = JSON.parse(query.currentItem)
      this.currentObj = currentObj
      console.log('currentObj',currentObj)
    }
    list.forEach((item,index)=>{
      if (item.MerchantId===currentObj.MerchantId){
        this.currentSwiper = index
      }
    })
    this.businessType = await this.handleGetField('BUSINESS_TYPE')
    this.settlementModes = await this.handleGetField('SETTLEMENT_MODES')
    this.handleGetDetail(currentObj.MerchantId)
    console.log('this.businessType',this.businessType)
    console.log('this.settlementModes',this.settlementModes)
  },
  methods:{
    // 拿到枚举
    async handleGetField(name){
      const data = await request.$webGet('EShangApiMain/FrameWork/GetFieldEnumByField', { FieldExplainField: name, sessionName: name })
      let list = data.Result_Data.List
      let obj = {}
      list.forEach(item=>{
        obj[item.value] = item.label
      })
      console.log('obj',obj)
      return obj
    },
    // 拿到详情数据
    async handleGetDetail(id){
      uni.showLoading({
        title: '正在加载...'
      })
      const date = new Date(this.single)
      let y = date.getFullYear()
      let m = date.getMonth() + 1
      if (m<10){
        m = '0' + m
      }
      const req = {
        StatisticsMonth:`${y}${m}`,
        MerchantId:id,
        SortStr:`${this.sortName===1?'SubRoyaltyPrice':this.sortName===2?'SubRoyaltyTheory':this.sortName===3?'ReceivableAmount':''}${this.sortType===1?' desc':''}`
      }
      const data = await request.$webGet('CommercialApi/Contract/GetMerchantAccountDetail',req)
      this.pageData = data.Result_Data
      let list = data.Result_Data.ProjectDetailList
      list.forEach(item=>{
        item.showChild = false
      })
      this.dataList = list
      console.log('pageData',this.pageData)
      console.log('dataList',this.dataList)
      uni.hideLoading()
    },
    bindDateChange(e){
      this.swiperList = []
      this.dataList = []
      this.$forceUpdate()
      this.single = e.detail.value
      this.handleGetSwiperList()
      this.handleGetDetail(this.currentObj.MerchantId)
    },
    // 返回
    handleBack(){
      uni.navigateBack({
        delta: 1
      });
    },
    handleChangeSortName(value){
      if (value===this.sortName){
        if (this.sortType===1){
          this.sortType=0
        }else{
          this.sortType=1
        }
      }else{
        this.sortName = value
        this.sortType=1
      }
      this.handleGetDetail(this.currentObj.MerchantId)
    },
    changeSwiper(e){
      console.log('echangeSwiper',e)
      this.dataList = []
      this.currentObj = this.swiperList[Number(e.detail.current)]
      this.handleGetDetail(this.currentObj.MerchantId)
    },
    // 展开收起
    handleExpand(obj){
      console.log('obj',obj)
      this.dataList.forEach(item=>{
        if (item.ServerpartId===obj.ServerpartId){
          item.showChild = !item.showChild
        }
      })
      this.$forceUpdate()
    },
    // 切换日期 要更新列表数据
    handleGetSwiperList(){
      uni.showLoading({
        title: '正在加载...'
      })
      const date = new Date(this.single)
      let y = date.getFullYear()
      let m = date.getMonth() + 1
      if (m<10){
        m = '0' + m
      }
      const req = {
        StatisticsMonth:`${y}${m}`,
        SortStr:`ReceivableAmount desc`
      }
      request.$webGet('CommercialApi/Contract/GetMerchantAccountSplit',req).then(res=>{
        this.swiperList = res.Result_Data.MerchantAccountList
        uni.hideLoading()
        console.log('this.swiperList',this.swiperList)
      })
    },
  }
}
</script>
<style scoped lang="scss">
.main{
  width: 100%;
  height: 100%;
  background: #F1F2F3;
  .header{
    width: 100%;
    height: 486rpx;
    background: linear-gradient(180deg, #D8E3FF 0%, #F3F3F3 100%);
    .selectTimeBox{
      position: fixed;
      top: 0;left: 0;
      z-index: 99;
      width: 100%;
      background: linear-gradient(180deg, #D8E3FF 0%, #E2EBFC 100%);
      box-sizing: border-box;
      padding-bottom: 6px;
      display: flex;
      align-items: flex-end;
      .selectTime{
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0 32rpx;
        .backIcon{
          width: 48rpx;
          height: 48rpx;
        }
        .timeBox{
          margin-left: 18rpx;
          display: flex;
          align-items: center;
          .timeIcon{
            width: 40rpx;
            height: 40rpx;
          }
          .timeText{
            font-size: 32rpx;
            font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
            font-weight: bold;
            color: #000000;
            line-height: 40rpx;
            margin: 0 12rpx;
          }
          .downIcon{
            width: 32rpx;
            height: 32rpx;
          }
        }
      }
    }
    .detailBox{
      background: #FFFFFF;
      border-radius: 18rpx;
      width: calc(100% - 64rpx);
      height: 248rpx;
      margin-left: 32rpx;
      box-sizing: border-box;
      padding: 2rpx;
      .listItem{
        width: 100%;
        padding: 24rpx;
        background: linear-gradient(314deg, #F4F8FF 0%, #F3F5FF 20%, #F5FAFF 75%, #F2F6FF 100%);
        border-radius: 16rpx;
        box-sizing: border-box;
        position: relative;
        .typeBox{
          position: absolute;
          right: 0;top: 0;
          background: linear-gradient(135deg, #D6E8FF 0%, #D5DFFE 100%);
          border-radius: 0rpx 16rpx 0rpx 16rpx;
          width: 80rpx;
          height: 40rpx;
          font-size: 24rpx;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          color: #166BF7;
          line-height: 36rpx;
          text-align: center;
        }

        .itemTop{
          display: flex;
          margin-bottom: 32rpx;
          .itemLeft{
            width: 90rpx;
            height: 90rpx;
            border-radius: 12rpx;
            overflow: hidden;
            margin-right: 16rpx;
            .listItemIcon{
              width: 100%;
              height: 100%;
            }
          }
          .itemRight{
            width: calc(100% - 84rpx);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .rightTitleBox{
              display: flex;
              align-items: center;
              .title{
                font-size: 28rpx;
                font-family: PingFangSC, PingFang SC;
                font-weight: 600;
                color: #160002;
              }
            }
            .numberProject{
              background: #DAF1FF;
              border-radius: 4rpx;
              font-size: 24rpx;
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              color: #0092EB;
              line-height: 36rpx;
              padding: 0 8rpx;
              display: inline-block;
            }
          }
        }
        .moneyBox{
          width: 100%;
          box-sizing: border-box;
          display: flex;
          .moneyItem{
            width: calc(100% / 3);
            display: flex;
            .moneyLeft{
              width: 64rpx;
              height: 64rpx;
              border-radius: 12rpx;
              background: rgba(228, 237, 255, 1);
              display: flex;
              align-items: center;
              justify-content: center;
              margin-right: 8rpx;
              .moneyItemIcon{
                width: 42rpx;
                height: 42rpx;
              }
            }
            .moneyDetail{
              width: calc(100% - 72rpx);
              display: flex;
              flex-direction: column;
              justify-content: space-between;
              .itemLabel{
                font-size: 24rpx;
                font-family: PingFangSC, PingFang SC;
                font-weight: 400;
                color: #9A9A9A;
                line-height: 36rpx;
              }
              .itemValue{
                font-size: 28rpx;
                font-family: DINAlternate, DINAlternate;
                font-weight: bold;
                color: #160002;
                line-height: 32rpx;
                letter-spacing: -0.5px;
              }
            }
          }
        }
      }
    }
  }

  .merchantData{
    width: calc(100% - 64rpx);
    margin-left: 32rpx;
    margin-top: 24rpx;
    border-radius: 16rpx;
    .titleBox{
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24rpx;
      .smallBox{
        display: flex;
        align-items: center;
        .storeIcon{
          width: 48rpx;
          height: 48rpx;
          margin-right: 8rpx;
        }
        .title{
          font-size: 28rpx;
          font-family: PingFangSC, PingFang SC;
          font-weight: 600;
          color: #160002;
          line-height: 40rpx;
        }
      }
      .sortBox{
        display: flex;
        align-items: center;
        .sortItem{
          display: flex;
          align-items: center;
          .sortText{
            font-size: 28rpx;
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            color: #9A9A9A;
            line-height: 40rpx;
          }
          .sortIconBox{
            display: flex;
            flex-direction: column;
            margin-left: 16rpx;
            .upIcon{
              width: 16rpx;
              height: 12rpx;
              margin-bottom: 4rpx;
            }
            .bottomIcon{
              width: 16rpx;
              height: 12rpx;
            }
          }
        }
      }
    }

    .listBox{
      width: 100%;
      .listItem{
        width: 100%;
        padding: 22rpx;
        box-sizing: border-box;
        background: #fff;
        border-radius: 16rpx;
        margin-bottom: 26rpx;
        .bigBox{
          display: flex;
          width: 100%;
          .itemLeft{
            width: 160rpx;
            height: 160rpx;
            border-radius: 16rpx;
            //border: 2rpx solid #E6E6E6;
            position: relative;
            background-repeat: no-repeat;
            background-size: cover;
            margin-right: 16rpx;
            .bg{
              position: absolute;
              width: 160rpx;
              height: 160rpx;
              top: 0;left: 0;
              z-index: 1;
            }
            .statueBox{
              position: absolute;
              z-index: 2;
              top: 0;right: 0;
              width: 76rpx;
              height: 32rpx;
              font-size: 20rpx;
              font-family: PingFangSC, PingFang SC;
              font-weight: 400;
              color: #FFFFFF;
              line-height: 28rpx;
              background-repeat: no-repeat;
              background-size: 100% 100%;
              text-align: center;
            }
            .nameBox{
              position: absolute;
              z-index: 2;
              top: 32rpx;
              left: 20rpx;
              display: flex;
              flex-direction: column;
              .serviceName{
                font-size: 30rpx;
                font-family: PingFangSC, PingFang SC;
                font-weight: 500;
                color: #7F020B;
                line-height: 30rpx;
              }
              .serviceLabel{
                font-size: 20rpx;
                font-family: PingFangSC, PingFang SC;
                font-weight: 500;
                color: #7F020B;
                line-height: 20rpx;
              }
            }
          }

          .itemRight{
            width: calc(100% - 176rpx);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .itemRightTop{
              display: flex;
              align-items: center;
              justify-content: space-between;
              .topLeft{
                display: flex;
                align-items: center;
                .indexBox{
                  width: 36rpx;
                  height: 32rpx;
                  font-size: 24rpx;
                  font-family: PingFangSC, PingFang SC;
                  font-weight: 400;
                  color: #FEFFFF;
                  line-height: 28rpx;
                  text-align: center;
                  background-repeat: no-repeat;
                  background-size: 100% 100%;
                  margin-right: 8rpx;
                }
                .brandLabel{
                  font-size: 28rpx;
                  font-family: PingFangSC, PingFang SC;
                  font-weight: 400;
                  color: #9A9A9A;
                  line-height: 40rpx;
                  .brandValue{
                    font-size: 28rpx;
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 600;
                    color: #160002;
                    line-height: 40rpx;
                    margin-left: 8rpx;
                    display: inline-block;
                  }
                }
              }
              .topRight{
                display: flex;
                align-items: center;
                background: #F4F4F4;
                border-radius: 12rpx;
                padding: 6rpx 16rpx;
                .retract{
                  font-size: 24rpx;
                  font-family: PingFangSC, PingFang SC;
                  font-weight: 400;
                  color: #786B6C;
                }
                .retractIcon{
                  width: 30rpx;
                  height: 30rpx;
                  margin-left: 8rpx;
                }
              }
            }

            .itemRightBottom{
              width: 100%;
              display: flex;
              .bottomItem{
                display: flex;
                flex-direction: column;
                width: calc(100% / 3);
                .bottomLabel{
                  font-size: 24rpx;
                  font-family: PingFangSC, PingFang SC;
                  font-weight: 400;
                  color: #9A9A9A;
                  line-height: 36rpx;
                  margin-bottom: 4rpx;
                  .bottomUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 400;
                    color: #9A9A9A;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                }
                .bottomValue{
                  font-size: 28rpx;
                  font-family: DINAlternate, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 32rpx;
                  letter-spacing: -0.5px;
                }
              }
            }
          }
        }


        .smallListBox{
          width: 100%;
          margin-top: 46rpx;
          .smallItem{
            margin-top: 40rpx;
            .smallItemTop{
              display: flex;
              align-items: center;
              margin-bottom: 16rpx;
              .brandIcon{
                width: 80rpx;
                height: 80rpx;
                border-radius: 12rpx;
                overflow: hidden;
                margin-right: 16rpx;
                .brandImage{
                  width: 100%;
                  height: 100%;
                }
              }
              .smallDetailBox{
                width: calc(100% - 96rpx);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                .brandNameBox{
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  .brandName{
                    font-size: 28rpx;
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 600;
                    color: #160002;
                    line-height: 40rpx;
                  }
                  .brandMore{
                    width: 32rpx;
                    height: 32rpx;
                  }
                }

                .typeBox{
                  display: flex;
                  align-items: center;
                  .typeItem{
                    margin-right: 8rpx;
                    font-size: 20rpx;
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 400;
                    line-height: 28rpx;
                    padding: 2rpx 8rpx;
                  }
                }
              }
            }

            .otherBox{
              width: 100%;
              box-sizing: border-box;
              padding-left: 96rpx;
              display: flex;
              align-items: center;
              .otherItem{
                width: calc(100% / 3);
                display: flex;
                flex-direction: column;
                .otherLabel{
                  font-size: 24rpx;
                  font-family: PingFangSC, PingFang SC;
                  font-weight: 400;
                  color: #9A9A9A;
                  line-height: 36rpx;
                  .otherUnit{
                    font-size: 24rpx;
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 400;
                    color: #9A9A9A;
                    line-height: 36rpx;
                    margin-left: 4rpx;
                  }
                }
                .otherValue{
                  font-size: 28rpx;
                  font-family: DINAlternate, DINAlternate;
                  font-weight: bold;
                  color: #160002;
                  line-height: 32rpx;
                }
              }
            }
          }
        }
      }
    }
    .noDataBox{
      width: 100%;
      margin-top: 24rpx;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .typeImg{
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
      }
      .noDataText{
        font-size: 28rpx;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #6C737A;
        line-height: 40rpx;
      }
    }
  }
}
</style>
