custom-service.js
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* 页面描述:客户服务
* 承载客户服务的各个菜单页面
*/
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
}
}