作者 郭鑫

1111

... ... @@ -41,28 +41,47 @@ class ArticleController extends CommonController
*/
public function index(Request $request)
{
$size = 2;
$page = $request->param('page');
$where_cate['status'] = 1;
$catrgory = Db::name('PortalCategory')->where($where_cate)->field('id,name')->select()->toArray();
$final['cate'] = $catrgory;
$where_connect['j.status'] = 1;
$where_connect['p.post_status'] = 1;
$where_connect['j.category_id'] = $_POST['articleType'];
$article_list = Db::name('PortalCategoryPost')->alias('j')
->where($where_connect)
->field("j.post_id,j.category_id , c.name , p.post_title")
->field("j.post_id,j.category_id , c.name , p.post_title,p.create_time")
->join("PortalCategory c","c.id = j.category_id")
->join("PortalPost p","p.id = j.post_id")
->page("$page,5")
->page("$page,$size")
->select()->toArray();
foreach ($article_list as $artk=>$artv){
$article_list[$artk]['create_time'] = date('Y-m-d H:i:s',$artv['create_time']);
}
if(empty($article_list)){
$this->apiResponse('1','暂无数据');
}else{
$final['art'] = $article_list;
}
$this->apiResponse('1','成功',$article_list);
$count = Db::name('PortalCategoryPost')->alias('j')
->where($where_connect)
->field("j.post_id,j.category_id , c.name , p.post_title,p.create_time")
->join("PortalCategory c","c.id = j.category_id")
->join("PortalPost p","p.id = j.post_id")
->count();
$all_page = ceil($count/$size);
$final['all_page'] = $all_page;
$this->apiResponse('1','成功',$final);
}
/**
* @title 文章详情
* @description 接口说明
* @author 开发者
* @url /api/portal/Article/index
* @url /api/portal/Article/detail
* @method POST
*
* @param name:post_id type:int require:1 default: other: desc:文章id
... ...
... ... @@ -29,7 +29,7 @@ class CommonController extends HomeBaseController
$url = explode('/',$_SERVER['PATH_INFO']);
$count_url = count($url);
$fun = $url[$count_url-1];
if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' ){
if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' || $url[1] == 'Article' ){
$connect = 1;
}else{
$connect = 2;
... ...
... ... @@ -395,7 +395,7 @@ class IntermediaryController extends CommonController
*/
public function comment(Request $request){
$data = $request->param();
// $my = $this->left($data['token']);
$my = $this->left($data['token']);
if(empty($data['intermediary_id'])){
$this->apiResponse('0','报价id不能为空');
}
... ... @@ -408,7 +408,9 @@ class IntermediaryController extends CommonController
$where_comment['status'] = 1;
$comment = Db::name('Comment')->where($where_comment)->find();
if($comment){
$this->apiResponse('1','成功',$comment);
$final['comment'] = $comment;
$final['agency'] = $my;
$this->apiResponse('1','成功',$final);
}else{
$this->apiResponse('0','暂无评价');
}
... ...
... ... @@ -341,7 +341,6 @@ class ThirdsendController extends HomeBaseController
if (!$add_moneyNext) {
Db::rollback();
}
}
} else {
// 没有报价
... ...
... ... @@ -975,7 +975,7 @@ class UserController extends CommonController
$where_need['id'] = $data['need_id'];
$where_need['user_id'] = $member['id'];
$where_need['status'] = array('in','5,7');
$userNeed = Db::name('UserNeed')->where($where_need)->field("id as need_id,city,quarters,room,pay_money,pay_time,choose_time,status")->find();
$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();
$final['need'] = $userNeed;
$final['user'] = $member;
if($userNeed){
... ... @@ -1111,7 +1111,7 @@ class UserController extends CommonController
public function comment(Request $request){
$data = $request->param();
$where_isset['id'] = $data['agency_id'];
$agency_id = Db::name('Member')->where($where_isset)->field('id,name,pic,reputation,start')->find();
$agency_id = Db::name('Member')->where($where_isset)->field('id,name,pic,reputation,start,tel,store')->find();
if($agency_id){
$where_comment['c.intermediary_id'] = $agency_id['id'];
$where_comment['c.status'] = 1;
... ...
... ... @@ -26,11 +26,11 @@ use think\Loader;
class NeedController extends AdminBaseController
{
// 列表
public function user(Request $request)
public function index(Request $request)
{
$where_coo['status'] = 1;
$where_coo['type'] = 2;
// $where_coo = array();
// $where_coo['status'] = 1;
// $where_coo['type'] = 2;
$where_coo = array();
if($request->post()){
$search = $request->post();
if($search['start_time']){
... ... @@ -40,30 +40,47 @@ class NeedController extends AdminBaseController
}else{
$end = time();
}
$where_coo['update_time'] = array('between',"$start,$end");
$where_coo['n.update_time'] = array('between',"$start,$end");
$this->assign('start_time',date('Y-m-d H:i',$start));
$this->assign('end_time',date('Y-m-d H:i',$end));
}
if($search['keyword']){
$where_coo['title'] = array('like',"%".$search['keyword']."%");
$where_coo['n.title'] = array('like',"%".$search['keyword']."%");
$this->assign('keyword',$search['keyword']);
}
}
$coo_list = Db::name('NeedAnswer')->where($where_coo)
->order('score desc , create_time desc')
$coo_list = Db::name('UserNeed')->alias('n')
->join("Member m",'m.id = n.user_id')
->where($where_coo)
->field("m.name as user_name,m.tel as user_tel,n.*")
->order('create_time desc')
->select()->toArray();
if($coo_list){
foreach ($coo_list as $k=>$v){
$coo_list[$k]['content'] = htmlspecialchars_decode($v['content']);
}
}
$this->assign('list',$coo_list);
return $this->fetch();
return $this->fetch('index');
}
public function add(Request $request)
// 详情
public function detail(){
$data = $this->request->param();
$where_need['n.id'] = $data['id'];
$where_need['n.status'] = array('neq',9);
$need = Db::name('UserNeed')->alias('n')
->join("Member m",'m.id = n.user_id')
->where($where_need)
->field('m.name as user_name,n.*')
->find();
if(!$need){
$this->error('需求错误');
}
$this->assign('list',$need);
return $this->fetch();
}
// 修改信息
public function change(Request $request)
{
if($request->post()){
// 添加数据
... ...
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;
use cmf\controller\AdminBaseController;
use app\portal\model\NeedAnswerModel;
use app\portal\model\MemberModel;
use app\portal\model\UserModel;
use app\portal\service\PostService;
use think\Db;
use think\Request;
use think\Loader;
/**
* @title 保证金内容管理
* @description 接口说明
* @group 接口分组
*/
class StatisticsController extends AdminBaseController
{
// 列表
public function index(Request $request)
{
return $this->fetch('index');
}
}
... ...
... ... @@ -512,6 +512,81 @@ class AdminOauthController extends AdminBaseController
$this->error('评论状态错误');
}
}
// 查看中介信誉分
public function reward(){
$where_member['status'] = array('neq',9);
$where_member['type'] = array('neq',5);
$data = $this->request->param();
if($data){
$startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']);
$endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']);
if ($startTime && $endTime) {
$where_member['create_time'] = array('between',"$startTime,$endTime");
$this->assign('start_time', $data['start_time']);
$this->assign('end_time', $data['end_time']);
}else{
if($startTime){
$where_member['create_time'] = array('egt',$startTime);
$this->assign('start_time', $data['start_time']);
}
if($endTime){
$where_member['create_time'] = array('elt',$endTime);
$this->assign('end_time', $data['end_time']);
}
}
}
// 查询用户
$where_referee['id'] = $data['id'];
$referee = Db::name('Member')->where($where_referee)->field('id,name,tel')->find();
$this->assign('user',$referee);
$is_isset = Db::name('RewardLog')->where($where_member)->select()->toArray();
if(!$is_isset){
$is_isset = array();
}else{
foreach ($is_isset as $lk=>$lv){
// 被推荐人
$where_recommen['id'] = $lv['recommen'];
$recommen = Db::name('Member')->where($where_recommen)->field('id,name,tel')->find();
if($referee){
$is_isset[$lk]['recommen_name'] = $recommen['name'];
$is_isset[$lk]['recommen_tel'] = $recommen['tel'];
}else{
$is_isset[$lk]['recommen_name'] = '';
$is_isset[$lk]['recommen_tel'] = '';
}
}
}
$this->assign('lists', $is_isset);
return $this->fetch();
}
// 删除中介信誉分记录
public function delReward(){
$data = $this->request->param();
$where_del['id'] = $data['id'];
$where_del['status'] = array('neq',9);
$is_isset = Db::name('RewardLog')->where($where_del)->field('id')->find();
if($is_isset){
$save['status'] = 9;
$save['update_time'] = time();
$res = Db::name('RewardLog')->where($where_del)->update($save);
if($res){
$this->success('删除成功',url('AdminOauth/reward'));
}else{
$this->error('删除失败');
}
}else{
$this->error('记录查询失败');
}
}
/**
* 后台删除第三方用户绑定
* @adminMenu(
... ...
... ... @@ -47,4 +47,6 @@ class CommentController extends UserBaseController
$this->error("取消收藏失败!");
}
}
}
\ No newline at end of file
... ...
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\controller;
use app\user\model\CommentModel;
use cmf\controller\AdminBaseController;
use cmf\controller\UserBaseController;
use app\user\model\UserModel;
use think\Db;
class CommonController extends AdminBaseController
{
// 中介评价
public function comment(){
$data = $this->request->param();
$where_comment['m.status'] = 1;
if($data){
$startTime = empty($data['start_time']) ? 0 : strtotime($data['start_time']);
$endTime = empty($data['end_time']) ? 0 : strtotime($data['end_time']);
if ($startTime && $endTime) {
$where_comment['c.create_time'] = array('between',"$startTime,$endTime");
$this->assign('start_time', $data['start_time']);
$this->assign('end_time', $data['end_time']);
}else{
if($startTime){
$where_comment['c.create_time'] = array('egt',$startTime);
$this->assign('start_time', $data['start_time']);
}
if($endTime){
$where_comment['c.create_time'] = array('elt',$endTime);
$this->assign('end_time', $data['end_time']);
}
}
if(!empty($data['name'])){
$where_comment['m.name'] = array('like','%'.$data['name'].'%');
$this->assign('name', $data['name']);
}
if(!empty($data['tel'])){
$where_comment['m.tel'] = array('like','%'.$data['tel'].'%');
$this->assign('tel', $data['tel']);
}
}
$comment_list = Db::name('Comment')->alias('c')
->join("Member m",'m.id=c.user_id')
->where($where_comment)
->field('m.name as user_name,m.tel as user_tel,m.id as user_id,c.*')
->select()->toArray();
foreach ($comment_list as $comk=>$comv){
// $where_user['id'] = $comv['user_id'];
// $user = Db::name('Member')->where($where_user)->field('id,name,tel')->find();
$where_agency['id'] = $comv['intermediary_id'];
$agency = Db::name('Member')->where($where_agency)->field('id,name,tel')->find();
// $comment_list[$comk]['user_id'] = $user['id'];
// $comment_list[$comk]['user_name'] = $user['name'];
// $comment_list[$comk]['user_tel'] = $user['tel'];
$comment_list[$comk]['agency_id'] = $agency['id'];
$comment_list[$comk]['agency_name'] = $agency['name'];
$comment_list[$comk]['agency_tel'] = $agency['tel'];
}
// $this->assign('uid',$data['id']);
$this->assign('lists',$comment_list);
return $this->fetch('common');
}
// 删除中介评价
public function agencyDel(){
$data = $this->request->param();
$where_com['id'] = $data['id'];
$where_com['status'] = array('neq',9);
$complaint = Db::name('Comment')->where($where_com)->find();
if($complaint){
$save['status'] = 9;
$save['update_time'] = time();
$update = Db::name('Comment')->where($where_com)->update($save);
if($update){
$this->success('删除成功');
}else{
$this->error('删除失败');
}
}else{
$this->error('评论状态错误');
}
}
}
\ No newline at end of file
... ...
... ... @@ -160,6 +160,7 @@ return array (
'PORTAL_COMPLAINT_INDEX' => '投诉管理',
'PORTAL_COOPERATION_DEFAULT' => '首页内容管理',
'PORTAL_COOPERATION_INDEX' => '合作企业列表',
'PORTAL_NEED_INDEX' => '需求管理',
'PORTAL_NEED_USER' => '需求管理',
'PORTAL_NEW_INDEX' => '最新成交公布',
'PORTAL_PROCESS_INDEX' => '交易流程',
... ... @@ -169,6 +170,7 @@ return array (
'PORTAL_SHARE_CONTENT' => '分享内容管理',
'PORTAL_SHARE_DEFAULT' => '分享内容管理',
'PORTAL_SHARE_PIC' => '图片管理',
'PORTAL_STATISTICS_INDEX' => '统计',
'PORTAL_USERNEED_DEFAULT' => '发布需求管理',
'PORTAL_USERNEED_INDEX' => '保证金内容管理',
'USER_ADMINASSET_DELETE' => '删除文件',
... ... @@ -186,5 +188,6 @@ return array (
'USER_ADMINUSERACTION_EDITPOST' => '编辑用户操作提交',
'USER_ADMINUSERACTION_INDEX' => '用户操作管理',
'USER_ADMINUSERACTION_SYNC' => '同步用户操作',
'USER_COMMON_COMMENT' => '评论管理',
'USER_GETMONEY_INDEX' => '提现管理',
);
\ No newline at end of file
... ...
... ... @@ -30,7 +30,7 @@
<div class="form-group">
<label for="input-name"><span class="form-required">*</span>分类名称</label>
<div>
<input type="text" class="form-control" id="input-name" name="name">
<input type="text" class="form-control" id="input-name" name="name" maxlength="10" placeholder="最多输入十个字" style="width:30%">
</div>
</div>
... ...
... ... @@ -31,7 +31,7 @@
<div class="form-group">
<label for="input-name"><span class="form-required">*</span>分类名称</label>
<div>
<input type="text" class="form-control" id="input-name" name="name" value="{$name}">
<input type="text" class="form-control" id="input-name" name="name" value="{$name}" maxlength="10" placeholder="最多输入十个字" style="width:30%">
</div>
</div>
<!--<div class="form-group">-->
... ...
<include file="public@header"/>
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
.dingwei{
position: relative;
width: 20%;
}
.day_tian{
position: absolute;
right: 4px;
line-height: 33px;
top: 0;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<!--<li><a href="{:url('Bank/index')}">银行列表</a></li>-->
<!--<li class="active"><a href="{:url('Bank/add')}">添加银行</a></li>-->
</ul>
<form action="{:url('Need/change')}" method="post" class="form-horizontal js-ajax-form margin-top-20" enctype="multipart/form-data" >
<div class="row">
<div class="col-md-9">
<table class="table table-bordered">
<input class="form-control" type="hidden" name="id"
value="{$list['id']}"/>
<tr>
<th width="15%">用户名</th>
<td><input class="form-control" type="text" name="user_name" readonly="readonly"
value="{$list['user_name']}" />
</td>
</tr>
<tr>
<th width="15%">地区</th>
<td><input class="form-control" type="text" name="city"
value="{$list['city']}" />
</td>
</tr>
<tr>
<th width="15%">小区</th>
<td><input class="form-control" type="text" name="quarters" value="{$list['quarters']}" />
</td>
</tr>
<tr>
<th width="15%">具体房号</th>
<td><input class="form-control" type="text" name="room"
value="{$list['room']}" />
</td>
</tr>
<tr>
<th width="15%">楼层</th>
<td><input class="form-control" type="text" name="floor"
value="{$list['floor']}" />
</td>
</tr>
<tr>
<th width="15%">户型</th>
<td><input class="form-control" type="text" name="house_type"
value="{$list['house_type']}" />
</td>
</tr>
<tr>
<th width="15%">装修</th>
<td><input class="form-control" type="text" name="renovation"
value="{$list['renovation']}" />
</td>
</tr>
<tr>
<th width="15%">建筑面积</th>
<td>
<div class="dingwei">
<input class="form-control" type="text" name="area"
value="{$list['area']}" style="width: 100%;" />
<span class="day_tian">平方米</span>
</div>
</td>
</tr>
<tr>
<th width="15%">是否首套房</th>
<td>
<select style="border: 1px solid #dce4ec; width: 20%;">
<option name="is_first" value="1" <eq name="list.is_first" value="1">selected</eq>>首套房</option>
<option name="is_first" value="2" <eq name="list.is_first" value="2">selected</eq>>两套及以上</option>
</select>
</td>
</tr>
<tr>
<th width="15%">贷款</th>
<td>
<select style="border: 1px solid #dce4ec; width: 20%;">
<option name="loan" value="1" <eq name="list.loan" value="1">selected</eq>>贷款</option>
<option name="loan" value="2" <eq name="list.loan" value="2">selected</eq>>全款</option>
</select>
</td>
</tr>
<tr>
<th width="15%">是否是包干价</th>
<td>
<select style="border: 1px solid #dce4ec; width: 20%;">
<option name="contract" value="1" <eq name="list.contract" value="1">selected</eq>>是</option>
<option name="contract" value="2" <eq name="list.contract" value="2">selected</eq>>否</option>
</select>
</td>
</tr>
<tr>
<th width="15%">报价时间</th>
<td>
<div class="dingwei">
<input class="form-control" type="text" name="quotation_time"
value="{$list['quotation_time']}" style="width: 100%;"/>
<span class="day_tian"></span>
</div>
</td>
</tr>
<tr>
<th width="15%">联系人姓名</th>
<td><input class="form-control" type="text" name="name"
value="{$list['name']}" />
</td>
</tr>
<tr>
<th width="15%">联系人手机号</th>
<td><input class="form-control" type="text" name="tel" value="{$list['tel']}" />
</td>
</tr>
<tr>
<th width="15%">备注</th>
<td><input class="form-control" type="text" name="else" value="{$list['else']}" />
</td>
</tr>
<tr>
<th width="15%">报价人数</th>
<td>
<div class="dingwei">
<input class="form-control" type="text" name="people" value="{$list['people']}" />
<span class="day_tian"></span>
</div>
</td>
</tr>
<tr>
<th width="15%">创建时间</th>
<td><input class="form-control" type="text" name="create_time" value="{$list['create_time']|date='Y-m-d H:i:s',###}" />
</td>
</tr>
<tr>
<th width="18%">更新时间</th>
<td><input class="form-control" type="text" name="update_time" value="{$list['update_time']|date='Y-m-d H:i:s',###}" />
</td>
</tr>
<tr>
<th width="18%">支付保证金时间</th>
<td><input class="form-control" type="text" name="pay_time" value="{$list['pay_time']|date='Y-m-d H:i:s',###}" />
</td>
</tr>
<tr>
<th width="18%">待选择开始时间</th>
<td><input class="form-control" type="text" name="choose_time" value="{$list['choose_time']|date='Y-m-d H:i:s',###}" />
</td>
</tr>
<tr>
<th>状态</th>
<td>
<eq name="list.status" value="1">未交保证金</eq>
<eq name="list.status" value="2">待发布</eq>
<eq name="list.status" value="3">待报价</eq>
<eq name="list.status" value="4">报价人数不足</eq>
<eq name="list.status" value="5">待选择中介</eq>
<eq name="list.status" value="6">未选择中介</eq>
<eq name="list.status" value="7">待中介确认</eq>
<eq name="list.status" value="10">待评价</eq>
<eq name="list.status" value="11">已评价</eq>
</td>
</tr>
</table>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
<a class="btn btn-default" href="{:url('Need/index')}">{:lang('BACK')}</a>
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function () {
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
});
});
</script>
</body>
</html>
... ...
... ... @@ -3,10 +3,10 @@
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">保证金说明列表</a></li>
<li><a href="{:url('UserNeed/add')}">添加保证金说明</a></li>
<li class="active"><a href=" ">保证金说明列表</a></li>
<li><a href="{:url('Need/add')}">添加保证金说明</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('UserNeed/index')}">
<form class="well form-inline margin-top-20" method="post" action="{:url('Need/index')}">
<!--分类:-->
<!--<select class="form-control" name="category" style="width: 140px;">-->
<!--<option value='0'>全部</option>-->
... ... @@ -23,7 +23,7 @@
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入说明标题">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('UserNeed/index')}">清空</a>
<a class="btn btn-danger" href="{:url('Need/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
... ... @@ -57,7 +57,7 @@
<button class="btn btn-primary btn-sm js-articles-copy" type="button">批量复制</button>
-->
<button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
data-action="{:url('UserNeed/del')}" data-subcheck="true" data-msg="您确定删除吗?">
data-action="{:url('Need/del')}" data-subcheck="true" data-msg="您确定删除吗?">
{:lang('DELETE')}
</button>
</div>
... ... @@ -73,13 +73,17 @@
<th width="50">{:lang('SORT')}</th>
</notempty>
<th width="50">ID</th>
<th width="10%">标题</th>
<th>内容</th>
<th>排序</th>
<th width="130">更新时间</th>
<th width="130">发布时间</th>
<!--<th width="70">状态</th>-->
<th width="90">操作</th>
<th>用户名</th>
<th>手机号</th>
<th>城市</th>
<th>小区</th>
<th>联系人姓名</th>
<th>联系人电话</th>
<th>报价人数</th>
<th>保证金金额</th>
<th>状态</th>
<th>提交时间</th>
<th>操作</th>
</tr>
</thead>
<foreach name="list" item="list">
... ... @@ -90,17 +94,24 @@
</td>
<td>{$list.id}</td>
<td>{$list.user_name}</td>
<td>{$list.user_tel}</td>
<td>{$list.city}</td>
<td>{$list.quarters}</td>
<td>{$list.name}</td>
<td>{$list.tel}</td>
<td>{$list.people}</td>
<td>{$list.pay_money}</td>
<td>
{$list.title}
</td>
<td>
{$list.content}
</td>
<td>
{$list.score}
</td>
<td>
{:date('Y-m-d H:i',$list['update_time'])}
<eq name="list.status" value="1">未交保证金</eq>
<eq name="list.status" value="2">待发布</eq>
<eq name="list.status" value="3">待报价</eq>
<eq name="list.status" value="4">报价人数不足</eq>
<eq name="list.status" value="5">待选择中介</eq>
<eq name="list.status" value="6">未选择中介</eq>
<eq name="list.status" value="7">待中介确认</eq>
<eq name="list.status" value="10">待评价</eq>
<eq name="list.status" value="11">已评价</eq>
</td>
<td>
{:date('Y-m-d H:i',$list['create_time'])}
... ... @@ -113,8 +124,8 @@
</td>
<td>
<a href="{:url('UserNeed/add',array('id'=>$list['id']))}">{:lang('EDIT')}</a>
<a href="{:url('UserNeed/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
<a href="{:url('Need/detail',array('id'=>$list['id']))}">查看详情</a>
<a href="{:url('Need/del',array('id'=>$list['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
</td>
</tr>
</foreach>
... ...
<include file="public@header"/>
<meta charset="utf-8">
<!--<link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* css 代码 */
</style>
<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
</head>
<body>
<div class="wrap js-check-wrap">
<form class="well form-inline margin-top-20" method="post" action="{:url('New/index')}">
<!--分类:-->
<!--<select class="form-control" name="category" style="width: 140px;">-->
<!--<option value='0'>全部</option>-->
<!--{$category_tree|default=''}-->
<!--</select> &nbsp;&nbsp;-->
时间:
<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="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入用户名">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('New/index')}">清空</a>
</form>
</div>
<div id="container" style="min-width:400px;height:400px"></div>
<div id="container1" style="min-width:400px;height:400px"></div>
<script src="__STATIC__/js/admin.js"></script>
<script>
var chart = Highcharts.chart('container', {
title: {
text: '混合图表'
},
xAxis: {
categories: ['苹果', ' 橙', '梨', '香蕉', '李子']
},
plotOptions: {
series: {
stacking: 'normal'
}
},
labels: {
items: [{
html: '水果消耗',
style: {
left: '100px',
top: '18px',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
}
}]
},
series: [{
type: 'column',
name: '小张',
data: [3, 2, 1, 3, 4]
}, {
type: 'column',
name: '小潘',
data: [2, 3, 5, 7, 6]
}, {
type: 'column',
name: '小王',
data: [4, 3, 3, 9, 0]
}, {
type: 'spline',
name: '平均值',
data: [3, 2.67, 3, 6.33, 3.33],
marker: {
lineWidth: 2,
lineColor: Highcharts.getOptions().colors[3],
fillColor: 'white'
}
}, {
type: 'pie',
name: '总的消耗',
data: [{
name: '小张',
y: 13,
color: Highcharts.getOptions().colors[0] // Jane's color
}, {
name: '小潘',
y: 23,
color: Highcharts.getOptions().colors[1] // John's color
}, {
name: '小王',
y: 19,
color: Highcharts.getOptions().colors[2] // Joe's color
}],
center: [100, 80],
size: 100,
showInLegend: false,
dataLabels: {
enabled: false
}
}]
});
var chart = Highcharts.chart('container1', {
title: {
text: '混合图表'
},
xAxis: {
categories: ['苹果', ' 橙', '梨', '香蕉', '李子']
},
plotOptions: {
series: {
stacking: 'normal'
}
},
labels: {
items: [{
html: '水果消耗',
style: {
left: '100px',
top: '18px',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
}
}]
},
series: [{
type: 'column',
name: '小张',
data: [3, 2, 1, 3, 4]
}, {
type: 'column',
name: '小潘',
data: [2, 3, 5, 7, 6]
}, {
type: 'column',
name: '小王',
data: [4, 3, 3, 9, 0]
}, {
type: 'spline',
name: '平均值',
data: [3, 2.67, 3, 6.33, 3.33],
marker: {
lineWidth: 2,
lineColor: Highcharts.getOptions().colors[3],
fillColor: 'white'
}
}, {
type: 'pie',
name: '总的消耗',
data: [{
name: '小张',
y: 13,
color: Highcharts.getOptions().colors[0] // Jane's color
}, {
name: '小潘',
y: 23,
color: Highcharts.getOptions().colors[1] // John's color
}, {
name: '小王',
y: 19,
color: Highcharts.getOptions().colors[2] // Joe's color
}],
center: [100, 80],
size: 100,
showInLegend: false,
dataLabels: {
enabled: false
}
}]
});
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -144,7 +144,7 @@
<script type="text/javascript" src="__STATIC__/js/mdialog.js"></script>
<script type="">
$('.recovery').click(function () {
var id = $('.recovery').attr('index');
var id = $(this).attr('index');
$('.popup').css('display','block');
// 删除
$('.queding').click(function () {
... ...
... ... @@ -83,6 +83,7 @@
<th>余额</th>
<th>推荐人</th>
<th>推荐人id</th>
<th>信誉分</th>
<th>注册时间</th>
<th>状态</th>
<th align="center" style="cursor: pointer; text-align: center;">查看</th>
... ... @@ -108,7 +109,7 @@
</empty>
{$vo.referee_id}
</td>
<td>{$vo.reputation}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>
<eq name="vo.status" value="1">
... ... @@ -126,8 +127,8 @@
<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>
<span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看信誉分</span>
<!--<span class="comment" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看评论</span>-->
<span class="reward" style="color: #5EB3D7; text-decoration:underline; cursor: pointer; " index="{$vo.id}">查看信誉分</span>
</td>
<td>
<eq name="vo.status" value="1">
... ... @@ -226,6 +227,14 @@
var url = url3[0]+'/id/'+url2+'.html';
window.location.href = url
})
// 查看信誉分
$('.reward').click(function () {
var url1 = "{:url('user/AdminOauth/reward')}";
var url2 = $(this).attr('index');
var url3 = url1.split('.');
var url = url3[0]+'/id/'+url2+'.html';
window.location.href = url
})
</script>
</body>
</html>
\ No newline at end of file
... ...
<include file="public@header"/>
<link rel="stylesheet" href="__STATIC__/install/css/mdialog.css">
<style>
.popup{
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{
text-align: center;
margin-top: 20px;
}
.popup span{
text-align: center;
line-height: 30px;
cursor: pointer;
}
.popup .queding{
display: inline-block;
width: 80px;
height: 30px;
background-color: #1E9FFF;
border-radius: 3px;
}
.popup span:hover{
opacity: 0.8;
}
.popup .quxiao{
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>{:lang('USER_OAUTHADMIN_INDEX')}</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminOauth/reward')}">
<input type="hidden" name="id" value="{$user.id}">
时间:
<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/reward',array('id'=>$user.id))}">清空</a>
</form>
<div class="well form-inline margin-top-20">
<div >用户信息</div>
<div>
<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;
<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>
<tr>
<th>ID</th>
<!--<th>推荐人</th>-->
<!--<th>推荐人id</th>-->
<th>来源</th>
<th>信誉奖励分</th>
<th>奖励时间</th>
<th>状态</th>
<th align="center">操作</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td>{$vo.id}</td>
<td>
<eq name="vo.type" value="1">注册获得</eq>
<eq name="vo.type" value="2">推荐获得</eq>
<eq name="vo.type" value="3">签到获得</eq>
<eq name="vo.type" value="4">成交获得</eq>
<!--<eq name="vo.type" value="5">支付诚意金后返回金额</eq>-->
</td>
<td>{$vo.number}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>
<eq name="vo.status" value="1">
正常
</eq>
<eq name="vo.status" value="9">
已删除
</eq>
</td>
<td>
<span class="recovery" style="color: #18BC9C; 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="">
$('.recovery').click(function () {
var id = $(this).attr('index');
$('.popup').css('display','block');
// 删除
$('.queding').click(function () {
$.ajax({
type:"POST",
url:"{:url('AdminOauth/delReward')}",
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
... ...
<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('Common/comment')}">
时间:
<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="text" class="form-control" name="name" style="width: 200px;"
value="{$name|default=''}" placeholder="请输入姓名">
手机号:
<input type="text" class="form-control" name="tel" style="width: 200px;"
value="{$tel|default=''}" placeholder="请输入手机号">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('Common/comment')}">清空</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>用户名</th>
<th>用户手机号</th>
<th>中介名</th>
<th>中介手机号</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.user_name}</td>
<td>{$vo.user_tel}</td>
<td>{$vo.agency_name}</td>
<td>{$vo.agency_tel}</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('Common/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
... ...