正在显示
20 个修改的文件
包含
1049 行增加
和
55 行删除
@@ -41,28 +41,47 @@ class ArticleController extends CommonController | @@ -41,28 +41,47 @@ class ArticleController extends CommonController | ||
41 | */ | 41 | */ |
42 | public function index(Request $request) | 42 | public function index(Request $request) |
43 | { | 43 | { |
44 | + $size = 2; | ||
44 | $page = $request->param('page'); | 45 | $page = $request->param('page'); |
46 | + $where_cate['status'] = 1; | ||
47 | + $catrgory = Db::name('PortalCategory')->where($where_cate)->field('id,name')->select()->toArray(); | ||
48 | + $final['cate'] = $catrgory; | ||
45 | $where_connect['j.status'] = 1; | 49 | $where_connect['j.status'] = 1; |
46 | $where_connect['p.post_status'] = 1; | 50 | $where_connect['p.post_status'] = 1; |
47 | $where_connect['j.category_id'] = $_POST['articleType']; | 51 | $where_connect['j.category_id'] = $_POST['articleType']; |
48 | $article_list = Db::name('PortalCategoryPost')->alias('j') | 52 | $article_list = Db::name('PortalCategoryPost')->alias('j') |
49 | ->where($where_connect) | 53 | ->where($where_connect) |
50 | - ->field("j.post_id,j.category_id , c.name , p.post_title") | 54 | + ->field("j.post_id,j.category_id , c.name , p.post_title,p.create_time") |
51 | ->join("PortalCategory c","c.id = j.category_id") | 55 | ->join("PortalCategory c","c.id = j.category_id") |
52 | ->join("PortalPost p","p.id = j.post_id") | 56 | ->join("PortalPost p","p.id = j.post_id") |
53 | - ->page("$page,5") | 57 | + ->page("$page,$size") |
54 | ->select()->toArray(); | 58 | ->select()->toArray(); |
59 | + | ||
60 | + foreach ($article_list as $artk=>$artv){ | ||
61 | + $article_list[$artk]['create_time'] = date('Y-m-d H:i:s',$artv['create_time']); | ||
62 | + } | ||
55 | if(empty($article_list)){ | 63 | if(empty($article_list)){ |
56 | $this->apiResponse('1','暂无数据'); | 64 | $this->apiResponse('1','暂无数据'); |
65 | + }else{ | ||
66 | + $final['art'] = $article_list; | ||
57 | } | 67 | } |
58 | - $this->apiResponse('1','成功',$article_list); | 68 | + |
69 | + $count = Db::name('PortalCategoryPost')->alias('j') | ||
70 | + ->where($where_connect) | ||
71 | + ->field("j.post_id,j.category_id , c.name , p.post_title,p.create_time") | ||
72 | + ->join("PortalCategory c","c.id = j.category_id") | ||
73 | + ->join("PortalPost p","p.id = j.post_id") | ||
74 | + ->count(); | ||
75 | + $all_page = ceil($count/$size); | ||
76 | + $final['all_page'] = $all_page; | ||
77 | + $this->apiResponse('1','成功',$final); | ||
59 | } | 78 | } |
60 | 79 | ||
61 | /** | 80 | /** |
62 | * @title 文章详情 | 81 | * @title 文章详情 |
63 | * @description 接口说明 | 82 | * @description 接口说明 |
64 | * @author 开发者 | 83 | * @author 开发者 |
65 | - * @url /api/portal/Article/index | 84 | + * @url /api/portal/Article/detail |
66 | * @method POST | 85 | * @method POST |
67 | * | 86 | * |
68 | * @param name:post_id type:int require:1 default: other: desc:文章id | 87 | * @param name:post_id type:int require:1 default: other: desc:文章id |
@@ -29,7 +29,7 @@ class CommonController extends HomeBaseController | @@ -29,7 +29,7 @@ class CommonController extends HomeBaseController | ||
29 | $url = explode('/',$_SERVER['PATH_INFO']); | 29 | $url = explode('/',$_SERVER['PATH_INFO']); |
30 | $count_url = count($url); | 30 | $count_url = count($url); |
31 | $fun = $url[$count_url-1]; | 31 | $fun = $url[$count_url-1]; |
32 | - if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' ){ | 32 | + if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' || $url[1] == 'Article' ){ |
33 | $connect = 1; | 33 | $connect = 1; |
34 | }else{ | 34 | }else{ |
35 | $connect = 2; | 35 | $connect = 2; |
@@ -395,7 +395,7 @@ class IntermediaryController extends CommonController | @@ -395,7 +395,7 @@ class IntermediaryController extends CommonController | ||
395 | */ | 395 | */ |
396 | public function comment(Request $request){ | 396 | public function comment(Request $request){ |
397 | $data = $request->param(); | 397 | $data = $request->param(); |
398 | -// $my = $this->left($data['token']); | 398 | + $my = $this->left($data['token']); |
399 | if(empty($data['intermediary_id'])){ | 399 | if(empty($data['intermediary_id'])){ |
400 | $this->apiResponse('0','报价id不能为空'); | 400 | $this->apiResponse('0','报价id不能为空'); |
401 | } | 401 | } |
@@ -408,7 +408,9 @@ class IntermediaryController extends CommonController | @@ -408,7 +408,9 @@ class IntermediaryController extends CommonController | ||
408 | $where_comment['status'] = 1; | 408 | $where_comment['status'] = 1; |
409 | $comment = Db::name('Comment')->where($where_comment)->find(); | 409 | $comment = Db::name('Comment')->where($where_comment)->find(); |
410 | if($comment){ | 410 | if($comment){ |
411 | - $this->apiResponse('1','成功',$comment); | 411 | + $final['comment'] = $comment; |
412 | + $final['agency'] = $my; | ||
413 | + $this->apiResponse('1','成功',$final); | ||
412 | }else{ | 414 | }else{ |
413 | $this->apiResponse('0','暂无评价'); | 415 | $this->apiResponse('0','暂无评价'); |
414 | } | 416 | } |
@@ -341,7 +341,6 @@ class ThirdsendController extends HomeBaseController | @@ -341,7 +341,6 @@ class ThirdsendController extends HomeBaseController | ||
341 | if (!$add_moneyNext) { | 341 | if (!$add_moneyNext) { |
342 | Db::rollback(); | 342 | Db::rollback(); |
343 | } | 343 | } |
344 | - | ||
345 | } | 344 | } |
346 | } else { | 345 | } else { |
347 | // 没有报价 | 346 | // 没有报价 |
@@ -975,7 +975,7 @@ class UserController extends CommonController | @@ -975,7 +975,7 @@ class UserController extends CommonController | ||
975 | $where_need['id'] = $data['need_id']; | 975 | $where_need['id'] = $data['need_id']; |
976 | $where_need['user_id'] = $member['id']; | 976 | $where_need['user_id'] = $member['id']; |
977 | $where_need['status'] = array('in','5,7'); | 977 | $where_need['status'] = array('in','5,7'); |
978 | - $userNeed = Db::name('UserNeed')->where($where_need)->field("id as need_id,city,quarters,room,pay_money,pay_time,choose_time,status")->find(); | 978 | + $userNeed = Db::name('UserNeed')->where($where_need)->field("id as need_id,city,quarters,floor,house_type,renovation,room,area,pay_money,pay_time,choose_time,status,is_first,loan,contract,quotation_time,name,tel")->find(); |
979 | $final['need'] = $userNeed; | 979 | $final['need'] = $userNeed; |
980 | $final['user'] = $member; | 980 | $final['user'] = $member; |
981 | if($userNeed){ | 981 | if($userNeed){ |
@@ -1111,7 +1111,7 @@ class UserController extends CommonController | @@ -1111,7 +1111,7 @@ class UserController extends CommonController | ||
1111 | public function comment(Request $request){ | 1111 | public function comment(Request $request){ |
1112 | $data = $request->param(); | 1112 | $data = $request->param(); |
1113 | $where_isset['id'] = $data['agency_id']; | 1113 | $where_isset['id'] = $data['agency_id']; |
1114 | - $agency_id = Db::name('Member')->where($where_isset)->field('id,name,pic,reputation,start')->find(); | 1114 | + $agency_id = Db::name('Member')->where($where_isset)->field('id,name,pic,reputation,start,tel,store')->find(); |
1115 | if($agency_id){ | 1115 | if($agency_id){ |
1116 | $where_comment['c.intermediary_id'] = $agency_id['id']; | 1116 | $where_comment['c.intermediary_id'] = $agency_id['id']; |
1117 | $where_comment['c.status'] = 1; | 1117 | $where_comment['c.status'] = 1; |
@@ -26,11 +26,11 @@ use think\Loader; | @@ -26,11 +26,11 @@ use think\Loader; | ||
26 | class NeedController extends AdminBaseController | 26 | class NeedController extends AdminBaseController |
27 | { | 27 | { |
28 | // 列表 | 28 | // 列表 |
29 | - public function user(Request $request) | 29 | + public function index(Request $request) |
30 | { | 30 | { |
31 | - $where_coo['status'] = 1; | ||
32 | - $where_coo['type'] = 2; | ||
33 | -// $where_coo = array(); | 31 | +// $where_coo['status'] = 1; |
32 | +// $where_coo['type'] = 2; | ||
33 | + $where_coo = array(); | ||
34 | if($request->post()){ | 34 | if($request->post()){ |
35 | $search = $request->post(); | 35 | $search = $request->post(); |
36 | if($search['start_time']){ | 36 | if($search['start_time']){ |
@@ -40,30 +40,47 @@ class NeedController extends AdminBaseController | @@ -40,30 +40,47 @@ class NeedController extends AdminBaseController | ||
40 | }else{ | 40 | }else{ |
41 | $end = time(); | 41 | $end = time(); |
42 | } | 42 | } |
43 | - $where_coo['update_time'] = array('between',"$start,$end"); | 43 | + $where_coo['n.update_time'] = array('between',"$start,$end"); |
44 | $this->assign('start_time',date('Y-m-d H:i',$start)); | 44 | $this->assign('start_time',date('Y-m-d H:i',$start)); |
45 | $this->assign('end_time',date('Y-m-d H:i',$end)); | 45 | $this->assign('end_time',date('Y-m-d H:i',$end)); |
46 | } | 46 | } |
47 | if($search['keyword']){ | 47 | if($search['keyword']){ |
48 | - $where_coo['title'] = array('like',"%".$search['keyword']."%"); | 48 | + $where_coo['n.title'] = array('like',"%".$search['keyword']."%"); |
49 | $this->assign('keyword',$search['keyword']); | 49 | $this->assign('keyword',$search['keyword']); |
50 | } | 50 | } |
51 | } | 51 | } |
52 | - $coo_list = Db::name('NeedAnswer')->where($where_coo) | ||
53 | - ->order('score desc , create_time desc') | 52 | + $coo_list = Db::name('UserNeed')->alias('n') |
53 | + ->join("Member m",'m.id = n.user_id') | ||
54 | + ->where($where_coo) | ||
55 | + ->field("m.name as user_name,m.tel as user_tel,n.*") | ||
56 | + ->order('create_time desc') | ||
54 | ->select()->toArray(); | 57 | ->select()->toArray(); |
55 | - if($coo_list){ | ||
56 | - foreach ($coo_list as $k=>$v){ | ||
57 | - $coo_list[$k]['content'] = htmlspecialchars_decode($v['content']); | ||
58 | - } | ||
59 | - } | 58 | + |
60 | 59 | ||
61 | $this->assign('list',$coo_list); | 60 | $this->assign('list',$coo_list); |
62 | - return $this->fetch(); | 61 | + return $this->fetch('index'); |
63 | } | 62 | } |
64 | 63 | ||
65 | 64 | ||
66 | - public function add(Request $request) | 65 | +// 详情 |
66 | + public function detail(){ | ||
67 | + $data = $this->request->param(); | ||
68 | + $where_need['n.id'] = $data['id']; | ||
69 | + $where_need['n.status'] = array('neq',9); | ||
70 | + $need = Db::name('UserNeed')->alias('n') | ||
71 | + ->join("Member m",'m.id = n.user_id') | ||
72 | + ->where($where_need) | ||
73 | + ->field('m.name as user_name,n.*') | ||
74 | + ->find(); | ||
75 | + if(!$need){ | ||
76 | + $this->error('需求错误'); | ||
77 | + } | ||
78 | + $this->assign('list',$need); | ||
79 | + return $this->fetch(); | ||
80 | + } | ||
81 | + | ||
82 | +// 修改信息 | ||
83 | + public function change(Request $request) | ||
67 | { | 84 | { |
68 | if($request->post()){ | 85 | if($request->post()){ |
69 | // 添加数据 | 86 | // 添加数据 |
1 | +<?php | ||
2 | +// +---------------------------------------------------------------------- | ||
3 | +// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] | ||
4 | +// +---------------------------------------------------------------------- | ||
5 | +// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved. | ||
6 | +// +---------------------------------------------------------------------- | ||
7 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
8 | +// +---------------------------------------------------------------------- | ||
9 | +// | Author: 老猫 <thinkcmf@126.com> | ||
10 | +// +---------------------------------------------------------------------- | ||
11 | +namespace app\portal\controller; | ||
12 | +use cmf\controller\AdminBaseController; | ||
13 | +use app\portal\model\NeedAnswerModel; | ||
14 | +use app\portal\model\MemberModel; | ||
15 | +use app\portal\model\UserModel; | ||
16 | +use app\portal\service\PostService; | ||
17 | +use think\Db; | ||
18 | +use think\Request; | ||
19 | +use think\Loader; | ||
20 | +/** | ||
21 | + * @title 保证金内容管理 | ||
22 | + * @description 接口说明 | ||
23 | + * @group 接口分组 | ||
24 | + */ | ||
25 | + | ||
26 | +class StatisticsController extends AdminBaseController | ||
27 | +{ | ||
28 | +// 列表 | ||
29 | + public function index(Request $request) | ||
30 | + { | ||
31 | + | ||
32 | + return $this->fetch('index'); | ||
33 | + } | ||
34 | + | ||
35 | + | ||
36 | +} |
@@ -512,6 +512,81 @@ class AdminOauthController extends AdminBaseController | @@ -512,6 +512,81 @@ class AdminOauthController extends AdminBaseController | ||
512 | $this->error('评论状态错误'); | 512 | $this->error('评论状态错误'); |
513 | } | 513 | } |
514 | } | 514 | } |
515 | + | ||
516 | +// 查看中介信誉分 | ||
517 | + public function reward(){ | ||
518 | + $where_member['status'] = array('neq',9); | ||
519 | + $where_member['type'] = array('neq',5); | ||
520 | + $data = $this->request->param(); | ||
521 | + if($data){ | ||
522 | + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']); | ||
523 | + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']); | ||
524 | + if ($startTime && $endTime) { | ||
525 | + $where_member['create_time'] = array('between',"$startTime,$endTime"); | ||
526 | + $this->assign('start_time', $data['start_time']); | ||
527 | + $this->assign('end_time', $data['end_time']); | ||
528 | + }else{ | ||
529 | + if($startTime){ | ||
530 | + $where_member['create_time'] = array('egt',$startTime); | ||
531 | + $this->assign('start_time', $data['start_time']); | ||
532 | + } | ||
533 | + if($endTime){ | ||
534 | + $where_member['create_time'] = array('elt',$endTime); | ||
535 | + $this->assign('end_time', $data['end_time']); | ||
536 | + } | ||
537 | + } | ||
538 | + | ||
539 | + } | ||
540 | + | ||
541 | +// 查询用户 | ||
542 | + $where_referee['id'] = $data['id']; | ||
543 | + $referee = Db::name('Member')->where($where_referee)->field('id,name,tel')->find(); | ||
544 | + $this->assign('user',$referee); | ||
545 | + | ||
546 | + $is_isset = Db::name('RewardLog')->where($where_member)->select()->toArray(); | ||
547 | + if(!$is_isset){ | ||
548 | + $is_isset = array(); | ||
549 | + }else{ | ||
550 | + foreach ($is_isset as $lk=>$lv){ | ||
551 | +// 被推荐人 | ||
552 | + $where_recommen['id'] = $lv['recommen']; | ||
553 | + $recommen = Db::name('Member')->where($where_recommen)->field('id,name,tel')->find(); | ||
554 | + if($referee){ | ||
555 | + $is_isset[$lk]['recommen_name'] = $recommen['name']; | ||
556 | + $is_isset[$lk]['recommen_tel'] = $recommen['tel']; | ||
557 | + }else{ | ||
558 | + $is_isset[$lk]['recommen_name'] = ''; | ||
559 | + $is_isset[$lk]['recommen_tel'] = ''; | ||
560 | + } | ||
561 | + | ||
562 | + } | ||
563 | + } | ||
564 | + $this->assign('lists', $is_isset); | ||
565 | + return $this->fetch(); | ||
566 | + } | ||
567 | + | ||
568 | + | ||
569 | +// 删除中介信誉分记录 | ||
570 | + public function delReward(){ | ||
571 | + $data = $this->request->param(); | ||
572 | + $where_del['id'] = $data['id']; | ||
573 | + $where_del['status'] = array('neq',9); | ||
574 | + $is_isset = Db::name('RewardLog')->where($where_del)->field('id')->find(); | ||
575 | + if($is_isset){ | ||
576 | + $save['status'] = 9; | ||
577 | + $save['update_time'] = time(); | ||
578 | + $res = Db::name('RewardLog')->where($where_del)->update($save); | ||
579 | + if($res){ | ||
580 | + $this->success('删除成功',url('AdminOauth/reward')); | ||
581 | + }else{ | ||
582 | + $this->error('删除失败'); | ||
583 | + } | ||
584 | + }else{ | ||
585 | + $this->error('记录查询失败'); | ||
586 | + } | ||
587 | + } | ||
588 | + | ||
589 | + | ||
515 | /** | 590 | /** |
516 | * 后台删除第三方用户绑定 | 591 | * 后台删除第三方用户绑定 |
517 | * @adminMenu( | 592 | * @adminMenu( |
app/user/controller/CommonController.php
0 → 100644
1 | +<?php | ||
2 | +// +---------------------------------------------------------------------- | ||
3 | +// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] | ||
4 | +// +---------------------------------------------------------------------- | ||
5 | +// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved. | ||
6 | +// +---------------------------------------------------------------------- | ||
7 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
8 | +// +---------------------------------------------------------------------- | ||
9 | +// | Author: Powerless < wzxaini9@gmail.com> | ||
10 | +// +---------------------------------------------------------------------- | ||
11 | +namespace app\user\controller; | ||
12 | + | ||
13 | +use app\user\model\CommentModel; | ||
14 | +use cmf\controller\AdminBaseController; | ||
15 | +use cmf\controller\UserBaseController; | ||
16 | +use app\user\model\UserModel; | ||
17 | +use think\Db; | ||
18 | + | ||
19 | + | ||
20 | +class CommonController extends AdminBaseController | ||
21 | +{ | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + // 中介评价 | ||
26 | + public function comment(){ | ||
27 | + $data = $this->request->param(); | ||
28 | + $where_comment['m.status'] = 1; | ||
29 | + if($data){ | ||
30 | + $startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']); | ||
31 | + $endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']); | ||
32 | + if ($startTime && $endTime) { | ||
33 | + $where_comment['c.create_time'] = array('between',"$startTime,$endTime"); | ||
34 | + $this->assign('start_time', $data['start_time']); | ||
35 | + $this->assign('end_time', $data['end_time']); | ||
36 | + }else{ | ||
37 | + if($startTime){ | ||
38 | + $where_comment['c.create_time'] = array('egt',$startTime); | ||
39 | + $this->assign('start_time', $data['start_time']); | ||
40 | + } | ||
41 | + if($endTime){ | ||
42 | + $where_comment['c.create_time'] = array('elt',$endTime); | ||
43 | + $this->assign('end_time', $data['end_time']); | ||
44 | + } | ||
45 | + } | ||
46 | + | ||
47 | + if(!empty($data['name'])){ | ||
48 | + $where_comment['m.name'] = array('like','%'.$data['name'].'%'); | ||
49 | + $this->assign('name', $data['name']); | ||
50 | + } | ||
51 | + if(!empty($data['tel'])){ | ||
52 | + $where_comment['m.tel'] = array('like','%'.$data['tel'].'%'); | ||
53 | + $this->assign('tel', $data['tel']); | ||
54 | + } | ||
55 | + } | ||
56 | + $comment_list = Db::name('Comment')->alias('c') | ||
57 | + ->join("Member m",'m.id=c.user_id') | ||
58 | + ->where($where_comment) | ||
59 | + ->field('m.name as user_name,m.tel as user_tel,m.id as user_id,c.*') | ||
60 | + ->select()->toArray(); | ||
61 | + foreach ($comment_list as $comk=>$comv){ | ||
62 | +// $where_user['id'] = $comv['user_id']; | ||
63 | +// $user = Db::name('Member')->where($where_user)->field('id,name,tel')->find(); | ||
64 | + $where_agency['id'] = $comv['intermediary_id']; | ||
65 | + $agency = Db::name('Member')->where($where_agency)->field('id,name,tel')->find(); | ||
66 | +// $comment_list[$comk]['user_id'] = $user['id']; | ||
67 | +// $comment_list[$comk]['user_name'] = $user['name']; | ||
68 | +// $comment_list[$comk]['user_tel'] = $user['tel']; | ||
69 | + $comment_list[$comk]['agency_id'] = $agency['id']; | ||
70 | + $comment_list[$comk]['agency_name'] = $agency['name']; | ||
71 | + $comment_list[$comk]['agency_tel'] = $agency['tel']; | ||
72 | + } | ||
73 | +// $this->assign('uid',$data['id']); | ||
74 | + $this->assign('lists',$comment_list); | ||
75 | + return $this->fetch('common'); | ||
76 | + } | ||
77 | + | ||
78 | +// 删除中介评价 | ||
79 | + public function agencyDel(){ | ||
80 | + $data = $this->request->param(); | ||
81 | + $where_com['id'] = $data['id']; | ||
82 | + $where_com['status'] = array('neq',9); | ||
83 | + $complaint = Db::name('Comment')->where($where_com)->find(); | ||
84 | + if($complaint){ | ||
85 | + $save['status'] = 9; | ||
86 | + $save['update_time'] = time(); | ||
87 | + $update = Db::name('Comment')->where($where_com)->update($save); | ||
88 | + if($update){ | ||
89 | + $this->success('删除成功'); | ||
90 | + }else{ | ||
91 | + $this->error('删除失败'); | ||
92 | + } | ||
93 | + }else{ | ||
94 | + $this->error('评论状态错误'); | ||
95 | + } | ||
96 | + } | ||
97 | + | ||
98 | + | ||
99 | +} |
@@ -160,6 +160,7 @@ return array ( | @@ -160,6 +160,7 @@ return array ( | ||
160 | 'PORTAL_COMPLAINT_INDEX' => '投诉管理', | 160 | 'PORTAL_COMPLAINT_INDEX' => '投诉管理', |
161 | 'PORTAL_COOPERATION_DEFAULT' => '首页内容管理', | 161 | 'PORTAL_COOPERATION_DEFAULT' => '首页内容管理', |
162 | 'PORTAL_COOPERATION_INDEX' => '合作企业列表', | 162 | 'PORTAL_COOPERATION_INDEX' => '合作企业列表', |
163 | + 'PORTAL_NEED_INDEX' => '需求管理', | ||
163 | 'PORTAL_NEED_USER' => '需求管理', | 164 | 'PORTAL_NEED_USER' => '需求管理', |
164 | 'PORTAL_NEW_INDEX' => '最新成交公布', | 165 | 'PORTAL_NEW_INDEX' => '最新成交公布', |
165 | 'PORTAL_PROCESS_INDEX' => '交易流程', | 166 | 'PORTAL_PROCESS_INDEX' => '交易流程', |
@@ -169,6 +170,7 @@ return array ( | @@ -169,6 +170,7 @@ return array ( | ||
169 | 'PORTAL_SHARE_CONTENT' => '分享内容管理', | 170 | 'PORTAL_SHARE_CONTENT' => '分享内容管理', |
170 | 'PORTAL_SHARE_DEFAULT' => '分享内容管理', | 171 | 'PORTAL_SHARE_DEFAULT' => '分享内容管理', |
171 | 'PORTAL_SHARE_PIC' => '图片管理', | 172 | 'PORTAL_SHARE_PIC' => '图片管理', |
173 | + 'PORTAL_STATISTICS_INDEX' => '统计', | ||
172 | 'PORTAL_USERNEED_DEFAULT' => '发布需求管理', | 174 | 'PORTAL_USERNEED_DEFAULT' => '发布需求管理', |
173 | 'PORTAL_USERNEED_INDEX' => '保证金内容管理', | 175 | 'PORTAL_USERNEED_INDEX' => '保证金内容管理', |
174 | 'USER_ADMINASSET_DELETE' => '删除文件', | 176 | 'USER_ADMINASSET_DELETE' => '删除文件', |
@@ -186,5 +188,6 @@ return array ( | @@ -186,5 +188,6 @@ return array ( | ||
186 | 'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交', | 188 | 'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交', |
187 | 'USER_ADMINUSERACTION_INDEX' => '用户操作管理', | 189 | 'USER_ADMINUSERACTION_INDEX' => '用户操作管理', |
188 | 'USER_ADMINUSERACTION_SYNC' => '同步用户操作', | 190 | 'USER_ADMINUSERACTION_SYNC' => '同步用户操作', |
191 | + 'USER_COMMON_COMMENT' => '评论管理', | ||
189 | 'USER_GETMONEY_INDEX' => '提现管理', | 192 | 'USER_GETMONEY_INDEX' => '提现管理', |
190 | ); | 193 | ); |
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | <div class="form-group"> | 30 | <div class="form-group"> |
31 | <label for="input-name"><span class="form-required">*</span>分类名称</label> | 31 | <label for="input-name"><span class="form-required">*</span>分类名称</label> |
32 | <div> | 32 | <div> |
33 | - <input type="text" class="form-control" id="input-name" name="name"> | 33 | + <input type="text" class="form-control" id="input-name" name="name" maxlength="10" placeholder="最多输入十个字" style="width:30%"> |
34 | </div> | 34 | </div> |
35 | </div> | 35 | </div> |
36 | 36 |
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | <label for="input-name"><span class="form-required">*</span>分类名称</label> | 32 | <label for="input-name"><span class="form-required">*</span>分类名称</label> |
33 | <div> | 33 | <div> |
34 | - <input type="text" class="form-control" id="input-name" name="name" value="{$name}"> | 34 | + <input type="text" class="form-control" id="input-name" name="name" value="{$name}" maxlength="10" placeholder="最多输入十个字" style="width:30%"> |
35 | </div> | 35 | </div> |
36 | </div> | 36 | </div> |
37 | <!--<div class="form-group">--> | 37 | <!--<div class="form-group">--> |
1 | +<include file="public@header"/> | ||
2 | +<style type="text/css"> | ||
3 | + .pic-list li { | ||
4 | + margin-bottom: 5px; | ||
5 | + } | ||
6 | + .dingwei{ | ||
7 | + position: relative; | ||
8 | + width: 20%; | ||
9 | + } | ||
10 | + .day_tian{ | ||
11 | + position: absolute; | ||
12 | + right: 4px; | ||
13 | + line-height: 33px; | ||
14 | + top: 0; | ||
15 | + } | ||
16 | +</style> | ||
17 | +</head> | ||
18 | +<body> | ||
19 | +<div class="wrap js-check-wrap"> | ||
20 | + <ul class="nav nav-tabs"> | ||
21 | + <!--<li><a href="{:url('Bank/index')}">银行列表</a></li>--> | ||
22 | + <!--<li class="active"><a href="{:url('Bank/add')}">添加银行</a></li>--> | ||
23 | + </ul> | ||
24 | + <form action="{:url('Need/change')}" method="post" class="form-horizontal js-ajax-form margin-top-20" enctype="multipart/form-data" > | ||
25 | + <div class="row"> | ||
26 | + <div class="col-md-9"> | ||
27 | + <table class="table table-bordered"> | ||
28 | + <input class="form-control" type="hidden" name="id" | ||
29 | + value="{$list['id']}"/> | ||
30 | + <tr> | ||
31 | + <th width="15%">用户名</th> | ||
32 | + <td><input class="form-control" type="text" name="user_name" readonly="readonly" | ||
33 | + value="{$list['user_name']}" /> | ||
34 | + | ||
35 | + </td> | ||
36 | + </tr> | ||
37 | + <tr> | ||
38 | + <th width="15%">地区</th> | ||
39 | + <td><input class="form-control" type="text" name="city" | ||
40 | + value="{$list['city']}" /> | ||
41 | + </td> | ||
42 | + </tr> | ||
43 | + <tr> | ||
44 | + <th width="15%">小区</th> | ||
45 | + <td><input class="form-control" type="text" name="quarters" value="{$list['quarters']}" /> | ||
46 | + </td> | ||
47 | + </tr> | ||
48 | + <tr> | ||
49 | + <th width="15%">具体房号</th> | ||
50 | + <td><input class="form-control" type="text" name="room" | ||
51 | + value="{$list['room']}" /> | ||
52 | + </td> | ||
53 | + </tr> | ||
54 | + <tr> | ||
55 | + <th width="15%">楼层</th> | ||
56 | + <td><input class="form-control" type="text" name="floor" | ||
57 | + value="{$list['floor']}" /> | ||
58 | + </td> | ||
59 | + </tr> | ||
60 | + <tr> | ||
61 | + <th width="15%">户型</th> | ||
62 | + <td><input class="form-control" type="text" name="house_type" | ||
63 | + value="{$list['house_type']}" /> | ||
64 | + </td> | ||
65 | + </tr> | ||
66 | + <tr> | ||
67 | + <th width="15%">装修</th> | ||
68 | + <td><input class="form-control" type="text" name="renovation" | ||
69 | + value="{$list['renovation']}" /> | ||
70 | + </td> | ||
71 | + </tr> | ||
72 | + <tr> | ||
73 | + | ||
74 | + <th width="15%">建筑面积</th> | ||
75 | + <td> | ||
76 | + <div class="dingwei"> | ||
77 | + <input class="form-control" type="text" name="area" | ||
78 | + value="{$list['area']}" style="width: 100%;" /> | ||
79 | + <span class="day_tian">平方米</span> | ||
80 | + </div> | ||
81 | + </td> | ||
82 | + | ||
83 | + </tr> | ||
84 | + <tr> | ||
85 | + <th width="15%">是否首套房</th> | ||
86 | + <td> | ||
87 | + <select style="border: 1px solid #dce4ec; width: 20%;"> | ||
88 | + <option name="is_first" value="1" <eq name="list.is_first" value="1">selected</eq>>首套房</option> | ||
89 | + <option name="is_first" value="2" <eq name="list.is_first" value="2">selected</eq>>两套及以上</option> | ||
90 | + </select> | ||
91 | + </td> | ||
92 | + </tr> | ||
93 | + | ||
94 | + | ||
95 | + <tr> | ||
96 | + <th width="15%">贷款</th> | ||
97 | + <td> | ||
98 | + <select style="border: 1px solid #dce4ec; width: 20%;"> | ||
99 | + <option name="loan" value="1" <eq name="list.loan" value="1">selected</eq>>贷款</option> | ||
100 | + <option name="loan" value="2" <eq name="list.loan" value="2">selected</eq>>全款</option> | ||
101 | + </select> | ||
102 | + </td> | ||
103 | + </tr> | ||
104 | + <tr> | ||
105 | + <th width="15%">是否是包干价</th> | ||
106 | + <td> | ||
107 | + <select style="border: 1px solid #dce4ec; width: 20%;"> | ||
108 | + <option name="contract" value="1" <eq name="list.contract" value="1">selected</eq>>是</option> | ||
109 | + <option name="contract" value="2" <eq name="list.contract" value="2">selected</eq>>否</option> | ||
110 | + </select> | ||
111 | + </td> | ||
112 | + </tr> | ||
113 | + <tr> | ||
114 | + <th width="15%">报价时间</th> | ||
115 | + <td> | ||
116 | + <div class="dingwei"> | ||
117 | + <input class="form-control" type="text" name="quotation_time" | ||
118 | + value="{$list['quotation_time']}" style="width: 100%;"/> | ||
119 | + <span class="day_tian">天</span> | ||
120 | + </div> | ||
121 | + </td> | ||
122 | + </tr> | ||
123 | + <tr> | ||
124 | + <th width="15%">联系人姓名</th> | ||
125 | + <td><input class="form-control" type="text" name="name" | ||
126 | + value="{$list['name']}" /> | ||
127 | + </td> | ||
128 | + </tr> | ||
129 | + <tr> | ||
130 | + <th width="15%">联系人手机号</th> | ||
131 | + <td><input class="form-control" type="text" name="tel" value="{$list['tel']}" /> | ||
132 | + </td> | ||
133 | + </tr> | ||
134 | + <tr> | ||
135 | + <th width="15%">备注</th> | ||
136 | + <td><input class="form-control" type="text" name="else" value="{$list['else']}" /> | ||
137 | + </td> | ||
138 | + </tr> | ||
139 | + <tr> | ||
140 | + <th width="15%">报价人数</th> | ||
141 | + <td> | ||
142 | + <div class="dingwei"> | ||
143 | + <input class="form-control" type="text" name="people" value="{$list['people']}" /> | ||
144 | + <span class="day_tian">人</span> | ||
145 | + </div> | ||
146 | + </td> | ||
147 | + </tr> | ||
148 | + <tr> | ||
149 | + <th width="15%">创建时间</th> | ||
150 | + <td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" /> | ||
151 | + </td> | ||
152 | + </tr> | ||
153 | + <tr> | ||
154 | + <th width="18%">更新时间</th> | ||
155 | + <td><input class="form-control" type="text" name="update_time" value="{$list['update_time']|date='Y-m-d H:i:s',###}" /> | ||
156 | + </td> | ||
157 | + </tr> | ||
158 | + <tr> | ||
159 | + <th width="18%">支付保证金时间</th> | ||
160 | + <td><input class="form-control" type="text" name="pay_time" value="{$list['pay_time']|date='Y-m-d H:i:s',###}" /> | ||
161 | + </td> | ||
162 | + </tr> | ||
163 | + <tr> | ||
164 | + <th width="18%">待选择开始时间</th> | ||
165 | + <td><input class="form-control" type="text" name="choose_time" value="{$list['choose_time']|date='Y-m-d H:i:s',###}" /> | ||
166 | + </td> | ||
167 | + </tr> | ||
168 | + <tr> | ||
169 | + <th>状态</th> | ||
170 | + <td> | ||
171 | + <eq name="list.status" value="1">未交保证金</eq> | ||
172 | + <eq name="list.status" value="2">待发布</eq> | ||
173 | + <eq name="list.status" value="3">待报价</eq> | ||
174 | + <eq name="list.status" value="4">报价人数不足</eq> | ||
175 | + <eq name="list.status" value="5">待选择中介</eq> | ||
176 | + <eq name="list.status" value="6">未选择中介</eq> | ||
177 | + <eq name="list.status" value="7">待中介确认</eq> | ||
178 | + <eq name="list.status" value="10">待评价</eq> | ||
179 | + <eq name="list.status" value="11">已评价</eq> | ||
180 | + </td> | ||
181 | + </tr> | ||
182 | + </table> | ||
183 | + <div class="form-group"> | ||
184 | + <div class="col-sm-offset-2 col-sm-10"> | ||
185 | + <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button> | ||
186 | + <a class="btn btn-default" href="{:url('Need/index')}">{:lang('BACK')}</a> | ||
187 | + </div> | ||
188 | + </div> | ||
189 | + </div> | ||
190 | + </div> | ||
191 | + </form> | ||
192 | +</div> | ||
193 | +<script type="text/javascript" src="__STATIC__/js/admin.js"></script> | ||
194 | +<script type="text/javascript"> | ||
195 | + //编辑器路径定义 | ||
196 | + var editorURL = GV.WEB_ROOT; | ||
197 | +</script> | ||
198 | +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script> | ||
199 | +<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script> | ||
200 | +<script type="text/javascript"> | ||
201 | + $(function () { | ||
202 | + | ||
203 | + editorcontent = new baidu.editor.ui.Editor(); | ||
204 | + editorcontent.render('content'); | ||
205 | + try { | ||
206 | + editorcontent.sync(); | ||
207 | + } catch (err) { | ||
208 | + } | ||
209 | + | ||
210 | + $('.btn-cancel-thumbnail').click(function () { | ||
211 | + $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
212 | + $('#thumbnail').val(''); | ||
213 | + }); | ||
214 | + | ||
215 | + }); | ||
216 | + | ||
217 | +</script> | ||
218 | +</body> | ||
219 | +</html> |
@@ -3,10 +3,10 @@ | @@ -3,10 +3,10 @@ | ||
3 | <body> | 3 | <body> |
4 | <div class="wrap js-check-wrap"> | 4 | <div class="wrap js-check-wrap"> |
5 | <ul class="nav nav-tabs"> | 5 | <ul class="nav nav-tabs"> |
6 | - <li class="active"><a href="javascript:;">保证金说明列表</a></li> | ||
7 | - <li><a href="{:url('UserNeed/add')}">添加保证金说明</a></li> | 6 | + <li class="active"><a href=" ">保证金说明列表</a></li> |
7 | + <li><a href="{:url('Need/add')}">添加保证金说明</a></li> | ||
8 | </ul> | 8 | </ul> |
9 | - <form class="well form-inline margin-top-20" method="post" action="{:url('UserNeed/index')}"> | 9 | + <form class="well form-inline margin-top-20" method="post" action="{:url('Need/index')}"> |
10 | <!--分类:--> | 10 | <!--分类:--> |
11 | <!--<select class="form-control" name="category" style="width: 140px;">--> | 11 | <!--<select class="form-control" name="category" style="width: 140px;">--> |
12 | <!--<option value='0'>全部</option>--> | 12 | <!--<option value='0'>全部</option>--> |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | <input type="text" class="form-control" name="keyword" style="width: 200px;" | 23 | <input type="text" class="form-control" name="keyword" style="width: 200px;" |
24 | value="{$keyword|default=''}" placeholder="请输入说明标题"> | 24 | value="{$keyword|default=''}" placeholder="请输入说明标题"> |
25 | <input type="submit" class="btn btn-primary" value="搜索"/> | 25 | <input type="submit" class="btn btn-primary" value="搜索"/> |
26 | - <a class="btn btn-danger" href="{:url('UserNeed/index')}">清空</a> | 26 | + <a class="btn btn-danger" href="{:url('Need/index')}">清空</a> |
27 | </form> | 27 | </form> |
28 | <form class="js-ajax-form" action="" method="post"> | 28 | <form class="js-ajax-form" action="" method="post"> |
29 | <div class="table-actions"> | 29 | <div class="table-actions"> |
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | <button class="btn btn-primary btn-sm js-articles-copy" type="button">批量复制</button> | 57 | <button class="btn btn-primary btn-sm js-articles-copy" type="button">批量复制</button> |
58 | --> | 58 | --> |
59 | <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" | 59 | <button class="btn btn-danger btn-sm js-ajax-submit" type="submit" |
60 | - data-action="{:url('UserNeed/del')}" data-subcheck="true" data-msg="您确定删除吗?"> | 60 | + data-action="{:url('Need/del')}" data-subcheck="true" data-msg="您确定删除吗?"> |
61 | {:lang('DELETE')} | 61 | {:lang('DELETE')} |
62 | </button> | 62 | </button> |
63 | </div> | 63 | </div> |
@@ -73,13 +73,17 @@ | @@ -73,13 +73,17 @@ | ||
73 | <th width="50">{:lang('SORT')}</th> | 73 | <th width="50">{:lang('SORT')}</th> |
74 | </notempty> | 74 | </notempty> |
75 | <th width="50">ID</th> | 75 | <th width="50">ID</th> |
76 | - <th width="10%">标题</th> | ||
77 | - <th>内容</th> | ||
78 | - <th>排序</th> | ||
79 | - <th width="130">更新时间</th> | ||
80 | - <th width="130">发布时间</th> | ||
81 | - <!--<th width="70">状态</th>--> | ||
82 | - <th width="90">操作</th> | 76 | + <th>用户名</th> |
77 | + <th>手机号</th> | ||
78 | + <th>城市</th> | ||
79 | + <th>小区</th> | ||
80 | + <th>联系人姓名</th> | ||
81 | + <th>联系人电话</th> | ||
82 | + <th>报价人数</th> | ||
83 | + <th>保证金金额</th> | ||
84 | + <th>状态</th> | ||
85 | + <th>提交时间</th> | ||
86 | + <th>操作</th> | ||
83 | </tr> | 87 | </tr> |
84 | </thead> | 88 | </thead> |
85 | <foreach name="list" item="list"> | 89 | <foreach name="list" item="list"> |
@@ -90,17 +94,24 @@ | @@ -90,17 +94,24 @@ | ||
90 | </td> | 94 | </td> |
91 | 95 | ||
92 | <td>{$list.id}</td> | 96 | <td>{$list.id}</td> |
97 | + <td>{$list.user_name}</td> | ||
98 | + <td>{$list.user_tel}</td> | ||
99 | + <td>{$list.city}</td> | ||
100 | + <td>{$list.quarters}</td> | ||
101 | + <td>{$list.name}</td> | ||
102 | + <td>{$list.tel}</td> | ||
103 | + <td>{$list.people}</td> | ||
104 | + <td>{$list.pay_money}</td> | ||
93 | <td> | 105 | <td> |
94 | - {$list.title} | ||
95 | - </td> | ||
96 | - <td> | ||
97 | - {$list.content} | ||
98 | - </td> | ||
99 | - <td> | ||
100 | - {$list.score} | ||
101 | - </td> | ||
102 | - <td> | ||
103 | - {:date('Y-m-d H:i',$list['update_time'])} | 106 | + <eq name="list.status" value="1">未交保证金</eq> |
107 | + <eq name="list.status" value="2">待发布</eq> | ||
108 | + <eq name="list.status" value="3">待报价</eq> | ||
109 | + <eq name="list.status" value="4">报价人数不足</eq> | ||
110 | + <eq name="list.status" value="5">待选择中介</eq> | ||
111 | + <eq name="list.status" value="6">未选择中介</eq> | ||
112 | + <eq name="list.status" value="7">待中介确认</eq> | ||
113 | + <eq name="list.status" value="10">待评价</eq> | ||
114 | + <eq name="list.status" value="11">已评价</eq> | ||
104 | </td> | 115 | </td> |
105 | <td> | 116 | <td> |
106 | {:date('Y-m-d H:i',$list['create_time'])} | 117 | {:date('Y-m-d H:i',$list['create_time'])} |
@@ -113,8 +124,8 @@ | @@ -113,8 +124,8 @@ | ||
113 | </td> | 124 | </td> |
114 | 125 | ||
115 | <td> | 126 | <td> |
116 | - <a href="{:url('UserNeed/add',array('id'=>$list['id']))}">{:lang('EDIT')}</a> | ||
117 | - <a href="{:url('UserNeed/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a> | 127 | + <a href="{:url('Need/detail',array('id'=>$list['id']))}">查看详情</a> |
128 | + <a href="{:url('Need/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a> | ||
118 | </td> | 129 | </td> |
119 | </tr> | 130 | </tr> |
120 | </foreach> | 131 | </foreach> |
1 | +<include file="public@header"/> | ||
2 | +<meta charset="utf-8"> | ||
3 | +<!--<link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">--> | ||
4 | +<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
5 | +<style> | ||
6 | + /* css 代码 */ | ||
7 | +</style> | ||
8 | +<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script> | ||
9 | +<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script> | ||
10 | +<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script> | ||
11 | +</head> | ||
12 | +<body> | ||
13 | +<div class="wrap js-check-wrap"> | ||
14 | + <form class="well form-inline margin-top-20" method="post" action="{:url('New/index')}"> | ||
15 | + <!--分类:--> | ||
16 | + <!--<select class="form-control" name="category" style="width: 140px;">--> | ||
17 | + <!--<option value='0'>全部</option>--> | ||
18 | + <!--{$category_tree|default=''}--> | ||
19 | + <!--</select> --> | ||
20 | + 时间: | ||
21 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
22 | + value="{$start_time|default=''}" | ||
23 | + style="width: 140px;" autocomplete="off">- | ||
24 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
25 | + value="{$end_time|default=''}" | ||
26 | + style="width: 140px;" autocomplete="off"> | ||
27 | + 关键字: | ||
28 | + <input type="text" class="form-control" name="keyword" style="width: 200px;" | ||
29 | + value="{$keyword|default=''}" placeholder="请输入用户名"> | ||
30 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
31 | + <a class="btn btn-danger" href="{:url('New/index')}">清空</a> | ||
32 | + </form> | ||
33 | + | ||
34 | +</div> | ||
35 | +<div id="container" style="min-width:400px;height:400px"></div> | ||
36 | +<div id="container1" style="min-width:400px;height:400px"></div> | ||
37 | +<script src="__STATIC__/js/admin.js"></script> | ||
38 | +<script> | ||
39 | + var chart = Highcharts.chart('container', { | ||
40 | + title: { | ||
41 | + text: '混合图表' | ||
42 | + }, | ||
43 | + xAxis: { | ||
44 | + categories: ['苹果', ' 橙', '梨', '香蕉', '李子'] | ||
45 | + }, | ||
46 | + plotOptions: { | ||
47 | + series: { | ||
48 | + stacking: 'normal' | ||
49 | + } | ||
50 | + }, | ||
51 | + labels: { | ||
52 | + items: [{ | ||
53 | + html: '水果消耗', | ||
54 | + style: { | ||
55 | + left: '100px', | ||
56 | + top: '18px', | ||
57 | + color: (Highcharts.theme && Highcharts.theme.textColor) || 'black' | ||
58 | + } | ||
59 | + }] | ||
60 | + }, | ||
61 | + series: [{ | ||
62 | + type: 'column', | ||
63 | + name: '小张', | ||
64 | + data: [3, 2, 1, 3, 4] | ||
65 | + }, { | ||
66 | + type: 'column', | ||
67 | + name: '小潘', | ||
68 | + data: [2, 3, 5, 7, 6] | ||
69 | + }, { | ||
70 | + type: 'column', | ||
71 | + name: '小王', | ||
72 | + data: [4, 3, 3, 9, 0] | ||
73 | + }, { | ||
74 | + type: 'spline', | ||
75 | + name: '平均值', | ||
76 | + data: [3, 2.67, 3, 6.33, 3.33], | ||
77 | + marker: { | ||
78 | + lineWidth: 2, | ||
79 | + lineColor: Highcharts.getOptions().colors[3], | ||
80 | + fillColor: 'white' | ||
81 | + } | ||
82 | + }, { | ||
83 | + type: 'pie', | ||
84 | + name: '总的消耗', | ||
85 | + data: [{ | ||
86 | + name: '小张', | ||
87 | + y: 13, | ||
88 | + color: Highcharts.getOptions().colors[0] // Jane's color | ||
89 | + }, { | ||
90 | + name: '小潘', | ||
91 | + y: 23, | ||
92 | + color: Highcharts.getOptions().colors[1] // John's color | ||
93 | + }, { | ||
94 | + name: '小王', | ||
95 | + y: 19, | ||
96 | + color: Highcharts.getOptions().colors[2] // Joe's color | ||
97 | + }], | ||
98 | + center: [100, 80], | ||
99 | + size: 100, | ||
100 | + showInLegend: false, | ||
101 | + dataLabels: { | ||
102 | + enabled: false | ||
103 | + } | ||
104 | + }] | ||
105 | + }); | ||
106 | + var chart = Highcharts.chart('container1', { | ||
107 | + title: { | ||
108 | + text: '混合图表' | ||
109 | + }, | ||
110 | + xAxis: { | ||
111 | + categories: ['苹果', ' 橙', '梨', '香蕉', '李子'] | ||
112 | + }, | ||
113 | + plotOptions: { | ||
114 | + series: { | ||
115 | + stacking: 'normal' | ||
116 | + } | ||
117 | + }, | ||
118 | + labels: { | ||
119 | + items: [{ | ||
120 | + html: '水果消耗', | ||
121 | + style: { | ||
122 | + left: '100px', | ||
123 | + top: '18px', | ||
124 | + color: (Highcharts.theme && Highcharts.theme.textColor) || 'black' | ||
125 | + } | ||
126 | + }] | ||
127 | + }, | ||
128 | + series: [{ | ||
129 | + type: 'column', | ||
130 | + name: '小张', | ||
131 | + data: [3, 2, 1, 3, 4] | ||
132 | + }, { | ||
133 | + type: 'column', | ||
134 | + name: '小潘', | ||
135 | + data: [2, 3, 5, 7, 6] | ||
136 | + }, { | ||
137 | + type: 'column', | ||
138 | + name: '小王', | ||
139 | + data: [4, 3, 3, 9, 0] | ||
140 | + }, { | ||
141 | + type: 'spline', | ||
142 | + name: '平均值', | ||
143 | + data: [3, 2.67, 3, 6.33, 3.33], | ||
144 | + marker: { | ||
145 | + lineWidth: 2, | ||
146 | + lineColor: Highcharts.getOptions().colors[3], | ||
147 | + fillColor: 'white' | ||
148 | + } | ||
149 | + }, { | ||
150 | + type: 'pie', | ||
151 | + name: '总的消耗', | ||
152 | + data: [{ | ||
153 | + name: '小张', | ||
154 | + y: 13, | ||
155 | + color: Highcharts.getOptions().colors[0] // Jane's color | ||
156 | + }, { | ||
157 | + name: '小潘', | ||
158 | + y: 23, | ||
159 | + color: Highcharts.getOptions().colors[1] // John's color | ||
160 | + }, { | ||
161 | + name: '小王', | ||
162 | + y: 19, | ||
163 | + color: Highcharts.getOptions().colors[2] // Joe's color | ||
164 | + }], | ||
165 | + center: [100, 80], | ||
166 | + size: 100, | ||
167 | + showInLegend: false, | ||
168 | + dataLabels: { | ||
169 | + enabled: false | ||
170 | + } | ||
171 | + }] | ||
172 | + }); | ||
173 | +</script> | ||
174 | +</body> | ||
175 | +</html> |
@@ -144,7 +144,7 @@ | @@ -144,7 +144,7 @@ | ||
144 | <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | 144 | <script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> |
145 | <script type=""> | 145 | <script type=""> |
146 | $('.recovery').click(function () { | 146 | $('.recovery').click(function () { |
147 | - var id = $('.recovery').attr('index'); | 147 | + var id = $(this).attr('index'); |
148 | $('.popup').css('display','block'); | 148 | $('.popup').css('display','block'); |
149 | // 删除 | 149 | // 删除 |
150 | $('.queding').click(function () { | 150 | $('.queding').click(function () { |
@@ -83,6 +83,7 @@ | @@ -83,6 +83,7 @@ | ||
83 | <th>余额</th> | 83 | <th>余额</th> |
84 | <th>推荐人</th> | 84 | <th>推荐人</th> |
85 | <th>推荐人id</th> | 85 | <th>推荐人id</th> |
86 | + <th>信誉分</th> | ||
86 | <th>注册时间</th> | 87 | <th>注册时间</th> |
87 | <th>状态</th> | 88 | <th>状态</th> |
88 | <th align="center" style="cursor: pointer; text-align: center;">查看</th> | 89 | <th align="center" style="cursor: pointer; text-align: center;">查看</th> |
@@ -108,7 +109,7 @@ | @@ -108,7 +109,7 @@ | ||
108 | </empty> | 109 | </empty> |
109 | {$vo.referee_id} | 110 | {$vo.referee_id} |
110 | </td> | 111 | </td> |
111 | - | 112 | + <td>{$vo.reputation}</td> |
112 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | 113 | <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> |
113 | <td> | 114 | <td> |
114 | <eq name="vo.status" value="1"> | 115 | <eq name="vo.status" value="1"> |
@@ -126,8 +127,8 @@ | @@ -126,8 +127,8 @@ | ||
126 | <span class="money" style="color: #9B399C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span> | 127 | <span class="money" style="color: #9B399C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">收支明细</span> |
127 | <span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span> | 128 | <span class="getMoneyDetail" style="color: #18BC9C; text-decoration:underline; cursor: pointer; " index="{$vo.id}">提现申请</span> |
128 | <span class="referee" style="color: #BFB61D; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span> | 129 | <span class="referee" style="color: #BFB61D; text-decoration:underline; cursor: pointer; " index="{$vo.id}">邀请人</span> |
129 | - <span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看评论</span> | ||
130 | - <span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看信誉分</span> | 130 | + <!--<span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看评论</span>--> |
131 | + <span class="reward" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看信誉分</span> | ||
131 | </td> | 132 | </td> |
132 | <td> | 133 | <td> |
133 | <eq name="vo.status" value="1"> | 134 | <eq name="vo.status" value="1"> |
@@ -226,6 +227,14 @@ | @@ -226,6 +227,14 @@ | ||
226 | var url = url3[0]+'/id/'+url2+'.html'; | 227 | var url = url3[0]+'/id/'+url2+'.html'; |
227 | window.location.href = url | 228 | window.location.href = url |
228 | }) | 229 | }) |
230 | + // 查看信誉分 | ||
231 | + $('.reward').click(function () { | ||
232 | + var url1 = "{:url('user/AdminOauth/reward')}"; | ||
233 | + var url2 = $(this).attr('index'); | ||
234 | + var url3 = url1.split('.'); | ||
235 | + var url = url3[0]+'/id/'+url2+'.html'; | ||
236 | + window.location.href = url | ||
237 | + }) | ||
229 | </script> | 238 | </script> |
230 | </body> | 239 | </body> |
231 | </html> | 240 | </html> |
1 | +<include file="public@header"/> | ||
2 | +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> | ||
3 | +<style> | ||
4 | + .popup{ | ||
5 | + width: 250px; | ||
6 | + height: 100px; | ||
7 | + background-color: rgba(0,0,0,0.5); | ||
8 | + position: fixed; | ||
9 | + top: 50%; | ||
10 | + transform: translateY(-50px); | ||
11 | + left: 0; | ||
12 | + right: 0; | ||
13 | + margin: 0 auto; | ||
14 | + border-radius: 5px; | ||
15 | + color: #ffffff; | ||
16 | + } | ||
17 | + .popup p{ | ||
18 | + text-align: center; | ||
19 | + margin-top: 20px; | ||
20 | + } | ||
21 | + .popup span{ | ||
22 | + text-align: center; | ||
23 | + line-height: 30px; | ||
24 | + cursor: pointer; | ||
25 | + } | ||
26 | + .popup .queding{ | ||
27 | + display: inline-block; | ||
28 | + width: 80px; | ||
29 | + height: 30px; | ||
30 | + background-color: #1E9FFF; | ||
31 | + border-radius: 3px; | ||
32 | + } | ||
33 | + .popup span:hover{ | ||
34 | + opacity: 0.8; | ||
35 | + } | ||
36 | + .popup .quxiao{ | ||
37 | + display: inline-block; | ||
38 | + width: 80px; | ||
39 | + height: 30px; | ||
40 | + ckground-color: #9cb945 ; | ||
41 | + color: #333333; | ||
42 | + border-radius: 3px; | ||
43 | + background-color:#fff; | ||
44 | + margin-left: 35px; | ||
45 | + } | ||
46 | + .btn_list{ | ||
47 | + margin: 0 auto; | ||
48 | + width: 200px; | ||
49 | + } | ||
50 | +</style> | ||
51 | +</head> | ||
52 | +<body> | ||
53 | +<div class="wrap"> | ||
54 | + <ul class="nav nav-tabs"> | ||
55 | + <li class="active"><a>{:lang('USER_OAUTHADMIN_INDEX')}</a></li> | ||
56 | + </ul> | ||
57 | + | ||
58 | + <form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/reward')}"> | ||
59 | + <input type="hidden" name="id" value="{$user.id}"> | ||
60 | + 时间: | ||
61 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
62 | + value="{$start_time|default=''}" | ||
63 | + style="width: 140px;" autocomplete="off"> - | ||
64 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
65 | + value="{$end_time|default=''}" | ||
66 | + style="width: 140px;" autocomplete="off"> | ||
67 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
68 | + <a class="btn btn-danger" href="{:url('AdminOauth/reward',array('id'=>$user.id))}">清空</a> | ||
69 | + </form> | ||
70 | + <div class="well form-inline margin-top-20"> | ||
71 | + <div >用户信息</div> | ||
72 | + <div> | ||
73 | + <span>用户id:{$user.id}</span> | ||
74 | + <span>用户名:{$user.name}</span> | ||
75 | + <span>手机号:{$user.tel}</span> | ||
76 | + <span class="btn btn-default" onclick="window.history.back(-1)" >返回</span> | ||
77 | + </div> | ||
78 | + | ||
79 | + </div> | ||
80 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
81 | + <table class="table table-hover table-bordered"> | ||
82 | + <thead> | ||
83 | + <tr> | ||
84 | + <th>ID</th> | ||
85 | + | ||
86 | + <!--<th>推荐人</th>--> | ||
87 | + <!--<th>推荐人id</th>--> | ||
88 | + <th>来源</th> | ||
89 | + <th>信誉奖励分</th> | ||
90 | + <th>奖励时间</th> | ||
91 | + <th>状态</th> | ||
92 | + <th align="center">操作</th> | ||
93 | + </tr> | ||
94 | + </thead> | ||
95 | + <tbody> | ||
96 | + <foreach name="lists" item="vo"> | ||
97 | + <tr> | ||
98 | + <td>{$vo.id}</td> | ||
99 | + <td> | ||
100 | + <eq name="vo.type" value="1">注册获得</eq> | ||
101 | + <eq name="vo.type" value="2">推荐获得</eq> | ||
102 | + <eq name="vo.type" value="3">签到获得</eq> | ||
103 | + <eq name="vo.type" value="4">成交获得</eq> | ||
104 | + <!--<eq name="vo.type" value="5">支付诚意金后返回金额</eq>--> | ||
105 | + </td> | ||
106 | + <td>{$vo.number}</td> | ||
107 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
108 | + <td> | ||
109 | + <eq name="vo.status" value="1"> | ||
110 | + 正常 | ||
111 | + </eq> | ||
112 | + <eq name="vo.status" value="9"> | ||
113 | + 已删除 | ||
114 | + </eq> | ||
115 | + </td> | ||
116 | + <td> | ||
117 | + <span class="recovery" style="color: #18BC9C; text-decoration:underline; cursor: pointer;" index="{$vo.id}">删除</span> | ||
118 | + </td> | ||
119 | + </tr> | ||
120 | + </foreach> | ||
121 | + </tbody> | ||
122 | + </table> | ||
123 | + | ||
124 | + </form> | ||
125 | + <div class="popup" style="display: none;"> | ||
126 | + <p>确认删除该记录</p> | ||
127 | + <div class="btn_list"> | ||
128 | + <span class="queding">确认</span> | ||
129 | + <span class="quxiao">取消</span> | ||
130 | + </div> | ||
131 | + </div> | ||
132 | + | ||
133 | +</div> | ||
134 | +<script src="__STATIC__/js/admin.js"></script> | ||
135 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
136 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
137 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
138 | +<script type=""> | ||
139 | + $('.recovery').click(function () { | ||
140 | + var id = $(this).attr('index'); | ||
141 | + $('.popup').css('display','block'); | ||
142 | + // 删除 | ||
143 | + $('.queding').click(function () { | ||
144 | + $.ajax({ | ||
145 | + type:"POST", | ||
146 | + url:"{:url('AdminOauth/delReward')}", | ||
147 | + data:{ | ||
148 | + "id":id, | ||
149 | + }, | ||
150 | + success:function (data) { | ||
151 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
152 | + $('.popup').css('display','none'); | ||
153 | + }, | ||
154 | + error:function () { | ||
155 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
156 | + $('.popup').css('display','none'); | ||
157 | + } | ||
158 | + }) | ||
159 | + }) | ||
160 | + }) | ||
161 | + $('.quxiao').click(function () { | ||
162 | + $('.popup').css('display','none'); | ||
163 | + }) | ||
164 | + | ||
165 | +</script> | ||
166 | +</body> | ||
167 | +</html> |
1 | +<include file="public@header"/> | ||
2 | +<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css"> | ||
3 | +<style> | ||
4 | + .popup,.popdown{ | ||
5 | + width: 250px; | ||
6 | + height: 100px; | ||
7 | + background-color: rgba(0,0,0,0.5); | ||
8 | + position: fixed; | ||
9 | + top: 50%; | ||
10 | + transform: translateY(-50px); | ||
11 | + left: 0; | ||
12 | + right: 0; | ||
13 | + margin: 0 auto; | ||
14 | + border-radius: 5px; | ||
15 | + color: #ffffff; | ||
16 | + } | ||
17 | + .popup p,.popdown p{ | ||
18 | + text-align: center; | ||
19 | + margin-top: 20px; | ||
20 | + } | ||
21 | + .popup span,.popdown span{ | ||
22 | + text-align: center; | ||
23 | + line-height: 30px; | ||
24 | + cursor: pointer; | ||
25 | + } | ||
26 | + .popup .queding,.popdown .sure{ | ||
27 | + display: inline-block; | ||
28 | + width: 80px; | ||
29 | + height: 30px; | ||
30 | + background-color: #1E9FFF; | ||
31 | + border-radius: 3px; | ||
32 | + } | ||
33 | + .popup span:hover,.popdown span:hover{ | ||
34 | + opacity: 0.8; | ||
35 | + } | ||
36 | + .popup .quxiao,.popdown .re{ | ||
37 | + display: inline-block; | ||
38 | + width: 80px; | ||
39 | + height: 30px; | ||
40 | + ckground-color: #9cb945 ; | ||
41 | + color: #333333; | ||
42 | + border-radius: 3px; | ||
43 | + background-color:#fff; | ||
44 | + margin-left: 35px; | ||
45 | + } | ||
46 | + .btn_list{ | ||
47 | + margin: 0 auto; | ||
48 | + width: 200px; | ||
49 | + } | ||
50 | +</style> | ||
51 | +</head> | ||
52 | +<body> | ||
53 | +<div class="wrap"> | ||
54 | + <ul class="nav nav-tabs"> | ||
55 | + <li class="active"><a>评论管理</a></li> | ||
56 | + </ul> | ||
57 | + <form class="well form-inline margin-top-20" method="post" action="{:url('Common/comment')}"> | ||
58 | + 时间: | ||
59 | + <input type="text" class="form-control js-bootstrap-datetime" name="start_time" | ||
60 | + value="{$start_time|default=''}" | ||
61 | + style="width: 140px;" autocomplete="off"> - | ||
62 | + <input type="text" class="form-control js-bootstrap-datetime" name="end_time" | ||
63 | + value="{$end_time|default=''}" | ||
64 | + style="width: 140px;" autocomplete="off"> | ||
65 | + 用户名: | ||
66 | + <input type="text" class="form-control" name="name" style="width: 200px;" | ||
67 | + value="{$name|default=''}" placeholder="请输入姓名"> | ||
68 | + 手机号: | ||
69 | + <input type="text" class="form-control" name="tel" style="width: 200px;" | ||
70 | + value="{$tel|default=''}" placeholder="请输入手机号"> | ||
71 | + <input type="submit" class="btn btn-primary" value="搜索"/> | ||
72 | + <a class="btn btn-danger" href="{:url('Common/comment')}">清空</a> | ||
73 | + <!--<span class="btn btn-default" onclick="window.history.back(-1)" >返回</span>--> | ||
74 | + </form> | ||
75 | + | ||
76 | + | ||
77 | + <form method="post" class="js-ajax-form margin-top-20"> | ||
78 | + <table class="table table-hover table-bordered"> | ||
79 | + <thead> | ||
80 | + <tr> | ||
81 | + <th>ID</th> | ||
82 | + <th>用户名</th> | ||
83 | + <th>用户手机号</th> | ||
84 | + <th>中介名</th> | ||
85 | + <th>中介手机号</th> | ||
86 | + <th>评论内容</th> | ||
87 | + <th>是否已修改</th> | ||
88 | + <th>评论状态</th> | ||
89 | + <th>评论时间</th> | ||
90 | + <th>操作</th> | ||
91 | + </tr> | ||
92 | + </thead> | ||
93 | + <tbody> | ||
94 | + <foreach name="lists" item="vo"> | ||
95 | + <tr> | ||
96 | + <td>{$vo.id}</td> | ||
97 | + <td>{$vo.user_name}</td> | ||
98 | + <td>{$vo.user_tel}</td> | ||
99 | + <td>{$vo.agency_name}</td> | ||
100 | + <td>{$vo.agency_tel}</td> | ||
101 | + <td>{$vo.content}</td> | ||
102 | + <td> | ||
103 | + <eq name="vo.is_comment" value="0">未修改</eq> | ||
104 | + <eq name="vo.is_comment" value="1">已修改</eq> | ||
105 | + </td> | ||
106 | + <td> | ||
107 | + <eq name="vo.status" value="1">正常</eq> | ||
108 | + </td> | ||
109 | + <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td> | ||
110 | + <td><span class="del" style="color: #ff0000; text-decoration:underline; cursor: pointer; " index="{$vo.id}">删除</span></td> | ||
111 | + </tr> | ||
112 | + </foreach> | ||
113 | + </tbody> | ||
114 | + </table> | ||
115 | + | ||
116 | + </form> | ||
117 | + <div class="popup" style="display: none;"> | ||
118 | + <p>确认删除</p> | ||
119 | + <div class="btn_list"> | ||
120 | + <span class="queding">确认</span> | ||
121 | + <span class="quxiao">取消</span> | ||
122 | + </div> | ||
123 | + </div> | ||
124 | + | ||
125 | + | ||
126 | +</div> | ||
127 | +<script src="__STATIC__/js/admin.js"></script> | ||
128 | +<script src="__STATIC__/js/layer/layer.js"></script> | ||
129 | +<script type="text/javascript" src="__STATIC__/js/zepto.min.js"></script> | ||
130 | +<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script> | ||
131 | +<script type=""> | ||
132 | + $('.del').click(function () { | ||
133 | + var id = $(this).attr('index'); | ||
134 | + $('.popup').css('display','block'); | ||
135 | + // 删除 | ||
136 | + $('.queding').click(function () { | ||
137 | + $.ajax({ | ||
138 | + type:"POST", | ||
139 | + url:"{:url('Common/agencyDel')}", | ||
140 | + data:{ | ||
141 | + "id":id, | ||
142 | + }, | ||
143 | + success:function (data) { | ||
144 | + new TipBox({type:'success',str:'操作成功',hasBtn:true}); | ||
145 | + $('.popup').css('display','none'); | ||
146 | + }, | ||
147 | + error:function () { | ||
148 | + new TipBox({type:'error',str:'对不起,出错了!',hasBtn:true}); | ||
149 | + $('.popup').css('display','none'); | ||
150 | + } | ||
151 | + }) | ||
152 | + }) | ||
153 | + }) | ||
154 | + $('.quxiao').click(function () { | ||
155 | + $('.popup').css('display','none'); | ||
156 | + }) | ||
157 | + | ||
158 | + | ||
159 | +</script> | ||
160 | +</body> | ||
161 | +</html> |
-
请 注册 或 登录 后发表评论