index.vue 22.6 KB
Newer Older
1
<template>
xd's avatar
xd committed
2 3 4 5 6
  <div class="main">
    <div class="main-manInfos">
      <div class="manInfo-logos">
        <img class="logos-logo" :src="test.manInfo.logoUrl" />
      </div>
7
      <div class="manInfo-name" @click="manInfoClick">我的专柜:{{test.manInfo.barName}}</div>
8
      <div class="manInfo-switch" @click="switchBarClick" v-if="flag == 1">
xd's avatar
xd committed
9 10 11 12 13 14 15
        <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>
16
      <div class="tips-tip">
17 18
        昨日新增
        <span>{{test.barInfo.newFans}}</span>
19 20 21
        <span>/</span>
        <span>{{test.barInfo.allNewFans}}</span>
      </div>
xd's avatar
xd committed
22 23 24
    </div>
    <div class="main-menus">
      <div class="menus-row">
leiqingsong's avatar
leiqingsong committed
25
        <div class="menu" @click="menu02Click" :style="flag == 1? '' : 'margin-right:10px;' ">
xd's avatar
xd committed
26 27
          <img class="menu-logo" :src="test.menuInfo.icon['2']" />
          <div class="menu-text">任务列表</div>
28
        </div>
leiqingsong's avatar
leiqingsong committed
29
        <div class="menu margin1" @click="menu05Click" v-if="flag == 1">
xd's avatar
xd committed
30 31 32
          <img class="menu-logo" :src="test.menuInfo.icon['5']" />
          <div class="menu-text">活动模版</div>
        </div>
xd's avatar
xd committed
33 34 35
        <div class="menu" @click="menu03Click">
          <img class="menu-logo" :src="test.menuInfo.icon['3']" />
          <div class="menu-text">活动列表</div>
36
        </div>
xd's avatar
xd committed
37 38
      </div>
      <div class="menus-row">
xd's avatar
xd committed
39
        <div class="menu" @click="menu04Click" :style="flag == 1? '' : 'margin-right:10px;' ">
xd's avatar
xd committed
40 41
          <img class="menu-logo" :src="test.menuInfo.icon['4']" />
          <div class="menu-text">专柜维护</div>
xulili's avatar
xulili committed
42
        </div>
leiqingsong's avatar
leiqingsong committed
43
        <div class="menu margin1" @click="handleCoupon" v-if="flag == 1">
xd's avatar
xd committed
44 45 46
          <img class="menu-logo" :src="test.menuInfo.icon['1']" />
          <div class="menu-text">优惠券管理</div>
        </div>
xd's avatar
xd committed
47 48 49
        <div class="menu" @click="menu06Click">
          <img class="menu-logo" :src="test.menuInfo.icon['6']" />
          <div class="menu-text">商品管理</div>
leiqingsong's avatar
leiqingsong committed
50
        </div>
xd's avatar
xd committed
51
      </div>
52
    </div>
xd's avatar
xd committed
53 54 55 56
    <div class="main-actives">
      <div class="actives-banners">
        <div class="actives-banner-title">现有开展活动</div>
      </div>
leiqingsong's avatar
leiqingsong committed
57
      <p v-if="currentActives.length === 0" style="font-size: 16px;">当前暂无活动</p>
58
      <template v-for="(item, index) in currentActives">
leiqingsong's avatar
leiqingsong committed
59 60 61 62 63 64
        <div
          v-if="index < active_limit"
          :key="item.id"
          class="actives-main"
          @click="toDetail(item.id, item.activityType)"
        >
65 66 67 68 69
          <div class="active-logos">
            <!-- <img class="active-logo" :src="test.activeInfo.icon['1']" /> -->
            <img class="active-logo" :src="item.logo" />
          </div>
          <div class="active-infos">
leiqingsong's avatar
leiqingsong committed
70
            <div class="active-title">{{item.activityName}}</div>
71 72
            <div class="active-dsc">{{item.des}}</div>
          </div>
xd's avatar
xd committed
73
        </div>
74 75
      </template>
      <!-- <div class="actives-main">
xd's avatar
xd committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
        <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>
92 93
      </div>-->
      <div v-if="currentActives.length > 3 && !finished" class="actives-mores" @click="handleMore">
xd's avatar
xd committed
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
        <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>
121 122 123
</template>

