open.vue 22.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
<template>
  <div class="open-container">
    <!-- <div class="box_bg_wrap">
      <div class="top_widget">
        <div class="wrap">
          <div class="title_wrap">
            <img class="icon1" src="../../assets/money_icon.png" />
            <span class="h3_title">累计产值</span>
            <img class="icon cur" @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" />
            <div v-if="showTip" class="tipContentClass">
              <div class="title">说明</div>
              <p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
              <p class="h20_title">昨日产值:当前时间前一天的产值</p>
              <p class="h20_title">今日产值:当前时间的实时产值</p>
              <p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
              <p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
              <p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
              <p class="h20_title">发券总数:统计时间范围内旗下所有门店的发券总量</p>
              <p class="h20_title">核券总数:统计时间范围内旗下所有门店的核券总量</p>
              <p class="h20_title">转化订单数:统计时间范围内旗下所有门店的转化的升级(主)订单笔数</p>
              <div class="single"></div>
              <div class="single1"></div>
            </div>
          </div>
          <div class="price_max">
            <span style="line-height: 33px" class="h8_title">¥{{ productValueInfo.divisionMoney || '---' }}</span>
          </div>
          <template v-if="accountLevel == 4">
            <span class="text_tip h12_title">{{ showMoneyLineTitle }}</span>
            <div class="posi_wrapper">
              <p class="h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</p>
              <p style="height: 15px"></p>
              <p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p>
            </div>
            <span class="text_tip_price2 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
            <span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span>
            <span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
          </template>
          <template v-if="accountLevel != 4">
            <span class="text_tip_price10 h13_title">昨日产值:{{ productValueInfo.yesterdayDivisionMoney ? '¥' : '' }}{{ productValueInfo.yesterdayDivisionMoney || '---' }}</span>
            <span class="text_tip_price9 h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</span>
            <div class="posi_wrapper128 flex_cc">
              <span class="h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span>
              <p style="width: 52px;height:1"></p>
              <span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
            </div>
            <span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
            <span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span>
          </template>
        </div>
        <div class="wrap">
          <div class="date_line">
            <div class="date_title_label">统计时间</div>
            <div class="date_wrap">
              <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartStartDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartStartTime" :picker-options="pickerOptions1"></el-date-picker>
            </div>
            <div class="drive_w"></div>
            <div class="date_wrap">
              <el-date-picker style="width: 160px" :key="dateType == 'date' ? 'day' : 'month'" size="mini" v-model="chartEndDate" :type="dateType" :placeholder="dateplaceholder" @change="getChartEndTime" :picker-options="pickerOptions1"></el-date-picker>
            </div>
            <div class="drive_w"></div>
            <el-button size="mini" type="primary" @click="toFindChart">确定</el-button>
            <div class="drive_w"></div>
            <el-button size="mini" type="primary" @click="toChangeMonth">按月</el-button>
            <div class="drive_w"></div>
            <el-button size="mini" type="primary" @click="toChangeDay">按日</el-button>
          </div>
          <div class="funnle_chart_wrap">
            <funnel ref="myFunnel" echartId="my-funnel"></funnel>
          </div>
        </div>
        <div v-if="!showMore" class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
          <span>查看详情</span>
          <img class="icon" src="../../assets/down_icon.png" />
        </div>
      </div>
      <div v-if="accountLevel == 4" class="mian_line"></div>
      <div v-if="accountLevel != 4" class="mian_line2"></div>
      <template v-if="accountLevel == 4">
        <div ref="chartFather" v-show="showMore" class="bottom_widget">
          <div :style="'width:' + chartWidth + 'px'" class="chart_wrapper">
            <bar-chart ref="mybar" :width="chartWidth" echartId="mybar"></bar-chart>
          </div>
          <div :style="'width:' + chartWidth + 'px'" class="chart_wrapper">
            <line-chart :width="chartWidth" ref="myline" echartId="myline"></line-chart>
          </div>
          <div class="mid_line"></div>
          <div class="showMoreBtn h7_title flex_cc" @click="toChangeShowMoreBtn(showMore)">
            <span>收缩详情</span>
            <img class="icon" src="../../assets/updown_icon.png" />
          </div>
        </div>
      </template>
      <div v-show="accountLevel != 4">
        <bloc-con ref="mybloc" :width="chartWidth" :show="openRankFlag" @showRanking="toOpenRanking"></bloc-con>
      </div>
    </div> -->
    <div v-show="accountLevel != 4">
      <ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
    </div>
    <div class="box_bg_wrap mini_margin">
      <div class="tab_wrap">
        <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'">
          <!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
          <template v-for="(item, index) in tabList">
            <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)">
              <!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> -->
              <div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
            </div>
          </template>
        </div>
      </div>
      <template v-if="accountLevel == 4">
        <!-- <template v-if="curTabIndex == 0">
          <coupons-order></coupons-order>
        </template> -->
        <template v-if="curTabIndex == 0">
          <upgrade-order></upgrade-order>
        </template>
        <template v-if="curTabIndex == 1">
          <my-fashionable-order></my-fashionable-order>
        </template>
      </template>
      <template v-if="accountLevel != 4">
        <template v-if="curTabIndex == 0">
          <upgrade-order :list="storeList"></upgrade-order>
        </template>
        <template v-if="curTabIndex == 1">
          <my-fashionable-order :list="storeList"></my-fashionable-order>
        </template>
      </template>
    </div>
  </div>
