header.vue 29 KB

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