<script>
124
import axios from "axios";
125 126 127 128 129
import {
  getStoreDetail,
  getMemberListByCode,
  getDirector
} from "@/api/sidebar/voucher";
130
import { configWx, getUserInfo } from "@/utils/aCommon";
xd's avatar
xd committed
131
import { getUserInfoByUserId } from "@/api/sidebar/voucher";
132 133
import { getCurrentActive } from "@/api/active";
import { log } from "util";
xd's avatar
xd committed
134 135 136 137
export default {
  name: "discountIndex",
  data() {
    return {
138 139 140
      finished: false,
      active_limit: 3,
      currentActives: [],
xd's avatar
xd committed
141 142 143 144 145 146
      test: {
        cache: {
          imgUrl: "/hi.jpg",
          actDsc: "由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。",
          nowMenuBar: "1",
          arrowRightDark: "/mainSale/icon-arrow-right-dark.png"
147
        },
xd's avatar
xd committed
148 149 150 151
        manInfo: {
          bk_logoUrl: "https://ezhq.xyz/img/main/logo_sona.jpg",
          logoUrl: "/photo.png",
          barFrom: "alice",
xd's avatar
xd committed
152
          barName: "未配置",
xd's avatar
xd committed
153 154 155
          icon: {
            "1": "/mainSale/icon-arrow-right-light.png"
          }
Z's avatar
Z committed
156
        },
xd's avatar
xd committed
157
        barInfo: {
158 159 160 161
          fans: "0",
          personalFans: "0",
          newFans: "0",
          allNewFans: "0"
xd's avatar
xd committed
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
        },
        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
198
            },
xd's avatar
xd committed
199 200 201 202 203 204
            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
205
            },
xd's avatar
xd committed
206 207 208 209 210 211 212 213
            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"
            }
          }
214
        }
xd's avatar
xd committed
215 216
      },
      dis: {},
217 218
      oyStallCode: "",
      userId: "",
xd's avatar
xd committed
219 220 221 222 223 224 225
      zcache: {
        nowUrl: "",
        preAuthCodeUrl: "",
        code: "",
        userId: "",
        userInfoResOld: "",
        userInfoResNew: ""
xd's avatar
xd committed
226
      },
227
      flag: 1
228
    };
xd's avatar
xd committed
229 230
  },
  created() {
231 232 233 234
    this.checkNowMenuBar();
    if (sessionStorage.getItem("userId")) {
      if (sessionStorage.getItem("avatar")) {
        this.test.manInfo.logoUrl = sessionStorage.getItem("avatar");
xd's avatar
xd committed
235
      }
236 237
      if (sessionStorage.getItem("personalFan")) {
        this.test.barInfo.personalFans = sessionStorage.getItem("personalFan");
xd's avatar
xd committed
238
      }
239 240
      if (sessionStorage.getItem("barName")) {
        this.test.manInfo.barName = sessionStorage.getItem("barName");
241
      }
242 243
      if (sessionStorage.getItem("allFans")) {
        this.test.barInfo.fans = sessionStorage.getItem("allFans");
244
      }
245 246
      if (sessionStorage.getItem("newFans")) {
        this.test.barInfo.newFans = sessionStorage.getItem("newFans");
247
      }
248 249
      if (sessionStorage.getItem("allNewFans")) {
        this.test.barInfo.allNewFans = sessionStorage.getItem("allNewFans");
xd's avatar
xd committed
250
      }
251 252
      if (sessionStorage.getItem("role")) {
        this.flag = sessionStorage.getItem("role");
xd's avatar
xd committed
253
      }
254
    } else {
leiqingsong's avatar
leiqingsong committed
255
      this.zReadyUserId();
256
      this.zTestGetNowUrlInfo();
xd's avatar
xd committed
257
    }
258
    this.GET_CurrentActive();
xd's avatar
xd committed
259 260
  },
  methods: {
leiqingsong's avatar
leiqingsong committed
261 262 263 264 265 266 267 268 269 270
    // 跳转到 活动详情
    toDetail(active_id, type) {
      this.$router.push({
        path: "/activeDetail",
        query: {
          id: active_id,
          active_type: type
        }
      });
    },
271 272 273 274 275 276 277 278 279 280
    handleMore() {
      this.active_limit += 3;
      if (this.active_limit === this.currentActives.length - 3) {
        this.finished = true;
        return;
      }
    },
    // 获取当前 活动
    GET_CurrentActive() {
      getCurrentActive().then(res => {
leiqingsong's avatar
leiqingsong committed
281
        this.currentActives = res.data || [];
282 283
      });
    },
xd's avatar
xd committed
284 285
    // 获取用户角色
    getDirector(userId) {
286 287 288 289 290 291 292 293
      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
294
    },
xd's avatar
xd committed
295 296 297 298 299
    // 获取用户信息
    getUserInfo() {
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
300
      };
xd's avatar
xd committed
301
      axios({
302 303 304
        url:
          "http://139.155.48.151:8085/workWx/auth/user/get?userId=" +
          this.zcache.userId,
xd's avatar
xd committed
305 306 307 308
        method: "get",
        headers: headerData
      })
        .then(res => {
309 310 311 312
          this.test.manInfo.barFrom = res.data.data.name;
          sessionStorage.setItem("barFrom", res.data.data.name);
          this.test.manInfo.logoUrl = res.data.data.avatar;
          sessionStorage.setItem("avatar", res.data.data.avatar);
xd's avatar
xd committed
313 314
        })
        .catch(err => {
315
          console.log(err);
xd's avatar
xd committed
316 317 318
        });
    },
    getFans() {
319
      let headerData = {
xd's avatar
xd committed
320 321 322 323 324
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
      };

      axios({
325 326 327
        url:
          "http://139.155.48.151:8085/workWx/auth/contact/listExternalContacts?userId=" +
          this.zcache.userId,
xd's avatar
xd committed
328 329 330 331
        method: "get",
        headers: headerData
      })
        .then(res => {
332 333
          this.test.barInfo.personalFans = res.data.data.length;
          sessionStorage.setItem("personalFan", res.data.data.length);
xd's avatar
xd committed
334 335 336
        })
        .catch(err => {
          console.log(err);
337
        });
xd's avatar
xd committed
338
    },
