index.vue 21.2 KB
Newer Older
1
<template>
xd's avatar
xd committed
2 3 4 5 6 7 8 9
  <div class="main">
    <div class="main-manInfos">
      <div class="manInfo-logos">
        <img class="logos-logo" :src="test.manInfo.logoUrl" />
      </div>
      <div
        class="manInfo-name"
        @click="manInfoClick"
xd's avatar
xd committed
10
      >我的专柜:{{test.manInfo.barName}}</div>
xd's avatar
xd committed
11 12 13 14 15 16 17 18
      <div class="manInfo-switch" @click="switchBarClick">
        <div class="switch-text">切换</div>
        <img class="switch-icon" :src="test.manInfo.icon['1']" />
      </div>
    </div>
    <div class="main-tips">
      <div class="tips-tip">店铺粉丝 {{test.barInfo.fans}}</div>
      <div class="tips-tip">个人粉丝 {{test.barInfo.personalFans}}</div>
19 20 21 22 23
      <div class="tips-tip">
        昨日新增 <span>{{test.barInfo.newFans}}</span>
        <span>/</span>
        <span>{{test.barInfo.allNewFans}}</span>
      </div>
xd's avatar
xd committed
24 25 26 27 28 29
    </div>
    <div class="main-menus">
      <div class="menus-row">
        <div class="menu" @click="menu02Click">
          <img class="menu-logo" :src="test.menuInfo.icon['2']" />
          <div class="menu-text">任务列表</div>
30
        </div>
xd's avatar
xd committed
31 32 33 34
        <div class="menu" @click="menu05Click">
          <img class="menu-logo" :src="test.menuInfo.icon['5']" />
          <div class="menu-text">活动模版</div>
        </div>
xd's avatar
xd committed
35 36 37
        <div class="menu" @click="menu03Click">
          <img class="menu-logo" :src="test.menuInfo.icon['3']" />
          <div class="menu-text">活动列表</div>
38
        </div>
xd's avatar
xd committed
39 40 41 42 43
      </div>
      <div class="menus-row">
        <div class="menu" @click="menu04Click">
          <img class="menu-logo" :src="test.menuInfo.icon['4']" />
          <div class="menu-text">专柜维护</div>
xulili's avatar
xulili committed
44
        </div>
xd's avatar
xd committed
45 46 47 48
        <div class="menu" @click="menu06Click">
          <img class="menu-logo" :src="test.menuInfo.icon['6']" />
          <div class="menu-text">商品管理</div>
        </div>
xd's avatar
xd committed
49
        <div class="menu" @click="handleCoupon" v-if="flag == 1">
xd's avatar
xd committed
50 51 52
          <img class="menu-logo" :src="test.menuInfo.icon['1']" />
          <div class="menu-text">优惠券管理</div>
        </div>
xd's avatar
xd committed
53
      </div>
54
    </div>
xd's avatar
xd committed
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
    <div class="main-actives">
      <div class="actives-banners">
        <div class="actives-banner-title">现有开展活动</div>
      </div>
      <div class="actives-main">
        <div class="active-logos">
          <img class="active-logo" :src="test.activeInfo.icon['1']" />
        </div>
        <div class="active-infos">
          <div class="active-title">大转盘</div>
          <div class="active-dsc">{{test.cache.actDsc}}</div>
        </div>
      </div>
      <div class="actives-main">
        <div class="active-logos">
          <img class="active-logo" :src="test.activeInfo.icon['2']" />
        </div>
        <div class="active-infos">
          <div class="active-title">现金券发放</div>
          <div class="active-dsc">{{test.cache.actDsc}}</div>
        </div>
      </div>
      <div class="actives-main">
        <div class="active-logos">
          <img class="active-logo" :src="test.activeInfo.icon['3']" />
        </div>
        <div class="active-infos">
          <div class="active-title">集卡</div>
          <div class="active-dsc">{{test.cache.actDsc}}</div>
        </div>
      </div>
      <div class="actives-mores">
        <div class="mores-title">查看更多</div>
        <img class="mores-icon" :src="test.cache.arrowRightDark" />
      </div>
    </div>
    <div class="main-menuBar">
      <div class="menuBar-menu" @click="menuBarClick('MainSale')">
        <img class="menuBar-icon" :src="test.menuBarInfo.icon.now['1']" />
        <div class="menuBar-title menuBar-title-ac">活动</div>
      </div>
      <div class="menuBar-menu" @click="menuCase()">
        <img class="menuBar-icon" :src="test.menuBarInfo.icon.now['2']" />
        <div class="menuBar-title">案例</div>
      </div>
      <div class="menuBar-menu" @click="menuProfit()">
        <img class="menuBar-icon" :src="test.menuBarInfo.icon.now['3']" />
        <div class="menuBar-title">收益</div>
      </div>
      <div class="menuBar-menu" @click="menuTask()">
        <img class="menuBar-icon" :src="test.menuBarInfo.icon.now['4']" />
        <div class="menuBar-title">任务</div>
      </div>
      <div class="menuBar-menu" @click="menuBarClick('Me')">
        <img class="menuBar-icon" :src="test.menuBarInfo.icon.now['5']" />
        <div class="menuBar-title">我的</div>
      </div>
    </div>
  </div>
