99-layui 图片上传、下拉选择、联级选择

1.图片上传:
html:

js:

var portrait = formData?formData.portrait:null;
        admin.picUpload(upload,"portrait",portrait)

2.下拉列表:数据从后台取:
html:

js:

var dealUserId = null;
        admin.renderXmSel(xmSelect,"dealUser",ctx+'/customer/customer/queryByAll',[dealUserId])

3、省市区联级选择:

js:

var areaId = formData?formData.areaId:null;//131002
        var cityId = formData?formData.cityId:null;//131000
        var provinceId = formData?formData.provinceId:null;
        admin.regionSel(xmSelect,"provinceSel",provinceId,cityId,areaId)

你可能感兴趣的:(javascript)