diff --git a/admin/controllers/app/licheb/Member.php b/admin/controllers/app/licheb/Member.php
index 9cfd47fa..caa80180 100755
--- a/admin/controllers/app/licheb/Member.php
+++ b/admin/controllers/app/licheb/Member.php
@@ -195,7 +195,26 @@ class Member extends HD_Controller{
//批量操作(默认修改状态)
public function batch()
{
-
+ $field = $this->input->post('field');
+ if ($field === 'ifcheck') {
+ $status = intval($this->input->post('value'));
+ $ids = $this->input->post('id');
+ $ids = explode(',', $ids);
+ if (!$ids || count($ids) < 1) {
+ $this->show_json(0, '请选择要操作的选项');
+ }
+ $where = array('id in(' . implode(',', $ids) . ')' => null);
+ } else {
+ $id = intval($this->input->post('id'));
+ $status = intval($this->input->post('value'));
+ if (!$id) {
+ $this->show_json(0, '参数错误');
+ }
+ $where['id'] = $id;
+ }
+ $data['status'] = $status;
+ $this->userM->update($data, $where);
+ return $this->show_json(SYS_CODE_SUCCESS, '保存成功');
}
//导出数据列表
diff --git a/admin/views/app/licheb/member/lists.php b/admin/views/app/licheb/member/lists.php
index b4ef5647..3dc27b29 100755
--- a/admin/views/app/licheb/member/lists.php
+++ b/admin/views/app/licheb/member/lists.php
@@ -39,7 +39,9 @@
-
+
@@ -62,24 +64,38 @@
= $v['id'] ?> |
= $v['uname'] ?> |
= $v['mobile'] ?> |
- = $v['group_name']?> |
+ = $v['group_name'] ?> |
-
- = $val['biz_name']?>
- }?>
+
+ = $val['biz_name'] ?>
+ } ?>
|
- = date('Y-m-d H:i:s',$v['c_time']) ?> |
+ = date('Y-m-d H:i:s', $v['c_time']) ?> |
|
- 修改
-
- 编辑马甲
- 脱去马甲
- }elseif(isset($v['umajia'])){?>
- 披上马甲
- }?>
+
+
+ 修改
+ if ($v['umajia']) { ?>
+ 编辑马甲
+ 脱去马甲
+ } elseif (isset($v['umajia'])) { ?>
+ 披上马甲
+ } ?>
|
@@ -97,19 +113,19 @@
var vm = new Vue({
el: '#vue-app',
data: {
- params:[],
- cityAry:[],//城市
- countyAry:[],//行政区
- bizAry:[],
- province_id:'350'
+ params: [],
+ cityAry: [],//城市
+ countyAry: [],//行政区
+ bizAry: [],
+ province_id: '350'
},
- mounted:function() {
+ mounted: function () {
var vm = this;
vm.params = =json_encode($params)?>;
vm.init_citys(vm.province_id);
},
methods: {
- init_citys:function(province_id) {
+ init_citys: function (province_id) {
var vm = this;
$.ajax({
type: 'get',
@@ -127,9 +143,9 @@
}
});
},
- get_bizs:function(){
+ get_bizs: function () {
var that = this;
- if(that.params.city_id>0 || that.params.county_id>0){
+ if (that.params.city_id > 0 || that.params.county_id > 0) {
$.ajax({
type: 'post',
url: '/biz/store/store/json_lists',
@@ -138,15 +154,15 @@
province_id: that.province_id,
city_id: that.params.city_id,
county_id: that.params.county_id,
- status:1
+ status: 1
},
- success:function(response){
+ success: function (response) {
if (response.code == 1) {
that.bizAry = response.data.list;
- if(that.params.biz_id>0){
+ if (that.params.biz_id > 0) {
var biz_id = '';
- for(var i in that.bizAry){
- if(that.params.biz_id == that.bizAry[i].id){
+ for (var i in that.bizAry) {
+ if (that.params.biz_id == that.bizAry[i].id) {
biz_id = that.params.biz_id;
break;
}
@@ -162,14 +178,14 @@
}
}
},
- watch:{
- 'params.city_id':function(nv, ov){
+ watch: {
+ 'params.city_id': function (nv, ov) {
var that = this;
- if(nv == ''){
+ if (nv == '') {
that.countyAry = [];
that.params.county_id = '';
} else {
- if(nv.substring(0,4) != that.params.county_id.substring(0, 4)){
+ if (nv.substring(0, 4) != that.params.county_id.substring(0, 4)) {
that.params.county_id = '';
}
$.ajax({
@@ -178,10 +194,10 @@
dataType: 'json',
data: {
id: nv,
- key:'county',
- type:1
+ key: 'county',
+ type: 1
},
- success:function(response){
+ success: function (response) {
if (response.code == 1) {
that.countyAry = response.data;
}
@@ -190,7 +206,7 @@
}
that.get_bizs();
},
- 'params.county_id':function(nv, ov){
+ 'params.county_id': function (nv, ov) {
var that = this;
that.get_bizs();
}
diff --git a/admin/views/receiver/customer/lists.php b/admin/views/receiver/customer/lists.php
index 4fb8fdd5..3cedaed1 100644
--- a/admin/views/receiver/customer/lists.php
+++ b/admin/views/receiver/customer/lists.php
@@ -46,7 +46,7 @@