114 115 116
</template>

<script>
117
import axios from "axios";
xd's avatar
xd committed
118
import { getStoreDetail, getMemberListByCode, getDirector } from "@/api/sidebar/voucher";
119
import { configWx, getUserInfo } from "@/utils/aCommon";
xd's avatar
xd committed
120
import { getUserInfoByUserId } from "@/api/sidebar/voucher";
xd's avatar
xd committed
121
import { log } from 'util';
xd's avatar
xd committed
122 123 124 125 126 127 128 129 130 131
export default {
  name: "discountIndex",
  data() {
    return {
      test: {
        cache: {
          imgUrl: "/hi.jpg",
          actDsc: "由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。",
          nowMenuBar: "1",
          arrowRightDark: "/mainSale/icon-arrow-right-dark.png"
132
        },
xd's avatar
xd committed
133 134 135 136
        manInfo: {
          bk_logoUrl: "https://ezhq.xyz/img/main/logo_sona.jpg",
          logoUrl: "/photo.png",
          barFrom: "alice",
xd's avatar
xd committed
137
          barName: "未配置",
xd's avatar
xd committed
138 139 140
          icon: {
            "1": "/mainSale/icon-arrow-right-light.png"
          }
Z's avatar
Z committed
141
        },
xd's avatar
xd committed
142 143 144
        barInfo: {
          fans: "299",
          personalFans: "77",
145 146
          newFans: "11",
          allNewFans: '15'
xd's avatar
xd committed
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
        },
        menuInfo: {
          icon: {
            "1": "/mainSale/icon-menu-01.png",
            "2": "/mainSale/icon-menu-02.png",
            "3": "/mainSale/icon-menu-03.png",
            "4": "/mainSale/icon-menu-04.png",
            "5": "/mainSale/icon-menu-05.png",
            "6": "/mainSale/icon-menu-06.png"
          }
        },
        activeInfo: {
          icon: {
            "0": "/mainSale/icon-active-title.png",
            "1": "/mainSale/icon-active-1.png",
            "2": "/mainSale/icon-active-2.png",
            "3": "/mainSale/icon-active-3.png"
          }
        },
        menuBarInfo: {
          list: {
            main: [
              {
                name: "",
                iconUaUrl: "",
                iconAcUrl: ""
              }
            ]
          },
          icon: {
            now: {
              "1": "",
              "2": "",
              "3": "",
              "4": "",
              "5": ""
xd's avatar
xd committed
183
            },
xd's avatar
xd committed
184 185 186 187 188 189
            ua: {
              "1": "/mainSale/icon-menuBar-1-ua.png",
              "2": "/mainSale/icon-menuBar-2-ua.png",
              "3": "/mainSale/icon-menuBar-3-ua.png",
              "4": "/mainSale/icon-menuBar-4-ua.png",
              "5": "/mainSale/icon-menuBar-5-ua.png"
xd's avatar
xd committed
190
            },
xd's avatar
xd committed
191 192 193 194 195 196 197 198
            ac: {
              "1": "/mainSale/icon-menuBar-1-ac.png",
              "2": "/mainSale/icon-menuBar-2-ac.png",
              "3": "/mainSale/icon-menuBar-3-ac.png",
              "4": "/mainSale/icon-menuBar-4-ac.png",
              "5": "/mainSale/icon-menuBar-5-ac.png"
            }
          }
199
        }
xd's avatar
xd committed
200 201
      },
      dis: {},
202 203
      oyStallCode: "",
      userId: "",
xd's avatar
xd committed
204 205 206 207 208 209 210
      zcache: {
        nowUrl: "",
        preAuthCodeUrl: "",
        code: "",
        userId: "",
        userInfoResOld: "",
        userInfoResNew: ""
xd's avatar
xd committed
211 212 213
      },
      flag: 1
    }
xd's avatar
xd committed
214 215
  },
  created() {
xd's avatar
xd committed
216
    this.checkNowMenuBar() 
xd's avatar
xd committed
217 218 219 220 221 222 223 224
    if(sessionStorage.getItem('userId')) {
      if(sessionStorage.getItem('avatar')) {
        this.test.manInfo.logoUrl = sessionStorage.getItem('avatar')
      }
      if(sessionStorage.getItem('personalFan')) {
        this.test.barInfo.personalFans = sessionStorage.getItem('personalFan')
      }
      if(sessionStorage.getItem('barName')) {
xd's avatar
xd committed
225
        this.test.manInfo.barName = sessionStorage.getItem('barName')
226 227 228 229 230
      }
      if(sessionStorage.getItem('allFans')) {
        this.test.barInfo.fans = sessionStorage.getItem('allFans')
      }
      if(sessionStorage.getItem('newFans')) {
xd's avatar
xd committed
231
        this.test.barInfo.newFans = sessionStorage.getItem('newFans')
232 233 234
      }
      if(sessionStorage.getItem('allNewFans')) {
        this.test.barInfo.allNewFans = sessionStorage.getItem('allNewFans')
xd's avatar
xd committed
235
      }
xd's avatar
xd committed
236 237 238
      if(sessionStorage.getItem('role')) {
        this.flag = sessionStorage.getItem('role')
      }
xd's avatar
xd committed
239
    }else  {
xd's avatar
xd committed
240
      this.zReadyUserId()
xd's avatar
xd committed
241
      this.zTestGetNowUrlInfo()
xd's avatar
xd committed
242
    }
xd's avatar
xd committed
243 244
  },
  methods: {
xd's avatar
xd committed
245 246 247 248 249 250 251 252 253 254 255
    // 获取用户角色
    getDirector(userId) {
      getDirector({userId}).then(res => {
        if(res.data == true) {
          this.flag = 1
        }else {
          this.flag = 2
        }       
        sessionStorage.setItem("role", this.flag)
      })
    },
xd's avatar
xd committed
256 257 258 259 260
    // 获取用户信息
    getUserInfo() {
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
xd's avatar
xd committed
261
      }
xd's avatar
xd committed
262
      axios({
263 264 265
        url:
          "http://139.155.48.151:8085/workWx/auth/user/get?userId=" +
          this.zcache.userId,
xd's avatar
xd committed
266 267 268 269 270
        method: "get",
        headers: headerData
      })
        .then(res => {
          this.test.manInfo.barFrom = res.data.data.name
xd's avatar
xd committed
271
          sessionStorage.setItem("barFrom", res.data.data.name)
xd's avatar
xd committed
272
          this.test.manInfo.logoUrl = res.data.data.avatar
xd's avatar
xd committed
273
          sessionStorage.setItem("avatar", res.data.data.avatar)
xd's avatar
xd committed
274 275
        })
        .catch(err => {
276
          console.log(err);
xd's avatar
xd committed
277 278 279
        });
    },
    getFans() {
280
      let headerData = {
xd's avatar
xd committed
281 282 283 284 285
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
      };

      axios({
286 287 288
        url:
          "http://139.155.48.151:8085/workWx/auth/contact/listExternalContacts?userId=" +
          this.zcache.userId,
xd's avatar
xd committed
289 290 291 292 293
        method: "get",
        headers: headerData
      })
        .then(res => {
          this.test.barInfo.personalFans = res.data.data.length
xd's avatar
xd committed
294
          sessionStorage.setItem("personalFan",  res.data.data.length)
xd's avatar
xd committed
295 296 297
        })
        .catch(err => {
          console.log(err);
298
        });
xd's avatar
xd committed
299
    },
xd's avatar
xd committed
300 301 302 303
    getAllFans() {
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
304
      }
xd's avatar
xd committed
305
      axios({
306
        url: "http://139.155.48.151:8085/workWx/auth/contact/getCustomerInfoByOyStallCode?oyStallCode=" + this.oyStallCode,
xd's avatar
xd committed
307 308 309 310
        method: "get",
        headers: headerData
      })
        .then(res => {
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
          console.log(res,'粉丝')         
          this.test.barInfo.fans = res.data.data.length
          sessionStorage.setItem("allFans",  res.data.data.length)
        })
        .catch(err => {
          console.log(err)
        })
    },
    getNewFans() { 
      this.getAddFans(1,this.zcache.userId)
    },
    getAllNewFans() { 
      let params = {
        oyStallCode: this.oyStallCode
      }
      getMemberListByCode(params).then(res => {
        console.log(res,'res');
        this.getAddFans(2,res.data)
      })
    },
    getAddFans(flag,userId) {
       let JsonStr = {}
      if(flag == 1) {
        JsonStr.userid = [userId]
      }else {
        JsonStr.userid = userId
      }
      let timeNow = Math.round(new Date() / 1000)
      JsonStr.start_time = timeNow-24*60*60
      JsonStr.end_time = timeNow
      console.log(JsonStr,'obj')     
      axios({
        url: "http://139.155.48.151:8085/workWx/auth/contact/getUserBehaviorData",
        method: "post",
        headers: {
          'Content-Type': 'application/json',
          'agentId': "1000033",
          'corpId': "ww4df265003b43fa0d"
        },   
        data: JsonStr
      })
        .then(res => { 
          let data = JSON.parse(res.data.data)
          if(flag == 1) {
            this.test.barInfo.newFans = data.behavior_data[0].new_contact_cnt + data.behavior_data[1].new_contact_cnt
            sessionStorage.setItem("newFans",  this.test.barInfo.newFans)   
          }else {
            this.test.barInfo.allNewFans = data.behavior_data[0].new_contact_cnt + data.behavior_data[1].new_contact_cnt
            sessionStorage.setItem("allNewFans",  this.test.barInfo.allNewFans) 
          }                        
                     
xd's avatar
xd committed
362 363 364 365 366
        })
        .catch(err => {
          console.log(err)
        })
    },
