payment-type.js 1.26 KB
import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

export default {
	data() {
		return {
			key: 'value',
			dataList: [],
			curIndex: 0,
		}
	},
	components: {},
	computed: {
		locale() {
			return this.$i18n.locale || 'tc';
		},
		i18n() {
			return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
		},
	},
	methods: {
		onOverHandler(val) {
			this.curIndex = val;
		},
		initData() {
			let i18n = this.$i18n.locale;
			let list = [{
				tit: "亲临客服中心付款",
				type: "",
			}, {
				tit: "网银付款",
				type: "",
			}, {
				tit: "电汇付款",
				type: "",
			}, {
				tit: "柜员机付款",
				type: "",
			}, {
				tit: "「缴费灵」付款",
				type: "",
			}, {
				tit: "香港邮政局",
				type: "",
			}];
			if (i18n != 'zh') {
				list = [{
					tit: "親臨客服中心付款",
					type: "",
				}, {
					tit: "網銀付款",
					type: "",
				}, {
					tit: "電匯付款",
					type: "",
				}, {
					tit: "櫃員機付款",
					type: "",
				}, {
					tit: "「繳費靈」付款",
					type: "",
				}, {
					tit: "香港郵政局",
					type: "",
				}];
			}
			this.$set(this, 'dataList', list);
		}
	},
	mounted() { 
		this.initData();
	},
	created() {
	}
}