thinkcmf5-三级联动 api数据源 v2.0
兼容5.1
统一接口
请求方式 地址
get plugin/select_area/index/index.html
php地址生成示范
cmf_plugin_url ( 'SelectArea://Index/index' );
参数
id 行政区编号 默认100000(中国)
level 行政区类型 1 省 2 市 3 区/县 默认1
thinkcmf5-三级联动 api数据源 v1.0
获取省接口
请求方式 地址
get plugin/select_area/index/provinces.html
php地址生成示范
cmf_plugin_url ( 'SelectArea://Index/provinces' );
参数
id 国行政区编号 默认100000(中国)
获取市接口
请求方式 地址
get plugin/select_area/index/citys.html
参数
id 省行政区编号 默认 null
php地址生成示范
cmf_plugin_url ( 'SelectArea://Index/citys',['id'=>430000] );
获取区县接口
请求方式 地址
get plugin/select_area/index/areas.html
php地址生成示范
cmf_plugin_url ( 'SelectArea://Index/areas',['id'=>460300] );
参数
id 市行政区编号 默认 null
ThinkCMF模板插件交流群:550851374 ,领取阿里云1000通用代金券