Blame view

src/pages/custom-service/components/policy-change-guide.js 1.06 KB
joe committed
1 2

import { setTitle } from '@/utils/utils.js';
simon committed
3

joe committed
4
import PolicyHeadList from "./policy-head-list.vue";
joe committed
5 6
import Auth from '@components/auth/auth.vue';

simon committed
7 8 9
export default {
	data() {
		return {
joe committed
10
            showForm: false,
simon committed
11 12 13
			key: 'value'
		}
	},
joe committed
14
    components: {
joe committed
15
		PolicyHeadList,
joe committed
16 17
        Auth
    },
simon committed
18 19 20 21 22 23 24 25 26
	computed: {
		locale() {
			return this.$i18n.locale || 'tc';
		},
		i18n() {
			return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
		},
	},
	methods: {
simon committed
27 28 29 30 31 32 33 34
		toContactUs() {
			this.$router.push({
				path: "/custom/service",
				query: {
					q: "m1"
				}
			});
		},
simon committed
35 36 37 38 39 40 41 42
		onProjectHandler(item) {
			if (item.projectType == 1) {
				this.$router.push({
					path: item.path,
					query: item.query
				})
			}
		},
joe committed
43 44 45 46 47 48
		initData() {},
        userLogout() {
            this.showForm = false;
        },
        userLogin(data) {
            this.showForm = true;
joe committed
49 50 51 52 53 54 55 56 57 58 59 60
        },
		initTitle() {
			try {
				let title = this.i18n.customService.menu41;
				setTitle(title);
			} catch (e) {

			}
		}
	},
	mounted() {
		this.initTitle();
simon committed
61 62 63
	},
	created() {}
}