代码拉取完成,页面将自动刷新
import Vue from 'vue'
import App from './App'
import {post,get,BASE_URL,uploadFile,deleteRequest} from './api/api.js'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$post = post
Vue.prototype.$verifyEmpty = function(e){
e = e+''
return e.replace(/\s/g,'') == "" || e == null
}
Vue.prototype.$verifyPhone = function(e){
let mobilePoneReg = /^[1][3,4,5,7,8][0-9]{9}$/
let phoneReg = /^(0\\d{2}-\\d{8}(-\\d{1,4})?)|(0\\d{3}-\\d{7,8}(-\\d{1,4})?)$/
return mobilePoneReg.test(e)||phoneReg.test(e)
}
Vue.prototype.$verifyIdCard = function(e){
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
return reg.test(e)
}
Vue.prototype.$verifyMoney = function(value){
value = value.replace(/^0*(0\.|[1-9])/, "$1");
value = value.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
value = value.replace(/^\./g, ""); //验证第一个字符是数字而不是字符
value = value.replace(/\.{1,}/g, "."); //只保留第一个.清除多余的
value = value
.replace(".", "$#$")
.replace(/\./g, "")
.replace("$#$", ".");
value = value.replace(/^(\-)*(\d*)\.(\d\d).*$/, "$1$2.$3"); //只能输入两个小数
value =
value.indexOf(".") > 0
? value.split(".")[0].substring(0, 10) + "." + value.split(".")[1]
: value.substring(0, 10);
return value;
}
Vue.prototype.$BASE_URL = BASE_URL
Vue.prototype.$get = get
Vue.prototype.$delete = deleteRequest
Vue.prototype.$uploadFile = uploadFile
Vue.prototype.dataObject = {
baoxian: [{
name: '养老',
isCheck: false
},
{
name: '生育',
isCheck: false
},
{
name: '医疗',
isCheck: false
},
{
name: '商业',
isCheck: false
},
{
name: '失业',
isCheck: false
},
{
name: '住房公积金',
isCheck: false
},
{
name: '工伤',
isCheck: false
},
{
name: '其他',
isCheck: false
},
],
wufuyangnengliyuanyin: [{
name: '低收入',
isCheck: false
},{
name: '支出贫困',
isCheck: false
}
],
zhipinyuanyin: [{
name: '无固定收入',
isCheck: false
},
{
name: '因重病支出',
isCheck: false
},
{
name: '因残无劳动能力',
isCheck: false
},
{
name: '因突发自然灾害',
isCheck: false
},
{
name: '其他',
isCheck: false
}
],
youwufuyangnengli: [{
name: '无'
},
{
name: '有'
}
],
youwufuyangnengliIndex:0,
xingbie: [{
name: '男'
},
{
name: '女'
},
{
name: '其他'
}
],
xingbieIndex:0,
zhengzhimianmao:[
{name:'中共党员'},
{name:'中共预备党员'},
{name:'共青团员'},
{name:'民革党员'},
{name:'民盟盟员'},
{name:'民建会员'},
{name:'民进会员'},
{name:'农工党党员'},
{name:'致公党党员'},
{name:'九三学社社员'},
{name:'台盟盟员'},
{name:'无党派人士'},
{name:'群众'}
],
zhengzhimianmaoIndex:0,
wenhuachengdu:[
{name:'博士'},
{name:'硕士'},
{name:'本科'},
{name:'大专'},
{name:'中专'},
{name:'高中'},
{name:'初中'},
{name:'小学'},
{name:'文盲'},
{name:'半文盲'},
],
wenhuachengduIndex:0,
hunyinzhuangkuang:[
{name:'已婚'},
{name:'未婚'}
],
hunyinzhuangkuangIndex:0,
jiatingguanxi:[
{name:'核心家庭'},
{name:'主干家庭'},
{name:'联合家庭'},
{name:'单亲家庭'},
{name:'残缺家庭'}
],
jiatingguanxiIndex:0,
chengxiangshuxing:[
{name:'农村'},
{name:'城镇'},
],
chengxiangshuxingIndex:0,
shentizhuangkuang:[
{name:'健康'},
{name:'一般'},
{name:'较差'}
],
shentizhuangkuangIndex:0,
laodongnengli:[
{name:'有'},
{name:'无'},
],
laodongnengliIndex:0,
huanbingbingzhong:[
{name:'有'},
{name:'无'},
],
huanbingbingzhongIndex:0,
canjileibie:[
{name:'视力残疾'},
{name:'听力残疾'},
{name:'言语残疾'},
{name:'智力残疾'},
{name:'肢体残疾'},
{name:'精神残疾'},
],
canjileibieIndex:0,
canjidengji:[
{name:'无'},
{name:'十级伤残'},
{name:'九级伤残'},
{name:'八级伤残'},
{name:'七级伤残'},
{name:'六级伤残'},
{name:'五级伤残'},
{name:'四级伤残'},
{name:'三级伤残'},
{name:'二级伤残'},
{name:'一级伤残'},
],
canjidengjiIndex:0,
jiuyeqingkuang:[
{name:'在职'},
{name:'无业'}
],
jiuyeqingkuangIndex:0,
jiuxueqingkuang:[
{name:'在读'},
{name:'离校'}
],
jiuxueqingkuangIndex:0,
shenfenleibie:[
{name:'教授'},
{name:'教师'},
{name:'研究员'},
{name:'编辑'},
{name:'翻译'},
{name:'记者'},
{name:'作家'},
{name:'文化工作者'},
{name:'美术工作者'},
{name:'文艺工作者'},
{name:'教练'},
{name:'运动员'},
{name:'工程师'},
{name:'技术员'},
{name:'会计'},
{name:'企业管理人员'},
{name:'厨师'},
{name:'农艺师'},
{name:'工人'},
{name:'农民'},
{name:'牧民'},
{name:'渔民'},
{name:'医生'},
{name:'药剂师'},
{name:'护士'},
{name:'机长'},
{name:'飞行员'},
{name:'船长'},
{name:'乘务人员'},
{name:'服务员'},
{name:'公务员'},
{name:'律师'},
{name:'商人'},
{name:'宗教职业者'},
{name:'退休人员'},
{name:'家庭主妇'},
{name:'无业人员'},
{name:'学生'},
{name:'儿童'},
{name:'职员'},
{name:'法律工作者'},
{name:'事业单位行政管理者'},
{name:'其他'},
],
shenfenleibieIndex:0,
minzuIndex:0,
minzu: [{
"id": "01",
"name": "汉族"
}, {
"id": "02",
"name": "蒙古族"
}, {
"id": "03",
"name": "回族"
},
{
"id": "04",
"name": "藏族"
}, {
"id": "05",
"name": "维吾尔族"
}, {
"id": "06",
"name": "苗族"
},
{
"id": "07",
"name": "彝族"
}, {
"id": "08",
"name": "壮族"
}, {
"id": "09",
"name": "布依族"
},
{
"id": "10",
"name": "朝鲜族"
}, {
"id": "11",
"name": "满族"
}, {
"id": "12",
"name": "侗族"
},
{
"id": "13",
"name": "瑶族"
}, {
"id": "14",
"name": "白族"
}, {
"id": "15",
"name": "土家族"
},
{
"id": "16",
"name": "哈尼族"
}, {
"id": "17",
"name": "哈萨克族"
}, {
"id": "18",
"name": "傣族"
},
{
"id": "19",
"name": "黎族"
}, {
"id": "20",
"name": "傈僳族"
}, {
"id": "21",
"name": "佤族"
},
{
"id": "22",
"name": "畲族"
}, {
"id": "23",
"name": "高山族"
}, {
"id": "24",
"name": "拉祜族"
},
{
"id": "25",
"name": "水族"
}, {
"id": "26",
"name": "东乡族"
}, {
"id": "27",
"name": "纳西族"
},
{
"id": "28",
"name": "景颇族"
}, {
"id": "29",
"name": "柯尔克孜族"
}, {
"id": "30",
"name": "土族"
},
{
"id": "31",
"name": "达斡尔族"
}, {
"id": "32",
"name": "仫佬族"
}, {
"id": "33",
"name": "羌族"
},
{
"id": "34",
"name": "布朗族"
}, {
"id": "35",
"name": "撒拉族"
}, {
"id": "36",
"name": "毛难族"
},
{
"id": "37",
"name": "仡佬族"
}, {
"id": "38",
"name": "锡伯族"
}, {
"id": "39",
"name": "阿昌族"
},
{
"id": "40",
"name": "普米族"
}, {
"id": "41",
"name": "塔吉克族"
}, {
"id": "42",
"name": "怒族"
},
{
"id": "43",
"name": "乌孜别克族"
}, {
"id": "44",
"name": "俄罗斯族"
}, {
"id": "45",
"name": "鄂温克族"
},
{
"id": "46",
"name": "崩龙族"
}, {
"id": "47",
"name": "保安族"
}, {
"id": "48",
"name": "裕固族"
},
{
"id": "49",
"name": "京族"
}, {
"id": "50",
"name": "塔塔尔族"
}, {
"id": "51",
"name": "独龙族"
},
{
"id": "52",
"name": "鄂伦春族"
}, {
"id": "53",
"name": "赫哲族"
}, {
"id": "54",
"name": "门巴族"
},
{
"id": "55",
"name": "珞巴族"
}, {
"id": "56",
"name": "基诺族"
}
],
}
const app = new Vue({
...App
})
app.$mount()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。