MyFooter.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. <template>
  2. <header class="my-footer">
  3. <div :class="{'footer-wrap': true,'en': locale==='en'}">
  4. <div class="part top">
  5. <div class="top-left">
  6. <div class="item one">
  7. <p class="title">{{ $t("companyInfo") }}</p>
  8. <p class="each introduction">
  9. <a
  10. :href="`${wwwURL}/${locale}/common/introduce`"
  11. target="_blank"
  12. >{{ $t("hooliIntroduction") }}</a>
  13. </p>
  14. <p class="each product-service">
  15. <a
  16. :href="`${wwwURL}/${locale}/common/product-service`"
  17. target="_blank"
  18. >{{ $t("productService") }}</a>
  19. </p>
  20. <p class="each join-us">
  21. <a
  22. :href="`${wwwURL}/${locale}/common/join-us`"
  23. target="_blank"
  24. >{{ $t("joinUs") }}</a>
  25. </p>
  26. </div>
  27. <div class="item two">
  28. <p class="title">{{ $t("userHelp") }}</p>
  29. <p class="each faq">
  30. <a
  31. :href="`${wwwURL}/${locale}/common/faq`"
  32. target="_blank">{{ $t("faq") }}</a>
  33. </p>
  34. <p class="each privacy-statement">
  35. <a
  36. :href="`${wwwURL}/${locale}/common/privacy`"
  37. target="_blank"
  38. >{{ $t("privacyStatement") }}</a>
  39. </p>
  40. <p class="each complaint-suggestion">
  41. <a
  42. href="javascript:void(0);"
  43. @click="handleShowView">{{ $t("complaintSuggestion") }}</a>
  44. </p>
  45. <p class="each sitemap">
  46. <a
  47. :href="`${wwwURL}/sitemap`"
  48. target="_blank"
  49. >{{ $t("sitemap") }}</a>
  50. </p>
  51. </div>
  52. <div
  53. v-if="locale==='en'"
  54. class="item three">
  55. <p class="title">{{ $t("attentionUs") }}</p>
  56. <ul class="attention-us">
  57. <li>
  58. <a
  59. target="_blank"
  60. href="https://www.facebook.com/hoolihome">
  61. <img src="//static.hoolihome.com/bbs/img/attention_facebook.png?v=1">
  62. </a>
  63. </li>
  64. <li>
  65. <a
  66. target="_blank"
  67. href="https://www.instagram.com/explore/tags/hoolihome">
  68. <img src="//static.hoolihome.com/bbs/img/attention_instagram.png?v=1">
  69. </a>
  70. </li>
  71. <li>
  72. <a
  73. target="_blank"
  74. href="https://www.linkedin.com/company/hoolihome">
  75. <img src="//static.hoolihome.com/bbs/img/attention_linkedin.png?v=1">
  76. </a>
  77. </li>
  78. </ul>
  79. </div>
  80. <div
  81. v-else
  82. class="item three">
  83. <p class="title">{{ $t("attentionUs") }}</p>
  84. <ul class="attention-us">
  85. <!-- <li>
  86. <a
  87. target="_blank"
  88. href="wwwURL">
  89. <img src="//static.hoolihome.com/bbs/img/attention_wechat.png">
  90. </a>
  91. </li> -->
  92. <li>
  93. <a
  94. target="_blank"
  95. href="https://weibo.com/u/6387807436"
  96. >
  97. <img src="//static.hoolihome.com/bbs/img/attention_weibo.png?v=1">
  98. </a>
  99. </li>
  100. <li>
  101. <a
  102. target="_blank"
  103. href="https://www.toutiao.com/c/user/70370841306/#mid=1580751152527374">
  104. <img
  105. src="//static.hoolihome.com/bbs/img/attention_toutiao.png?v=2">
  106. </a>
  107. </li>
  108. <li>
  109. <a
  110. target="_blank"
  111. href="https://www.iesdouyin.com/share/user/95892613855">
  112. <img src="//static.hoolihome.com/bbs/img/attention_douyin.png?v=1">
  113. </a>
  114. </li>
  115. <li>
  116. <a
  117. target="_blank"
  118. href="https://www.linkedin.com/company/hoolihome">
  119. <img src="//static.hoolihome.com/bbs/img/attention_linkedin.png?v=1">
  120. </a>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. <div class="top-right">
  126. <div class="item one">
  127. <img
  128. class="qrocde"
  129. src="//static.hoolihome.com/pc/3.0.0/assets/img/common/barcode_app.png?v=2">
  130. <p class="desc">{{ $t("hooliApp") }}</p>
  131. </div>
  132. <div class="item two">
  133. <img
  134. class="qrocde"
  135. src="//static.hoolihome.com/pc/3.0.0/assets/img/common/barcode_weapp.png?v=2">
  136. <p class="desc">{{ $t("weapp") }}</p>
  137. </div>
  138. <div class="item three">
  139. <img
  140. class="qrocde"
  141. src="//static.hoolihome.com/pc/3.0.0/assets/img/common/barcode_wx.png?v=2">
  142. <p class="desc">{{ $t("wechat") }}</p>
  143. </div>
  144. </div>
  145. </div>
  146. <div
  147. v-if="friendshipLinkArr.length>0"
  148. class="part middle">
  149. <template v-for="(vv,ii) in friendshipLinkArr">
  150. <ul
  151. :key="ii"
  152. class="friendship-link">
  153. <li class="each">
  154. <span>{{ `${vv.cate}:` }}</span>
  155. </li>
  156. <li
  157. v-for="(v,i) in vv.linkList"
  158. :key="i"
  159. class="each">
  160. <a
  161. :href="v.url"
  162. target="_blank">{{ v.name }}</a>
  163. </li>
  164. </ul>
  165. </template>
  166. </div>
  167. <div class="part below">
  168. <div class="item one">
  169. <img
  170. class="logo"
  171. src="//static.hoolihome.com/common/default/lg.png">
  172. </div>
  173. <div class="item two">
  174. <p class="copyright">{{ $t("copyright") }}</p>
  175. <p class="company-name">{{ $t("companyName") }}</p>
  176. <p class="authorities-promptly">{{ $t("authoritiesPromptly") }}</p>
  177. </div>
  178. </div>
  179. </div>
  180. </header>
  181. </template>
  182. <script>
  183. import { wwwURL } from '~/common/config.js'
  184. export default {
  185. props: {
  186. friendshipLinkArr: {
  187. type: Array,
  188. required: false,
  189. default: () => []
  190. }
  191. },
  192. data() {
  193. return {
  194. wwwURL,
  195. locale: this.$store.state.locale
  196. }
  197. },
  198. methods: {
  199. handleShowView() {
  200. let { loginUserInfo, locale } = this.$store.state
  201. this.$hooliAnalysis.upload({
  202. ec: this.$C.ENTRANCE_CODE.complain,
  203. et: this.$C.EVENT_TYPE.click
  204. })
  205. if (loginUserInfo && loginUserInfo.token) {
  206. window.open(`${wwwURL}/${locale}/common/comments`)
  207. } else if (this.$parent && this.$parent.$refs.myHeader) {
  208. this.$parent.handleShowView()
  209. }
  210. }
  211. }
  212. }
  213. </script>
  214. <style lang="less" scoped>
  215. .my-footer {
  216. background-color: #303030;
  217. .footer-wrap {
  218. width: 1200px;
  219. min-height: 308px;
  220. margin: 0 auto;
  221. &.en {
  222. .part {
  223. margin: 0 50px;
  224. &.top {
  225. .top-right {
  226. .item {
  227. &.three {
  228. margin-left: 26px;
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. .part {
  236. position: relative;
  237. margin: 0 5px;
  238. &:not(:last-child)::after {
  239. content: '';
  240. position: absolute;
  241. bottom: 0;
  242. left: 0;
  243. right: 0;
  244. transform: scaleY(0.5);
  245. border-bottom: 1px #444444 solid;
  246. }
  247. &.top {
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: stretch;
  251. min-height: 188px;
  252. .top-left {
  253. flex: 1;
  254. display: flex;
  255. justify-content: flex-start;
  256. align-items: stretch;
  257. .item {
  258. margin-bottom: 10px;
  259. .title {
  260. height: 21px;
  261. line-height: 21px;
  262. margin-top: 40px;
  263. font-size: 15px;
  264. font-family: PingFangSC-Semibold;
  265. font-weight: 600;
  266. color: rgba(255, 255, 255, 1);
  267. }
  268. .each {
  269. height: 20px;
  270. line-height: 20px;
  271. margin: 9px 0;
  272. font-size: 14px;
  273. font-family: PingFangSC-Regular;
  274. font-weight: 400;
  275. color: rgba(255, 255, 255, 1);
  276. a {
  277. color: #ffffff;
  278. &:hover {
  279. color: #ed5f48;
  280. }
  281. }
  282. }
  283. &.one {
  284. .introduction {
  285. margin-top: 25px;
  286. }
  287. }
  288. &.two {
  289. margin-left: 54px;
  290. .faq {
  291. margin-top: 25px;
  292. }
  293. }
  294. &.three {
  295. margin-left: 68px;
  296. .attention-us {
  297. display: flex;
  298. flex-flow: row wrap;
  299. justify-content: flex-start;
  300. align-content: center;
  301. align-items: center;
  302. max-width: 240px;
  303. margin-top: 25px;
  304. a {
  305. display: inline-block;
  306. width: 30px;
  307. height: 30px;
  308. margin: 0 30px 18px 0;
  309. border-radius: 30px;
  310. overflow: hidden;
  311. &:hover {
  312. opacity: 0.8;
  313. }
  314. img {
  315. width: 30px;
  316. height: 30px;
  317. }
  318. }
  319. }
  320. }
  321. }
  322. }
  323. .top-right {
  324. display: flex;
  325. justify-content: flex-end;
  326. align-items: stretch;
  327. min-width: 310px;
  328. .item {
  329. margin-left: 50px;
  330. text-align: center;
  331. .qrocde {
  332. width: 70px;
  333. height: 70px;
  334. margin-top: 40px;
  335. }
  336. .desc {
  337. height: 15px;
  338. line-height: 15px;
  339. margin-top: 10px;
  340. font-size: 13px;
  341. font-family: Roboto-Regular;
  342. font-weight: 400;
  343. color: rgba(153, 153, 153, 1);
  344. }
  345. }
  346. }
  347. }
  348. &.middle {
  349. min-height: 60px;
  350. .friendship-link {
  351. display: flex;
  352. flex-flow: row wrap;
  353. justify-content: flex-start;
  354. align-items: center;
  355. &:first-child {
  356. padding-top: 20px;
  357. }
  358. &:last-child {
  359. padding-bottom: 10px;
  360. }
  361. .each {
  362. height: 20px;
  363. line-height: 20px;
  364. margin: 0 40px 10px 0;
  365. font-size: 12px;
  366. font-family: PingFangSC-Regular;
  367. font-weight: 400;
  368. color: rgba(153, 153, 153, 1);
  369. a {
  370. color: #999999;
  371. &:hover {
  372. color: #ed5f48;
  373. }
  374. }
  375. }
  376. }
  377. }
  378. &.below {
  379. display: flex;
  380. justify-content: flex-start;
  381. align-items: stretch;
  382. min-height: 120px;
  383. .item {
  384. &.one {
  385. .logo {
  386. width: 149px;
  387. margin-top: 30px;
  388. }
  389. }
  390. &.two {
  391. margin-left: 20px;
  392. .copyright {
  393. height: 17px;
  394. line-height: 17px;
  395. margin-top: 20px;
  396. font-size: 12px;
  397. font-family: PingFangSC-Regular;
  398. font-weight: 400;
  399. color: rgba(153, 153, 153, 1);
  400. }
  401. .company-name {
  402. height: 17px;
  403. line-height: 17px;
  404. margin-top: 2px;
  405. font-size: 12px;
  406. font-family: PingFangSC-Regular;
  407. font-weight: 400;
  408. color: rgba(153, 153, 153, 1);
  409. }
  410. .authorities-promptly {
  411. height: 17px;
  412. line-height: 17px;
  413. margin-top: 2px;
  414. font-size: 12px;
  415. font-family: PingFangSC-Regular;
  416. font-weight: 400;
  417. color: rgba(153, 153, 153, 1);
  418. }
  419. }
  420. }
  421. }
  422. }
  423. }
  424. }
  425. </style>