insurance-query.js
1.44 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
import api from '@/api/api'
import {
httpGet,
httpPost
} from '@/api/fetch-api.js'
export default {
name: "InsuranceQuery",
data() {
return {
dataForm: {
},
insuranceForm: {
f1: true,
f2: true,
f3: true,
f4: true,
f5: true,
}
}
},
methods: {
test() {
let i18n = this.$i18n.locale;
let data = {};
if (i18n == 'zh') {
data.v1 = "分红重疾";
data.v2 = "终身";
data.v3 = "深圳市益田路5033号";
data.v4 = "张三";
data.v4_2 = "父母";
data.v4_3 = "子女";
data.v5 = "银行转账";
data.v6 = "港币";
data.v7 = "平安银行";
data.v8 = "现金";
} else {
data.v1 = "分紅重疾";
data.v2 = "終身";
data.v3 = "深圳市益田路5033號";
data.v4 = "張三";
data.v4_2 = "父母";
data.v4_3 = "子女";
data.v5 = "銀行轉帳";
data.v6 = "港幣";
data.v7 = "平安銀行";
data.v8 = "現金";
}
this.$set(this, 'dataForm', data);
}
},
mounted() {
this.test();
},
}