xd's avatar
xd committed
339 340 341 342
    getAllFans() {
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
343
      };
xd's avatar
xd committed
344
      axios({
345 346 347
        url:
          "http://139.155.48.151:8085/workWx/auth/contact/getCustomerInfoByOyStallCode?oyStallCode=" +
          this.oyStallCode,
xd's avatar
xd committed
348 349 350 351
        method: "get",
        headers: headerData
      })
        .then(res => {
352
          console.log(res, "粉丝");
353 354 355 356 357 358 359 360
          let newList = []
          res.data.data.forEach(item => {
            if(item != null) {
              newList.push(item)
            }
          })
          this.test.barInfo.fans = newList.length
          sessionStorage.setItem("allFans", newList.length)
361 362
        })
        .catch(err => {
363
          console.log(err)
364
        });
365
    },
366 367
    getNewFans() {
      this.getAddFans(1, this.zcache.userId);
368
    },
369
    getAllNewFans() {
370 371
      let params = {
        oyStallCode: this.oyStallCode
372
      };
373
      getMemberListByCode(params).then(res => {
374 375 376
        console.log(res, "res");
        this.getAddFans(2, res.data);
      });
377
    },
378 379 380 381 382 383
    getAddFans(flag, userId) {
      let JsonStr = {};
      if (flag == 1) {
        JsonStr.userid = [userId];
      } else {
        JsonStr.userid = userId;
384
      }
385 386 387 388
      let timeNow = Math.round(new Date() / 1000);
      JsonStr.start_time = timeNow - 24 * 60 * 60;
      JsonStr.end_time = timeNow;
      console.log(JsonStr, "obj");
389
      axios({
390 391
        url:
          "http://139.155.48.151:8085/workWx/auth/contact/getUserBehaviorData",
392 393
        method: "post",
        headers: {
394 395 396 397
          "Content-Type": "application/json",
          agentId: "1000033",
          corpId: "ww4df265003b43fa0d"
        },
398 399
        data: JsonStr
      })
400 401 402 403 404 405 406 407 408 409 410 411 412
        .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
413 414
        })
        .catch(err => {
415 416
          console.log(err);
        });
xd's avatar
xd committed
417
    },
xd's avatar
xd committed
418 419 420 421
    // 获取店铺信息
    getStore() {
      let params = {
        oyStallCode: this.oyStallCode
422
      };
xd's avatar
xd committed
423
      getStoreDetail(params).then(res => {
424
        if (res.data.stallInfo != null) {
425 426
          this.test.manInfo.barName = res.data.stallInfo.name
          sessionStorage.setItem("barName", res.data.stallInfo.name)
xd's avatar
xd committed
427
        }
428
      });
xd's avatar
xd committed
429 430 431 432
    },
    checkNowMenuBar() {
      let inData = "1";
      this.test.menuBarInfo.icon.now = this.test.menuBarInfo.icon.ua;
433 434 435
      this.test.menuBarInfo.icon.now[inData] = this.test.menuBarInfo.icon.ac[
        inData
      ];
xd's avatar
xd committed
436 437 438 439
    },
    manInfoClick() {
      this.$router.push("counterInfo");
    },
