header.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. <template>
  2. <div
  3. id="proginn-header"
  4. :class="{ transparent: transparent }"
  5. :style="{ position: customPosition }"
  6. >
  7. <div class="list">
  8. <div class="header-left">
  9. <a
  10. :href="baseUrl"
  11. @click="cnzz('导航栏目', 'logo', '')"
  12. class="nav-item logo"
  13. >
  14. <img
  15. class="logo"
  16. :src="
  17. transparent
  18. ? WhiteLogo
  19. : 'https://stacdn.proginn.com/image/common/logo3@2x.png'
  20. "
  21. />
  22. </a>
  23. <a
  24. :href="baseUrl"
  25. @click="cnzz('导航栏目', '首页', '')"
  26. class="nav-item"
  27. >首页</a
  28. >
  29. <a
  30. :href="baseUrl + '/cat/'"
  31. @click="cnzz('导航栏目', '程序员', '')"
  32. class="nav-item"
  33. >程序员</a
  34. >
  35. <!-- 解决方案 -->
  36. <el-dropdown class="more-dropdown" placement="bottom-start">
  37. <el-button
  38. type="text"
  39. @click="cnzz('导航栏目', '解决方案', '')"
  40. class="dashboard-title"
  41. >解决方案<i class="el-icon-arrow-down"></i
  42. ></el-button>
  43. <el-dropdown-menu slot="dropdown" class="jiejuefangan-dropdown">
  44. <div class="deal-item" style="padidng-right:40px;">
  45. <div class="big-title">
  46. <img
  47. src="@/assets/img/header/new/jiejuefangan2@2x.png"
  48. alt="招聘用人"
  49. />
  50. <span>招聘用人</span>
  51. </div>
  52. <div>
  53. <el-dropdown-item>
  54. <a
  55. class="more-item fuwu-item"
  56. @click="cnzz('导航栏目', '自由工作', '')"
  57. :href="`${baseUrl}/b/cloud`"
  58. >
  59. <span class="big">云端工作</span>
  60. <span class="small">自由工作、远程工作</span>
  61. </a>
  62. </el-dropdown-item>
  63. </div>
  64. </div>
  65. <div class="deal-item">
  66. <div class="big-title">
  67. <img
  68. src="@/assets/img/header/new/jiejuefangan1@2x.png"
  69. alt="项目研发"
  70. />
  71. <span>项目研发</span>
  72. </div>
  73. <div>
  74. <el-dropdown-item>
  75. <a
  76. class="more-item fuwu-item"
  77. @click="cnzz('导航栏目', '需求梳理', '')"
  78. :href="`${baseUrl}/b/p1980`"
  79. >
  80. <span class="big">需求梳理</span>
  81. <span class="small">规划落地您的想法</span>
  82. </a>
  83. </el-dropdown-item>
  84. <el-dropdown-item>
  85. <a
  86. class="more-item fuwu-item"
  87. @click="cnzz('导航栏目', '整包开发', '')"
  88. :href="`${baseUrl}/b/outsource`"
  89. >
  90. <span class="big">整包开发</span>
  91. <span class="small">一站式软件开发</span>
  92. </a>
  93. </el-dropdown-item>
  94. </div>
  95. </div>
  96. </el-dropdown-menu>
  97. </el-dropdown>
  98. <!-- 服务 -->
  99. <el-dropdown class="more-dropdown" placement="bottom-start">
  100. <el-button
  101. type="text"
  102. @click="cnzz('导航栏目', '服务', '')"
  103. class="dashboard-title ma-v2-service"
  104. >服务<i class="el-icon-arrow-down"></i
  105. ></el-button>
  106. <el-dropdown-menu slot="dropdown" class="fuwu-dropdown">
  107. <el-dropdown-item>
  108. <a
  109. class="more-item fuwu-item"
  110. @click="cnzz('导航栏目', '资源商城', '')"
  111. :href="`${baseUrl}/works/`"
  112. >
  113. <img
  114. src="@/assets/img/header/new/fuwu1@2x.png"
  115. alt="资源商城"
  116. />
  117. <div class="text">
  118. <span class="big">资源商城</span>
  119. <span class="small">各种源码资源任您挑选</span>
  120. </div>
  121. </a>
  122. </el-dropdown-item>
  123. <el-dropdown-item>
  124. <a
  125. class="more-item fuwu-item"
  126. @click="cnzz('导航栏目', '客栈学院', '')"
  127. :href="`${baseUrl}/learn/`"
  128. >
  129. <img
  130. src="@/assets/img/header/new/fuwu3@2x.png"
  131. alt="客栈学院"
  132. />
  133. <div class="text">
  134. <span class="big">客栈学院</span>
  135. <span class="small">程序员技术学院</span>
  136. </div>
  137. </a>
  138. </el-dropdown-item>
  139. </el-dropdown-menu>
  140. </el-dropdown>
  141. <!-- 更多 -->
  142. <!-- <el-dropdown class="more-dropdown" placement="bottom-start" style="padding: 0 14px;"> -->
  143. <a
  144. :href="`${baseUrl}/bituni/`"
  145. type="text"
  146. @click="cnzz('导航栏目', 'Bituni', '')"
  147. class="nav-item"
  148. >Bituni</a
  149. >
  150. <!-- </el-dropdown> -->
  151. <!-- 搜索 -->
  152. <div class="btn_search" style="margin-left:40px;">
  153. <div style="position: relative;" class="">
  154. <input
  155. class="input"
  156. autocomplete="off"
  157. placeholder="搜索您感兴趣的内容"
  158. v-model="keywork"
  159. @keyup.enter="clickInputEnter"
  160. />
  161. <i class="el-icon-search" @click="clickInputEnter"></i>
  162. <span class="input-line"></span>
  163. </div>
  164. <div class="dropdown" style="display:none;"></div>
  165. <div class="dropdown" style="display:none;"></div>
  166. </div>
  167. </div>
  168. <div class="header-right">
  169. <!--
  170. 发布需按钮显示逻辑
  171. 1。未登录,需要显示
  172. 2.企业身份:需要显示
  173. 3.开发者身份:需要展示
  174. -->
  175. <div @click="goToCompanyHome" class="nav-button nav-button-type1">
  176. 发布需求
  177. </div>
  178. <!--
  179. 开发者入住按钮显示逻辑
  180. 1。未登录,需要显示
  181. 2.其余情况不显示
  182. -->
  183. <div
  184. @click="goToPersonalHome"
  185. v-if="!myInfo.uid"
  186. class="nav-button nav-button-type2"
  187. >
  188. 开发者入驻
  189. </div>
  190. <template v-if="myInfo.nickname">
  191. <el-button
  192. type="text"
  193. style="padding-right: 30px"
  194. @click="cnzz('导航栏目', '工作台', '')"
  195. class="dashboard-title"
  196. >
  197. <a class="workstation" :href="baseUrl + '/wo/work_todo'">
  198. 工作台
  199. </a>
  200. </el-button>
  201. <el-dropdown class="nav-dropdown" style="">
  202. <el-button
  203. type="text"
  204. @click="cnzz('导航栏目', '消息', '')"
  205. class="message-box-title"
  206. >
  207. <!-- <i class="el-icon-message"></i> -->
  208. 消息
  209. <span
  210. v-if="messageCount.total > 0"
  211. class="message-count message-total"
  212. >{{ messageCount.total }}</span
  213. >
  214. </el-button>
  215. <el-dropdown-menu slot="dropdown" class="xiaoxi-dropdown">
  216. <el-dropdown-item
  217. class="message-box"
  218. @click.native="clickMessages('/message/system')"
  219. >
  220. <i class="circle blue"></i>系统消息
  221. <span v-if="messageCount.system" class="message-count">{{
  222. messageCount.system
  223. }}</span>
  224. </el-dropdown-item>
  225. <el-dropdown-item
  226. class="message-box"
  227. @click.native="clickMessages('/message/project')"
  228. >
  229. <i class="circle orange"></i>工作通知
  230. <span v-if="messageCount.work" class="message-count">{{
  231. messageCount.work
  232. }}</span>
  233. </el-dropdown-item>
  234. <el-dropdown-item
  235. class="message-box"
  236. @click.native="clickMessages('/message/comment')"
  237. >
  238. <i class="circle red"></i>评论回复
  239. <span v-if="messageCount.reply" class="message-count">{{
  240. messageCount.reply
  241. }}</span>
  242. </el-dropdown-item>
  243. <el-dropdown-item
  244. class="message-box"
  245. @click.native="clickMessages('/message/at')"
  246. >
  247. <i class="circle green"></i>@我的
  248. <span v-if="messageCount.at" class="message-count">{{
  249. messageCount.at
  250. }}</span>
  251. </el-dropdown-item>
  252. <el-dropdown-item
  253. class="message-box"
  254. @click.native="clickMessages('/message/plus')"
  255. >
  256. <i class="circle pink"></i>赞及其它
  257. <span
  258. v-if="messageCount.community_other"
  259. class="message-count"
  260. >{{ messageCount.community_other }}</span
  261. >
  262. </el-dropdown-item>
  263. <el-dropdown-item
  264. class="message-box"
  265. @click.native="clickMessages('/message/coin')"
  266. >
  267. <i class="circle yellow"></i>收支信息
  268. <span v-if="messageCount.balance" class="message-count">{{
  269. messageCount.balance
  270. }}</span>
  271. </el-dropdown-item>
  272. </el-dropdown-menu>
  273. </el-dropdown>
  274. <a
  275. class="account-change"
  276. style="margin-right:40px"
  277. :href="baseUrl + '/frontend/accountchange'"
  278. >切换身份</a
  279. >
  280. <el-popover
  281. class="nav-popover "
  282. placement="bottom"
  283. width="226"
  284. trigger="hover"
  285. >
  286. <div class="ref" slot="reference">
  287. <a class="nav-header" :href="baseUrl + '/wo/work_todo'">
  288. <img class="header-user" :src="myInfo.icon_url" />
  289. <img
  290. v-if="myInfo.is_vip"
  291. class="header-vip-icon"
  292. :src="baseUrl + `/Public/image/h5/vip_icon${vipImage}.png`"
  293. alt="vip-icon"
  294. />
  295. </a>
  296. </div>
  297. <div class="menu">
  298. <!-- 是否vip -->
  299. <template v-if="myInfo.is_vip">
  300. <!-- 企业vip -->
  301. <div
  302. class="ma-vip-area"
  303. :class='{
  304. "ma-company-vip":vipType == "enterprise" ? true:false,
  305. "ma-develop-vip":vipType == "developer"? true:false
  306. }'
  307. >
  308. <div class="ma-vip-title">
  309. <img
  310. v-if="vipType == 'enterprise'"
  311. src="@/assets/img/header/company_vip.png"
  312. class="ma-vip-icon"
  313. />
  314. <img
  315. v-else
  316. src="@/assets/img/header/develop_vip.png"
  317. class="ma-vip-icon"
  318. />
  319. <span>{{vipText}}</span>
  320. </div>
  321. <div class="ma-vip-time">{{ vipInfo.endDate }}到期</div>
  322. <div class="ma-vip-link">
  323. <a :href="baseUrl + '/type/vip/' + vipType">查看权益</a>
  324. <a
  325. :href="
  326. baseUrl +
  327. '/vip/pay?number=3&amp;product_id=' +
  328. this.$store.state.userinfo.vip_type_id +
  329. '&amp;next=/type/vip/' +
  330. vipType
  331. "
  332. >立即续费</a
  333. >
  334. </div>
  335. </div>
  336. </template>
  337. <template v-else>
  338. <div class="ma-vip-area ma-not-vip">
  339. <div class="ma-vip-title">
  340. <img
  341. src="@/assets/img/header/not_vip.png"
  342. class="ma-vip-icon"
  343. />
  344. <span>{{isCompanyAccount ? '企业版会员':"开发者会员"}}</span>
  345. </div>
  346. <div class="ma-vip-apply">
  347. <span>未开通,</span>
  348. <a v-if="isCompanyAccount" :href="baseUrl + '/type/vip/enterprise'">立即开通</a>
  349. <a v-else :href="baseUrl + '/type/vip/developer'">立即开通</a>
  350. </div>
  351. </div>
  352. </template>
  353. <div class="vip-items">
  354. <!-- <a class="vip-item divider" :href="baseUrl + '/wo/work_platform'">
  355. <i class="el-icon-date"></i>我的项目
  356. </a>
  357. <a class="vip-item" :href="baseUrl + '/wo/work_hire'">
  358. <i class="el-icon-news"></i>我的雇佣
  359. </a>
  360. <a class="vip-item" :href="baseUrl + '/wo/work_cloud'">
  361. <i class="el-icon-service"></i>我的远程
  362. </a> -->
  363. <a
  364. class="vip-item divider"
  365. @click="cnzz('我的', '我的主页', '')"
  366. :href="baseUrl + `/wo/manage_homepage`"
  367. >
  368. <i class="el-icon-document"></i>我的主页
  369. </a>
  370. <a
  371. class="vip-item"
  372. @click="cnzz('我的', '技术信用', '')"
  373. :href="baseUrl + '/credit/pages'"
  374. >
  375. <i class="el-icon-credit"></i>技术信用
  376. </a>
  377. <a
  378. class="vip-item"
  379. @click="cnzz('我的', '收藏中心', '')"
  380. :href="baseUrl + '/otherpage/user/collection'"
  381. >
  382. <i class="el-icon-collection"></i>收藏中心
  383. </a>
  384. <a
  385. class="vip-item divider"
  386. @click="cnzz('我的', 'APP下载', '')"
  387. :href="baseUrl + '/index/app'"
  388. >
  389. <i class="el-icon-download-app"></i>下载APP
  390. </a>
  391. <a class="vip-item" @click="clickQuit">
  392. <i class="el-icon-back" style="margin: 0 10px !important;"></i
  393. >退出
  394. </a>
  395. </div>
  396. </div>
  397. </el-popover>
  398. </template>
  399. <div v-else>
  400. <a
  401. class="account-ctrl"
  402. style="margin-right:25px"
  403. @click="cnzz('导航栏目', 'APP下载', '')"
  404. :href="baseUrl + '/index/app'"
  405. >APP</a
  406. >
  407. <span class="account-ctrl" style="margin-right:37px;">
  408. <a class="account-ctrl" :href="loginUrl">登录</a>
  409. /
  410. <a class="account-ctrl" :href="baseUrl + '/user/register'">注册</a>
  411. </span>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. </template>
  417. <script>
  418. import WhiteLogo from "@/assets/img/white_logo@2x.png";
  419. import KaifainIcon from "@/assets/img/header/new/kaifain2@2x.png";
  420. import JishuinIcon from "@/assets/img/header/new/jishuin@2x.png";
  421. import YesDevIcon from "@/assets/img/header/new/yesdev@2x.png";
  422. import DownloadIcon from "@/assets/img/header/new/download.png";
  423. // import DropDownData from "./headers/dropDownData.js";
  424. export default {
  425. props: ["transparent"],
  426. data() {
  427. return {
  428. KaifainIcon,
  429. JishuinIcon,
  430. YesDevIcon,
  431. DownloadIcon,
  432. baseUrl: "",
  433. jishuBaseUrl: "",
  434. kaifainUrl: "",
  435. jobUrl: "",
  436. // 搜索的关键词
  437. keywork: "",
  438. // 消息数量
  439. messageCount: {},
  440. WhiteLogo,
  441. loginUrl: "",
  442. // dropDownData: [],
  443. selectedDropTitle: "",
  444. selectedDrop: 0,
  445. showDropDown: false
  446. };
  447. },
  448. computed: {
  449. vipInfo() {
  450. let userinfo = this.$store.state.userinfo;
  451. return {
  452. id: userinfo.vip_type_id,
  453. endDate: userinfo.vip_end_date
  454. };
  455. },
  456. isPersonalAccount() {
  457. let userinfo = this.$store.state.userinfo;
  458. return userinfo.home_page_type == 2 ? true:false;
  459. },
  460. isCompanyAccount() {
  461. let userinfo = this.$store.state.userinfo;
  462. return userinfo.home_page_type == 1 ? true:false;
  463. },
  464. myInfo() {
  465. return this.$store.state.userinfo;
  466. },
  467. isCom() {
  468. return this.$store.state.userinfo.vip_type_id === "1";
  469. },
  470. vipImage() {
  471. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  472. case 1:
  473. return "_com";
  474. case 2:
  475. return "";
  476. case 3:
  477. return "_premium";
  478. default:
  479. return "";
  480. }
  481. },
  482. vipType() {
  483. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  484. case 1:
  485. case 3:
  486. return "enterprise";
  487. break;
  488. case 2:
  489. return "developer";
  490. }
  491. },
  492. vipTextClass() {
  493. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  494. case 1:
  495. return "is-newly";
  496. case 2:
  497. return "is-dev";
  498. case 3:
  499. return "is-premium";
  500. default:
  501. return "";
  502. }
  503. },
  504. vipText() {
  505. switch (parseInt(this.$store.state.userinfo.vip_type_id)) {
  506. case 1:
  507. return "初创版会员";
  508. case 2:
  509. return "开发者会员";
  510. case 3:
  511. return "企业版会员";
  512. default:
  513. return "";
  514. }
  515. },
  516. customPosition() {
  517. let customPosition = "relative";
  518. const routeName = this.$route.name;
  519. if (routeName.indexOf("SeoConsultUser") > -1) {
  520. customPosition = "fixed";
  521. }
  522. return customPosition;
  523. }
  524. },
  525. mounted() {
  526. // console.error(this.app.co)
  527. if (this.myInfo && this.myInfo.nickname) {
  528. this.getMessageCount();
  529. }
  530. this.loginUrl =
  531. this.baseUrl +
  532. "/?loginbox=show&next=" +
  533. encodeURIComponent(location.href);
  534. this.keywork = this.$route.query.keyword;
  535. // console.log("this.keywork = ", this.key)
  536. },
  537. methods: {
  538. goToCompanyHome() {
  539. // 点击发布需求
  540. // 如没登录,跳到登录页
  541. if (this.myInfo.nickname) {
  542. location.href = this.baseUrl + "/frontend/requirements";
  543. } else {
  544. location.href = this.baseUrl + "/type/service";
  545. }
  546. },
  547. goToPersonalHome() {
  548. // 点击开发者入驻
  549. // 如没登录,跳到登录页
  550. if (this.myInfo.nickname) {
  551. } else {
  552. location.href = this.loginUrl;
  553. }
  554. },
  555. async clickQuit() {
  556. this.cnzz("我的", "退出登录", "");
  557. location.href = this.baseUrl + "/user/quit";
  558. },
  559. clickMessages(url) {
  560. location.href = this.baseUrl + url;
  561. },
  562. clickInputEnter() {
  563. let url = "/search?keyword=" + this.keywork;
  564. console.log(this.$route);
  565. if (this.$route.name === "job") {
  566. url = "/search?keyword=" + this.keywork;
  567. } else if (this.$route.name === "user-searchTopic") {
  568. url = "/user/searchTopic?keyword=" + this.keywork;
  569. }
  570. console.log(url);
  571. this.cnzz("我的", "放大镜搜索", "");
  572. window.location.href = url;
  573. },
  574. async getMessageCount() {
  575. let res = await this.$axios.$get(
  576. "/api/message/getUnreadCount",
  577. {},
  578. { neverLogout: true }
  579. );
  580. if (res) {
  581. this.messageCount = res.data;
  582. }
  583. },
  584. handleTitleMouseover(index) {
  585. this.selectedDropTitle = index;
  586. this.selectedDrop = index;
  587. },
  588. handleTitleMouseout(index) {
  589. this.selectedDropTitle = "";
  590. }
  591. },
  592. created() {
  593. this.baseUrl = this.$store.state.domainConfig.siteUrl;
  594. this.jishuBaseUrl = this.$store.state.domainConfig.jishuinUrl;
  595. this.kaifainUrl = this.$store.state.domainConfig.kaifainUrl;
  596. this.jobUrl = this.$store.state.domainConfig.jobUrl;
  597. }
  598. };
  599. </script>
  600. <style lang="scss" scoped>
  601. @media only screen and (max-width: 1220px) {
  602. .btn_search {
  603. display: none;
  604. }
  605. }
  606. .header-left {
  607. padding-left: 15px;
  608. }
  609. .dropDownArea {
  610. position: relative;
  611. .showDropDownArea {
  612. display: none;
  613. }
  614. &:hover {
  615. .showDropDownArea {
  616. margin-top: 28px;
  617. padding-top: 32px;
  618. display: block;
  619. position: absolute;
  620. left: 0;
  621. top: 0;
  622. background: transparent;
  623. transform: translateX(-30%);
  624. .contentArea {
  625. display: flex;
  626. box-sizing: content-box;
  627. width: 830px;
  628. height: 360px;
  629. background: #ffffff;
  630. border-radius: 6px;
  631. box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.06);
  632. .leftSelect {
  633. width: 180px;
  634. height: 100%;
  635. background: #f4f5f9;
  636. .downCell {
  637. height: 75px;
  638. box-sizing: border-box;
  639. padding-left: 30px;
  640. display: flex;
  641. justify-content: center;
  642. flex-direction: column;
  643. .cnName {
  644. height: 23px;
  645. font-size: 17px;
  646. text-align: left;
  647. color: #222222;
  648. line-height: 23px;
  649. font-weight: 600;
  650. }
  651. .enName {
  652. height: 17px;
  653. font-size: 12px;
  654. text-align: left;
  655. color: #999999;
  656. line-height: 17px;
  657. }
  658. &.choosed {
  659. background: #fff;
  660. position: relative;
  661. &:after {
  662. position: absolute;
  663. content: "";
  664. width: 3px;
  665. height: 31px;
  666. background: #308eff;
  667. left: 0;
  668. top: 50%;
  669. transform: translateY(-50%);
  670. }
  671. }
  672. }
  673. }
  674. .rightShow {
  675. width: 650px;
  676. background: #fff;
  677. height: 100%;
  678. box-sizing: border-box;
  679. padding: 0 34px 0 23px;
  680. .rightBigCell {
  681. display: none;
  682. justify-content: space-between;
  683. width: 594px;
  684. height: auto;
  685. // box-shadow: 0px -1px 0px 0px #e2e8ee inset;
  686. padding-bottom: 14px;
  687. box-sizing: border-box;
  688. flex-wrap: wrap;
  689. &:last-child {
  690. box-shadow: none;
  691. }
  692. .smallCell {
  693. height: 110px;
  694. margin-top: 14px;
  695. display: flex;
  696. justify-content: flex-start;
  697. align-items: center;
  698. width: 280px;
  699. cursor: pointer;
  700. box-sizing: border-box;
  701. padding-left: 40px;
  702. border-radius: 12px;
  703. .cellLeftIcon {
  704. flex-shrink: 0;
  705. width: 40px;
  706. height: 40px;
  707. img {
  708. width: 40px;
  709. height: 40px;
  710. }
  711. }
  712. .cellRightArea {
  713. margin-left: 11px;
  714. .cellRightName {
  715. height: 24px;
  716. font-size: 18px;
  717. text-align: left;
  718. color: #222222;
  719. line-height: 24px;
  720. font-weight: 600;
  721. }
  722. .cellRightDesc {
  723. margin-top: 1px;
  724. height: 19px;
  725. font-size: 14px;
  726. text-align: left;
  727. color: #999999;
  728. line-height: 19px;
  729. }
  730. }
  731. }
  732. &.ok {
  733. display: flex;
  734. .smallCell {
  735. background-color: rgb(238, 246, 254);
  736. }
  737. }
  738. }
  739. }
  740. }
  741. }
  742. }
  743. }
  744. .more-item {
  745. // padding: 4px 12px 4px 8px;
  746. display: flex;
  747. align-items: center;
  748. img {
  749. width: 24px;
  750. height: 24px;
  751. margin-right: 12px;
  752. }
  753. span {
  754. font-size: 15px;
  755. color: rgba(0, 0, 0, 0.85);
  756. font-weight: 500;
  757. }
  758. }
  759. .more-item.fuwu-item {
  760. img {
  761. width: 28px;
  762. height: 28px;
  763. }
  764. .text {
  765. display: flex;
  766. flex-direction: column;
  767. }
  768. .big {
  769. font-size: 15px;
  770. font-family: PingFangSC, PingFangSC-Semibold;
  771. font-weight: 600;
  772. color: #222;
  773. }
  774. .small {
  775. font-size: 12px;
  776. font-family: PingFangSC, PingFangSC-Regular;
  777. font-weight: 400;
  778. color: #666;
  779. }
  780. }
  781. .fuwu-dropdown {
  782. padding: 10px 0;
  783. // top: 60px;
  784. border: 1px solid rgba(0, 0, 0, 0.05);
  785. border-radius: 10px;
  786. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.01);
  787. .el-dropdown-menu__item {
  788. line-height: 20px !important;
  789. padding: 12px 20px !important;
  790. }
  791. }
  792. .gengduo-dropdown {
  793. border: 1px solid rgba(0, 0, 0, 0.05);
  794. border-radius: 10px;
  795. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.01);
  796. }
  797. .jiejuefangan-dropdown {
  798. display: flex;
  799. padding: 36px;
  800. border: 1px solid rgba(0, 0, 0, 0.05);
  801. border-radius: 10px;
  802. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.01);
  803. .big-title {
  804. display: flex;
  805. align-items: center;
  806. padding-bottom: 12px;
  807. img {
  808. width: 28px;
  809. height: 28px;
  810. }
  811. span {
  812. font-size: 18px;
  813. font-family: PingFangSC, PingFangSC-Semibold;
  814. font-weight: 600;
  815. color: #222;
  816. margin-left: 6px;
  817. }
  818. }
  819. .more-item.fuwu-item {
  820. flex-direction: column;
  821. align-items: inherit;
  822. }
  823. .el-dropdown-menu__item {
  824. line-height: 20px !important;
  825. padding: 10px 10px 10px 34px;
  826. }
  827. }
  828. .xiaoxi-dropdown {
  829. border: 1px solid rgba(0, 0, 0, 0.05);
  830. border-radius: 10px;
  831. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.01);
  832. }
  833. </style>
  834. <style scoped>
  835. #proginn-header {
  836. position: fixed !important;
  837. top: 0;
  838. left: 0;
  839. display: flex;
  840. justify-content: center;
  841. width: 100%;
  842. width: 100vw;
  843. height: 65px;
  844. background: white;
  845. z-index: 10;
  846. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  847. }
  848. .list {
  849. display: flex;
  850. justify-content: space-between;
  851. max-width: 1440px;
  852. width: 100%;
  853. min-width: 1050px;
  854. }
  855. .header-left {
  856. display: flex;
  857. align-items: center;
  858. }
  859. .header-right {
  860. display: flex;
  861. align-items: center;
  862. }
  863. .nav-item {
  864. display: flex;
  865. height: 100%;
  866. align-items: center;
  867. font-size: 14px;
  868. color: #515151;
  869. box-sizing: border-box;
  870. padding: 0 20px;
  871. font-family: PingFangSC-Regular, PingFang SC;
  872. font-weight: 400;
  873. }
  874. .nav-item.logo {
  875. margin-right: 22px;
  876. padding: 0;
  877. }
  878. .nav-item:first-child {
  879. padding: 0;
  880. }
  881. .nav-item:nth-child(n + 2):hover {
  882. color: #1782d9;
  883. border-top: 5px solid transparent;
  884. border-bottom: 5px solid #1782d9;
  885. }
  886. .nav-dropdown,
  887. .nav-popover {
  888. width: 30px;
  889. height: 30px;
  890. display: flex;
  891. align-items: center;
  892. margin-right: 40px;
  893. }
  894. .nav-popover > .ref {
  895. display: flex;
  896. align-items: center;
  897. }
  898. .nav-header {
  899. position: relative;
  900. width: var(--imgWidth);
  901. height: var(--imgWidth);
  902. margin-right: 5px;
  903. }
  904. .logo {
  905. /* width: 126px; */
  906. /* height: auto; */
  907. height: 35px;
  908. }
  909. .input {
  910. width: 218px;
  911. height: 34px;
  912. background: #f7f8fa;
  913. border-radius: 4px;
  914. padding: 0 45px 0 16px;
  915. /* border: 1px solid #ebebeb; */
  916. font-size: 14px;
  917. }
  918. .input::-webkit-input-placeholder {
  919. color: #828c99;
  920. }
  921. .more-dropdown {
  922. padding: 0 20px;
  923. }
  924. .more-dropdown .dashboard-title {
  925. color: #515151;
  926. }
  927. .el-icon-search {
  928. position: absolute;
  929. top: 50%;
  930. transform: translateY(-50%);
  931. right: 11px;
  932. color: grey;
  933. cursor: pointer;
  934. }
  935. .input-line {
  936. position: absolute;
  937. top: 50%;
  938. transform: translateY(-50%);
  939. right: 39px;
  940. width: 1px;
  941. height: 12px;
  942. border: 1px solid #ebeced;
  943. }
  944. .el-icon-credit {
  945. background: url("~@/assets/img/header/creditIconMine.png") no-repeat;
  946. background-size: cover;
  947. width: 16px;
  948. height: 16px;
  949. vertical-align: middle;
  950. margin: 0 9px !important;
  951. }
  952. .el-icon-download-app {
  953. background: url("~@/assets/img/header/download@2x.png") no-repeat;
  954. background-size: cover;
  955. width: 16px;
  956. height: 16px;
  957. vertical-align: middle;
  958. margin: 0 9px !important;
  959. }
  960. .el-icon-search::before {
  961. font-size: 14px;
  962. font-weight: 800;
  963. }
  964. i {
  965. margin-right: 4px;
  966. }
  967. i.circle {
  968. display: inline-block;
  969. --width: 12px;
  970. width: var(--width);
  971. height: var(--width);
  972. border-radius: calc(var(--width) / 2);
  973. }
  974. i.blue {
  975. background: #3b83c0;
  976. }
  977. i.orange {
  978. background: #e07b53;
  979. }
  980. i.red {
  981. background: #d95c5c;
  982. }
  983. i.green {
  984. background: #5bbd72;
  985. }
  986. i.pink {
  987. background: #d9499a;
  988. }
  989. i.yellow {
  990. background: #f2c61f;
  991. }
  992. .message-box {
  993. position: relative;
  994. display: flex;
  995. align-items: center;
  996. }
  997. .message-count {
  998. color: white;
  999. margin-left: 4px;
  1000. display: block;
  1001. line-height: 18px;
  1002. padding: 0 8px;
  1003. border-radius: 9px;
  1004. background: grey;
  1005. }
  1006. .message-count.message-total {
  1007. position: absolute;
  1008. top: -5px;
  1009. right: -15px;
  1010. background: #d95c5c;
  1011. }
  1012. span.other-icon {
  1013. display: block;
  1014. margin-left: 30px;
  1015. }
  1016. .nickname {
  1017. font-size: 15px;
  1018. }
  1019. .vip-info {
  1020. display: flex;
  1021. flex-direction: column;
  1022. justify-content: center;
  1023. align-items: center;
  1024. width: 206px;
  1025. height: 120px;
  1026. }
  1027. .vip-info-top {
  1028. display: flex;
  1029. width: 142px;
  1030. }
  1031. .vip-title {
  1032. color: #cb9d53;
  1033. font-size: 16px;
  1034. line-height: 36px;
  1035. }
  1036. .vip-icon {
  1037. width: 24px;
  1038. height: 24px;
  1039. margin: 10px 8px 0 0;
  1040. }
  1041. .vip-end-date {
  1042. font-size: 12px;
  1043. color: #999;
  1044. }
  1045. .vip-arcs {
  1046. display: flex;
  1047. justify-content: space-between;
  1048. width: 142px;
  1049. margin-top: 11px;
  1050. }
  1051. .vip-arc {
  1052. flex: 1;
  1053. font-size: 13px;
  1054. color: #cb9d53;
  1055. text-align: center;
  1056. }
  1057. .vip-arc:first-child {
  1058. border-right: 1px solid rgba(245, 245, 245, 1);
  1059. }
  1060. .vip-info-com .vip-title {
  1061. color: rgb(113, 177, 253);
  1062. }
  1063. .vip-info-com .vip-arc {
  1064. color: rgb(113, 177, 253);
  1065. }
  1066. .header-user {
  1067. width: var(--imgWidth);
  1068. height: var(--imgWidth);
  1069. border-radius: 20px;
  1070. width: 30px !important;
  1071. max-width: 30px !important;
  1072. }
  1073. .header-vip-icon {
  1074. position: absolute;
  1075. top: 15px;
  1076. left: 22px;
  1077. width: 16px;
  1078. height: 16px;
  1079. }
  1080. .vip-items {
  1081. display: flex;
  1082. flex-direction: column;
  1083. }
  1084. .vip-item {
  1085. line-height: 32px;
  1086. color: #606266;
  1087. }
  1088. .vip-item > i {
  1089. margin: 0 10px;
  1090. }
  1091. .divider {
  1092. border-top: 1px solid rgba(0, 0, 0, 0.05);
  1093. margin-top: 10px;
  1094. padding-top: 10px;
  1095. cursor: pointer;
  1096. }
  1097. .vip-info-com .is-dev {
  1098. color: #cb9d53;
  1099. }
  1100. .vip-info-com .is-newly {
  1101. color: #308eff;
  1102. }
  1103. .vip-info-com .is-premium {
  1104. color: #00c469;
  1105. }
  1106. .workstation {
  1107. color: #606266;
  1108. }
  1109. .account-ctrl {
  1110. color: #0b121a;
  1111. font-size: 14px;
  1112. }
  1113. .account-change {
  1114. color: #308eff;
  1115. font-size: 14px;
  1116. }
  1117. #proginn-header a {
  1118. text-decoration: none !important;
  1119. }
  1120. #proginn-header.transparent {
  1121. background: transparent;
  1122. border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  1123. }
  1124. #proginn-header.transparent a {
  1125. color: white;
  1126. }
  1127. .message-box-title,
  1128. .dashboard-title {
  1129. color: #0b121a;
  1130. font-size: 14px;
  1131. font-weight: normal;
  1132. }
  1133. .dashboard-title.on {
  1134. color: #1782d9;
  1135. }
  1136. #proginn-header.transparent .message-box-title,
  1137. #proginn-header.transparent .dashboard-title {
  1138. color: white;
  1139. }
  1140. #proginn-header.transparent .nickname {
  1141. color: white;
  1142. }
  1143. .nav-button {
  1144. width: 94px;
  1145. height: 30px;
  1146. line-height: 30px;
  1147. text-align: center;
  1148. font-size: 14px;
  1149. font-weight: 400;
  1150. color: #ffffff;
  1151. cursor: pointer;
  1152. font-family: PingFangSC-Regular, PingFang SC;
  1153. }
  1154. .nav-button-type1 {
  1155. background: #308eff;
  1156. border-radius: 2px;
  1157. margin-right: 14px;
  1158. }
  1159. .nav-button-type2 {
  1160. background: #ff7640;
  1161. border-radius: 2px;
  1162. margin-right: 45px;
  1163. }
  1164. .ma-v2-service {
  1165. position: relative;
  1166. left: -7px;
  1167. }
  1168. .ma-vip-area {
  1169. display: flex;
  1170. flex-direction: column;
  1171. align-items: center;
  1172. padding: 12px 0 12px;
  1173. }
  1174. .ma-vip-title {
  1175. display: flex;
  1176. position: relative;
  1177. font-size: 16px;
  1178. font-family: PingFangSC-Medium, PingFang SC;
  1179. font-weight: 500;
  1180. align-items: center;
  1181. }
  1182. .ma-vip-icon {
  1183. width: 24px;
  1184. height: 24px;
  1185. margin-right: 6px;
  1186. }
  1187. .ma-vip-time {
  1188. font-size: 11px;
  1189. font-family: PingFangSC-Regular, PingFang SC;
  1190. font-weight: 400;
  1191. color: #828c99;
  1192. line-height: 16px;
  1193. margin-top: 5px;
  1194. }
  1195. .ma-vip-link {
  1196. margin-top: 14px;
  1197. position: relative;
  1198. display: flex;
  1199. /* width: */
  1200. }
  1201. .ma-vip-link::before {
  1202. content: "";
  1203. position: absolute;
  1204. height: 14px;
  1205. width: 1px;
  1206. background-color: #828c99;
  1207. left: 50%;
  1208. top: 50%;
  1209. transform: translate(-50%, -50%) scaleX(0.5);
  1210. }
  1211. .ma-vip-link a {
  1212. display: inline-block;
  1213. margin: 0 22px;
  1214. font-size: 14px;
  1215. font-family: PingFangSC-Regular, PingFang SC;
  1216. font-weight: 400;
  1217. line-height: 20px;
  1218. }
  1219. .ma-vip-apply {
  1220. font-size: 13px;
  1221. font-family: PingFangSC-Regular, PingFang SC;
  1222. font-weight: 400;
  1223. /* color: #0B121A; */
  1224. line-height: 20px;
  1225. margin-top: 6px;
  1226. a {
  1227. color: #308eff;
  1228. }
  1229. }
  1230. .ma-company-vip .ma-vip-title,
  1231. .ma-company-vip a {
  1232. color: #308eff;
  1233. }
  1234. .ma-develop-vip .ma-vip-title,
  1235. .ma-develop-vip a {
  1236. color: #ce9d31;
  1237. }
  1238. .ma-not-vip .ma-vip-title {
  1239. color: #aaa;
  1240. }
  1241. </style>