xd's avatar
xd committed
367 368 369 370
    // 获取店铺信息
    getStore() {
      let params = {
        oyStallCode: this.oyStallCode
371
      };
xd's avatar
xd committed
372 373 374
      getStoreDetail(params).then(res => {
        if(res.data.stallInfo != null) {
          this.test.manInfo.barName = res.data.stallInfo.name
xd's avatar
xd committed
375
          sessionStorage.setItem("barName",  res.data.stallInfo.name)
xd's avatar
xd committed
376
        }
377
      });
xd's avatar
xd committed
378 379 380 381
    },
    checkNowMenuBar() {
      let inData = "1";
      this.test.menuBarInfo.icon.now = this.test.menuBarInfo.icon.ua;
xd's avatar
xd committed
382
      this.test.menuBarInfo.icon.now[inData] = this.test.menuBarInfo.icon.ac[inData];
xd's avatar
xd committed
383 384 385 386
    },
    manInfoClick() {
      this.$router.push("counterInfo");
    },
387
    switchBarClick() {
xd's avatar
xd committed
388
      this.$router.push({
389 390
        path: "ChangeCounter",
        query: {
xd's avatar
xd committed
391 392
          userId: this.zcache.userId
        }
393
      });
xd's avatar
xd committed
394 395 396 397
    },
    testButtonClick() {},
    menu01Click() {},
    menu02Click() {
398
      this.$router.push("Task")
xd's avatar
xd committed
399 400
    },
    menu03Click() {
401
      this.$router.push("activeList")
xd's avatar
xd committed
402 403
    },
    menu04Click() {
404
      this.$router.push("counterInfo")
xd's avatar
xd committed
405 406
    },
    menu05Click() {
407
      this.$router.push("ActTemplate")
xd's avatar
xd committed
408 409
    },
    menu06Click() {
410
      this.$router.push("goodManage")
xd's avatar
xd committed
411
    },
