header.vue 32 KB

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