(function() { Vue.component('personal-info', { template: `
修改头像
姓  名
性  别
 男   女
手机号码
身份证号
社保卡号
医疗保险号
行  业
家庭住址
`, props: [], data: function() { return { gotoAddid: "Province", code: "info", industryid: -1, directionid: -1, industryname: "", directionname: "", } }, mounted: function() { var vm = this $('.dropdown-toggle').dropdown() $('#selindustry').on('hidden.bs.modal', function(e) { vm.getNewIndustry() }) }, methods: { getNewIndustry: function() { var vm = this var aaa = vm.$refs.getIndustry.industryname var bbb = vm.$refs.getIndustry.directionname if(aaa != "") { vm.industryname = aaa vm.industryid = vm.$refs.getIndustry.industryid } if(bbb != "") { vm.directionname = bbb vm.directionid = vm.$refs.getIndustry.directionid } if(vm.industryname == "请选择行业") { $("#industry").val("") } else { $("#industry").val(vm.industryname + ">" + vm.directionname) } } }, }) var gotoAddid = "Province" function initInterfaceTypeSelect(industry) { $(".dropdown-menu").on("click", "[data-stopPropagation]", function(e) { e.stopPropagation(); }); Selectors.createDefinedSelect(industry.el, industry.data) } function gotoAdd(id) { var addid = $(id).attr("id") if(addid == undefined) { addid = id } $("#" + gotoAddid).removeClass("active") $("#" + addid).addClass("active") $("#_" + gotoAddid).addClass("hidden") $("#_" + addid).removeClass("hidden") gotoAddid = addid } })()