header.vue 32 KB

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