header.vue 33 KB

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