王新凯 před 3 roky
rodič
revize
ecd49ad71e

+ 351 - 0
application/store/controller/Member1.php

@@ -0,0 +1,351 @@
+<?php
+
+// +----------------------------------------------------------------------
+// | ThinkAdmin
+// +----------------------------------------------------------------------
+// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
+// +----------------------------------------------------------------------
+// | 官方网站: http://demo.thinkadmin.top
+// +----------------------------------------------------------------------
+// | 开源协议 ( https://mit-license.org )
+// +----------------------------------------------------------------------
+// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
+// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
+// +----------------------------------------------------------------------
+
+namespace app\store\controller;
+
+use app\common\model\Config;
+use app\common\model\User;
+use library\Controller;
+use think\Db;
+
+/**
+ * 会员信息管理
+ * Class Member
+ * @package app\store\controller
+ */
+class Member1 extends Controller
+{
+    /**
+     * 绑定数据表
+     * @var string
+     */
+    protected $table = 'q_user';
+
+    /**
+     * 会员信息管理
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function index()
+    {
+        $this->title = '会员信息管理';
+        $query = $this->_query($this->table)->like('phone')->equal('status,type');
+        if (isset($_GET['keyword']) && $_GET['keyword']){
+            $query->where('id|nickname','like','%'.$_GET['keyword'].'%');
+        }
+        $query->dateBetween('create_at')->order('id desc')->page();
+    }
+
+
+    /**
+     * 表单数据处理
+     * @param array $data
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    protected function _form_filter(&$data)
+    {
+        if ($this->request->isGet()) {
+            $money_log = Db::name('q_user_money_log')->where('user_id',$data['id'])->order('id desc')->select();
+            $data['money_log'] = $money_log;
+
+
+            //设计分类
+            $designclassifi = Config::get_values('designclassifi');
+            $data['designclassifi_list'] = explode(',',$designclassifi);
+
+            //技能标签
+            $skillslabel_list = explode(',',Config::get_values('skillslabel'));
+            $skills_label = explode(',',$data['skills_label']);
+            $label_list = array_unique(array_merge($skillslabel_list,$skills_label));
+            $labellists = array();
+            foreach ($label_list as $k=>$v){
+                if ($skills_label){
+                    foreach ($skills_label as $a=>$b){
+                        if ($b==$v){
+                            $is_hive = 1;
+                            break 1;
+                        }else{
+                            $is_hive = 0;
+                        }
+                    }
+                }
+                $labellist['is_hive'] = $is_hive;
+                $labellist['name'] = $v;
+                array_push($labellists,$labellist);
+            }
+            $this->skills_label = $labellists;
+
+            //擅长类型
+            $goodtype_list = explode(',',Config::get_values('goodtype'));
+            $goodtype_label = explode(',',$data['good_type']);
+            $good_type_list = array_unique(array_merge($goodtype_list,$goodtype_label));
+            $labellistss = array();
+            foreach ($good_type_list as $k=>$v){
+                if ($goodtype_label){
+                    foreach ($goodtype_label as $a=>$b){
+                        if ($b==$v){
+                            $is_hive = 1;
+                            break 1;
+                        }else{
+                            $is_hive = 0;
+                        }
+                    }
+                }
+                $labellist['is_hive'] = $is_hive;
+                $labellist['name'] = $v;
+                array_push($labellistss,$labellist);
+            }
+            $this->good_type_label = $labellistss;
+
+            //擅长风格
+            $goodstyle_list = explode(',',Config::get_values('goodstyle'));
+            $good_style_label = explode(',',$data['good_style']);
+            $goodstyle_list = array_unique(array_merge($goodstyle_list,$good_style_label));
+            $labellistsss = array();
+            foreach ($goodstyle_list as $k=>$v){
+                if ($good_style_label){
+                    foreach ($good_style_label as $a=>$b){
+                        if ($b==$v){
+                            $is_hive = 1;
+                            break 1;
+                        }else{
+                            $is_hive = 0;
+                        }
+                    }
+                }
+                $labellist['is_hive'] = $is_hive;
+                $labellist['name'] = $v;
+                array_push($labellistsss,$labellist);
+            }
+            $this->good_style_label = $labellistsss;
+
+            $this->data = $data;
+            //省
+            $province = Db::name('q_area')->where('level',1)->select();
+            $this->province = $province;
+            //市
+            $pid = Db::name('q_area')->where('name',$data['province'])->value('id');
+            $city = Db::name('q_area')->where('level',2)->where('pid',$pid)->select();
+            $this->city = $city;
+            //区
+            $pid2 = Db::name('q_area')->where('name',$data['city'])->value('id');
+            $area = Db::name('q_area')->where('level',3)->where('pid',$pid2)->select();
+            $this->area = $area;
+        }elseif ($this->request->isPost()) {
+
+            if (isset($data['province'])){
+                $data['province'] = Db::name('q_area')->where('id',$data['province'])->value('name');
+            }
+            if (isset($data['city'])){
+                $data['city'] = Db::name('q_area')->where('id',$data['city'])->value('name');
+            }
+            if (isset($data['area'])){
+                $data['area'] = Db::name('q_area')->where('id',$data['area'])->value('name');
+            }
+            if (isset($data['skills_label'])){
+                $data['skills_label'] = implode(',',$data['skills_label']);
+            }
+            if (isset($data['good_type'])){
+                $data['good_type'] = implode(',',$data['good_type']);
+            }
+            if (isset($data['good_style'])){
+                $data['good_style'] = implode(',',$data['good_style']);
+            }
+
+            if (isset($data['zheng'])){
+                $data['identity_card_zheng'] = $data['zheng'];
+                unset($data['zheng']);
+            }
+            if (isset($data['fan'])){
+                $data['identity_card_fan'] = $data['fan'];
+                unset($data['fan']);
+            }
+        }
+    }
+
+    /**
+     * 会员详情
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function userinfo()
+    {
+        $this->title = '会员详情';
+        $this->_form($this->table, 'userinfo');
+    }
+
+    /**
+     * 获取市
+     */
+    public function get_city(){
+        $id = $this->app->request->get('id');
+        $city_list = Db::name('q_area')->where('pid',$id)->where('level',2)->select();
+        $this->success('成功',$city_list);
+    }
+
+    /**
+     * 获取区
+     */
+    public function get_area(){
+        $id = $this->app->request->get('id');
+        $area_list = Db::name('q_area')->where('pid',$id)->where('level',3)->select();
+        $this->success('成功',$area_list);
+    }
+
+
+    /**
+     * 编辑信息
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function edit()
+    {
+        $this->title = '编辑信息';
+        $this->_form($this->table, 'edit');
+    }
+
+    /**
+     * 更新设计师价格
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function edit_price()
+    {
+        $id = $this->app->request->get('id');
+        $this->assign('id',$id);
+        $price = $this->app->request->get('price');
+        $this->assign('price',$price);
+        $post = $this->app->request->post();
+        if (isset($post['id']) && $post['id']){
+            Db::name($this->table)->where('id',$post['id'])->update(['price'=>$post['price']]);
+            $this->success('设置成功!');
+        }else{
+            $this->fetch('form2');
+        }
+    }
+
+    /**
+     * 更新设计师收益百分比
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function earnings_ratio()
+    {
+        $id = $this->app->request->get('id');
+        $this->assign('id',$id);
+        $price = $this->app->request->get('earnings_ratio');
+        $this->assign('price',$price);
+        $post = $this->app->request->post();
+        if (isset($post['id']) && $post['id']){
+            Db::name($this->table)->where('id',$post['id'])->update(['earnings_ratio'=>$post['price']]);
+            $this->success('设置成功!');
+        }else{
+            $this->fetch('form3');
+        }
+    }
+
+    /**
+     * 更新用户余额
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function edit_money()
+    {
+        $id = $this->app->request->get('id');
+        $this->assign('id',$id);
+        $post = $this->app->request->post();
+        if (isset($post['id']) && $post['id']){
+            $user = Db::name($this->table)->where('id',$post['id'])->find();
+            $pm = $post['money']>0 ? 1 : 0;
+            $title = $post['money']>0 ? '系统增加' : '系统减少';
+            $money = str_replace("-", "", $post['money']);
+            if ($post['money']<0){
+                if ($money>$user['money']){
+                    $this->error('金额超出范围!');
+                }
+            }
+            User::money($money,$post['id'],$title,$pm);
+            $this->success('编辑成功!');
+        }else{
+            $this->fetch('form');
+        }
+
+    }
+
+
+    /**
+     * 禁用用户
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function forbid()
+    {
+        $this->_save($this->table, ['status' => '0']);
+    }
+
+    /**
+     * 启用用户
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function resume()
+    {
+        $this->_save($this->table, ['status' => '1']);
+    }
+
+
+    /**
+     * 软删除
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function del()
+    {
+        $this->_save($this->table, ['is_del' => '0']);
+    }
+}

+ 16 - 26
application/store/controller/Rule.php

@@ -20,7 +20,7 @@ use library\tools\Data;
 use think\Db;
 
 /**
- * 汽车管理
+ * 积分管理
  * Class Goods
  * @package app\store\controller
  */
@@ -30,10 +30,10 @@ class Rule extends Controller
      * 指定数据表
      * @var string
      */
-    protected $table = 'p_car';
+    protected $table = 'lida_rule';
 
     /**
-     * 汽车管理
+     * 积分管理
      * @auth true
      * @menu true
      * @throws \think\Exception
@@ -44,7 +44,7 @@ class Rule extends Controller
      */
     public function index()
     {
-        $this->title = '汽车管理';
+        $this->title = '积分管理';
         $query = $this->_query($this->table)->equal('status,cate_id')->like('title');
         $query->where(['is_deleted' => '0'])->order('id desc')->page();
     }
@@ -59,8 +59,8 @@ class Rule extends Controller
     protected function _index_page_filter(&$data)
     {
         foreach ($data as $k=>&$v){
-            $v['chexing']=Db::name('p_car_chexing')->whereIn('id',$v['chexing'])->value('name');
-            $v['pinpai']=Db::name('p_car_pinpai')->whereIn('id',$v['pinpai'])->value('name');
+          //  $v['chexing']=Db::name('p_car_chexing')->whereIn('id',$v['chexing'])->value('name');
+         //   $v['pinpai']=Db::name('p_car_pinpai')->whereIn('id',$v['pinpai'])->value('name');
         }
 
 
@@ -68,7 +68,7 @@ class Rule extends Controller
 
 
     /**
-     * 添加汽车
+     * 添加积分
      * @auth true
      * @throws \think\Exception
      * @throws \think\db\exception\DataNotFoundException
@@ -78,13 +78,13 @@ class Rule extends Controller
      */
     public function add()
     {
-        $this->title = '添加汽车';
+        $this->title = '添加积分';
         $this->isAddMode = '1';
         $this->_form($this->table, 'form');
     }
 
     /**
-     * 编辑汽车
+     * 编辑积分
      * @auth true
      * @throws \think\Exception
      * @throws \think\db\exception\DataNotFoundException
@@ -94,7 +94,7 @@ class Rule extends Controller
      */
     public function edit()
     {
-        $this->title = '编辑汽车';
+        $this->title = '编辑积分';
         $this->isAddMode = '0';
         $this->_form($this->table, 'form');
     }
@@ -116,22 +116,12 @@ class Rule extends Controller
 
         if ($this->request->isPost()) {
 
-            if(!$this->request->post('id')){
-                $data['create_at']=date('Y-m-d');
-            }
-            // 用户权限处理
-            $data['chexing_id'] = (isset($data['chexing_id']) && is_array($data['chexing_id'])) ? join(',', $data['chexing_id']) : '';
-
-            $chexing=Db::name('p_car_chexing')->where(['is_deleted' => '0'])->order('id desc')->where('id',$data['chexing'])->value('name');
-            $pinpai=Db::name('p_car_pinpai')->where(['is_deleted' => '0'])->order('id desc')->where('id',$data['pinpai'])->value('name');
-            $data['search']=$chexing.' '. $pinpai;
 
         } else {
-            $data['chexing_id'] = explode(',', isset($data['chexing_id']) ? $data['chexing_id'] : '');
-            $this->chexing_ids = Db::name('p_car_chexing')->where(['is_deleted' => '0'])->order('id desc')->select();
-            $this->pinpai = Db::name('p_car_pinpai')->where(['is_deleted' => '0'])->order('id desc')->select();
+
         }
 
+
     }
 
 
@@ -142,7 +132,7 @@ class Rule extends Controller
         protected function _form_result($result)
     {
         if ($result && $this->request->isPost()) {
-            $this->success('汽车编辑成功!', 'javascript:history.back()');
+            $this->success('积分编辑成功!');
         }
     }
     /**
@@ -198,7 +188,7 @@ class Rule extends Controller
 
 
     /**
-     * 禁用汽车
+     * 禁用积分
      * @auth true
      * @throws \think\Exception
      * @throws \think\exception\PDOException
@@ -209,7 +199,7 @@ class Rule extends Controller
     }
 
     /**
-     * 启用汽车
+     * 启用积分
      * @auth true
      * @throws \think\Exception
      * @throws \think\exception\PDOException
@@ -220,7 +210,7 @@ class Rule extends Controller
     }
 
     /**
-     * 删除汽车
+     * 删除积分
      * @auth true
      * @throws \think\Exception
      * @throws \think\exception\PDOException

+ 235 - 0
application/store/view/member1/edit.html

@@ -0,0 +1,235 @@
+{extend name='admin@main'}
+
+{block name="content"}
+
+<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
+
+    <div class="layui-card-body think-box-shadow padding-left-40">
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">昵称</span>
+                <input name="nickname" required class="layui-input" placeholder="请输入昵称" value="{$vo.nickname|default=''}">
+            </label>
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">姓名</span>
+                <input name="name" required class="layui-input" placeholder="请输入姓名" value="{$vo.name|default=''}">
+            </label>
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">手机号</span>
+                <input name="phone" required class="layui-input" placeholder="请输入手机号" value="{$vo.phone|default=''}">
+            </label>
+        </div>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs12 relative">
+                <span class="color-green"></span>
+                <div class="layui-input-inline">
+                    <select name="province" class="province-selector" id="province"  lay-filter="province" data-value="">
+                        <option value="">请选择省</option>
+                        {foreach $province as $k=>$v}
+                        {if $v.name eq $vo.province}
+                        <option selected value="{$v.id}">{$v.name}</option>
+                        {else}
+                        <option value="{$v.id}">{$v.name}</option>
+                        {/if}
+                        {/foreach}
+                    </select>
+                </div>
+                <div class="layui-input-inline" style="width: 200px;">
+                    <select name="city" class="city-selector" data-value="" id="city"  lay-filter="city">
+                        <option value="">请选择市</option>
+                        {foreach $city as $k=>$v}
+                        {if $v.name eq $vo.city}
+                        <option selected value="{$v.id}">{$v.name}</option>
+                        {else}
+                        <option value="{$v.id}">{$v.name}</option>
+                        {/if}
+                        {/foreach}
+                    </select>
+                </div>
+                <div class="layui-input-inline" style="width: 200px;">
+                    <select name="area" class="county-selector" data-value="" id="area"  lay-filter="area">
+                        <option value="">请选择区</option>
+                        {foreach $area as $k=>$v}
+                        {if $v.name eq $vo.area}
+                        <option selected value="{$v.id}">{$v.name}</option>
+                        {else}
+                        <option value="{$v.id}">{$v.name}</option>
+                        {/if}
+                        {/foreach}
+                    </select>
+                </div>
+            </label>
+        </div>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">设计分类</span>
+                <div class="">
+                {foreach $vo.designclassifi_list as $k=>$v}
+                    <input  type="radio" {if $v eq $data.design_classifi} checked {/if}  name="design_classifi" value="{$v}" lay-ignore> {$v}&nbsp;&nbsp;
+                {/foreach}
+                </div>
+            </label>
+        </div>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs12 relative">
+                <span class="color-green"><input type="checkbox" disabled=disabled style="display:none !important;" value="" title="技能标签"></span>
+                <div class="">
+                    {foreach $skills_label as $k=>$v}
+                        {if $v.is_hive eq "1"}
+                        <input type="checkbox" checked name="skills_label[]" value="{$v.name}" title="{$v.name}">
+                        {else}
+                        <input type="checkbox" name="skills_label[]"  value="{$v.name}" title="{$v.name}">
+                        {/if}
+                    {/foreach}
+                </div>
+            </label>
+        </div>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs12 relative">
+                <span class="color-green"><input type="checkbox" disabled=disabled style="display:none !important;" value="" title="擅长类型"></span>
+                <div class="">
+                    {foreach $good_type_label as $k=>$v}
+                    {if $v.is_hive eq "1"}
+                    <input type="checkbox" checked name="good_type[]" value="{$v.name}" title="{$v.name}">
+                    {else}
+                    <input type="checkbox" name="good_type[]"  value="{$v.name}" title="{$v.name}">
+                    {/if}
+                    {/foreach}
+                </div>
+            </label>
+        </div>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">工作年限</span>
+                <textarea placeholder="请输入工作年限" required class="layui-textarea" name="work_year">{$vo.work_year|default=""}</textarea>
+            </label>
+        </div>
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green">身份证号</span>
+                <input name="identity_card" required class="layui-input" placeholder="请输入身份证号" value="{$vo.identity_card|default=''}">
+            </label>
+        </div>
+
+        <div class="layui-form-item">
+            <span class="color-green label-required-prev">身份证正面</span>
+            <table class="layui-table">
+                <thead>
+                <tr>
+                    <td width="90px" class="text-left"><input name="zheng" type="hidden" value="{$vo.identity_card_zheng|default=''}"></td>
+                </thead>
+            </table>
+            <script>$('[name="zheng"]').uploadOneImage(), $('[name="identity_card_zheng"]').uploadMultipleImage()</script>
+        </div>
+
+
+
+        <div class="layui-form-item">
+            <span class="color-green label-required-prev">身份证反面</span>
+            <table class="layui-table">
+                <thead>
+                <tr>
+                    <td width="90px" class="text-left"><input name="fan" type="hidden" value="{$vo.identity_card_fan|default=''}"></td>
+                </thead>
+            </table>
+            <script>$('[name="fan"]').uploadOneImage(), $('[name="identity_card_fan"]').uploadMultipleImage()</script>
+        </div>
+
+
+
+
+
+        <div class="layui-form-item text-center">
+            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
+            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消编辑</button>
+            <button class="layui-btn" type="submit">保存</button>
+        </div>
+
+    </div>
+</form>
+{/block}
+
+{block name='script'}
+<textarea class="layui-hide" id="goods-specs">{$vo.specs|raw|default=''}</textarea>
+<textarea class="layui-hide" id="goods-value">{$defaultValues|raw|default=''}</textarea>
+<script>
+    layui.form.render();
+    layui.use(['form', 'layedit', 'laydate'], function(){
+        var form = layui.form
+            ,layer = layui.layer
+            ,layedit = layui.layedit
+            ,laydate = layui.laydate;
+
+        form.render();
+        //日期
+        laydate.render({
+            elem: '#date'
+        });
+        laydate.render({
+            elem: '#date1'
+        });
+
+        form.on('select(province)', function (data) {
+            var val = data.value;
+            // console.log(val)
+            $.ajax({
+                type:"get",
+                url:"{:url('member/get_city')}",  //数据传输的控制器方法
+                data: {id:val},//这里data传递过去的是序列化以后的字符串
+                success:function(data){
+                   // console.log(data)
+                    var arr = data.data;
+                    //console.log(arr)
+                    if (arr.length>0){
+                        //$("#tow").attr("style","display:block;");//显示div
+                        var options='<option value="">请选择市</option>';
+                        for (var i = 0; i < arr.length; i++) {
+                            var tag = arr[i];
+                            options+=' <option value="'+tag.id+'">'+tag.name+'</option>';
+                        }
+                        $("select[name='city']").html(options)
+                        form.render('select');
+                    }else {
+                        var options='<option value="">请选择市</option>';
+                        $("select[name='city']").html(options)
+                        form.render('select');
+                    }
+                }
+            });
+        });
+
+        form.on('select(city)', function (data) {
+            var val = data.value;
+            // console.log(val)
+            $.ajax({
+                type:"get",
+                url:"{:url('member/get_area')}",  //数据传输的控制器方法
+                data: {id:val},//这里data传递过去的是序列化以后的字符串
+                success:function(data){
+                    //console.log(data)
+                    var arr = data.data;
+                   // console.log(arr)
+                    if (arr.length>0){
+                        var options='<option value="">请选择区</option>';
+                        for (var i = 0; i < arr.length; i++) {
+                            var tag = arr[i];
+                            options+=' <option value="'+tag.id+'">'+tag.name+'</option>';
+                        }
+                        $("select[name='area']").html(options)
+                        form.render('select');
+                    }else {
+                        var options='<option value="">请选择区</option>';
+                        $("select[name='area']").html(options)
+                        form.render('select');
+                    }
+                }
+            });
+        });
+
+
+
+    });
+</script>
+{/block}

+ 23 - 0
application/store/view/member1/form.html

@@ -0,0 +1,23 @@
+<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
+
+    <div class="layui-card-body">
+
+        <div class="layui-row margin-bottom-15">
+            <label class="layui-col-xs2 think-form-label">余额</label>
+            <label class="layui-col-xs10">
+                <input name="money" required value='' placeholder="请输入变更积分数量" class="layui-input">
+                <p class="help-block">正数增加,负数减少</p>
+            </label>
+
+        </div>
+
+    </div>
+
+    <div class="hr-line-dashed"></div>
+    <div class="layui-form-item text-center">
+        <input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>
+        <input type='hidden' value='{$id}' name='id'>
+        <button class="layui-btn" type='submit'>保存数据</button>
+        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
+    </div>
+</form>

+ 21 - 0
application/store/view/member1/form2.html

@@ -0,0 +1,21 @@
+<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
+
+    <div class="layui-card-body">
+
+        <div class="layui-row margin-bottom-15">
+            <label class="layui-col-xs2 think-form-label">价格</label>
+            <label class="layui-col-xs10">
+                <input name="price" required value='{$price}' placeholder="请输入设计师价格" class="layui-input">
+            </label>
+
+        </div>
+
+    </div>
+
+    <div class="hr-line-dashed"></div>
+    <div class="layui-form-item text-center">
+        <input type='hidden' value='{$id}' name='id'>
+        <button class="layui-btn" type='submit'>保存数据</button>
+        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
+    </div>
+</form>

+ 23 - 0
application/store/view/member1/form3.html

@@ -0,0 +1,23 @@
+<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
+
+    <div class="layui-card-body">
+
+        <div class="layui-row margin-bottom-15">
+            <label class="layui-col-xs2 think-form-label">收益百分比</label>
+            <label class="layui-col-xs10">
+                <input name="price" required value='{$price}' placeholder="请输入收益百分比" class="layui-input">
+                <p class="help-block">设计师收益百分比%</p>
+            </label>
+
+        </div>
+
+    </div>
+
+    <div class="hr-line-dashed"></div>
+    <div class="layui-form-item text-center">
+        <input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>
+        <input type='hidden' value='{$id}' name='id'>
+        <button class="layui-btn" type='submit'>保存数据</button>
+        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
+    </div>
+</form>

+ 73 - 0
application/store/view/member1/index.html

@@ -0,0 +1,73 @@
+{extend name='admin@main'}
+
+{block name="content"}
+<div class="think-box-shadow">
+    {include file='member/index_search'}
+    <table class="layui-table margin-top-10" lay-skin="line">
+        {notempty name='list'}
+        <thead>
+        <tr>
+            <!--<th class='list-table-check-td think-checkbox'>-->
+            <!--<input data-auto-none data-check-target='.list-check-box' type='checkbox'>-->
+            <!--</th>-->
+<!--            <th class='text-left nowrap'>会员昵称(ID)</th>-->
+            <th class='text-left nowrap'>基本信息</th>
+            <th class="text-left nowrap">状态</th>
+            <th class='text-left nowrap'>注册时间</th>
+            <th class='text-left nowrap'></th>
+        </tr>
+        </thead>
+        {/notempty}
+        <tbody>
+        {foreach $list as $key=>$vo}
+        <tr>
+            <!--<td class='list-table-check-td think-checkbox'>-->
+            <!--<label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>-->
+            <!--</td>-->
+<!--            <td class='text-left nowrap'>-->
+<!--                {notempty name='vo.headimg'}-->
+<!--                <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">-->
+<!--                {/notempty}-->
+<!--                <div class="inline-block">{$vo.nickname|default='&#45;&#45;'}({$vo.id})</div>-->
+<!--            </td>-->
+            <td class='text-left'>
+                手机号:{$vo.phone|default='--'}
+            </td>
+            <td class='text-left'>
+                姓名:{$vo.username|default='--'}
+            </td>
+
+
+            <td class='text-left'>{$vo.create_at|format_datetime}</td>
+            <td class='text-left'>
+<!--                {if auth("store/member/edit")}-->
+<!--                <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>-->
+<!--                {/if}-->
+                {if $vo.status eq 1 and auth("store/member/forbid")}
+                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id}">禁 用</a>
+                {elseif auth("store/member/resume")}
+                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id}">启 用</a>
+                {/if}
+<!--                {if auth("store/member/del")}-->
+<!--                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('del')}" data-value="id#{$vo.id}">删 除</a>-->
+<!--                {/if}-->
+<!--                {if auth("store/member/userinfo")}-->
+<!--                <a data-title="会员详情" class="layui-btn layui-btn-sm  margin-top-5" data-modal='{:url("userinfo")}?id={$vo.id}'>会员详情</a>-->
+<!--                {/if}-->
+                <br />
+            </td>
+        </tr>
+        {/foreach}
+        </tbody>
+    </table>
+    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+</div>
+<script>
+    function jjtk(t,time,due_time,jujue){
+        layer.tips("时间:"+time+"<br /> 解封时间:"+due_time+"<br /> 原因:"+t, '#'+jujue);
+    }
+    function cancellation_account(t,id){
+        layer.tips("注销时间:<br />"+t, '#'+id);
+    }
+</script>
+{/block}

+ 45 - 0
application/store/view/member1/index_search.html

@@ -0,0 +1,45 @@
+<fieldset>
+    <legend>条件搜索</legend>
+    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">关键词</label>
+            <div class="layui-input-inline">
+                <input name="keyword" value="{$Think.get.keyword|default=''}" placeholder="请输入关键词" class="layui-input">
+            </div>
+        </div>
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">会员手机</label>
+            <div class="layui-input-inline">
+                <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入会员手机" class="layui-input">
+            </div>
+        </div>
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">状态</label>
+            <div class="layui-input-inline">
+                <select class="layui-select" name="status">
+                    {foreach [''=>'- 全部会员 -','1'=>'正常','0'=>'禁用'] as $k=>$v}
+                    {eq name='Think.get.status' value='$k.""'}
+                    <option selected value="{$k}">{$v}</option>
+                    {else}
+                    <option value="{$k}">{$v}</option>
+                    {/eq}
+                    {/foreach}
+                </select>
+            </div>
+        </div>
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">注册时间</label>
+            <div class="layui-input-inline">
+                <input name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择发送时间" class="layui-input">
+            </div>
+        </div>
+        <div class="layui-form-item layui-inline">
+            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
+            <button type="button" data-export-list class="layui-btn layui-btn-primary layui-hide"><i class="layui-icon layui-icon-export"></i> 导 出</button>
+        </div>
+    </form>
+    <script>
+        form.render();
+        laydate.render({range: true, elem: '[name="create_at"]'})
+    </script>
+</fieldset>

+ 86 - 0
application/store/view/member1/userinfo.html

@@ -0,0 +1,86 @@
+<div style="padding: 20px; background-color: #F2F2F2;">
+    <div class="layui-row layui-col-space15">
+        <div class="layui-col-md6">
+            <div class="layui-card">
+                <div class="layui-card-header">会员昵称(ID)</div>
+                <div class="layui-card-body">
+                    <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$data.headimg}" class="margin-right-5">
+                    {$data.nickname}({$data.id})<br />
+                </div>
+            </div>
+        </div>
+        <div class="layui-col-md6">
+            <div class="layui-card">
+                <div class="layui-card-header">余额</div>
+                <div class="layui-card-body">
+                    {$data.money|default='0'}
+                </div>
+            </div>
+        </div>
+        <div class="layui-col-md12">
+            <div class="layui-card">
+                <div class="layui-card-header">基本信息</div>
+                <div class="layui-card-body">
+                    <div class="layui-col-md6">手机号:{$data.phone|default='--'}</div>
+                    <div class="layui-col-md6">姓名:{$data.name|default='--'}</div><hr />
+                    <div class="layui-col-md6">昵称:{$data.nickname|default='0'}</div>
+                    <div class="layui-col-md6">设计分类:{$data.design_classifi|default='--'}</div><hr />
+                    <div class="layui-col-md6">技能标签:{$data.skills_label|default='--'}</div>
+                    <div class="layui-col-md6">擅长类型:{$data.good_type|default='--'}</div><hr />
+                    <div class="layui-col-md6">工作年限:{$data.work_year|default='--'}</div>
+                    <div class="layui-col-md6">身份证号:{$data.identity_card|default='--'}</div><hr />
+                    <div class="layui-col-md6">地址:{$data.province|default='--'}  {$data.city|default='--'}  {$data.area|default='--'}</div>
+                    <hr />
+                </div>
+            </div>
+        </div>
+
+
+
+    </div>
+    <div class="layui-tab layui-tab-card">
+        <ul class="layui-tab-title">
+            <li class="layui-this">积分变动记录</li>
+<!--            <li>互选池列表</li>-->
+<!--            <li>想认识我会员列表</li>-->
+<!--            <li>特权开通记录</li>-->
+        </ul>
+        <div class="layui-tab-content" style="height: 100px;">
+            <div class="layui-tab-item layui-show">
+                <table class="layui-table margin-top-10" lay-skin="line">
+                    {notempty name='data.money_log'}
+                    <thead>
+                    <tr>
+                        <th class='text-left nowrap'>变动积分</th>
+                        <th class='text-left nowrap'>变动后</th>
+                        <th class='text-left nowrap'>类型</th>
+                        <th class="text-left nowrap">时间</th>
+                        <th class="text-left nowrap">备注</th>
+                    </tr>
+                    </thead>
+                    {/notempty}
+                    <tbody>
+                    {foreach $data.money_log as $key=>$vo}
+                    <tr>
+                        <td class='text-left nowrap'>
+                            <div class="inline-block">{$vo.change_money}</div>
+                        </td>
+                        <td class='text-left'>{$vo.after}</td>
+                        <td class='text-left'>
+                            {eq name='vo.pm' value='0'}<span class="layui-badge">支出</span>{else}<span class="layui-badge layui-bg-green">收入</span>{/eq}
+                        </td>
+                        <td class='text-left'>
+                            {$vo.create_at}
+                        </td>
+                        <td class='text-left'>
+                            {$vo.title}
+                        </td>
+                    </tr>
+                    {/foreach}
+                    </tbody>
+                </table>
+                {empty name='data.money_log'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+            </div>
+        </div>
+    </div>
+</div>

+ 27 - 232
application/store/view/rule/form.html

@@ -1,254 +1,49 @@
-{extend name='admin@main'}
 
-{block name="content"}
 
-{include file='store@goods/form_style'}
 
-<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
 
-    <div class="layui-card-body think-box-shadow padding-left-40">
 
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">类型</span>
-                <div class="block">
-                    {foreach ['买','卖'] as $k=>$pro}
-                    <label class="think-radio">
-                        {if isset($vo['type']) && $vo['type'] eq $k}
-                        <input checked type="radio" name="type" value="{$k}" lay-ignore> {$pro}
-                        {else}
-                        <input type="radio" name="type" value="{$k}" lay-ignore> {$pro}
-                        {/if}
-                    </label>
-                    {/foreach}
-                </div>
-            </label>
 
+<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
 
-        </div>
+    <div class="layui-card-body padding-left-40">
 
         <div class="layui-form-item layui-row layui-col-space15">
-
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车型</span>
-                <select class="layui-select" required name="chexing" lay-search>
-                    {foreach $chexing_ids as $cate}
-                    {if isset($vo.chexing) and $vo.chexing eq $cate.id}
-                    <option selected value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
-                    {else}
-                    <option value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
-                    {/if}
-                    {/foreach}
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">品牌</span>
-                <select class="layui-select" required name="pinpai" lay-search>
-                    {foreach $pinpai as $cate}
-                    {if isset($vo.pinpai) and $vo.pinpai eq $cate.id}
-                    <option selected value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
+            <label class="layui-col-xs9 relative">
+                <span class="color-green">名称</span>
+                <input name="title" required class="layui-input" placeholder="" value="{$vo.title|default=''}">
+            </label>
+        </div>
+        <div class="layui-form-item relative">
+            <span class="color-green font-w7">所属类型</span>
+            <span class="color-desc margin-left-5"></span>
+            <div class="block">
+                {foreach ['增加','扣减'] as $k=>$pro}
+                <label class="think-radio">
+                    {if isset($vo['type']) && $vo['type'] eq $k}
+                    <input checked type="radio" name="type" value="{$k}" lay-ignore> {$pro}
                     {else}
-                    <option value="{$cate.id}">{$cate.id} - {$cate.name|default=''}</option>
+                    <input type="radio" name="type" value="{$k}" lay-ignore> {$pro}
                     {/if}
-                    {/foreach}
-                </select>
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车辆编号</span>
-                <input name="cheliangbiaohao"  required class="layui-input"  placeholder="请输入车辆编号" value="{$vo.cheliangbiaohao|default=''}">
-            </label>
-        </div>
-
-
-
-
-        <div class="layui-form-item">
-            <span class="color-green label-required-prev">轮播图</span>
-            <table class="layui-table">
-                <thead>
-                <tr>
-
-                    <th class="text-left">展示图片</th>
-                </tr>
-                <tr>
-                    <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
-                </tr>
-                </thead>
-            </table>
-            <script>$('[name="image"]').uploadMultipleImage()</script>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车龄</span>
-                <div style="display: flex">
-                    <input name="cheling" required class="layui-input" style="width: 80%" placeholder="请输入车龄" value="{$vo.cheling|default=''}">
-                    <p style="margin-top: 6px;">个月</p>
-                </div>
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车辆性质</span>
-                <input name="cheliangxingzhi" required class="layui-input"  placeholder="请输入车辆性质 如营运,非营运" value="{$vo.cheliangxingzhi|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车辆类型</span>
-                <input name="cheliangleixing" required class="layui-input" placeholder="请输入车辆类型 如油车" value="{$vo.cheliangleixing|default=''}">
-            </label>
-        </div>
-
-
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">里程</span>
-                <div style="display: flex">
-                    <input name="licheng" required class="layui-input" style="width: 80%" placeholder="请输入里程" value="{$vo.licheng|default=''}">
-                    <p style="margin-top: 6px;">万公里</p>
-                </div>
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">箱体宽度</span>
-                <div style="display: flex">
-                    <input name="xiangtikuandu" required class="layui-input" style="width: 80%" placeholder="请输入箱体宽度" value="{$vo.xiangtikuandu|default=''}">
-                    <p style="margin-top: 6px;">米</p>
-                </div>
-            </label>
-
-        </div>
-
-
-
-
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">是否有通行证</span>
-                <div class="block">
-                    {foreach ['是','否'] as $k=>$pro}
-                    <label class="think-radio">
-                        {if isset($vo['tongxingzheng']) && $vo['tongxingzheng'] eq $k}
-                        <input checked type="radio" name="tongxingzheng" value="{$k}" lay-ignore> {$pro}
-                        {else}
-                        <input type="radio" name="tongxingzheng" value="{$k}" lay-ignore> {$pro}
-                        {/if}
-                    </label>
-                    {/foreach}
-                </div>
-            </label>
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">是否有尾板</span>
-                <div class="block">
-                    {foreach ['是','否'] as $k=>$pro}
-                    <label class="think-radio">
-                        {if isset($vo['weiban']) && $vo['weiban'] eq $k}
-                        <input checked type="radio" name="weiban" value="{$k}" lay-ignore> {$pro}
-                        {else}
-                        <input type="radio" name="weiban" value="{$k}" lay-ignore> {$pro}
-                        {/if}
-                    </label>
-                    {/foreach}
-                </div>
-            </label>
-        </div>
-
-
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">车池经理</span>
-                <input name="chechijingli" required class="layui-input"  placeholder="请输入车池经理" value="{$vo.chechijingli|default=''}">
-            </label>
-
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">首次登记日期</span>
-                <input name="shoucidengjiriqi" required class="layui-input"  placeholder="请输入首次登记日期" value="{$vo.shoucidengjiriqi|default=''}" id="test1">
-            </label>
+                </label>
+                {/foreach}
+            </div>
         </div>
 
         <div class="layui-form-item layui-row layui-col-space15">
             <label class="layui-col-xs9 relative">
-
-                <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_province"></select></div>
-                <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_city"></select></div>
-                <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_area"></select></div>
-            </label>
-
-        </div>
-
-
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">发动机型号</span>
-                <input name="fadongjixinghao" required class="layui-input"  placeholder="请输入发动机型号" value="{$vo.fadongjixinghao|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green"> 马力</span>
-                <div style="display: flex">
-                    <input name="mali" required class="layui-input" style="width: 80%" placeholder="请输入马力" value="{$vo.mali|default=''}">
-                    <p style="margin-top: 6px;"> 匹</p>
-                </div>
+                <span class="color-green">积分数量</span>
+                <input name="num" required class="layui-input" placeholder="" value="{$vo.num|default=''}">
             </label>
         </div>
 
 
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">商业保险额</span>
-                <div style="display: flex">
-                    <input name="shangyebaoxiane" required class="layui-input" style="width: 80%" placeholder="请输入商业保险额" value="{$vo.shangyebaoxiane|default=''}">
-                    <p style="margin-top: 6px;">万元</p>
-                </div>
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">租赁价格</span>
-                <div style="display: flex">
-                    <input name="jiage" required class="layui-input" style="width: 80%" placeholder="请输入租赁价格" value="{$vo.jiage|default=''}">
-                    <p style="margin-top: 6px;">元/月</p>
-                </div>
-            </label>
-        </div>
-
-
-
-
-
-        <div class="layui-form-item text-center">
-            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
-            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消编辑</button>
-            <button class="layui-btn" type="submit">保存商品</button>
-        </div>
+    </div>
 
+    <div class="hr-line-dashed"></div>
+    <div class="layui-form-item text-center">
+        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
+        <button class="layui-btn" type='submit'>保存数据</button>
+        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
     </div>
 </form>
-{/block}
-
-{block name='script'}
-<script>
-    require(['pcasunzips'], function () {
-        new PCAS("form_province", "form_city", "form_area", '{$vo.express_province|default=""}', '{$vo.express_city|default=""}', '{$vo.express_area|default=""}');
-
-        laydate.render({
-            elem: '#test1'
-        });
-        window.form.render();
-    });
-</script>
-]
-{/block}

+ 16 - 55
application/store/view/rule/index.html

@@ -2,10 +2,10 @@
 
 {block name="button"}
 <!--{if auth("store/goods/add")}-->
-<button data-open='{:url("add")}' data-title="添加汽车" class='layui-btn layui-btn-sm layui-btn-primary'>添加汽车</button>
+<button data-modal='{:url("add")}' data-title="添加积分" class='layui-btn layui-btn-sm layui-btn-primary'>添加积分</button>
 <!--{/if}-->
 <!--{if auth("store/goods/remove")}-->
-<button data-action='{:url("remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除汽车</button>
+<button data-action='{:url("remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除积分</button>
 <!--{/if}-->
 {/block}
 
@@ -17,19 +17,9 @@
         <thead>
         <tr>
 
-            <th class='text-left nowrap' >汽车编号</th>
-            <th class='text-left nowrap' >车型/品牌</th>
-            <th class='text-left nowrap' >车龄</th>
-            <th class='text-left nowrap' >车辆性质</th>
-            <th class='text-left nowrap' >车辆类型</th>
-            <th class='text-left nowrap' >里程</th>
-            <th class='text-left nowrap' >箱体宽度</th>
-            <th class='text-left nowrap' >车池经理</th>
-            <th class='text-left nowrap' >看车池</th>
-            <th class='text-left nowrap' >标签</th>
-            <th class='text-left nowrap' >租赁价格</th>
-            <th class='text-left nowrap' >是否推荐</th>
-
+            <th class='text-left nowrap' >名称</th>
+            <th class='text-left nowrap' >类型</th>
+            <th class='text-left nowrap' >数量</th>
             <th  class='text-left nowrap'>操作</th>
 
         </tr>
@@ -39,65 +29,36 @@
         {foreach $list as $key=>$vo}
         <tr data-dbclick>
 
+           
             <td class='text-left nowrap'>
-                {$vo.cheliangbiaohao}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.chexing}--{$vo.pinpai}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.cheling}个月
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.cheliangxingzhi}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.cheliangleixing}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.licheng}万公里
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.xiangtikuandu}米
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.chechijingli}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.form_city}
-            </td>
-
-            <td class='text-left nowrap'>
-                {$vo.biaoqian}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.jiage}
+                {$vo.title}
             </td>
             <td class='text-left nowrap'>
-                {if $vo['is_tuijian']==1}
-                是----{$vo.tuijian_remark}
+                {if $vo['type']==0}
+                增加
                 {else}
-                
+                扣减
                 {/if}
             </td>
+            <td class='text-left nowrap'>
+                {$vo.num}
+            </td>
 
 
 
 
             <td class='text-left nowrap'>
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-modal='{:url("tuijian")}?id={$vo.id}'>热门推荐</a>
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-modal='{:url("stock")}?id={$vo.id}'>标签</a>
 
                     {if auth("store/goods/edit")}
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
+                    <a data-dbclick class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
                     {else}
-                    <a data-tips-text="您没有编辑汽车的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">编 辑</a>
+                    <a data-tips-text="您没有编辑积分的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">编 辑</a>
                     {/if}
 
                     {if auth("store/goods/remove")}
                     <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
                     {else}
-                    <a data-tips-text="您没有删除汽车的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">删 除</a>
+                    <a data-tips-text="您没有删除积分的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">删 除</a>
                     {/if}
 
 

+ 3 - 3
config/database.php

@@ -21,11 +21,11 @@ return [
     // 服务器地址
     'hostname'    => '127.0.0.1',
     // 数据库名
-    'database'    => 'lidajf_hdlkeji_c',
+    'database'    => 'lidadz',
     // 用户名
-    'username'    => 'lidajf_hdlkeji_c',
+    'username'    => 'lidadz',
     // 密码
-    'password'    => '123456',
+    'password'    => 'byYjdSzBKGfMYrDP',
     // 编码
     'charset'     => 'utf8mb4',
     // 端口