xd's avatar
xd committed
412 413 414
    handleCoupon() {
      this.$router.push("coupon")
    },
xd's avatar
xd committed
415 416 417 418 419 420 421 422 423 424 425 426 427 428
    buttonMainMarketingClick() {
      // this.$router.push("home")
    },
    menuBarClick(inData) {
      this.$router.push(inData);
    },
    menuCase() {
      this.$router.push({ path: "/case" });
    },
    menuProfit() {
      this.$router.push({ path: "/profitList" });
    },
    menuTask() {
      this.$router.push({ path: "/taskList" });
xd's avatar
xd committed
429 430 431
    },
    // 获取code
    zReadyUserId() {
432
      if (this.$route.query.code === undefined) {
xd's avatar
xd committed
433
        // alert('没code')
xd's avatar
xd committed
434
        this.zTestPreAuthCode()
xd's avatar
xd committed
435 436
      } else {
        // alert('有code')
xd's avatar
xd committed
437 438
        this.zTestGetNowUrlInfo()
        this.zTestGetUserInfoByOldToken()
xd's avatar
xd committed
439 440 441 442 443 444
      }
    },
    // 测试-获取当前Url信息
    zTestGetNowUrlInfo() {
      this.zcache.nowUrl = JSON.stringify(this.$route.query);
      this.zcache.code = String(this.$route.query.code);
445
      this.url = this.zcache.nowUrl;
xd's avatar
xd committed
446
    },
