header.vue 29 KB

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