123456789101112131415161718192021222324252627282930313233343536373839404142 |
- define([
- 'text!components/base_footer/index.html',
- 'css!components/base_footer/index.css'
- ], function (html) {
- return {
- props: {
- publicData: {
- type: Object,
- default: function () {
- return {};
- }
- }
- },
- data: function () {
- return {
- year: new Date().getFullYear(),
- code_url: '',
- sidebarHeight: 0
- };
- },
- mounted: function () {
- this.$nextTick(function () {
- if (code_url) {
- this.code_url = code_url;
- }
- // this.$emit('action', this.$refs.sidebar.clientHeight);
- });
- },
- updated: function () {
- this.$nextTick(function () {
- this.sidebarHeight = this.$refs.sidebar.clientHeight;
- this.$emit('action', this.$refs.sidebar.clientHeight);
- });
- },
- methods: {
- goPage: function () {
- window.canCustomerServer.getCustomeServer();
- }
- },
- template: html
- };
- });
|