447
    zTestPreAuthCode() {
xd's avatar
xd committed
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
      // alert('获取code')
      const basicInfo = {
        head: "https://open.weixin.qq.com/connect/oauth2/authorize?",
        // appId: "wwd1cdbca7b8b2b6c4",
        appId: "ww4df265003b43fa0d",
        redirectUrI: encodeURIComponent("oysales.oywanhao.com:8087"),
        responseType: "code",
        scope: "snsapi_base",
        state: "ztest",
        tail: "#wechat_redirect"
      };

      let url =
        basicInfo.head +
        "appid=" +
        basicInfo.appId +
        "&redirect_uri=" +
        basicInfo.redirectUrI +
        "&response_type=" +
        basicInfo.responseType +
        "&scope=" +
        basicInfo.scope +
        "&state=" +
        basicInfo.state +
        basicInfo.tail;
      this.zcache.preAuthCodeUrl = url;
      window.location.href = url;
    },
xd's avatar
xd committed
476
    // 获取userId
xd's avatar
xd committed
477 478
    zTestGetUserInfoByOldToken() {
      let postData = {
479
        code: this.zcache.code
xd's avatar
xd committed
480 481 482 483 484
      };
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
      };
485
      this.zcache.userInfoResOld = "PostData:" + JSON.stringify(postData);
xd's avatar
xd committed
486
      axios({
xd's avatar
xd committed
487
        url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" + this.zcache.code,
xd's avatar
xd committed
488
        method: "post",
489
        headers: headerData
xd's avatar
xd committed
490 491
      })
        .then(res => {
492 493 494 495
          sessionStorage.setItem("userId", String(res.data.data.userId));
          this.zcache.userId = String(res.data.data.userId);
          this.getUserFromId(this.zcache.userId);
          this.getUserInfo();
xd's avatar
xd committed
496
          this.getNewFans()
xd's avatar
xd committed
497
          this.getDirector(res.data.data.userId) 
xd's avatar
xd committed
498 499
        })
        .catch(err => {
500
          console.log(err);
xd's avatar
xd committed
501 502 503
        });
    },
    getUserFromId(id) {
504 505 506
      let userName = id;
      getUserInfoByUserId({ userName })
        .then(res => {
507 508 509 510 511 512 513
          sessionStorage.setItem("oyStallCode", res.data[0].oyStallCode)
          this.oyStallCode = res.data[0].oyStallCode
          this.getStore()
          this.getFans()
          this.getAllFans()
          this.getNewFans()
          this.getAllNewFans()
514
        })
515
        .catch(err => {})
xd's avatar
xd committed
516 517 518
    }
  }
};
519 520 521
</script>

<style scoped>
xd's avatar
xd committed
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 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878
.testCube {
  width: 60px;
  height: 10px;
  background-color: lightcoral;
  border: 1px solid white;
}

.main {
  background-color: rgb(237, 239, 243);
  width: 100%;
  height: auto;
  /*padding: ;*/
  padding-bottom: 94px;
  display: flex;
  flex-direction: column;
  justify-content: start;

  overflow: auto;
}

