thinkcmf5-三级联动 api数据源 v2.0(兼容5.1)


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通用代金券

评论

暂时关闭,稍后恢复~
文档请看10遍以上!有问题可加QQ群!
发布插件

七牛专享优惠码

507670e8

ThinkCMF教程


ThinkCMF 8.0.0发布啦!祝大家节日快乐! 立即体验!