440
    switchBarClick() {
xd's avatar
xd committed
441
      this.$router.push({
442 443
        path: "ChangeCounter",
        query: {
xd's avatar
xd committed
444 445
          userId: this.zcache.userId
        }
446
      });
xd's avatar
xd committed
447 448 449 450
    },
    testButtonClick() {},
    menu01Click() {},
    menu02Click() {
451
      this.$router.push("Task");
xd's avatar
xd committed
452 453
    },
    menu03Click() {
454
      this.$router.push("activeList");
xd's avatar
xd committed
455 456
    },
    menu04Click() {
457
      this.$router.push("counterInfo");
xd's avatar
xd committed
458 459
    },
    menu05Click() {
460
      this.$router.push("ActTemplate");
xd's avatar
xd committed
461 462
    },
    menu06Click() {
463
      this.$router.push("goodManage");
xd's avatar
xd committed
464
    },
xd's avatar
xd committed
465
    handleCoupon() {
466
      this.$router.push("coupon");
xd's avatar
xd committed
467
    },
xd's avatar
xd committed
468 469 470 471 472 473 474 475 476 477 478
    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
479 480 481
    },
    // 获取code
    zReadyUserId() {
482
      if (this.$route.query.code === undefined) {
xd's avatar
xd committed
483
        // alert('没code')
484
        this.zTestPreAuthCode();
xd's avatar
xd committed
485 486
      } else {
        // alert('有code')
487 488
        this.zTestGetNowUrlInfo();
        this.zTestGetUserInfoByOldToken();
xd's avatar
xd committed
489 490 491 492 493 494
      }
    },
    // 测试-获取当前Url信息
    zTestGetNowUrlInfo() {
      this.zcache.nowUrl = JSON.stringify(this.$route.query);
      this.zcache.code = String(this.$route.query.code);
495
      this.url = this.zcache.nowUrl;
xd's avatar
xd committed
496
    },
497
    zTestPreAuthCode() {
xd's avatar
xd committed
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
      // 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
526
    // 获取userId
xd's avatar
xd committed
527 528
    zTestGetUserInfoByOldToken() {
      let postData = {
529
        code: this.zcache.code
xd's avatar
xd committed
530 531 532 533 534
      };
      let headerData = {
        agentId: "1000033",
        corpId: "ww4df265003b43fa0d"
      };
535
      this.zcache.userInfoResOld = "PostData:" + JSON.stringify(postData);
xd's avatar
xd committed
536
      axios({
537 538 539
        url:
          "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code=" +
          this.zcache.code,
xd's avatar
xd committed
540
        method: "post",
541
        headers: headerData
xd's avatar
xd committed
542 543
      })
        .then(res => {
544 545 546 547
          sessionStorage.setItem("userId", String(res.data.data.userId));
          this.zcache.userId = String(res.data.data.userId);
          this.getUserFromId(this.zcache.userId);
          this.getUserInfo();
548 549
          this.getNewFans();
          this.getDirector(res.data.data.userId);
xd's avatar
xd committed
550 551
        })
        .catch(err => {
552
          console.log(err);
xd's avatar
xd committed
553 554 555
        });
    },
    getUserFromId(id) {
556 557 558
      let userName = id;
      getUserInfoByUserId({ userName })
        .then(res => {
559 560 561 562 563 564 565
          sessionStorage.setItem("oyStallCode", res.data[0].oyStallCode);
          this.oyStallCode = res.data[0].oyStallCode;
          this.getStore();
          this.getFans();
          this.getAllFans();
          this.getNewFans();
          this.getAllNewFans();
566
        })
567
        .catch(err => {});
xd's avatar
xd committed
568 569 570
    }
  }
};
571 572 573
</script>

<style scoped>
xd's avatar
xd committed
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
.testCube {
  width: 60px;
  height: 10px;
  background-color: lightcoral;
  border: 1px solid white;
}

.main {
  background-color: rgb(237, 239, 243);
  width: 100%;
  height: auto;
  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 {
  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;
xd's avatar
xd committed
705
  justify-content: flex-start;
xd's avatar
xd committed
706 707 708 709 710 711
}

.menu {
  width: 108px;
  height: 108px;
  background-color: #f8f8f8;
xd's avatar
xd committed
712
  flex: 1;
xd's avatar
xd committed
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 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921
  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 {
  width: 100%;
  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);
}
xd's avatar
xd committed
922 923 924 925 926 927
.margin1 {
  margin: 0 10px;
}
.margin2 {
  margin-right: 10px;
}
928
</style>