</template>

<script>
import funnel from '../../components/service-echart/funnel.vue'
import bar from '../../components/service-echart/bar.vue'
import line from '../../components/service-echart/line.vue'
import couponsOrder from './couponsOrder.vue'
import upgradeOrder from './upgradeOrder.vue'
import myFashionableOrder from './myFashionableOrder.vue'
import blocCon from './blocCon.vue'
import ranking from './ranking.vue'
import { orderTotal, orderTotalOfJT, get4SList } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
import util from '../../util/util'
// const openDdate = JSON.parse(localStorage.getItem('openInfo'))
export default {
  name: '',
  components: {
    funnel,
    'bar-chart': bar,
    'line-chart': line,
    'coupons-order': couponsOrder,
    'upgrade-order': upgradeOrder,
    'my-fashionable-order': myFashionableOrder,
    'bloc-con': blocCon,
    ranking: ranking
  },
  data() {
    return {
      tipContent: '总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。',
      accountLevel: 4,
      startDate: '', // 券开始时间
      endDate: '', //券结束时间
      dateType: 'date',
      dateplaceholder: '选择日期',
      showMore: true,
      tabList: ['精品升级订单', '我的分账'],
      // tabList: ['精品礼券领取订单', '精品升级订单'],
      curTabIndex: 0,
      customName: '',
      hxstatus: '',
      dateBetween: '',
      hxdateBetween: '',
      phoneNum: '',
      productValueInfo: {},
      showMoneyLineTitle: '',
      //图表时间
      chartStartDate: '',
      chartEndDate: '',
      openRankFlag: false,
      showTip: false,
      firsStore: null,
      persent: 0,
      storeList: [],
      pickerOptions1: {},
      chartWidth: 400
    }
  },
  created() {
    const { session } = this.$globalState
    this.accountLevel = session.accountLevel
    if (session.accountLevel != 4) {
      this.tabList = ['订单明细', '分账明细']
      // this.tabList = ['订单明细']
      // this.toGet4SStore()
    }
    // 获取上一次打开的状态
    let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`)
    if (lastOpenStatus) {
      let data = JSON.parse(lastOpenStatus)
      if (session.merchantId == data.id) {
        this.showMore = data.status
      }
    }
    this.pickerOptions1 = this.setDateLimit()
  },
  mounted() {
    let bodyWidth = document.body.clientWidth
    this.chartWidth = bodyWidth / 2.5
    this.judgeOpen()
  },
  methods: {
    // 设置日期组件时间范围
    setDateLimit() {
      let openInfo = JSON.parse(localStorage.getItem('openInfo'))
      let startdate = util.dateFormat(openInfo.openDate)
      let obj = {
        disabledDate(time) {
          return time.getTime() > Date.now() || time.getTime() < new Date(startdate).getTime()
        }
      }
      return obj
    },
    toOpenRanking(e) {
      this.openRankFlag = e
    },
    toCloseRanking(e) {
      this.openRankFlag = e
    },
    toFindChart() {
      let type = this.dateType

      if (!this.chartStartDate) {
        this.chartStartDate = this.bengintime
      }
      if (!this.chartEndDate) {
        this.chartEndDate = utils.dateFormat(new Date())
      }

      if (type == 'date') {
        //按天
        // 漏斗图
        this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate)
        // 集团折线图+列表
        if (this.accountLevel != 4) {
          this.$refs.mybloc.changeTimeForLine(this.chartStartDate, this.chartEndDate)
          this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate, this.chartEndDate)
        }
        if (this.accountLevel == 4) {
          this.$refs.mybar.couponsChartData(this.chartStartDate, this.chartEndDate)
          this.$refs.myline.couponsChartData(this.chartStartDate, this.chartEndDate)
        }
        // 累计产值
        this.bengintime = this.chartStartDate
        this.endtime = this.chartEndDate
        this.orderDataInfo()
      } else {
        //按月
        let start = this.chartStartDate
        let end = this.chartEndDate
        end = utils.dateFormat(new Date(utils.getLastDay(end)))
        // if (new Date(start).getTime() == new Date(end).getTime()) {
        //   end = utils.dateFormat(new Date(utils.getLastDay(end)))
        //   console.log(end)
        // }
        // 漏斗图
        this.$refs.myFunnel.couponsChartData(start, end)
        // 集团折线图+列表
        if (this.accountLevel != 4) {
          this.$refs.mybloc.changeTimeForLine(start, end)
          this.$refs.mybloc.orderDataInfoOfJT(start, end)
        }
        if (this.accountLevel == 4) {
          this.$refs.mybar.couponsChartData(start, end)
          this.$refs.myline.couponsChartData(start, end)
        }
        this.bengintime = start
        this.endtime = end
        // 累计产值
        this.orderDataInfo()
      }
    },
    getChartStartTime(e) {
      if (!e) {
        return
      }
      this.chartStartDate = utils.dateFormat(e)
    },
    getChartEndTime(e) {
      if (!e) {
        return
      }
      this.chartEndDate = utils.dateFormat(e)
    },
    toChangeMonth() {
      this.dateType = 'month'
      this.dateplaceholder = '选择月'
    },
    toChangeDay() {
      this.dateType = 'date'
      this.dateplaceholder = '选择日期'
    },
    changeTab(index) {
      this.curTabIndex = index
    },
    toChangeShowMoreBtn(flag) {
      this.showMore = !flag
      const { merchantId } = this.$globalState.session
      localStorage.setItem(`showMore${merchantId}`, JSON.stringify({ id: merchantId, status: !flag }))
    },
    // 已开通--订单统计
    judgeOpen() {
      let openInfo = JSON.parse(localStorage.getItem('openInfo'))
      this.bengintime = utils.dateFormat(openInfo.openDate)
      // this.bengintime = utils.getDateStr(-15)
      this.endtime = utils.dateFormat(new Date())
      // this.chartStartDate = utils.getDateStr(-15)
      this.chartStartDate = this.bengintime
      this.chartEndDate = this.endtime
      this.orderDataInfo()
    },
    // 门店统计
    orderDataInfo() {
      let method = orderTotal()
      let para = {
        routerMethod: method,
        beginDateStr: this.bengintime,
        endDateStr: this.endtime,
        reportType: 2
      }
      converterApi(para).then(res => {
        this.productValueInfo = res
        // 判断累计产值跟行业平均产值
        this.showMoneyLineTitle = res.divisionMoney > res.totalDivisionMoney ? '高于基准线' : '低于基准线'
        this.orderAll()
      })
    },
    orderAll() {
      if (this.accountLevel == 4) {
        return
      }
      let openInfo = JSON.parse(localStorage.getItem('openInfo'))
      this.bengintime = utils.dateFormat(openInfo.openDate)
      let method = orderTotalOfJT()
      let para = {
        routerMethod: method,
        beginDateStr: this.bengintime,
        endDateStr: this.endtime,
        reportType: 2,
        orderByType: 1 //1 分账  2分润
      }
      converterApi(para).then(res => {
        let arr = res || []
        if (arr.length) {
          this.firsStore = arr[0]
          let temp = utils.decimal(arr[0].divisionMoney / this.productValueInfo.divisionMoney, 2) || 0
          this.persent = utils.decimal(temp * 100, 2)
        }
      })
    }
    // toGet4SStore() {
    //   const { session } = this.$globalState
    //   let level = this.accountLevel
    //   let para = {
    //     currentPage: 1,
    //     pageSize: 200000
    //   }
    //   let temp = level + 1
    //   if (session.admin) {
    //     temp = 1
    //   }
    //   para = {
    //     ...para,
    //     'merchantAccountLevelList[0]': temp
    //   }
    //   get4SList(para).then(res => {
    //     if (res) {
    //       this.storeList = res.list || []
    //     }
    //   })
    // }
  }
}
</script>
<style lang="scss" scoped>
.box_bg_wrap {
  width: 100%;
  background: #ffffff;
  // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
  // margin-top: 17px;
}
.mini_margin {
  margin-top: 16px;
}
.top_widget {
  width: 100%;
  height: 314px;
  display: flex;
  position: relative;
  .wrap {
    width: 50%;
    height: 100%;
    position: relative;
    .title_wrap {
      position: absolute;
      top: 25px;
      left: 21px;
      display: flex;
      align-items: center;
      font-size: 18px;
      color: #5850ff;
      > span {
        margin: 0 10px 0 5px;
      }
      > img {
        width: 18px;
        height: 18px;
      }
      .cur {
        cursor: pointer;
        position: relative;
      }
      .tipContentClass {
        position: absolute;
        left: 130px;
        top: -15px;
        width: 500px;
        // height: 94px;
        background: #ffffff;
        box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
        border: 1px solid #e4e7ed;
        z-index: 999;
        box-sizing: border-box;
        padding: 10px 9px;
        .title {
          font-size: 12px;
          font-weight: bold;
          color: #333333;
          z-index: 999;
          position: relative;
        }
        > p {
          z-index: 999;
          position: relative;
          margin-top: 10px;
          line-height: 18px;
        }
        .single {
          position: absolute;
          left: -5px;
          top: 15px;
          // transform: translate(0, -50%);
          width: 10px;
          height: 10px;
          background: #ffffff;
          transform: rotate(-60deg);
          border: 1px solid #e4e7ed;
          z-index: -1;
        }
        .single1 {
          position: absolute;
          left: 0px;
          top: 50%;
          transform: translate(0, -50%);
          width: 20px;
          height: 100%;
          background: #ffffff;
          z-index: 22;
        }
      }
      .icon1 {
        width: 16.22px;
        height: 21.85px;
      }
    }
    .price_max {
      position: absolute;
      top: 102px;
      left: 20px;
    }
    .text_tip {
      position: absolute;
      left: 20px;
      top: 135px;
      line-height: 20px;
    }
    .posi_wrapper {
      position: absolute;
      top: 102px;
      right: 108px;
      min-width: 110px;
    }
    .text_tip_price2 {
      position: absolute;
      bottom: 90px;
      left: 20px;
    }
    .text_tip_price3 {
      position: absolute;
      bottom: 60px;
      left: 20px;
    }
    .text_tip_price4 {
      position: absolute;
      bottom: 60px;
      left: 261px;
    }
    .text_tip_price11 {
      position: absolute;
      bottom: 90px;
      left: 261px;
    }
    .text_tip_price5 {
      position: absolute;
      bottom: 60px;
      left: 261px;
    }
    .text_tip_price6 {
      position: absolute;
      bottom: 60px;
      left: 21px;
    }
    .text_tip_price7 {
      position: absolute;
      bottom: 90px;
      left: 21px;
    }
    .text_tip_price8 {
      position: absolute;
      bottom: 90px;
      right: 60px;
    }
    .text_tip_price12 {
      position: absolute;
      bottom: 90px;
      left: 261px;
    }
    .posi_wrapper128 {
      position: absolute;
      bottom: 90px;
      left: 261px;
    }
    .text_tip_price9 {
      position: absolute;
      top: 131px;
      left: 261px;
    }
    .text_tip_price10 {
      position: absolute;
      top: 102px;
      left: 261px;
    }
    .date_line {
      box-sizing: border-box;
      padding: 28px 22px 0 28px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      overflow: hidden;
      .date_title_label {
        font-size: 14px;
        font-weight: 500;
        color: #000000;
        margin-right: 11px;
        white-space: nowrap;
      }
      .drive_w {
        width: 10px;
        height: 1px;
      }
      .date_wrap {
        width: 160px;
      }
    }
    .funnle_chart_wrap {
      width: 100%;
      height: 258px;
    }
  }
}
.mian_line {
  margin: 0 42px;
  background: #e8e8ea;
  height: 1px;
}
.mian_line2 {
  margin: 0 22px;
  background: #e8e8ea;
  height: 1px;
}
.bottom_widget {
  height: 400px;
  position: relative;
  display: flex;
  justify-content: space-between;
  .chart_wrapper {
    width: 50%;
    height: 350px;
    // background: #999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mid_line {
    width: 1px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    height: 350px;
    background: #e8e8ea;
  }
}
.tab_wrap {
  box-sizing: border-box;
  padding: 22px 15px;
  .tab_line {
    width: 48%;
    background: #f4f6fc;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 2px;
    .tab_element_wrap {
      width: 33.33%;
      height: 36px;
      .tab_item {
        width: 100%;
        height: 100%;
        cursor: pointer;
      }
      .tab_item_active {
        background: #ffffff;
        font-weight: 500;
        color: #5850ff;
        border-radius: 4px;
      }
    }
  }
}
// 精品礼券
.find_wrap {
  padding-bottom: 17px;
  .find_line {
    padding: 0 15px;
    overflow: hidden;
  }
  .cell_item {
    margin-right: 30px;
  }
  .find_line,
  .cell_item {
    display: flex;
    align-items: center;
    .cell_label {
      width: 56px;
      text-align: right;
      padding-right: 15px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .mybtn {
      width: 120px;
      height: 26px;
      background: #ffffff;
      border-radius: 4px 0px 0px 4px;
      border: 1px solid #e8e8ea;
      cursor: pointer;
      border-right: none;
      > i {
        margin-left: 5px;
        font-size: 5px;
      }
    }
    .myfindWidth {
      width: 215px;
    }
    .myfindWidth1 {
      width: 166px;
    }
  }
  .cell_btn_item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .cell_btn {
      width: 78px;
    }
    .cell_btn_max {
      width: 156px;
    }
  }
}
.table_wrap {
  padding: 0 15px;
  padding-bottom: 10px;
}
// 我的分账
.tip_wrap {
  box-sizing: border-box;
  padding: 5px 15px 22px 15px;
}
.tip_wrap_line {
  margin: 0 15px;
  height: 1px;
  background: #e8e8ea;
  margin-bottom: 20px;
}
// 查看收缩按钮
.showMoreBtn {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translate(-50%, 0);
  width: 105px;
  height: 30px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  > img {
    margin-left: 5px;
    width: 10px;
    height: 9px;
  }
}
</style>