diff --git a/application/demo/controller/Plugs.php b/application/demo/controller/Plugs.php index 77a282aaa..308c8538b 100644 --- a/application/demo/controller/Plugs.php +++ b/application/demo/controller/Plugs.php @@ -36,4 +36,15 @@ class Plugs extends BasicAdmin $this->title = '省市区插件'; return view('', ['title' => $this->title]); } + + + /** + * 省市区插件 + * @return \think\response\View + */ + public function pcasunzip() + { + $this->title = '省市区插件'; + return view('', ['title' => $this->title]); + } } diff --git a/application/demo/view/plugs.pcasunzip.html b/application/demo/view/plugs.pcasunzip.html new file mode 100644 index 000000000..56d5995db --- /dev/null +++ b/application/demo/view/plugs.pcasunzip.html @@ -0,0 +1,66 @@ +{extend name='extra@admin/content'} + +{block name="content"} + +
+ PCAS 单文件JS省市区插件 ++
+ +++++ +++ +++ ++
+ +require(['pcasunzips'], function () { +/** // 省市联动 + * new PCAS("Province","City") + * new PCAS("Province","City","吉林省") + * new PCAS("Province","City","吉林省","吉林市") + * // 省市地区联动 + * new PCAS("Province","City","Area") + * new PCAS("Province","City","Area","吉林省") + * new PCAS("Province","City","Area","吉林省","松原市") + * new PCAS("Province","City","Area","吉林省","松原市","宁江区") + * // 省、市、地区对象取得的值均为实际值。 + * // 注:省、市、地区提示信息选项的值为""(空字符串) + */ + new PCAS('province', 'city', 'area', '广东省', '广州市', '海珠区'); +}); ++ +