custom-service.js 1.94 KB
/**
 * 页面描述:客户服务
 * 承载客户服务的各个菜单页面
 */


import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

// 联系我们
import ContactUs from './components/contact-us.vue'
// 缴付保费
import PaymentType from './components/payment-type.vue'
// 保单查询
import InsuranceQuery from './components/insurance-query.vue'

// 保单变更指引
import PolicyChangeGuide from './components/policy-change-guide.vue'
// 保单方式变更
import PolicyChangeContact from './components/policy-change-contact.vue'
// 客户资料变更
import PolicyChangeInformation from './components/policy-change-information.vue'

// 理赔申请
import Clarms from './components/clarms-comp.vue'
// 预约服务
import Reservation from './components/reservation.vue'
// 投诉受理
import ComplaintAcceptance from './components/complaint-acceptance.vue'
// 常用表格
import CommonForm from './components/common-form.vue'


export default {
	data() {
		return {
			activity: "m1",
		}
	},
	methods: {
		initData() {},
		toPath(path) {
			this.$router.push({
				path: path
			});
		},
		changeActivity(val) {
			this.checkQuery(val)
		},
		checkQuery(a) {
			if (a == "m4") {
				a = "m41"
			}
			if (a == "m5") {
				this.$router.push({
					path: "/clarms",
					query: {}
				});
				return;
			}
			this.$router.push({
				path: "/custom/service",
				query: {
					q: a
				}
			});
		}
	},
	watch: {
		$route() {
			let activity = this.$route.query.q;
			if (activity) {
				this.$set(this, 'activity', activity);
			}
		}
	},
	created() {
		let activity = this.$route.query.q;
		if (activity == "m5") {
			this.$router.push({
				path: "/clarms",
				query: {}
			});
			return;
		}
		this.$set(this, 'activity', activity);
	},
	components: {
		ContactUs,
		InsuranceQuery,
		Reservation,
		PaymentType,
		ComplaintAcceptance,
		CommonForm,
		PolicyChangeGuide,
		PolicyChangeContact,
		PolicyChangeInformation,
		Clarms
	}
}