custom-service.js
1.42 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
import api from '@/api/api'
import {
httpGet,
httpPost
} from '@/api/fetch-api.js'
import ContactUs from './components/contact-us.vue'
import InsuranceQuery from './components/insurance-query.vue'
import reservation from './components/reservation.vue'
import PaymentType from './components/payment-type.vue'
import ComplaintAcceptance from './components/complaint-acceptance.vue'
import CommonForm from './components/common-form.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'
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"
}
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;
this.$set(this, 'activity', activity);
},
components: {
ContactUs,
InsuranceQuery,
reservation,
PaymentType,
ComplaintAcceptance,
CommonForm,
PolicyChangeGuide,
PolicyChangeContact,
PolicyChangeInformation
}
}