insurance-query.js 1.29 KB
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.v5 = "银行转账";
                data.v6 = "港币";
                data.v7 = "平安银行";
                data.v8 = "现金";
            } else {
                data.v1 = "分紅重疾";
                data.v2 = "終身";
                data.v3 = "深圳市益田路5033號";
                data.v4 = "張三";
                data.v5 = "銀行轉帳";
                data.v6 = "港幣";
                data.v7 = "平安銀行";
                data.v8 = "現金";
            }
            this.$set(this, 'dataForm', data);
        }
    },
    mounted() {
        this.test();
    },
}