footer.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <template>
  2. <div>
  3. <div class="footer-find" v-if="!$route.meta.hideFooterBanner">
  4. <p>{{ $t('header.footer.bannerTitle') }}</p>
  5. <div class="find-btn" @click="$router.push('/cases/全部')">{{ $t('header.footer.find') }}</div>
  6. </div>
  7. <div class="footer">
  8. <div class="footer-header">
  9. <h-icon :type="language === 'zh' ? 'logo' : 'hengbiaoEN'" class="logo-size" />
  10. <img @click="gotoLink('https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzA3NjI1MTE5MA==&scene=110#wechat_redirect','weixin')" src="@/assets/images/refactor/home/wechat.png" alt>
  11. <img @click="gotoLink('https://qr.weibo.cn/g/574xnj')" src="@/assets/images/refactor/home/weibo.png" alt>
  12. <img @click="gotoLink('https://v.douyin.com/RBu3JQ/','douyin')" src="@/assets/images/refactor/home/douyin.png" alt>
  13. </div>
  14. <ul class="footer-types">
  15. <li v-for="(item, index) in types" :key="index" :class="{'is-active': openType === index}" @click="changeOpenType(index)">
  16. {{item.name}}
  17. <h-icon type="shang" class="arrow" />
  18. <ul class="types-child-list">
  19. <li class="types-child" v-for="(child, index) in item.childs" :key="index" @click="toLink(child)">{{ child.name }}</li>
  20. </ul>
  21. </li>
  22. <!-- <li :class="{'is-active': openType === 'lang'}" @click="changeOpenType('lang')">
  23. {{ languageName }}
  24. <h-icon type="shang" class="arrow" />
  25. <ul class="types-child-list">
  26. <li class="types-child" v-for="item in languageList" :key="item.value" @click="changeLanguage(item)">{{ item.name }}</li>
  27. </ul>
  28. </li> -->
  29. </ul>
  30. <ul class="footer-infos">
  31. <li class="infos-item" v-for="(item,i) in langFooter.items" :key="i">
  32. <span class="label">{{item.name}}</span>:
  33. <span class="content">{{item.content}}</span>
  34. </li>
  35. </ul>
  36. <div class="relevant">
  37. <div class="copyright">
  38. <p>{{langFooter.copyright[0]}}</p>
  39. <p>{{langFooter.copyright[1]}}</p>
  40. <!-- <p>珠海市四维时代网络科技有限公司</p> -->
  41. </div>
  42. </div>
  43. <!-- <div class="layout">
  44. <div class="infos">
  45. <div class="icons">
  46. <img @click="gotoLink('https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzA3NjI1MTE5MA==&scene=110#wechat_redirect','weixin')" :src="`${$cdn}images/01wx.png`" alt>
  47. <img @click="gotoLink('https://qr.weibo.cn/g/574xnj')" :src="`${$cdn}images/02wb.png`" alt>
  48. <img @click="gotoLink('https://v.douyin.com/RBu3JQ/','douyin')" :src="`${$cdn}images/05dy.png`" alt>
  49. </div>
  50. <div class="s-line"></div>
  51. <div class="infos-item" v-for="(item,i) in langFooter.items" :key="i">
  52. <h2>{{item.name}}</h2>
  53. <p>{{item.content}}</p>
  54. </div>
  55. </div>
  56. <div class="relevant">
  57. <div>
  58. <a v-for="(item,i) in langFooter.links" :key="i" :href="item.url">{{item.name}}</a>
  59. </div>
  60. <div class="copyright">
  61. <p>{{langFooter.copyright[0]}}</p>
  62. <p>{{langFooter.copyright[1]}}</p>
  63. </div>
  64. </div>
  65. </div> -->
  66. </div>
  67. </div>
  68. </template>
  69. <script>
  70. import { mapState } from 'vuex'
  71. import browser from '@/util/browser'
  72. export default {
  73. name: 'Footer',
  74. computed: {
  75. ...mapState({
  76. language: state => state.language.current,
  77. langToast: state => state.language.home.toast,
  78. langFooter: state => state.language.home.footer,
  79. languageList: state => state.language.languageList
  80. }),
  81. languageName () {
  82. let language = this.languageList.filter(item => item.value === this.language)
  83. return language[0] ? language[0].name : '简体中文'
  84. }
  85. },
  86. data () {
  87. return {
  88. isWeixin: browser.weixin,
  89. openType: '',
  90. types: [
  91. {
  92. name: this.$t('header.solutions'),
  93. childs: [
  94. {
  95. name: this.$t('header.solutionsHouse'),
  96. url: '/conduct/house'
  97. },
  98. {
  99. name: this.$t('header.solutionsExi'),
  100. url: '/conduct/exhibition'
  101. },
  102. {
  103. name: this.$t('header.solutionsSubject'),
  104. url: '/conduct/subject'
  105. },
  106. {
  107. name: this.$t('header.solutionsShop'),
  108. url: '/conduct/shop'
  109. },
  110. {
  111. name: this.$t('header.solutionsSec'),
  112. url: '/conduct/secury'
  113. }
  114. ]
  115. },
  116. {
  117. name: this.$t('header.about'),
  118. childs: [
  119. {
  120. name: this.$t('header.aboutCompany'),
  121. url: '/about'
  122. },
  123. {
  124. name: this.$t('header.aboutNews'),
  125. url: '/news'
  126. },
  127. {
  128. name: this.$t('header.aboutAgent'),
  129. url: '/agent'
  130. }
  131. ]
  132. },
  133. {
  134. name: this.$t('header.footer.find4D'),
  135. childs: [
  136. {
  137. name: this.$t('header.footer.kankan'),
  138. url: 'http://www.4dage.com/cn/#/',
  139. enLink: 'http://www.4dage.com/en'
  140. },
  141. {
  142. name: this.$t('header.footer.zhongde'),
  143. url: 'https://www.cgaii.com/#/',
  144. enLink: 'https://www.cgaii.com/en'
  145. },
  146. {
  147. name: this.$t('header.footer.moku'),
  148. url: 'http://www.4dmodel.com/'
  149. }
  150. ]
  151. }
  152. ]
  153. }
  154. },
  155. methods: {
  156. changeLanguage (item) {
  157. this.$store.commit('change_language', item.value)
  158. location.reload()
  159. },
  160. gotoLink (link, check = false) {
  161. if (check) {
  162. if (this.isWeixin) {
  163. if (check === 'douyin') {
  164. return this.$toast.show('warn', link, () => {}, this.langToast['45'])
  165. }
  166. } else {
  167. if (check === 'weixin') {
  168. return this.$toast.show('warn', this.langToast['46'])
  169. }
  170. }
  171. }
  172. window.location.href = link
  173. },
  174. changeOpenType (index) {
  175. if (this.openType === index) {
  176. this.openType = ''
  177. } else {
  178. this.openType = index
  179. }
  180. },
  181. toLink (item) {
  182. if (item.url.indexOf('http') > -1) {
  183. if (this.language !== 'zh' && item.enLink) {
  184. window.open(item.enLink)
  185. return
  186. }
  187. window.open(item.url)
  188. } else {
  189. this.$router.push(item.url)
  190. }
  191. }
  192. }
  193. }
  194. </script>
  195. <style lang="scss" scoped>
  196. .footer-find {
  197. width: 100%;
  198. height: 120px;
  199. background: url(~@/assets/images/refactor/home/footer-find-bg.png) no-repeat center center;
  200. background-size: cover;
  201. font-size: 16px;
  202. padding: 31px 0 0 0;
  203. text-align: center;
  204. font-weight: bold;
  205. .find-btn {
  206. margin: 12px auto 0;
  207. width: 76px;
  208. line-height: 28px;
  209. background: #1FE4DC;
  210. font-size: 12px;
  211. }
  212. }
  213. .footer {
  214. background: #202020;
  215. color: #fff;
  216. .footer-header {
  217. height: 58px;
  218. position: relative;
  219. display: flex;
  220. justify-content: flex-end;
  221. align-items: center;
  222. width: 100%;
  223. img {
  224. width: 18px;
  225. height: auto;
  226. line-height: 1;
  227. margin-right: 22px;
  228. }
  229. }
  230. .logo-size {
  231. color: #909090;
  232. font-size: 88px;
  233. position: absolute;
  234. left: 15px;
  235. top: 50%;
  236. transform: translateY(-50%);
  237. }
  238. .footer-types {
  239. color: #fff;
  240. font-size: 14px;
  241. padding-left: 20px;
  242. border-top: 1px solid #313131;
  243. border-bottom: 1px solid #313131;
  244. &>li {
  245. line-height: 60px;
  246. border-bottom: 1px solid #313131;
  247. font-weight: bold;
  248. &:last-child {
  249. border-bottom: none;
  250. }
  251. .arrow {
  252. float: right;
  253. color: #909090;
  254. margin: 22px 20px;
  255. transform: rotate(90deg);
  256. line-height: 1;
  257. }
  258. .types-child-list {
  259. max-height: 0;
  260. overflow: hidden;
  261. transition: 0.3s linear;
  262. }
  263. .types-child {
  264. line-height: 54px;
  265. height: 54px;
  266. padding-left: 20px;
  267. color: #909090;
  268. border-bottom: 1px solid #313131;
  269. &:last-child {
  270. border-bottom: none;
  271. }
  272. }
  273. &.is-active {
  274. .types-child-list {
  275. max-height: 450px;
  276. }
  277. }
  278. }
  279. }
  280. .footer-infos {
  281. padding: 28px 0 10px 20px;
  282. border-bottom: 1px solid #313131;
  283. }
  284. .infos-item {
  285. color: #EBEBEB;
  286. font-size: 12px;
  287. line-height: 18px;
  288. margin-bottom: 18px;
  289. }
  290. .relevant {
  291. padding: 18px 0 28px 20px;
  292. color: #909090;
  293. p {
  294. margin-bottom: 7px;
  295. line-height: 18px;
  296. }
  297. }
  298. }
  299. </style>