.main-manInfos {
  width: 100%;
  height: 72px;
  background-color: #4377bc;
  padding: 0px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.manInfo-logos {
  width: 48px;
  height: 48px;
  /*border: 1px solid white;*/

  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.logos-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;

  border: 2px solid white;
}

.manInfo-name {
  width: 100%;
  height: 18px;
  padding: 0px 12px;
  margin-right: 60px;

  color: white;

  font-size: 14px;
  line-height: 16px;
  font-weight: bold;
}

.manInfo-switch {
  /*border: 1px solid greenyellow;*/
  width: 100px;
  height: 18px;

  font-size: 14px;
  line-height: 18px;
  font-weight: bold;

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.switch-icon {
  width: 5px;
  height: 8px;
}

.switch-text {
  color: white;

  padding-right: 4px;

  font-size: 14px;
  line-height: 16px;
  font-weight: normal;
}

.main-tips {
  width: 100%;
  height: 48px;
  background-color: #f8f8f8;

  padding: 0px 16px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.tips-tip {
  /*border: 1px solid darkorange;*/
  width: 30%;
  height: 16px;

  color: #4377bc;
  font-size: 12px;
  font-weight: normal;
  line-height: 16px;
  text-align: center;
}

.main-menus {
  /*border: 1px solid lightseagreen;*/
  width: 100%;
  height: 240px;

  display: flex;
  flex-direction: column;
  justify-content: start;
}

.menus-row {
  width: 100%;
  height: 120px;

  padding: 12px 16px 0px 16px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menu {
  width: 108px;
  height: 108px;
  background-color: #f8f8f8;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-logo {
  width: 48px;
  height: 48px;

  object-fit: cover;
}

.menu-text {
  font-size: 14px;
  font-weight: bold;
  color: #2d476a;
}

.main-actives {
  /*border: 1px solid lightcoral;*/
  width: 100%;
  height: 380px;
  /*margin-bottom: 94px;*/
  margin-top: 36px;
  padding: 0px 12px;
  background-color: white;

  display: flex;
  flex-direction: column;
  justify-content: start;
}

.actives-banners {
  border-bottom: 1px solid #eeeeee;
  width: 100%;
  height: 25px;

  display: flex;
  flex-direction: row;
  justify-content: center;
}

.actives-banner-small {
  width: 220px;
  height: 30px;

  object-fit: cover;

  position: relative;
  bottom: 7px;
}

.actives-banner-title {
  background: url(/mainSale/icon-active-title.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;

  width: 220px;
  height: 30px;

  font-size: 16px;
  line-height: 16px;
  color: #2d476a;
  text-align: center;

  position: relative;
  bottom: 7px;
}

.actives-banner-main {
  width: 148px;
  height: 24px;
  border-radius: 40px;
  margin: 0px 4px;

  font-size: 16px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  color: #2d476a;

  background: linear-gradient(#ffffff, 50%, #e4f9ff);
  box-shadow: 0px 1px 1px 0px #96cedc;

  position: relative;
  bottom: 12px;
}

.actives-main {
  border-bottom: 1px solid #eeeeee;
  width: 100%;
  height: 105px;
  padding: 12px 0px;

  display: flex;
  flex-direction: row;
  justify-content: start;
}

.active-logos {
  background-color: #f8f8f8;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.active-logo {
  width: 56px;
  height: 56px;
}

.active-infos {
  width: 100%;
  height: 80px;
  padding-left: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.active-title {
  height: 16px;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
  margin-bottom: 8px;
}

.active-dsc {
  height: 36px;
  width: 100%;
  font-size: 12px;
  font-weight: normal;
}

.actives-mores {
  width: 100%;
  height: 40px;
  /*border: 1px solid red;*/

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.mores-title {
  width: auto;
  height: 14px;

  margin-right: 4px;

  font-size: 12px;
  font-weight: normal;
  line-height: 14px;
  color: #2d476a;
}

.mores-icon {
  width: 10px;
  height: 14px;
}

.main-menuBar {
  /*border: 1px solid darkviolet;*/
  box-shadow: inset 0px 1px 2px 0px rgba(221, 221, 221, 1);
  width: 100%;
  height: 82px;
  position: fixed;
  bottom: 0px;
  left: 0px;
  background-color: #fafafa;
  padding: 0px 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.menuBar-menu {
  /*background-color: greenyellow;*/
  width: 48px;
  height: 47px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.menuBar-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.menuBar-title {
  width: auto;
  height: 12px;
  font-size: 10px;
  font-weight: bold;
  color: rgba(67, 119, 188, 0.4);
  text-align: center;
}

.menuBar-title-ac {
  color: rgba(67, 119, 188, 1);
}
879
</style>