diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index d3b5a01b..cdc849a8 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -758,10 +758,15 @@ class Clues extends HD_Controller $this->data['data'] = $rows; return $this->show_json(SYS_CODE_SUCCESS); } - - public function get_city(){ - $citys = $this->city_ary(); - $this->data['citys'] = $citys; + + public function get_bizInfo(){ + $id = $this->input->get('id'); + $info = $this->biz_model->get(['id'=>$id],'city_id,county_id,address'); + $city = $this->area_model->get(['county_id'=>$info['county_id']]); + $bizinfo['city_name'] = $city['city_name']; + $bizinfo['county_name'] = $city['county_name']; + $bizinfo['address'] = $info['address']; + $this->data['bizinfo'] = $bizinfo; return $this->show_json(SYS_CODE_SUCCESS); } } diff --git a/admin/views/receiver/clues/edit.php b/admin/views/receiver/clues/edit.php index 0590ebbb..9f92d433 100644 --- a/admin/views/receiver/clues/edit.php +++ b/admin/views/receiver/clues/edit.php @@ -212,9 +212,9 @@
推荐门店:
- +
@@ -293,6 +293,26 @@ + @@ -306,7 +326,8 @@ infoShow: {"intention": {}, 'autoList': []}, goods: {"imgs_url": [], "imgs": [], "log": ''}, cityAry:[], - countyAry:[] + countyAry:[], + bizInfo:[], }, mounted: function () { var that = this; @@ -506,9 +527,24 @@ }); }, randClass:function(){ - var classArr = ['label-default','label-primary','label-success','label-info','label-warning','label-danger']; + var classArr = ['default','primary','success','info','warning','danger']; var rand = Math.floor( Math.random() * classArr.length ); return classArr[rand] + }, + showBizInfo:function(info){ + var that = this + $.get('/receiver/clues/get_bizInfo',{'id':info.id},function(response){ + if(response.code){ + that.bizInfo = response.data.bizinfo + layer.open({ + type: 1, //Page层类型 + title: info.biz_name, + shade: false, + area: ['420px', '240px'], //宽高 + content: $("#modal-biz-info") + }); + } + }) } }, watch:{ diff --git a/admin/views/receiver/clues/lists.php b/admin/views/receiver/clues/lists.php index dc6cad78..f2d712e2 100644 --- a/admin/views/receiver/clues/lists.php +++ b/admin/views/receiver/clues/lists.php @@ -18,8 +18,7 @@