header.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. <template>
  2. <div id="proginn-header" :class="{ transparent: transparent }">
  3. <div class="list">
  4. <a :href="baseUrl" class="nav-item">
  5. <img
  6. class="logo"
  7. :src="
  8. transparent
  9. ? WhiteLogo
  10. : 'https://stacdn.proginn.com/image/common/logo3@2x.png'
  11. "
  12. />
  13. </a>
  14. <a :href="baseUrl" class="nav-item">首页</a>
  15. <a :href="baseUrl + '/users'" class="nav-item">程序员</a>
  16. <div class="dropDownArea">
  17. <el-button
  18. type="text"
  19. class="dashboard-title"
  20. :class="{ on: selectedDropTitle === 0 }"
  21. @mouseover.native="handleTitleMouseover(0)"
  22. @mouseout.native="handleTitleMouseout(0)">工作</el-button>
  23. <el-button
  24. type="text"
  25. class="dashboard-title"
  26. :class="{ on: selectedDropTitle === 1 }"
  27. style="margin-left: 20px !important;"
  28. @mouseover.native="handleTitleMouseover(1)"
  29. @mouseout.native="handleTitleMouseout(1)">服务</el-button>
  30. <div class="showDropDownArea">
  31. <div class="contentArea">
  32. <div class="leftSelect">
  33. <div
  34. class="downCell"
  35. v-for="(item, index) in dropDownData"
  36. @mouseover="selectedDrop = index"
  37. :class="{ choosed: index === selectedDrop }"
  38. >
  39. <div class="cnName">{{ item.title }}</div>
  40. <div class="enName">{{ item.titleEn }}</div>
  41. </div>
  42. </div>
  43. <div class="rightShow">
  44. <div
  45. class="rightBigCell"
  46. v-for="(big, bigIndex) in dropDownData"
  47. :class="{ ok: selectedDrop === bigIndex }"
  48. >
  49. <a
  50. class="smallCell"
  51. v-for="(small, smallIndex) in big.list"
  52. :href="small.href"
  53. :target="small.blank ? '_blank' : ''"
  54. >
  55. <div class="cellLeftIcon">
  56. <img :src="small.icon" alt="" />
  57. </div>
  58. <div class="cellRightArea">
  59. <div class="cellRightName">{{ small.title }}</div>
  60. <div class="cellRightDesc">{{ small.desc }}</div>
  61. </div>
  62. </a>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div>
  69. <div style="position: relative;">
  70. <input
  71. class="input"
  72. autocomplete="off"
  73. placeholder="搜索您感兴趣的解决方案"
  74. v-model="keywork"
  75. @keyup.enter="clickInputEnter"
  76. />
  77. <i class="el-icon-search" @click="clickInputEnter"></i>
  78. </div>
  79. <div class="dropdown" style="display:none;"></div>
  80. <div class="dropdown" style="display:none;"></div>
  81. </div>
  82. <!-- 更多 -->
  83. <el-dropdown class="more-dropdown" placement="bottom-start">
  84. <el-button type="text" class="dashboard-title">更多</el-button>
  85. <el-dropdown-menu slot="dropdown">
  86. <el-dropdown-item>
  87. <a class="more-item" :href="kaifainUrl">
  88. <img :src="KaifainIcon" alt="" >
  89. <span>开发屋</span>
  90. </a>
  91. </el-dropdown-item>
  92. <el-dropdown-item>
  93. <a class="more-item" :href="jishuBaseUrl">
  94. <img :src="JishuinIcon" alt="" >
  95. <span>技术圈</span>
  96. </a>
  97. </el-dropdown-item>
  98. <el-dropdown-item>
  99. <a class="more-item" href="https://unisms.apistd.com/?source=pi.pc.nav" target="_blank">
  100. <img src="https://uni-cdn.oss-cn-hangzhou.aliyuncs.com/public/img/unisms-icon.png" alt="" >
  101. <span>UniSMS (合一短信)</span>
  102. </a>
  103. </el-dropdown-item>
  104. <el-dropdown-item>
  105. <a class="more-item" href="https://www.yesdev.cn/" target="_blank">
  106. <img :src="YesDevIcon" alt="" >
  107. <span>YesDev</span>
  108. </a>
  109. </el-dropdown-item>
  110. </el-dropdown-menu>
  111. </el-dropdown>
  112. <template v-if="myInfo.nickname">
  113. <el-dropdown class="nav-dropdown">
  114. <el-button type="text" class="dashboard-title">
  115. <i class="el-icon-tickets"></i>工作台
  116. </el-button>
  117. <el-dropdown-menu slot="dropdown">
  118. <el-dropdown-item>
  119. <a class="workstation" :href="baseUrl + '/wo/work_todo'">
  120. <i class="el-icon-edit"></i>待办任务
  121. </a>
  122. </el-dropdown-item>
  123. <el-dropdown-item>
  124. <a class="workstation" :href="baseUrl + '/wo/work_platform'">
  125. <i class="el-icon-date"></i>整包项目
  126. </a>
  127. </el-dropdown-item>
  128. <el-dropdown-item>
  129. <a class="workstation" :href="baseUrl + '/wo/work_hire'">
  130. <i class="el-icon-news"></i>按月雇佣
  131. </a>
  132. </el-dropdown-item>
  133. <!-- <el-dropdown-item>
  134. <a class="workstation" :href="baseUrl + '/wo/work_cloud'">
  135. <i class="el-icon-service"></i>我的远程
  136. </a>
  137. </el-dropdown-item> -->
  138. </el-dropdown-menu>
  139. </el-dropdown>
  140. <el-dropdown class="nav-dropdown">
  141. <el-button type="text" class="message-box-title">
  142. <i class="el-icon-message"></i>消息
  143. <span
  144. v-if="messageCount.total > 0"
  145. class="message-count message-total"
  146. >{{ messageCount.total }}</span
  147. >
  148. </el-button>
  149. <el-dropdown-menu slot="dropdown">
  150. <el-dropdown-item
  151. class="message-box"
  152. @click.native="clickMessages('/message/system')"
  153. >
  154. <i class="circle blue"></i>系统消息
  155. <span v-if="messageCount.system" class="message-count">{{
  156. messageCount.system
  157. }}</span>
  158. </el-dropdown-item>
  159. <el-dropdown-item
  160. class="message-box"
  161. @click.native="clickMessages('/message/project')"
  162. >
  163. <i class="circle orange"></i>工作通知
  164. <span v-if="messageCount.work" class="message-count">{{
  165. messageCount.work
  166. }}</span>
  167. </el-dropdown-item>
  168. <el-dropdown-item
  169. class="message-box"
  170. @click.native="clickMessages('/message/comment')"
  171. >
  172. <i class="circle red"></i>评论回复
  173. <span v-if="messageCount.reply" class="message-count">{{
  174. messageCount.reply
  175. }}</span>
  176. </el-dropdown-item>
  177. <el-dropdown-item
  178. class="message-box"
  179. @click.native="clickMessages('/message/at')"
  180. >
  181. <i class="circle green"></i>@我的
  182. <span v-if="messageCount.at" class="message-count">{{
  183. messageCount.at
  184. }}</span>
  185. </el-dropdown-item>
  186. <el-dropdown-item
  187. class="message-box"
  188. @click.native="clickMessages('/message/plus')"
  189. >
  190. <i class="circle pink"></i>赞及其它
  191. <span v-if="messageCount.community_other" class="message-count">{{
  192. messageCount.community_other
  193. }}</span>
  194. </el-dropdown-item>
  195. <el-dropdown-item
  196. class="message-box"
  197. @click.native="clickMessages('/message/coin')"
  198. >
  199. <i class="circle yellow"></i>收支信息
  200. <span v-if="messageCount.balance" class="message-count">{{
  201. messageCount.balance
  202. }}</span>
  203. </el-dropdown-item>
  204. </el-dropdown-menu>
  205. </el-dropdown>
  206. <el-popover
  207. class="nav-popover"
  208. placement="bottom"
  209. width="226"
  210. trigger="hover"
  211. >
  212. <div class="ref" slot="reference">
  213. <a class="nav-header" :href="baseUrl + '/wo/work_todo'">
  214. <img class="header-user" :src="myInfo.icon_url" />
  215. <img
  216. v-if="myInfo.is_vip"
  217. class="header-vip-icon"
  218. :src="baseUrl + `/Public/image/h5/vip_icon${vipImage}.png`"
  219. alt="vip-icon"
  220. />
  221. </a>
  222. <span class="nickname">{{ myInfo.nickname }}</span>
  223. </div>
  224. <div class="menu">
  225. <div v-if="myInfo.is_vip" class="vip-info vip-info-com">
  226. <div class="vip-info-top">
  227. <img
  228. class="vip-icon"
  229. :src="baseUrl + `/Public/image/h5/vip_icon${vipImage}.png`"
  230. alt="vip-icon"
  231. />
  232. <span class="vip-content">
  233. <span class="vip-title" :class="vipTextClass">{{
  234. vipText
  235. }}</span>
  236. <br />
  237. <span class="vip-end-date">{{ vipInfo.endDate }}到期</span>
  238. </span>
  239. </div>
  240. <div class="vip-arcs">
  241. <a
  242. class="vip-arc"
  243. :class="vipTextClass"
  244. :href="baseUrl + '/type/vip/' + vipType"
  245. >查看权益</a
  246. >
  247. <a
  248. class="vip-arc"
  249. :class="vipTextClass"
  250. :href="
  251. baseUrl +
  252. '/vip/pay?number=3&amp;product_id=' +
  253. this.$store.state.userinfo.vip_type_id +
  254. '&amp;next=/type/vip/' +
  255. vipType
  256. "
  257. >立即续费</a
  258. >
  259. </div>
  260. </div>
  261. <div class="vip-items">
  262. <!-- <a class="vip-item divider" :href="baseUrl + '/wo/work_platform'">
  263. <i class="el-icon-date"></i>我的项目
  264. </a>
  265. <a class="vip-item" :href="baseUrl + '/wo/work_hire'">
  266. <i class="el-icon-news"></i>我的雇佣
  267. </a>
  268. <a class="vip-item" :href="baseUrl + '/wo/work_cloud'">
  269. <i class="el-icon-service"></i>我的远程
  270. </a> -->
  271. <a
  272. class="vip-item divider"
  273. :href="baseUrl + `/wo/manage_homepage/`"
  274. >
  275. <i class="el-icon-document"></i>我的主页
  276. </a>
  277. <a class="vip-item" :href="baseUrl + '/credit/pages'">
  278. <i class="el-icon-credit"></i>技术信用
  279. </a>
  280. <a
  281. class="vip-item"
  282. :href="baseUrl + '/otherpage/user/collection'"
  283. >
  284. <i class="el-icon-collection"></i>收藏中心
  285. </a>
  286. <a class="vip-item divider" :href="baseUrl + '/index/app'">
  287. <i class="el-icon-download-app"></i>APP下载
  288. </a>
  289. <a class="vip-item" @click="clickQuit">
  290. <i class="el-icon-back" style="margin: 0 10px !important;"></i
  291. >退出
  292. </a>
  293. </div>
  294. </div>
  295. </el-popover>
  296. </template>
  297. <div v-else>
  298. <a
  299. class="account-ctrl"
  300. style="margin-right: 40px"
  301. :href="baseUrl + '/index/app'"
  302. >APP下载</a
  303. >
  304. <a class="account-ctrl" :href="loginUrl">登录</a>
  305. <a
  306. class="account-ctrl"
  307. style="margin-left: 40px;"
  308. :href="baseUrl + '/user/register'"
  309. >注册</a
  310. >
  311. </div>
  312. </div>
  313. </div>
  314. </template>
  315. <script>
  316. import WhiteLogo from "@/assets/img/white_logo@2x.png";
  317. import KaifainIcon from "@/assets/img/header/new/kaifain2@2x.png"
  318. import JishuinIcon from "@/assets/img/header/new/jishuin@2x.png"
  319. import YesDevIcon from "@/assets/img/header/new/yesdev@2x.png"
  320. import DropDownData from "./headers/dropDownData.js";
  321. export default {
  322. props: ["transparent"],
  323. data() {
  324. return {
  325. KaifainIcon,
  326. JishuinIcon,
  327. YesDevIcon,
  328. baseUrl: "",
  329. jishuBaseUrl: "",
  330. kaifainUrl: "",
  331. jobUrl: "",
  332. // 搜索的关键词
  333. keywork: "",
  334. // 消息数量
  335. messageCount: {},
  336. WhiteLogo,
  337. loginUrl: "",
  338. dropDownData: [],
  339. selectedDropTitle: '',
  340. selectedDrop: 0,
  341. showDropDown: false
  342. };
  343. },
  344. computed: {
  345. vipInfo() {
  346. let userinfo = this.$store.state.userinfo;
  347. return {
  348. id: userinfo.vip_type_id,
  349. endDate: userinfo.vip_end_date
  350. };
  351. },
  352. myInfo() {
  353. return this.$store.state.userinfo;
  354. },
  355. isCom() {
  356. return this.$store.state.userinfo.vip_type_id === "1";
  357. },
  358. vipImage() {
  359. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  360. case 1:
  361. return "_com";
  362. case 2:
  363. return "";
  364. case 3:
  365. return "_premium";
  366. default:
  367. return "";
  368. }
  369. },
  370. vipType() {
  371. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  372. case 1:
  373. case 3:
  374. return "enterprise";
  375. break;
  376. case 2:
  377. return "developer";
  378. }
  379. },
  380. vipTextClass() {
  381. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  382. case 1:
  383. return "is-newly";
  384. case 2:
  385. return "is-dev";
  386. case 3:
  387. return "is-premium";
  388. default:
  389. return "";
  390. }
  391. },
  392. vipText() {
  393. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  394. case 1:
  395. return "初创版会员";
  396. case 2:
  397. return "开发者会员";
  398. case 3:
  399. return "企业版会员";
  400. default:
  401. return "";
  402. }
  403. }
  404. },
  405. mounted() {
  406. // console.error(this.app.co)
  407. if (this.myInfo && this.myInfo.nickname) {
  408. this.getMessageCount();
  409. }
  410. this.loginUrl =
  411. this.baseUrl +
  412. "/?loginbox=show&next=" +
  413. encodeURIComponent(location.href);
  414. this.keywork = this.$route.query.keyword;
  415. // console.log("this.keywork = ", this.key)
  416. },
  417. methods: {
  418. async clickQuit() {
  419. location.href = this.baseUrl + "/user/quit";
  420. },
  421. clickMessages(url) {
  422. location.href = this.baseUrl + url;
  423. },
  424. clickInputEnter() {
  425. let url = "";
  426. console.log(this.$route)
  427. if (this.$route.name === "job") {
  428. url = "/?keyword=" + this.keywork;
  429. } else if (this.$route.name==="user-searchTopic") {
  430. url = "/user/searchTopic?keyword=" + this.keywork;
  431. }
  432. console.log(url);
  433. window.location.href = url;
  434. },
  435. async getMessageCount() {
  436. let res = await this.$axios.$get(
  437. "/api/message/getUnreadCount",
  438. {},
  439. { neverLogout: true }
  440. );
  441. if (res) {
  442. this.messageCount = res.data;
  443. }
  444. },
  445. handleTitleMouseover (index) {
  446. this.selectedDropTitle = index
  447. this.selectedDrop = index
  448. },
  449. handleTitleMouseout (index) {
  450. this.selectedDropTitle = ''
  451. }
  452. },
  453. created() {
  454. this.dropDownData = DropDownData(this.$store.state.domainConfig);
  455. this.baseUrl = this.$store.state.domainConfig.siteUrl;
  456. this.jishuBaseUrl = this.$store.state.domainConfig.jishuinUrl;
  457. this.kaifainUrl = this.$store.state.domainConfig.kaifainUrl;
  458. this.jobUrl = this.$store.state.domainConfig.jobUrl;
  459. }
  460. };
  461. </script>
  462. <style lang="scss" scoped>
  463. .dropDownArea {
  464. position: relative;
  465. .showDropDownArea {
  466. display: none;
  467. }
  468. &:hover {
  469. .showDropDownArea {
  470. margin-top: 28px;
  471. padding-top: 32px;
  472. display: block;
  473. position: absolute;
  474. left: 0;
  475. top: 0;
  476. background: transparent;
  477. transform: translateX(-30%);
  478. .contentArea {
  479. display: flex;
  480. box-sizing: content-box;
  481. width: 830px;
  482. height: 360px;
  483. background: #ffffff;
  484. border-radius: 6px;
  485. box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.06);
  486. .leftSelect {
  487. width: 180px;
  488. height: 100%;
  489. background: #f4f5f9;
  490. .downCell {
  491. height: 75px;
  492. box-sizing: border-box;
  493. padding-left: 30px;
  494. display: flex;
  495. justify-content: center;
  496. flex-direction: column;
  497. .cnName {
  498. height: 23px;
  499. font-size: 17px;
  500. text-align: left;
  501. color: #222222;
  502. line-height: 23px;
  503. font-weight: 600;
  504. }
  505. .enName {
  506. height: 17px;
  507. font-size: 12px;
  508. text-align: left;
  509. color: #999999;
  510. line-height: 17px;
  511. }
  512. &.choosed {
  513. background: #fff;
  514. position: relative;
  515. &:after {
  516. position: absolute;
  517. content: "";
  518. width: 3px;
  519. height: 31px;
  520. background: #308eff;
  521. left: 0;
  522. top: 50%;
  523. transform: translateY(-50%);
  524. }
  525. }
  526. }
  527. }
  528. .rightShow {
  529. width: 650px;
  530. background: #fff;
  531. height: 100%;
  532. box-sizing: border-box;
  533. padding: 0 34px 0 23px;
  534. .rightBigCell {
  535. display: none;
  536. justify-content: space-between;
  537. width: 594px;
  538. height: auto;
  539. // box-shadow: 0px -1px 0px 0px #e2e8ee inset;
  540. padding-bottom: 14px;
  541. box-sizing: border-box;
  542. flex-wrap: wrap;
  543. &:last-child {
  544. box-shadow: none;
  545. }
  546. .smallCell {
  547. height: 110px;
  548. margin-top: 14px;
  549. display: flex;
  550. justify-content: flex-start;
  551. align-items: center;
  552. width: 280px;
  553. cursor: pointer;
  554. box-sizing: border-box;
  555. padding-left: 40px;
  556. border-radius: 12px;
  557. .cellLeftIcon {
  558. flex-shrink: 0;
  559. width: 40px;
  560. height: 40px;
  561. img {
  562. width: 40px;
  563. height: 40px;
  564. }
  565. }
  566. .cellRightArea {
  567. margin-left: 11px;
  568. .cellRightName {
  569. height: 24px;
  570. font-size: 18px;
  571. text-align: left;
  572. color: #222222;
  573. line-height: 24px;
  574. font-weight: 600;
  575. }
  576. .cellRightDesc {
  577. margin-top: 1px;
  578. height: 19px;
  579. font-size: 14px;
  580. text-align: left;
  581. color: #999999;
  582. line-height: 19px;
  583. }
  584. }
  585. }
  586. &.ok {
  587. display: flex;
  588. .smallCell {
  589. background-color: rgb(238, 246, 254);
  590. }
  591. }
  592. }
  593. }
  594. }
  595. }
  596. }
  597. }
  598. .more-item {
  599. // padding: 4px 12px 4px 8px;
  600. display: flex;
  601. align-items: center;
  602. img {
  603. width: 24px;
  604. height: 24px;
  605. margin-right: 12px;
  606. }
  607. span {
  608. font-size: 15px;
  609. color: rgba(0, 0, 0, .85);
  610. font-weight: 500;
  611. }
  612. }
  613. </style>
  614. <style scoped>
  615. #proginn-header {
  616. position: relative;
  617. display: flex;
  618. justify-content: center;
  619. width: 100%;
  620. background: white;
  621. z-index: 10;
  622. }
  623. .list {
  624. display: flex;
  625. justify-content: space-between;
  626. align-items: center;
  627. width: 1000px;
  628. }
  629. .nav-item {
  630. display: flex;
  631. height: 83px;
  632. align-items: center;
  633. font-size: 15px;
  634. color: #515151;
  635. /* padding: 0 15px; */
  636. box-sizing: border-box;
  637. }
  638. .nav-item:first-child {
  639. padding: 0;
  640. }
  641. .nav-item:nth-child(n + 2):hover {
  642. color: #1782d9;
  643. border-top: 5px solid transparent;
  644. border-bottom: 5px solid #1782d9;
  645. }
  646. .nav-dropdown,
  647. .nav-popover {
  648. --imgWidth: 28px;
  649. height: 40px;
  650. display: flex;
  651. align-items: center;
  652. }
  653. .nav-popover > .ref {
  654. display: flex;
  655. align-items: center;
  656. }
  657. .nav-header {
  658. position: relative;
  659. width: var(--imgWidth);
  660. height: var(--imgWidth);
  661. margin-right: 5px;
  662. }
  663. .logo {
  664. width: 140px;
  665. height: auto;
  666. }
  667. .input {
  668. width: 234px;
  669. height: 40px;
  670. border-radius: 20px;
  671. background: #f6f6f6;
  672. padding: 0 40px;
  673. border: 1px solid #ebebeb;
  674. font-size: 13px;
  675. }
  676. .el-icon-search {
  677. position: absolute;
  678. top: 12px;
  679. right: 20px;
  680. color: grey;
  681. cursor: pointer;
  682. }
  683. .el-icon-credit {
  684. background: url("~@/assets/img/header/creditIconMine.png") no-repeat;
  685. background-size: cover;
  686. width: 16px;
  687. height: 16px;
  688. vertical-align: middle;
  689. margin: 0 9px !important;
  690. }
  691. .el-icon-download-app {
  692. background: url("~@/assets/img/header/download@2x.png") no-repeat;
  693. background-size: cover;
  694. width: 16px;
  695. height: 16px;
  696. vertical-align: middle;
  697. margin: 0 9px !important;
  698. }
  699. .el-icon-search::before {
  700. font-size: 14px;
  701. font-weight: 800;
  702. }
  703. i {
  704. margin-right: 4px;
  705. }
  706. i.circle {
  707. display: inline-block;
  708. --width: 12px;
  709. width: var(--width);
  710. height: var(--width);
  711. border-radius: calc(var(--width) / 2);
  712. }
  713. i.blue {
  714. background: #3b83c0;
  715. }
  716. i.orange {
  717. background: #e07b53;
  718. }
  719. i.red {
  720. background: #d95c5c;
  721. }
  722. i.green {
  723. background: #5bbd72;
  724. }
  725. i.pink {
  726. background: #d9499a;
  727. }
  728. i.yellow {
  729. background: #f2c61f;
  730. }
  731. .message-box {
  732. position: relative;
  733. display: flex;
  734. align-items: center;
  735. }
  736. .message-count {
  737. color: white;
  738. margin-left: 4px;
  739. display: block;
  740. line-height: 18px;
  741. padding: 0 8px;
  742. border-radius: 9px;
  743. background: grey;
  744. }
  745. .message-count.message-total {
  746. position: absolute;
  747. top: 0px;
  748. right: -10px;
  749. background: #d95c5c;
  750. }
  751. span.other-icon {
  752. display: block;
  753. margin-left: 30px;
  754. }
  755. .nickname {
  756. font-size: 15px;
  757. }
  758. .vip-info {
  759. display: flex;
  760. flex-direction: column;
  761. justify-content: center;
  762. align-items: center;
  763. width: 206px;
  764. height: 120px;
  765. }
  766. .vip-info-top {
  767. display: flex;
  768. width: 142px;
  769. }
  770. .vip-title {
  771. color: #cb9d53;
  772. font-size: 16px;
  773. line-height: 36px;
  774. }
  775. .vip-icon {
  776. width: 24px;
  777. height: 24px;
  778. margin: 10px 8px 0 0;
  779. }
  780. .vip-end-date {
  781. font-size: 12px;
  782. color: #999;
  783. }
  784. .vip-arcs {
  785. display: flex;
  786. justify-content: space-between;
  787. width: 142px;
  788. margin-top: 11px;
  789. }
  790. .vip-arc {
  791. flex: 1;
  792. font-size: 13px;
  793. color: #cb9d53;
  794. text-align: center;
  795. }
  796. .vip-arc:first-child {
  797. border-right: 1px solid rgba(245, 245, 245, 1);
  798. }
  799. .vip-info-com .vip-title {
  800. color: rgb(113, 177, 253);
  801. }
  802. .vip-info-com .vip-arc {
  803. color: rgb(113, 177, 253);
  804. }
  805. .header-user {
  806. width: var(--imgWidth);
  807. height: var(--imgWidth);
  808. border-radius: 20px;
  809. }
  810. .header-vip-icon {
  811. position: absolute;
  812. top: 16px;
  813. left: 18px;
  814. width: 16px;
  815. height: 16px;
  816. }
  817. .vip-items {
  818. display: flex;
  819. flex-direction: column;
  820. }
  821. .vip-item {
  822. line-height: 32px;
  823. color: #606266;
  824. }
  825. .vip-item > i {
  826. margin: 0 10px;
  827. }
  828. .divider {
  829. border-top: 1px solid rgba(0, 0, 0, 0.05);
  830. margin-top: 10px;
  831. padding-top: 10px;
  832. cursor: pointer;
  833. }
  834. .vip-info-com .is-dev {
  835. color: #cb9d53;
  836. }
  837. .vip-info-com .is-newly {
  838. color: #308eff;
  839. }
  840. .vip-info-com .is-premium {
  841. color: #00c469;
  842. }
  843. .workstation {
  844. color: #606266;
  845. }
  846. .account-ctrl {
  847. color: #606266;
  848. font-size: 15px;
  849. }
  850. #proginn-header a {
  851. text-decoration: none !important;
  852. }
  853. #proginn-header.transparent {
  854. background: transparent;
  855. border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  856. }
  857. #proginn-header.transparent a {
  858. color: white;
  859. }
  860. .message-box-title,
  861. .dashboard-title {
  862. color: #515151;
  863. font-size: 15px;
  864. }
  865. .dashboard-title.on {
  866. color: #1782d9;
  867. }
  868. #proginn-header.transparent .message-box-title,
  869. #proginn-header.transparent .dashboard-title {
  870. color: white;
  871. }
  872. #proginn-header.transparent .nickname {
  873. color: white;
  874. }
  875. </style>