header.vue 29 KB

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