作者 郭鑫

更新

... ... @@ -132,7 +132,7 @@ class IntermediaryController extends CommonController
public function left($token){
$where_member['token'] = $token;
$where_member['status'] = 1;
$member = Db::name('Member')->where($where_member)->field('name,id,start,reputation,company,store,quarters,tel,city,pic,money,get_money,referee_tel')->find();
$member = Db::name('Member')->where($where_member)->field('name,id,start,reputation,company,store,quarters,tel,city,pic,money,get_money,referee_tel,referee_id')->find();
if(!$member){
$this->apiResponse('0','用户信息错误');
}else{
... ...
... ... @@ -83,7 +83,7 @@ class IntermediaryneedController extends CommonController
$size = 2;
$where_member['token'] = $data['token'];
// 查询,匹配:省市区县精确匹配,小区名模糊匹配(只要有连续字匹配,就算匹配)
$member_find = Db::name('Member')->where($where_member)->field("city,quarters")->find();
$member_find = Db::name('Member')->where($where_member)->field("id,city,quarters")->find();
if(!$member_find){
$this->apiResponse('0','用户信息错误');
}
... ... @@ -98,10 +98,20 @@ class IntermediaryneedController extends CommonController
}
$where_need['quarters'] = array('like',$quarters,'OR');
$need_list = Db::name('UserNeed')->where($where_need)->field("id,city,quarters,room,floor,house_type,renovation,quotation_time,create_time,people")->limit($size)->page($page)->select()->toArray();
$count = Db::name('UserNeed')->where($where_need)->count();
$count = count($need_list);
$final['all_page'] = ceil($count/$size);
$final['need_list'] = $need_list;
if($need_list){
// 筛除已报价
foreach ($need_list as $nek=>$nev){
$where_age['need_id'] = $nev['id'];
$where_age['agency_id'] = $member_find['id'];
$is_agen = Db::name('Agency')->where($where_age)->field('id')->find();
if(!$is_agen){
$final_list[] = $nev;
}
}
$final['need_list'] = $final_list;
$this->apiResponse('1','成功',$final);
}else{
$this->apiResponse('0','该地区暂无匹配需求');
... ... @@ -142,6 +152,7 @@ class IntermediaryneedController extends CommonController
}
// 加数据库
$data = $request->Post();
$token = $data['token'];
$model = new AgencyModel();
$where_mem['token'] = $data['token'];
$mem_id = Db::name('Member')->where($where_mem)->field('id')->find();
... ... @@ -152,7 +163,8 @@ class IntermediaryneedController extends CommonController
$find_isset = $model->where($where_isIsset)->find();
if($find_isset){
Db::rollback();
$this->apiResponse('0','该房屋您已参与报价');
$middle_final['need_id'] = $data['need_id'];
$this->apiResponse('0','该房屋您已参与报价',$middle_final);
}
// 判断是否存在
$where_issetNeed['id'] = $data['need_id'];
... ... @@ -180,9 +192,9 @@ class IntermediaryneedController extends CommonController
$final['intermediaryNeed_id'] = $model->getLastInsID();
if($save){
$where_addCount['token'] = $data['token'];
$where_addCount['token'] = $token;
$add_count = Db::name('member')->where($where_addCount)->setInc('count_agency',1);
if($add_count){
if(!$add_count){
Db::rollback();
}else{
Db::commit();
... ...
... ... @@ -501,6 +501,7 @@ class ThirdsendController extends HomeBaseController
// 查询用户发布需求信息
$where_need['status'] = 3;
$userNeedList = Db::name('UserNeed')->where($where_need)->field('id,quotation_time,create_time,pay_time,user_id')->select()->toArray();
$userNeedList['user_type'] = Db::name('Member')->where(['id'=>$userNeedList['user_id']])->value('type');
$time = time();
// 循环需求,查询相应报价
foreach ($userNeedList as $uNeedk => $uNeedv) {
... ... @@ -579,6 +580,8 @@ class ThirdsendController extends HomeBaseController
}else{
$get_list = $fin_arr;
}
}else{
$get_list = $fin_arr;
}
foreach ($else_changeList as $getk=>$getv){
if(in_array($getv,$get_list)){
... ... @@ -587,6 +590,13 @@ class ThirdsendController extends HomeBaseController
}else{
$change_final['id'] = $getv;
$change_final['status'] = 3;
// 中介报价未进入决赛,执行订单退款
$agencyInfo = Db::name('Agency')->alias('a')
->where(['a.id'=>$getv])
->join("hp_Member m", 'm.id = a.agency_id')
->field('a.*,m.company,m.type as user_type')
->find();
$refund_result = $this->agency_order_refund($agencyInfo,'中介报价未进入决赛圈退款',2);
}
$agencyModel = new AgencyModel();
$fianl_AgsaveFirst = $agencyModel->isUpdate(true)->save($change_final);
... ... @@ -613,25 +623,8 @@ class ThirdsendController extends HomeBaseController
if(!$fianl_AgsaveNext){
Db::rollback();
}
// 退回中介保证金
$add_a['user_id'] = $changeva['agency_id'];
$add_a['title'] = '报价人数不足';
$add_a['type'] = 1;
$add_a['reason'] = 1;
$add_a['money'] = $changeva['deposit'];
$add_a['create_time'] = time();
$add_a['update_time'] = time();
$amoney_id = Db::name('AmoenyDetail')->insertGetId($add_a);
if (!$amoney_id) {
Db::rollback();
}
// 用户表增加金额
$where_member['type'] = 2;
$where_member['id'] = $changeva['agency_id'];
$add_money = Db::name('Member')->where($where_member)->setInc('money',$changeva['deposit']);
if (!$add_money) {
Db::rollback();
}
// 中介报价订单退款
$refund_result = $this->agency_order_refund($changeva,'中介报价少于3人退款',1);
}
$userSave_status['id'] = $uNeedv['id'];
... ... @@ -641,28 +634,8 @@ class ThirdsendController extends HomeBaseController
if(!$fianl_Ussave){
Db::rollback();
}
// 退回保证金
// 用户
// 加用户金额明细表
$add_del['need_id'] = $uNeedv['id'];
$add_del['user_id'] = $uNeedv['user_id'];
$add_del['title'] = '报价人数不足';
$add_del['reason'] = 1;
$add_del['type'] = 1;
$add_del['money'] = $uNeedv['pay_money'];
$add_del['create_time'] = time();
$add_del['update_time'] = time();
$umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del);
if (!$umoney_id) {
Db::rollback();
}
$where_memberNext['type'] = 1;
$where_memberNext['id'] = $uNeedv['user_id'];
$add_moneyNext = Db::name('Member')->where($where_memberNext)->setInc('money',$uNeedv['pay_money']);
if (!$add_moneyNext) {
Db::rollback();
}
// 用户需求订单退款
$refund_result = $this->need_order_refund($userNeedList,'报价人数不足',1);
}
} else {
... ... @@ -674,27 +647,8 @@ class ThirdsendController extends HomeBaseController
if(!$fianl_Ussave){
Db::rollback();
}
// 退回保证金
// 用户
// 加用户金额明细表
$add_del['need_id'] = $uNeedv['id'];
$add_del['user_id'] = $uNeedv['user_id'];
$add_del['title'] = '报价人数不足';
$add_del['type'] = 1;
$add_del['money'] = $uNeedv['pay_money'];
$add_del['create_time'] = time();
$add_del['update_time'] = time();
$umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del);
if (!$umoney_id) {
Db::rollback();
}
$where_memberNext['type'] = 1;
$where_memberNext['id'] = $uNeedv['user_id'];
$add_moneyNext = Db::name('Member')->where($where_memberNext)->setInc('money',$uNeedv['pay_money']);
if (!$add_moneyNext) {
Db::rollback();
}
// 用户需求订单退款
$refund_result = $this->need_order_refund($userNeedList,'报价人数不足',1);
}
// 插入数据库
... ... @@ -724,7 +678,11 @@ class ThirdsendController extends HomeBaseController
if (time() >= ($needv['choose_time'] + 259200)) {
$where_agency['need_id'] = $needv['id'];
$where_agency['status'] = 4;
$agency_list = Db::name('Agency')->where($where_agency)->select()->toArray();
$agency_list = Db::name('Agency')->alias('a')
->where($where_agency)
->join("hp_Member m", 'm.id = a.agency_id')
->field('a.*,m.company,m.type as user_type')
->select()->toArray();
if ($agency_list) {
$where_agencyUpdate['need_id'] = $needv['id'];
$where_agencyUpdate['status'] = 4;
... ... @@ -741,40 +699,13 @@ class ThirdsendController extends HomeBaseController
if (!$need_result) {
Db::rollback();
} else {
// 加用户金额明细表
$add_del['need_id'] = $needv['id'];
$add_del['user_id'] = $needv['user_id'];
$add_del['title'] = '未选择中介';
$add_del['type'] = 2;
$add_del['money'] = $needv['pay_money'];
$add_del['create_time'] = time();
$add_del['update_time'] = time();
$umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del);
if (!$umoney_id) {
Db::rollback();
}
// 中介金额明细表
foreach ($agency_list as $agenk=>$agenv){
$add_a['ag_id'] = $agenv['id'];
$add_a['user_id'] = $agenv['agency_id'];
$add_a['title'] = '用户未选择中介';
$add_a['type'] = 1;
$add_a['money'] = $agenv['deposit'];
$add_a['create_time'] = time();
$add_a['update_time'] = time();
$amoney_id = Db::name('AmoenyDetail')->insertGetId($add_a);
if (!$amoney_id) {
Db::rollback();
if ($agency_list) {
foreach ($agency_list as $agency_key => $agency_val) {
// 中介报价订单退款
$this->agency_order_refund($agency_val, '用户未选择中标中介退款',3);
}
$where_member['type'] = 2;
$where_member['id'] = $agenv['agency_id'];
$add_money = Db::name('Member')->where($where_member)->setInc('money',$agenv['deposit']);
if (!$add_money) {
Db::rollback();
}
}
}
}
}
}
... ... @@ -825,24 +756,8 @@ class ThirdsendController extends HomeBaseController
if (!$change_needFinal) {
Db::rollback();
}
// 增加用户保证金,余额
$add_del['need_id'] = $needv['id'];
$add_del['user_id'] = $needv['user_id'];
$add_del['title'] = '中介未确认';
$add_del['type'] = 1;
$add_del['money'] = $needv['pay_money'];
$add_del['create_time'] = time();
$add_del['update_time'] = time();
$umoney_id = Db::name('UmoenyDetail')->insertGetId($add_del);
if (!$umoney_id) {
Db::rollback();
}
$where_member['type'] = 1;
$where_member['id'] = $needv['user_id'];
$add_money = Db::name('Member')->where($where_member)->setInc('money',$needv['pay_money']);
if (!$add_money) {
Db::rollback();
}
$need_list['user_type'] = Db::name('Member')->where(['id'=>$need_list['user_id']])->value('type');
$this->need_order_refund($agency,'中介未确认成交退款',5);
}
}
Db::commit();
... ...
... ... @@ -69,9 +69,9 @@ class AgencyController extends AdminBaseController
->where($where_coo)
->field("m.name as user_name,m.tel as user_tel,a.*")
->order('create_time desc')
->select()->toArray();
->paginate(10);
$page = $coo_list->render();
$this->assign('page',$page);
$this->assign('list',$coo_list);
return $this->fetch('index');
}
... ...
... ... @@ -89,7 +89,7 @@ class BannerController extends AdminBaseController
$mes = $validate->getError();
$this->error("$mes");
}
$add['id'] = 1;
$add['id'] = $request->Post('id');
$model = new BannerModel();
$final = $model->isUpdate(true)->allowField(true)->save($add);
}else{
... ...
... ... @@ -57,7 +57,9 @@ class BrandController extends AdminBaseController
$this->assign('keyword',$search['keyword']);
}
}
$coo_list = Db::name('Brand')->where($where_coo)->order('score desc , create_time desc')->select()->toArray();
$coo_list = Db::name('Brand')->where($where_coo)->order('score desc , create_time desc')->paginate(10);
$page = $coo_list->render();
$this->assign('page',$page);
$this->assign('list',$coo_list);
return $this->fetch();
}
... ...
... ... @@ -72,24 +72,25 @@ class CodeController extends AdminBaseController
// 删除
// public function del(Request $request){
// $ids = $this->request->post();
// $id = $request->param('id');
// if($ids){
// $add_del['id'] = array('in',$ids['ids']);
// }else if($id){
// $add_del['id'] = $request->param('id');
// }else{
// $this->error('删除失败');
// }
// $add_del['status'] = 9;
public function del(Request $request){
$ids = $this->request->post();
$id = $request->param('id');
if($ids){
$where_del['id'] = array('in',$ids['ids']);
}else if($id){
$where_del['id'] = $request->param('id');
}else{
$this->error('删除失败');
}
$add_del['status'] = 9;
$add_del['update_time'] = time();
// $model = new NewModel();
// $del = $model->isUpdate(true)->allowField(true)->save($add_del);
// if($del){
// $this->success('删除成功',url('index'));
// }else{
// $this->error('删除失败');
// }
// }
$del = Db::name('Code')->where($where_del)->update($add_del);
if($del){
$this->success('删除成功',url('index'));
}else{
$this->error('删除失败');
}
}
}
... ...
... ... @@ -52,7 +52,7 @@ class ComplaintController extends AdminBaseController
->join("Member m",'m.id = c.user_id')
->where($where_money)
->field("m.name,m.tel,c.*")
->paginate();
->paginate(10);
$page = $money_list->render();
$this->assign('page',$page);
$this->assign('lists',$money_list);
... ...
... ... @@ -65,9 +65,10 @@ class NeedController extends AdminBaseController
->where($where_coo)
->field("m.name as user_name,m.tel as user_tel,n.*")
->order('create_time desc')
->select()->toArray();
->paginate(10);
$page = $coo_list->render();
$this->assign('page',$page);
$this->assign('list',$coo_list);
return $this->fetch('index');
}
... ...
... ... @@ -101,7 +101,7 @@ class ProcessController extends AdminBaseController
$final = $model->save($add);
}
if($final){
$this->success('成功');
$this->success('成功',url('Process/index'));
}else{
$this->error('失败');
}
... ...
... ... @@ -45,7 +45,7 @@ class UserNeedController extends AdminBaseController
$this->assign('end_time',date('Y-m-d H:i',$end));
}
if($search['keyword']){
$where_coo['title'] = $search['keyword'];
$where_coo['title'] = array('like','%'.$search['keyword'].'%');
$this->assign('keyword',$search['keyword']);
}
}
... ... @@ -68,6 +68,7 @@ class UserNeedController extends AdminBaseController
if($request->post()){
// 添加数据
$data = $request->post();
if($request->Post('id')){
// 修改
$add['content'] = $data['content'];
... ... @@ -103,7 +104,7 @@ class UserNeedController extends AdminBaseController
$this->error('失败');
}
}else{
$where_find['type'] = $request->param('id');
$where_find['id'] = $request->param('id');
$list = Db::name('NeedAnswer')->where($where_find)->find();
if($list){
$list['content'] = htmlspecialchars_decode($list['content']);
... ...
... ... @@ -50,6 +50,8 @@ class AdminOauthController extends AdminBaseController
// 用户
$where_member['type'] = 1;
$data = $this->request->param();
$size = 2;
$page = 1;
if($data){
$startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']);
$endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']);
... ... @@ -77,7 +79,9 @@ class AdminOauthController extends AdminBaseController
$this->assign('tel', $data['tel']);
}
}
$lists = Db::name('Member')->where($where_member)->order('status,create_time desc')->select()->toArray();
$lists = Db::name('Member')->where($where_member)->order('status,create_time desc')->limit($size)->page($page)->select()->toArray();
$count = count($lists);
$all_page = ceil($count/$size);
foreach ($lists as $lk=>$lv){
$where_referee['id'] = $lv['referee_id'];
$referee = Db::name('Member')->where($where_referee)->field('id,name')->find();
... ... @@ -87,10 +91,12 @@ class AdminOauthController extends AdminBaseController
$lists[$lk]['referee_name'] = '';
}
}
// $lists->appends($lists);
// $this->assign('page', $page->render());
// 获取分页显示
// $page = $lists->render();
$this->assign('lists', $lists);
// $this->assign('page', $page);
// 渲染模板输出
return $this->fetch();
}
... ... @@ -166,7 +172,9 @@ class AdminOauthController extends AdminBaseController
$where_money['user_type'] = 1;
$where_money['type'] = 2;
$where_money['status'] = 1;
$money = Db::name('MoneyDetail')->where($where_money)->select()->toArray();
$money = Db::name('MoneyDetail')->where($where_money)->paginate();
$page = $money->render();
$this->assign('page',$page);
$this->assign('lists',$money);
}else{
$this->error('用户信息错误');
... ... @@ -208,7 +216,9 @@ class AdminOauthController extends AdminBaseController
$where_money['user_type'] = 1;
$where_money['type'] = 1;
$where_money['status'] = 1;
$money = Db::name('MoneyDetail')->where($where_money)->select()->toArray();
$money = Db::name('MoneyDetail')->where($where_money)->paginate();
$page = $money->render();
$this->assign('page',$page);
$this->assign('lists',$money);
}else{
$this->error('用户信息错误');
... ... @@ -283,7 +293,9 @@ class AdminOauthController extends AdminBaseController
$this->assign('user',$member);
$this->assign('uid',$member['id']);
$where_referee['referee_id'] = $data['id'];
$member = Db::name('Member')->where($where_referee)->select()->toArray();
$member = Db::name('Member')->where($where_referee)->paginate();
$page = $member->render();
$this->assign('page',$page);
$this->assign('lists',$member);
return $this->fetch();
}
... ... @@ -309,11 +321,16 @@ class AdminOauthController extends AdminBaseController
}
}
}
$where_member['id'] = $data['id'];
$member = Db::name('Member')->where($where_member)->field('id,name,tel')->find();
$this->assign('user',$member);
$where_money['user_id'] = $data['id'];
$where_money['order_type'] = 6;
$where_money['type'] = 3;
$where_money['status'] = array('neq',9);
$money_list = Db::name('MoneyDetail')->where($where_money)->select();
$money_list = Db::name('MoneyDetail')->where($where_money)->paginate();
$page = $money_list->render();
$this->assign('page',$page);
$this->assign('uid',$data['id']);
$this->assign('lists',$money_list);
return $this->fetch('getdetail');
... ... @@ -344,7 +361,7 @@ class AdminOauthController extends AdminBaseController
}
}
// 拒绝提现
// 拒绝提现
public function refuse(){
$data = $this->request->param();
$where_money['id'] = $data['id'];
... ...
... ... @@ -19,7 +19,7 @@
value="{$list['id']}"/>
<tr>
<th width="15%">银行名称</th>
<td><input class="form-control" type="text" name="name11"
<td><input class="form-control" type="text" name="name"
value="{$list['name']}" placeholder="请输入银行名称"/>
</td>
... ...
... ... @@ -59,7 +59,7 @@
<th width="130">更新时间</th>
<th width="130">发布时间</th>
<!--<th width="90">操作</th>-->
<th width="90">操作</th>
</tr>
</thead>
<foreach name="list" item="list">
... ... @@ -93,10 +93,9 @@
</td>
<!--<td>-->
<!--<a href="{:url('New/add',array('id'=>$list['id']))}">{:lang('EDIT')}</a>-->
<!--<a href="{:url('New/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>-->
<!--</td>-->
<td>
<a href="{:url('Code/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
</td>
</tr>
</foreach>
... ...
... ... @@ -4,7 +4,7 @@
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">信誉奖励列表</a></li>
<li><a href="{:url('Reward/add')}">添加信誉奖励</a></li>
<!--<li><a href="{:url('Reward/add')}">添加信誉奖励</a></li>-->
</ul>
<!--<form class="well form-inline margin-top-20" method="post" action="{:url('Reward/index')}">-->
<!--&lt;!&ndash;分类:&ndash;&gt;-->
... ...
... ... @@ -30,7 +30,7 @@
<tr>
<th>内容</th>
<td>
<script type="text/plain" id="content" name="content" value="{$list['content']}" >{$list['content']}</script>
<script type="text/plain" id="content" name="content" value="" >{$list['content']}</script>
</td>
</tr>
</table>
... ...
... ... @@ -100,17 +100,17 @@
</tr>
<tr>
<th width="15%">首次登录时间</th>
<td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="login_time" value="{$list['login_time']|date='Y-m-d H:i:s',###}" readonly />
</td>
</tr>
<tr>
<th width="15%">最后登录时间</th>
<td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="last_login_time" value="{$list['last_login_time']|date='Y-m-d H:i:s',###}" readonly/>
</td>
</tr>
<tr>
<th width="18%">注册时间</th>
<td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" />
<td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" readonly/>
</td>
</tr>
<tr>
... ...
<include file="public@header"/>
<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
<style>
.popup,.popdown{
width: 250px;
height: 100px;
background-color: rgba(0,0,0,0.5);
position: fixed;
top: 50%;
transform: translateY(-50px);
left: 0;
right: 0;
margin: 0 auto;
border-radius: 5px;
color: #ffffff;
}
.popup p,.popdown p{
text-align: center;
margin-top: 20px;
}
.popup span,.popdown span{
text-align: center;
line-height: 30px;
cursor: pointer;
}
.popup .queding,.popdown .sure{
display: inline-block;
width: 80px;
height: 30px;
background-color: #1E9FFF;
border-radius: 3px;
}
.popup span:hover,.popdown span:hover{
opacity: 0.8;
}
.popup .quxiao,.popdown .re{
display: inline-block;
width: 80px;
height: 30px;
ckground-color: #9cb945 ;
color: #333333;
border-radius: 3px;
background-color:#fff;
margin-left: 35px;
}
.btn_list{
margin: 0 auto;
width: 200px;
}
</style>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>评论管理</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/comment',array('id'=>$uid))}">
时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{$start_time|default=''}"
style="width: 140px;" autocomplete="off"> -
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
value="{$end_time|default=''}"
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/comment',array('id'=>$uid))}">清空</a>
<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
</form>
<form method="post" class="js-ajax-form margin-top-20">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>报价id</th>
<th>评论人id</th>
<th>评论内容</th>
<th>是否已修改</th>
<th>评论状态</th>
<th>评论时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.agency_id}</td>
<td>{$vo.user_id}</td>
<td>{$vo.content}</td>
<td>
<eq name="vo.is_comment" value="0">未修改</eq>
<eq name="vo.is_comment" value="1">已修改</eq>
</td>
<td>
<eq name="vo.status" value="1">正常</eq>
</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td><span class="del" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span></td>
</tr>
</foreach>
</tbody>
</table>
</form>
<div class="popup" style="display: none;">
<p>确认删除</p>
<div class="btn_list">
<span class="queding">确认</span>
<span class="quxiao">取消</span>
</div>
</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
<script type="">
$('.del').click(function () {
var id = $(this).attr('index');
$('.popup').css('display','block');
// 删除
$('.queding').click(function () {
$.ajax({
type:"POST",
url:"{:url('AdminOauth/agencyDel')}",
data:{
"id":id,
},
success:function (data) {
new TipBox({type:'success',str:'操作成功',hasBtn:true});
$('.popup').css('display','none');
},
error:function () {
new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true});
$('.popup').css('display','none');
}
})
})
})
$('.quxiao').click(function () {
$('.popup').css('display','none');
})
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -64,9 +64,16 @@
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/getMoneyDetail',array('id'=>$uid))}">清空</a>
<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
</form>
<div class="well form-inline margin-top-20" style="background-color: #C8EBFA;">
<div style="text-align: center;">用户信息:</div>
<div style="text-align: center;">
<span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
</div>
</div>
<form method="post" class="js-ajax-form margin-top-20">
<table class="table table-hover table-bordered">
... ...
... ... @@ -73,9 +73,9 @@
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/inmoney',array('id'=>$uid))}">清空</a>
</form>
<div class="well form-inline margin-top-20">
<div >用户信息</div>
<div>
<div class="well form-inline margin-top-20" style="background-color: #C8EBFA;">
<div style="text-align: center;">用户信息:</div>
<div style="text-align: center;">
<span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;
... ... @@ -116,7 +116,7 @@
</foreach>
</tbody>
</table>
<ul class="pagination">{$page|default=''}</ul>
</form>
<div class="popup" style="display: none;">
<p>确认删除该信息</p>
... ...
... ... @@ -100,14 +100,18 @@
<td>
<empty name="vo.referee_name">
暂无
</empty>
<else/>
{$vo.referee_name}
</empty>
</td>
<td>
<empty name="vo.referee_id">
暂无
</empty>
<else/>
{$vo.referee_id}
</empty>
</td>
<td>{$vo.reputation}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
... ... @@ -124,7 +128,7 @@
</td>
<td>
<span class="detail" style="color: #0FD149; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span>
<span class="money" style="color: #9B399C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span>
<span class="money" style="color: #9B399C;; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span>
<span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span>
<span class="referee" style="color: #BFB61D; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span>
<!--<span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看评论</span>-->
... ...
... ... @@ -73,9 +73,9 @@
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/money',array('id'=>$uid))}">清空</a>
</form>
<div class="well form-inline margin-top-20">
<div >用户信息</div>
<div>
<div class="well form-inline margin-top-20" style="background-color: #C8EBFA;">
<div style="text-align: center;">用户信息:</div>
<div style="text-align: center;">
<span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
... ... @@ -119,7 +119,7 @@
</foreach>
</tbody>
</table>
<ul class="pagination">{$page|default=''}</ul>
</form>
<div class="popup" style="display: none;">
<p>确认删除该信息</p>
... ...
... ... @@ -70,10 +70,17 @@
value="{$tel|default=''}" placeholder="请输入手机号">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/referee',array('id'=>$uid))}">清空</a>
<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
</form>
</form>
<div class="well form-inline margin-top-20" style="background-color: #C8EBFA;">
<div style="text-align: center;">用户信息:</div>
<div style="text-align: center;">
<span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>
</div>
</div>
<form method="post" class="js-ajax-form margin-top-20">
<table class="table table-hover table-bordered">
<thead>
... ...
... ... @@ -52,7 +52,7 @@
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>{:lang('USER_OAUTHADMIN_INDEX')}</a></li>
<li class="active"><a>中介信誉管理</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/reward')}">
... ... @@ -67,9 +67,9 @@
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminOauth/reward',array('id'=>$user.id))}">清空</a>
</form>
<div class="well form-inline margin-top-20">
<div >用户信息</div>
<div>
<div class="well form-inline margin-top-20" style="background-color: #C8EBFA;">
<div style="text-align: center;">用户信息:</div>
<div style="text-align: center;">
<span>用户id:{$user.id}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>用户名:{$user.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
<span>手机号:{$user.tel}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
... ... @@ -120,7 +120,7 @@
</foreach>
</tbody>
</table>
<ul class="pagination">{$page|default=''}</ul>
</form>
<div class="popup" style="display: none;">
<p>确认删除该记录</p>
... ...
... ... @@ -47,6 +47,55 @@
margin: 0 auto;
width: 200px;
}
.paging {
width: auto;
margin: 0 auto;
margin-top: 50px;
overflow: hidden;
clear: both;
width: 780px;
margin-bottom: 67px;
}
.paging ul li {
float: left;
display: block;
width: 40px;
height: 40px;
background-color: #FFFFFF;
margin-left: 10px;
line-height: 40px;
text-align: center;
}
.paging ul li:first-child {
margin-left: 0;
}
.paging .paging_first {
width: 78px;
}
.paging .active {
background-color: #80B13B;
color: #FFFFFF;
}
.page_btn,
.pre,
.next,
.paging_first,
.paging_last {
cursor: pointer;
}
.paging .paging_last {
width: 78px;
}
.content_list{
min-height: 364px;
}
</style>
</head>
<body>
... ... @@ -99,14 +148,18 @@
<td>
<empty name="vo.referee_name">
暂无
</empty>
<else/>
{$vo.referee_name}
</empty>
</td>
<td>
<empty name="vo.referee_id">
暂无
</empty>
<else/>
{$vo.referee_id}
</empty>
</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
... ... @@ -122,14 +175,14 @@
</eq>
</td>
<td>
<span class="detail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span>
<span class="money" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span>
<span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span>
<span class="referee" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span>
<span class="detail" style="color: #0FD149; text-decoration:underline; cursor: pointer; " index="{$vo.id}" >详细信息</span>
<span class="money" style="color: #9B399C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span>
<span class="getMoneyDetail" style="color: #18BC9C;text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span>
<span class="referee" style="color: #BFB61D; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span>
</td>
<td>
<eq name="vo.status" value="1">
<span class="black" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拉黑</span>
<span class="black" style="color: #AC4555; text-decoration:underline; cursor: pointer; " index="{$vo.id}">拉黑</span>
</eq>
<eq name="vo.status" value="8">
<span style="color:#aaaaaa; cursor: pointer; " index="{$vo.id}">已拉黑</span>
... ... @@ -142,6 +195,28 @@
</foreach>
</tbody>
</table>
<ul class="pagination">
<!--<li class="page-item disabled"><span class="page-link">«</span></li>-->
<!--<li class="page-item"><a class="page-link" href="/public/portal/code/index.html?page=3">3</a></li>-->
<!--<li class="page-item"><a class="page-link" href="/public/portal/code/index.html?page=3">4</a></li>-->
<!--<li class="page-item"><a class="page-link" href="/public/portal/code/index.html?page=2">»</a></li>-->
{$page|default='1'}</ul>
<!--<div class="paging">-->
<!--<ul class="page_list">-->
<!--<li class="paging_first">&lt;&lt;首页</li>-->
<!--<li>&lt;</li>-->
<!--<li class="page_btn active" data-id=1>1</li>-->
<!--<li class="page_btn" data-id=2>2</li>-->
<!--<li class="page_btn" data-id=3>3</li>-->
<!--<li class="page_btn" data-id=4>4</li>-->
<!--<li class="page_btn" data-id=5>5</li>-->
<!--<li class="page_btn" data-id=6>6</li>-->
<!--<li class="page_btn" data-id=7>7</li>-->
<!--<li>&gt;</li>-->
<!--<li class="paging_first">尾页&gt;&gt;</li>-->
<!--</ul>-->
<!--</div>-->
</form>
<div class="popup" style="display: none;">
... ... @@ -217,6 +292,61 @@
window.location.href = url
})
// 分页
page_list = '';
var tempPage = [];
if(all_page - current_page > 9) {
if(current_page > 0) {
for(var i = 7; i > 0; i--) {
tempPage[i] = parseInt(current_page - 1) + i;
}
} else {
for(var i = 7; i > 0; i--) {
tempPage[i] = parseInt(current_page) + i;
}
}
tempPage.push('...');
tempPage.push(all_page - 1);
tempPage.push(all_page)
} else {
tempPage = [];
if(all_page > 10) {
for(var i = 10; i >= 0; i--) {
tempPage[10 - i] = parseInt(all_page) - i;
console.log(tempPage)
}
} else {
for(var i = all_page; i >= 0; i--) {
tempPage[all_page - i] = parseInt(all_page) - i;
}
}
}
var total = all_page > 10 ? 10 : all_page;
var pagelist = '';
for(var i = 1; i <= total; i++) {
if(current_page == tempPage[i]) {
if(tempPage[i] == '...') {
pagelist += ' <li class="page_btn more" data-id = ' + i + ' >' + tempPage[i] + '</li>';
} else {
pagelist += ' <li class="pageli active" >' + tempPage[i] + '</li>';
}
} else {
if(tempPage[i] == '...') {
pagelist += ' <li class="page_btn more" data-id = ' + i + ' >' + tempPage[i] + '</li>';
} else {
pagelist += ' <li class="page_btn" data-id = ' + tempPage[i] + ' >' + tempPage[i] + '</li>';
}
}
}
</script>
</body>
</html>
\ No newline at end of file
... ...