Bladeren bron

提交代码

candy 6 jaren geleden
bovenliggende
commit
1cb70bed3e
100 gewijzigde bestanden met toevoegingen van 10834 en 0 verwijderingen
  1. 4 0
      repairceshi/.gitignore
  2. 42 0
      repairceshi/.travis.yml
  3. 1236 0
      repairceshi/CHANGELOG.md
  4. 32 0
      repairceshi/LICENSE.txt
  5. 133 0
      repairceshi/README.md
  6. 1 0
      repairceshi/application/.htaccess
  7. 143 0
      repairceshi/application/admin/controller/AuthortyManage.php
  8. 602 0
      repairceshi/application/admin/controller/Index.php
  9. 20 0
      repairceshi/application/admin/model/Login.php
  10. 56 0
      repairceshi/application/admin/model/Ulist.php
  11. 156 0
      repairceshi/application/admin/view/authorty_manage/add_admin.html
  12. 116 0
      repairceshi/application/admin/view/authorty_manage/edit_admin.html
  13. 39 0
      repairceshi/application/admin/view/authorty_manage/index.html
  14. 83 0
      repairceshi/application/admin/view/authorty_manage/view.html
  15. 27 0
      repairceshi/application/admin/view/index/add_group.html
  16. 86 0
      repairceshi/application/admin/view/index/add_region.html
  17. 48 0
      repairceshi/application/admin/view/index/add_user.html
  18. 43 0
      repairceshi/application/admin/view/index/edit_group.html
  19. 50 0
      repairceshi/application/admin/view/index/edit_order_info.html
  20. 88 0
      repairceshi/application/admin/view/index/edit_region.html
  21. 85 0
      repairceshi/application/admin/view/index/edit_user_info.html
  22. 89 0
      repairceshi/application/admin/view/index/group.html
  23. 84 0
      repairceshi/application/admin/view/index/group_info.html
  24. 63 0
      repairceshi/application/admin/view/index/index.html
  25. 118 0
      repairceshi/application/admin/view/index/login.html
  26. 145 0
      repairceshi/application/admin/view/index/order.html
  27. 87 0
      repairceshi/application/admin/view/index/order_info.html
  28. 17 0
      repairceshi/application/admin/view/index/order_message.html
  29. 101 0
      repairceshi/application/admin/view/index/qrcode.html
  30. 39 0
      repairceshi/application/admin/view/index/region.html
  31. 59 0
      repairceshi/application/admin/view/index/test.html
  32. 258 0
      repairceshi/application/admin/view/index/user.html
  33. 159 0
      repairceshi/application/admin/view/index/user_info.html
  34. 8 0
      repairceshi/application/admin/view/public/footer.html
  35. 52 0
      repairceshi/application/admin/view/public/header.html
  36. 12 0
      repairceshi/application/command.php
  37. 12 0
      repairceshi/application/common.php
  38. 247 0
      repairceshi/application/config.php
  39. 55 0
      repairceshi/application/database.php
  40. 21 0
      repairceshi/application/route.php
  41. 28 0
      repairceshi/application/tags.php
  42. 25 0
      repairceshi/build.php
  43. 33 0
      repairceshi/composer.json
  44. 2 0
      repairceshi/extend/.gitignore
  45. 8 0
      repairceshi/public/.htaccess
  46. BIN
      repairceshi/public/favicon.ico
  47. 17 0
      repairceshi/public/index.php
  48. 2 0
      repairceshi/public/robots.txt
  49. 20 0
      repairceshi/public/router.php
  50. 2 0
      repairceshi/public/static/.gitignore
  51. 137 0
      repairceshi/runtime/temp/03c356d0ff644d2673a8e1d2d8440fa2.php
  52. 305 0
      repairceshi/runtime/temp/0751481bf2e91f32eb02500a6d0d8597.php
  53. 80 0
      repairceshi/runtime/temp/0b5d053642f52a82da948288fffc25d4.php
  54. 205 0
      repairceshi/runtime/temp/0b9a04e9117d04211ba0261a5bbe3f2a.php
  55. 196 0
      repairceshi/runtime/temp/0bdd325fbde35420afd8e81439ffe4e6.php
  56. 205 0
      repairceshi/runtime/temp/0be4a1b74e7ade7cbb200f41dc135c54.php
  57. 91 0
      repairceshi/runtime/temp/0eb2d4d98748946783b1b51c32ca1ef8.php
  58. 89 0
      repairceshi/runtime/temp/123497e480f3786bb9a1da60f4884e1d.php
  59. 47 0
      repairceshi/runtime/temp/1774a933b30a6d046547bfac76672ccc.php
  60. 58 0
      repairceshi/runtime/temp/18942235d48fca3ec49759de4e5a93ad.php
  61. 81 0
      repairceshi/runtime/temp/1967c352714e9dab45def0ba210ef78b.php
  62. 119 0
      repairceshi/runtime/temp/1ac9f98adf3355637db79182feeeec8c.php
  63. 108 0
      repairceshi/runtime/temp/1e42234f36ad019efdcc56b3e5392f8f.php
  64. 130 0
      repairceshi/runtime/temp/1f2813fbba9ee62d2bcb9135990e9dee.php
  65. 89 0
      repairceshi/runtime/temp/20a79cf8c2f1989f3cd6ba1b91c830e1.php
  66. 119 0
      repairceshi/runtime/temp/247fd396194fb02b5736265e296c89dc.php
  67. 81 0
      repairceshi/runtime/temp/28eb98b577a5b5ffc623cce5ed07373a.php
  68. 114 0
      repairceshi/runtime/temp/2ba75f454c9faa4cfeb0708c214f4103.php
  69. 102 0
      repairceshi/runtime/temp/307b60d89c8c913cb8343f053e4ba59e.php
  70. 95 0
      repairceshi/runtime/temp/3738f68d49663ec554cb8f505da27057.php
  71. 137 0
      repairceshi/runtime/temp/37c26b1d3133cdebc3583f4a99b04fc9.php
  72. 114 0
      repairceshi/runtime/temp/38dc4e4fceac445a87031196c143a886.php
  73. 90 0
      repairceshi/runtime/temp/3aff7a7de80cb3b45448f1e189aa61c9.php
  74. 189 0
      repairceshi/runtime/temp/3ef8e481361a9f994a1af0602fc93b24.php
  75. 58 0
      repairceshi/runtime/temp/453ecb46eba0cb937d72ec2615c2fdda.php
  76. 115 0
      repairceshi/runtime/temp/4d57a3aad414561257e10decd58a7790.php
  77. 138 0
      repairceshi/runtime/temp/4eada77e078aa9731871314cfdbaf755.php
  78. 75 0
      repairceshi/runtime/temp/4f0b77786deee46143acc31b306b40c4.php
  79. 91 0
      repairceshi/runtime/temp/549f400d1ef15dae9dbf8fa2984132eb.php
  80. 159 0
      repairceshi/runtime/temp/57cb85b43ce0629acd6a964a29ffb961.php
  81. 77 0
      repairceshi/runtime/temp/615334978839363d398b90ca994a492f.php
  82. 138 0
      repairceshi/runtime/temp/64ac0fda8767a98ea84ed7f8ed5c51da.php
  83. 62 0
      repairceshi/runtime/temp/66f5412565167f20ba086dea2725f489.php
  84. 89 0
      repairceshi/runtime/temp/6744bad3cc59e5b7034cd8f2fd35ab0c.php
  85. 250 0
      repairceshi/runtime/temp/6ab40a2f804ab8157b1a465579bdaa0e.php
  86. 91 0
      repairceshi/runtime/temp/6cdb5afac70034c5f156ddc9d60e3cb0.php
  87. 88 0
      repairceshi/runtime/temp/71351bcb7f066bf75aee637c1057347a.php
  88. 157 0
      repairceshi/runtime/temp/74f36bb3d45f9a33704d2c04a89b8e7c.php
  89. 102 0
      repairceshi/runtime/temp/7b250c2da1060eaf85a396fd2d234acd.php
  90. 90 0
      repairceshi/runtime/temp/8a5f664a491421dd3454d38d471d4692.php
  91. 191 0
      repairceshi/runtime/temp/8ceed9bb3cba75f51b47f37fa7a535ff.php
  92. 115 0
      repairceshi/runtime/temp/8e3556719f40c14a1eccf874d60f24b6.php
  93. 47 0
      repairceshi/runtime/temp/8f27cbf3f597bf02410d7624e270e2f0.php
  94. 205 0
      repairceshi/runtime/temp/9804f1623e81b278e6cac41563c0ff0e.php
  95. 115 0
      repairceshi/runtime/temp/9d9716183b0f69bc08090e1b9e8ae6ca.php
  96. 69 0
      repairceshi/runtime/temp/a3345dc1d8960cf161fb00eb0daf2f65.php
  97. 196 0
      repairceshi/runtime/temp/a386f3e1f26fd99354fe2a018e9cfd80.php
  98. 91 0
      repairceshi/runtime/temp/a413bf75de92ff7be04a7e99c3e70a11.php
  99. 101 0
      repairceshi/runtime/temp/a43aafefb5071092dbe48565579c49c7.php
  100. 90 0
      repairceshi/runtime/temp/aa5b63278be50b59eb0d967d6a34729c.php

+ 4 - 0
repairceshi/.gitignore

@@ -0,0 +1,4 @@
+.idea
+composer.lock
+*.log
+thinkphp

+ 42 - 0
repairceshi/.travis.yml

@@ -0,0 +1,42 @@
+sudo: false
+
+language: php
+
+branches:
+  only:
+    - stable
+
+cache:
+  directories:
+    - $HOME/.composer/cache
+
+before_install:
+  - composer self-update
+
+install:
+  - composer install --no-dev --no-interaction --ignore-platform-reqs
+  - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
+  - composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
+  - composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
+  - composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
+  - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
+
+script:
+  - php think unit
+
+deploy:
+  provider: releases
+  api_key:
+    secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
+  file:
+    - ThinkPHP_Core.zip
+    - ThinkPHP_Full.zip
+  skip_cleanup: true
+  on:
+    tags: true

+ 1236 - 0
repairceshi/CHANGELOG.md

@@ -0,0 +1,1236 @@
+## 2019-1-11 V5.0.24
+
+本次更新包含了一个安全更新,建议更新
+
+- 改进关联的save方法
+- 改进模型数据验证
+- Collection增加values方法
+- 改进unique验证方法
+- 改进Request类的method方法
+
+## 2018-12-9 V5.0.23
+
+本次版本更新主要涉及一个安全更新,推荐尽快更新到最新版本。
+
+* Query支持调用模型的查询范围
+* 聚合查询字段支持`DISTINCT`
+* 改进闭包验证的参数
+* 多对多关联支持指定中间表数据名称
+* after/before验证支持指定字段验证
+* 改进多对多关联
+* 改进验证类
+* 增加`afterWith`和`beforeWith`验证规则 用于比较日期字段
+* 完善规则提示
+* 改进断线重连
+* 修正软删除的`destroy`方法
+* 修复模型的`save`方法当`data`变量为空 数据不验证
+* 模型增加`replace`方法
+* MorphOne 增加 make 方法创建关联对象实例
+* 改进`count`方法返回值类型
+* 改进聚合查询方法的正则判断
+* 改进`sqlsrv`驱动
+* 完善关联的`save`方法
+* 修正控制器名获取
+
+
+## 2018-10-22 V5.0.22
+
+该版本主要增加了JSON日志格式的支持,并且包含了一个安全更新。
+
+* 调试模式下关闭路由解析缓存
+* 改进Log类支持`json`日志格式
+* 改进聚合查询的安全性
+* 改进`count`查询的返回值类型
+
+## 2018-9-7 V5.0.21
+
+该版本主要做了一些已知问题的修正,改进了对Swoole的支持,以及增加路由解析缓存功能。
+
+* 增加路由解析缓存功能
+* 改进url生成的端口问题
+* 改进缓存驱动
+* 改进value方法的缓存处理
+* 修正Builder类的insertAll方法
+* 改进对Swoole的支持(使用参考:[xavier-swoole](https://github.com/xavieryang007/xavier-swoole))
+
+## 2018-5-11 V5.0.20
+
+该版本为修正版本,修正了一些已知的问题。
+
+* `join`方法的条件支持传入`Expression`对象
+* 改进驱动的`parseKey`方法
+* 改进Request类的`host`方法
+* 使用`exp`表达式更新数据的异常提示
+* 修正查询
+* 改进多对多关联的中间表模型更新
+
+## 2018-4-25 V5.0.19
+
+该版本属于改进版本,主要改进了composer自动加载及内置模板引擎的一处可能的安全隐患。
+
+* 改进composer自动加载
+* 改进模板引擎一处安全隐患
+* 改进`comment`方法解析
+* 改进分布式写入数据后及时读取的问题
+* 改进url操作方法的自动转换
+* 改进分页类魔术方法的返回值
+* SQL日志增加主从标记
+
+## 2018-4-14 V5.0.18
+
+该版本主要修正上一个发布的一些BUG,并且改进了`exp`表达式查询/写入的严谨性。
+
+* 修正`field`方法`*`兼容问题;
+* 修正`inc/dec`方法;
+* 修正`setInc/setDec`方法;
+* 改进`insertAll`方法;
+* 改进`parseTime`方法;
+* 改进`exp`表达式查询/写入的严谨性;
+
+## 2018-4-12 V5.0.17
+
+该版本主要是一些修正和改进,并且包含了一个安全更新。
+
+* 改进Response类`create`方法
+* 改进`inc/dec`查询
+* 默认模板渲染规则支持直接使用操作方法名
+* 改进视图驱动
+* 改进Request类ip方法 支持代理设置
+* 修正request类的`create`方法
+* 闭包查询使用`cache(true)`抛出异常
+* 改进composer自动加载文件
+* 增加`Expression`类及相关方法
+
+## 2018-3-26 V5.0.16
+
+该版本主要做了一些修正和改进,由于包含了一个安全更新,是一个推荐更新的版本。
+
+* 改进Url生成
+* 改进composer自动加载性能
+* 改进一对一查询
+* 改进查询缓存
+* 改进field方法
+* 优化Template类
+* 修正分页参数
+* 改进默认模板的自动识别
+* 改进Query类查询
+* Collection类改进
+* 改进模型类`readTransform`方法对序列化类型的处理
+* 改进trace显示
+* 文件日志支持自动清理
+* 改进断线重连的判断
+* 改进验证方法
+* 修正Query类view方法的数组表名定义
+* 改进参数绑定
+* 改进文件缓存的并发删除
+* 改进`inc/dec/exp`更新的安全性
+* 增加控制台配置
+
+## 2018-1-31 V5.0.15
+
+该版本主要进行了一些修正和完善
+
+* 改进View类
+* 改进chunk方法
+* 改进模板引擎的表达式语法
+* 改进自关联查询多级调用问题
+* 关联定义增加`selfRelation`方法用于设置是否自关联
+* 改进file类型的缓存`inc`和`dec`方法不改变缓存有效期
+* 改进软删除 支持设置`deleteTime`属性关闭
+* 改进`union`查询
+* 改进查询缓存
+* 优化File缓存自动生成空目录的问题
+* 改进日志写入并发问题
+* 修正`MorphTo`关联
+* 改进`join`自关联查询
+* 改进`case`标签解析
+* 改进Url类对`url_convert`配置的支持
+
+
+## 2018-1-1 V5.0.14
+
+V5.0.14版本主对复合主键进行了更多支持,改进了PHP7的兼容性,并且对数据库的一些问题做了改进。
+
+主要更新如下:
+
+* 改进Validate类的unique验证
+* Validate类增加checkRule方法用于静态验证多个规则
+* 改进多对多关联的save方法
+* 改进多对多的pivot对象
+* 修正setDec方法的延迟写入
+* max和min方法增加第二个参数用于设置是否强制转换数字
+* 改进View类
+* 改进join关联自身的问题
+* 改进union查询
+* 改进Url类
+* 改进同名路由不同请求的注册
+* 改进Builder类parseData对空数组的判断
+* 改进模板替换
+* 调整BelongsTo的hasWhere方法
+* 改进模板的编译缓存命名规则 增加布局模板的标识
+* 改进insertall方法
+* 改进chunk方法支持复合主键
+* 改进Error类的一个兼容问题
+* 改进model类的save方法的复合主键包含自增的情况
+* save方法改进复合主键的支持
+* 改进mysql的insertAll方法
+* 改进redis长连接多编号库的情况
+
+## 2017-12-12 V5.0.13
+
+`V5.0.13`主要是对模型和日志方面做了一些改进
+
+### [数据库和模型]
+
+* 改进Model类`save`方法对`oracle`的支持
+* 改进中间表模型的实例化
+* 改进`Pivot`类
+* 模型`saveall`方法支持配合`isUpdate`方法
+* 模型类增加`force`方法设置是否强制更新所有数据
+* 关联自动删除增加一对多关联删除支持
+* 改进`hasWhere`查询的数据重复问题
+* 改进一对多`with`关联查询的`field`支持
+* 模型`saveall`方法支持返回数据集 读取`resultSetType`属性
+* 改进废弃字段判断
+* 模型的`hasWhere`方法增加`fields`参数
+* 改进断线重连异常捕获机制
+* 修正Query类的`inc`和`dec`方法的Mysql关键词问题
+* 修正数据集对象的BUG
+
+### [其它]
+
+* 增加`app_dispatch`钩子位置
+* cookie类`httponly`参数默认改为false
+* File日志驱动增加`single`参数配置是否记录单个文件日志
+* 单个日志文件支持大小设置
+* 改进日志记录的ip地址
+* Redis缓存驱动改用`serialize`序列化替代json序列化
+* 改进异常捕获
+* 改进上传文件验证
+* 修正redis驱动
+* 改进File缓存的`clear`方法
+* 代码格式化规范
+* 改进一处PHP7.2的兼容问题
+* 调试模式下不读取字段缓存文件
+* `default_filter`支持在模块中配置生效
+
+## 2017-11-06 V5.0.12
+
+5.0.12是一个修正版本,包含了上个版本发布以来的一些修正和完善,主要包括:
+
+* 上传类和验证类的多语言支持;
+* 模型增加排除和废弃字段支持;
+* 改进insertAll方法的分批处理;
+* 改进对枚举类型的参数绑定支持;
+* 修正社区反馈的问题;
+
+
+### [数据库和模型]
+
+* 改进Connection类的getRealSql方法
+* 改进append方法支持一对一关联的bind设置
+* 改进whereTime查询
+* 改进model类的`destroy`方法
+* 修正softdelete
+* 修正`chunk`方法对时间字段的支持
+* Collection类增加`push`方法
+* 改进alias方法 
+* 修正模型类的`append`处理
+* 改进`appendRelationAttr`方法
+* 改进HasManyThrough关联
+* 改进MorphTo关联
+* 模型增加废除字段`disuse`定义
+* 增加排除字段方法`except`
+* 修正`has`方法 
+* 改进参数绑定类型对枚举类型的支持
+* 改进`insertAll`方法的分批处理
+
+
+### [其它]
+
+* 改进Loader类`controller`和`validate`方法支持多层
+* 验证提示信息支持多语言
+* File类错误信息支持多语言 
+* 模板渲染异常处理
+* 修正rest控制器
+* 改进trace驱动
+* 改进Cache类的`remember`方法 
+* 改进`url_common_param`的情况下urlencode的问题
+* 改进Url类
+* 改进`exception_handle`配置参数对闭包的支持 
+* 执行路由缓存命令前检测RUNTIME_PATH是否存在 
+* 调整部分`CacheDriver::dec`在为空的时候递减的行为
+* 优化移动端的显示
+* 改进对JSON-Handle插件的支持
+* 改进redis的`get`方法
+* 改进Request类的`host`方法
+
+
+## 2017-09-08 V5.0.11
+
+5.0.11是一个安全及修正版本,包含了上个版本发布以来的一些修正和完善,更新了几处可能的安全问题,主要包括:
+
+* 完善缓存驱动;
+* 改进数据库查询;
+* 改进URL生成类;
+* 缓存有效期支持指定过期时间;
+
+### [数据库和模型]
+
+* 改进数据库驱动类
+* 改进`group`方法的字段关键字冲突
+* 修正聚合查询返回null的问题
+* 改进Db类的强制重连
+* 改进关联的属性绑定
+* 修正事务的断线重连
+* 修正对象的条件查询
+* Db类增加`clear`方法
+* 改进数组查询条件中的`null`查询
+* 改进Query类的`chunk`方法支持排序设置
+* 改进HasOne和HasMany关联的`has`方法
+* 改进软删除的关联删除
+* 改进一个字段多次查询条件
+
+### [其它]
+
+* 缓存有效期支持指定过期时间(`DateTime`);
+* 改进Url生成对端口号的支持
+* 改进`RouteNotFound`异常提示
+* 改进路由分组的全局完整路由匹配
+* 修正部分验证规则的错误提示问题
+* 支持数据集和模型的XML响应输出
+* 改进模板的三元运算标签
+* 改进控制器不存在的错误提示
+* input助手函数支持`route`变量获取
+* 支持在配置文件中读取额外配置参数
+* 完善分页类
+* 修复Trait命名空间重复问题
+* 修正Request类的env方法
+* 优先使用Cookie中的多语言设置
+* 获取缓存标签的时候过滤无效的缓存标识
+* 修正路由批量注册的一个BUG
+* `exception_handle`配置参数支持使用闭包定义`render`处理
+* 请求缓存支持缓存标签设置
+* 缓存类`remember`方法增加并发锁定机制
+* 改进上传类对`swf`的支持
+* 改进Session类的`prefix`方法
+
+## 2017-07-04 V5.0.10
+
+5.0.10是一个修正版本,并包含了一个安全更新,推荐更新,主要包含:
+
+* 数据库和模型的多处改进
+* 添加新的行为监听
+* 路由支持Response设置
+* 改进调试模式下数据库敏感信息暴露
+
+### [数据库和模型]
+
+* 修正join其他表时生成的delete语句错误
+* 修正远程一对多
+* insertall支持replace
+* 修正多对多默认的中间表获取
+* 改进更新后的模型`update_time`数据更新
+* model类增加`removeRelation`方法
+* 模型类增加`setInc`和`setDec`方法
+* 模型类增加`autoWriteTimestamp`方法动态设置时间字段写入
+* 改进驱动类方法的断线重连判断
+* 改进多对多的数据更新
+* 改进BelongsToMany关联查询
+* 修正Query类的value和column方法
+* 改进in查询的去重问题
+* 修正模型类的scope方法传值问题
+* 调整模型的save方法`before_update`检查位置
+* 修改器和获取器方法支持第三个关联数据参数
+
+### [其它]
+
+* 默认关闭调试模式
+* 修复配置extra目录临时文件的错误加载
+* 添加log存储完成行为监听 `log_write_done`
+* 改进Build类生成公共文件的目录判断
+* 增加`response_send`行为监听 
+* 路由增加response参数用于绑定response处理行为
+* 改进redirect的参数传入
+* 改进环境变量的布尔值读取
+* 改进Url类的域名传入
+* 修正命令行文件生成
+* 改进命令行下面的URL生成
+* 添加`app_host`参数设置默认的URL根地址
+* 改进`Request`类`isSsl`方法判断支持CDN
+* 增加`record_trace`配置参数用于日志记录trace信息
+
+## 2017-05-20 V5.0.9
+
+5.0.9是一个修正版本,推荐更新,主要更新包含:
+
+### [数据库和模型]
+
+* 修正关联自动写入
+* 修正模型数据变化判断对为空数据的支持
+* 修正Query类的useSoftDelete方法返回值
+* 修正一对一嵌套关联数组定义的问题
+* 修正使用了手动参数绑定的时候的缓存BUG
+* 改进数据库类的一处不能嵌套查询的缺陷
+* 改进数据库断线重连判断
+* 改进模型的appendRelationAttr方法
+* 改进模型类destroy方法传入空数组的时候不进行任何删除操作
+* 改进一对多关联数据的输出
+* 改进模型的save方法对allowField方法的支持
+* 改进分页类的toarray方法 增加总页数
+* 比较运算增加闭包子查询支持
+* db助手函数默认不再强制重新连接
+* 改进belongsToMany的查询字段指定
+* 分页类增加each方法
+
+### [其它]
+
+* 修正路由分组的路由规则大小写识别问题
+* 修正命令行的日志切割生成
+* 修复URL生成时路由规则中的参数没有进行 urlencode
+* 改进Request类的filter过滤机制 支持正则
+* 改进Response类支持手动设置contentType
+* 修正异常模板中助手函数未定义错误
+
+## 2017-04-28 V5.0.8
+
+### 主要调整
+
+* 改进关联模型
+* 改进日志记录
+* 增加多态一对一关联
+* 修正社区反馈的一些BUG
+
+### [ 请求和路由 ]
+
+* 修正Request类`cookie`方法对前缀的支持
+* 改进全局请求缓存的缓存标识
+* 改进Request类`param`方法
+* 修正别名路由
+
+### [ 模型和数据库 ]
+
+* 改进模型数据的更新检查
+* 改进Query类的`column`方法
+* 改进软删除条件在使用闭包查询情况下多次生成的问题
+* belongsToMany增加数据同步方法
+* 查询范围支持静态调用
+* 增加多态一对一(MorphOne)关联
+* 改进BelongsTo关联
+* 改进多态关联支持关联数据添加和注销
+* 改进多对多关联,支持中间表模型自定义 并且定义的时候不需要使用完整表名
+* 改进浮点数类型转换避免出现逗号
+* 调整关联模型的save方法返回值
+* 模型类的get方法第一个参数必须 如果传入null则返回null
+* model的save方法改进如果数据没有更新不执行
+* Query增加`useSoftDelete`方法可以单独设置软删除条件
+* 重载BelongsToMany的`selectOrFail`和`findOrFail`方法
+* 重载BelongsToMany的`select` 、`find`和 `paginate`方法
+* 增加模型和`Pivot`对象的`parent`属性
+* 多对多关联支持设置中间表模型
+* 改进Query类的`view`方法中字段的关键字问题
+* 主从数据库的时候开启事务始终操作主库
+
+### [ 其它 ]
+
+* 改进Cookie类的`get`方法支持获取全部
+* `schema`指令增加`config`参数,支持传入数据库连接配置
+* 改进cache类的`store`方法为当次有效
+* 修正cache助手函数对`option`传参的支持
+* 修复`optimize:autoload`命令在`EXTEND_PATH`目录不存在的情况下,类库映射生成错误问题
+* 支持自定义的根命名空间也可以生成类库映射缓存
+* 验证字段比较支持对比其他字段
+* 修复`Session::prefix('xxx');`设置当前作用域BUG
+* 改进`optimize::schema`指令
+* 修复`clear`指令无法删除多级目录下文件的问题
+* 改进默认语言读取和自动侦测
+* 改进日志记录格式 并且命令行下面日志改为实时写入
+* 修正模板标签默认值某些情况无效bug
+* 改进Url生成对完整域名的支持
+* 改进`Clear`指令不删除`.gitignore` 文件
+* 修复Memcache缓存驱动的`inc`方法
+
+### 调整
+
+* 如果自定义了应用的命名空间的话,原来的`app_namespace`配置参数改为`APP_NAMESPACE`常量在入口文件中定义
+* 多对多关联的中间表名称不需要添加表前缀
+* 模型的scope方法之后只能使用数据库查询方法而不能使用模型的方法
+
+## 2017-02-24 V5.0.7
+
+### 主要调整
+
+本次更新主要为BUG修正和改进,主要改进如下:
+
+* 改进全局请求缓存对子域名的支持;
+* 改进数据缓存自动更新机制;
+* 关联统计支持指定统计属性名;
+* 模型嵌套关联支持数组方式;
+* HasOne关联支持`has`和`hasWhere`方法;
+* 路由的`ext`和`deny_ext`参数允许设置为空(表示不允许任何后缀或者必须使用后缀访问);
+
+### 修正如下
+
+* 修正 IN / NOT IN 型查询条件为空导致的 sql 语法错误
+* 修正分页类的`toArray`方法对简洁模式的支持
+* 修正Model类`delete`方法对多主键的处理
+* 修正软删除对`Mongodb`的支持
+* 修正`Connection`类一处可能的错误
+* 改进Query类的find方法的缓存机制
+* 修正BelongsTo关联
+* 修正JOIN方式一对一关联预载入闭包查询
+* 修正Query类的`insert`方法一处可能存在的警告错误
+* 修正Model类一处Collection的`use`冲突
+* 修正Model类`hasWhere`方法
+* 修正URl生成对`ext`参数的支持
+* 文件缓存`clear`方法会删除空目录
+* 修正Route类的`parseUrlPath`方法一处问题
+
+### 调整如下
+
+* 默认关闭session的安全参数`secure`,此选项仅能在HTTPS下设置开启
+
+## 2017-02-07 V5.0.6
+
+### 主要调整:
+
+本次更新主要为BUG修正及优化(可无缝升级):
+
+* 数据库支持断线重连机制;
+* 改进查询事件的回调参数;
+* 改进数据自动缓存机制;
+* 增加时间字段自动格式转换设置;
+* `MongoDb`和`Oracle`扩展更新至最新核心框架;
+
+### [数据库和模型]
+
+* 修正hasMany关联的`has`方法
+* 去除一些数据库惯例配置 避免使用数据库扩展的时候影响
+* 改进多对多的`attach`方法的返回值
+* 增加Mysql的断线重连机制和开关
+* 改进Query类的`find`方法数据缓存机制
+* 改进Query类查询事件的回调参数
+* 改进Query类的自动缓存更新
+* Model类增加`readonly`方法
+* 改进Model类的`has`和`hasWhere`方法
+* 改进模型类的`get`和`all`方法 第二个参数为true或者数字表示缓存参数
+* 修复闭包查询条件为空导致的 sql 语法错误
+* 改进Query类的`setBuilder`方法 避免因自定义连接器类后找不到生成器类
+* 删除Connection类废弃属性`resultSetType`
+* 优化Connection类`close`方法
+* 修正Connection类的`bindParam`方法对存储过程的支持
+* 数据库配置参数`datetime_format` 设置为`false`表示关闭时间字段自动转换输出
+* 改进软删除的数据库兼容性问题 支持`Mongodb`
+
+### [其它]
+
+* 改进Url类生成 `root`为`/`的情况
+* redirect助手函数和controller类的redirect方法增加with参数
+* 全局请求缓存添加排除规则 添加request_cache_except配置参数
+* Cache类store方法参数允许为空 表示获取当前缓存驱动句柄
+* 改进Validate类的ip验证规则
+
+## 2017-01-23 V5.0.5
+### 主要调整:
+
+本次更新主要改进了数据访问层和模型关联:
+
+* 增加快捷查询及设置方法;
+* 增加关联统计功能;
+* 增加关联查询延迟预载入功能;
+* 增加关联一对一自动写入和删除;
+* 改进存储过程查询;
+* 改进关联数据输出;
+* 优化查询性能;
+* 模型时间字段自动格式化输出;
+
+### [请求和路由]
+
+* 改进路由定义的后缀检测
+* Route类的`rest`方法支持覆盖定义
+* 改进Request类的`put`和`post`方法对`json`格式参数的接收
+* Request类增加`contentType`方法
+* 改进Route类`setRule`方法 
+* 改进Request类的`create`方法
+* 改进路由到控制器类的方法对默认渲染模板的影响
+* 修正Url类`build`方法定义路由别名后的BUG
+
+### [数据库和模型]
+
+* 增加关联统计功能
+* 增加一对一关联自动写入功能
+* 修正聚合模型的`delete`方法
+* 改进Model类的`useGlobalScope`方法
+* Model类的日期类型支持设置为类名
+* Query类增加`data`/`inc`/`dec`/`exp`方法用于快捷设置数据 `insert`和`update`方法参数可以为空 读取`data`设置数据
+* 优化Connection的查询性能
+* 修正Builder类的`parseOrder`方法
+* 修正BelongsToMany类的`attach`方法
+* BelongsToMany类的`attach`方法改进 支持批量写入
+* 改进BelongsToMany类的`saveall`方法 增加第三个参数 用于指定额外参数是否一致
+* Query类的`order`方法支持多次调用合并
+* 改进`count`方法对`group`查询的支持
+* 增加时间戳自动写入的判断
+* 改进Model类`writeTransform`方法
+* 改进Model的时间戳字段写入和读取
+* 写入数据为对象的时候检测是否有`__toString`方法
+* 改进Mysql驱动的`getFields`方法
+* 改进自动时间字段的输出
+* `like`查询条件支持数组
+* 自动时间字段的获取自动使用时间格式化
+* 改进单个字段多次Or查询情况的查询
+* 修正`null`查询的条件合并
+* 改进Query类`paginate`方法第一个参数可以使用数组参数
+* 改进数据集对象的返回,由Query类的select方法进行数据集转换,原生查询不再支持返回数据集对象
+* 增加`whereNull`、`whereIn`等一系列快捷查询方法
+* `fetchPdo`方法调整
+* 改进对存储过程调用的支持 改进`getRealSql`的调用机制 改进数据表字段使用中划线的参数绑定支持
+* 数据库配置参数增加`result_type` 用于设置数据返回类型 方法参数名称调整
+* 改进Query类的`whereTime`方法支持更多的时间日期表达式(默认查询条件为大于指定时间表达式)
+* 取消`min`/`max`/`sum`/`avg`方法的参数默认值
+* Query类增加`getPdo`方法用于返回`PDOStatement`对象
+* 改进`today`的日期表达式查询
+* 改进关联属性的获取
+* 改进关联定义中包含查询条件后重复执行的问题
+* 改进参数绑定支持中文字段自动绑定
+* 改进Builder类的`insertall`方法 增加对null和对象数据的处理
+* 改进参数绑定类型 支持`bit`类型自动绑定
+* Connection类`model`方法更改为`getQuery`
+* 优化Connection类`__call`方法
+* 修正聚合模型
+* 一对一关联预载入默认改为IN查询方式
+* 增加`collection`助手函数用于数据集转换
+* 增加`load_relation`助手函数用于数组的延迟预载入
+* 改进Model类的`has`方法第二个参数支持使用数组和闭包,无需再使用`hasWhere`
+* `relation`方法支持嵌套关联查询
+* 增加`think\model\Collection`作为模型的数据集查询集合对象
+* 取消关联定义的`alias`参数(仅`morphTo`保留)
+* Model类的`delete`方法,支持没有主键的情况
+* Model类的`allowField`方法支持逗号分割的字符串
+* 改进写入数据的自动参数绑定的参数名混淆问题
+* 关联预载入查询的属性名默认使用小写+下划线命名
+* Query类的`with`和`relation`方法支持多次调用
+* Collection类增加`hidden`、`visible`和`append`方法
+* 修正软删除的强制删除方法
+
+### [其它]
+
+* `unique`验证规则支持指定完整模型类 并且默认会优先检测模型类是否存在 不存在则检测数据表
+* 改进`Loader`类的`model`、`controller` 和 `validate`方法 支持直接传入类名实例化
+* `Session`类增加安全选项`httponly`和`secure`
+* 可以允许自定义`Output`的driver,以适应命令行模式下调用其它命令行指令 
+* 改进`loader`类`action`的参数污染问题
+* Validate类的`confirm`验证改为恒等判断
+* 改进`Validate`类的错误信息处理
+* 修正`Validate`类的布尔值规则验证
+* 改进`cookie`助手函数对前缀的支持
+* 文件缓存默认开启子目录缓存避免文件过多导致性能问题
+
+### [调整]
+* Connection类`model`方法更改为`getQuery`
+* 原生查询不再支持返回数据集对象
+* 分页查询返回类型变成`think\Paginator`(用法不变)
+* 模型的时间日期字段会自动进行格式化输出,不需要进行额外处理。
+* Session类添加了`secure`和`httponly`参数,并且默认是true
+
+## 2016-12-20 V5.0.4
+### 主要调整:
+
+* 关联模型重构并增加多态一对多关联;
+* 数据库支持一个字段多次调用不同查询条件;
+* 增加数据库CURD事件支持;
+* 路由到类和控制器的方法支持传入额外参数;
+* 支持全局模板变量赋值;
+* 模型支持独立设置查询数据集对象;
+* 日志针对命令行及调试做出改进;
+* 改进Hook类的行为方法调用
+
+### [请求和路由]
+* 请求缓存支持模块单独开启
+* Request类`post`方法支持获取`json`方式的请求数据
+* 路由到类的方法和控制器方法 支持传入额外参数,用于方法的参数
+* 改进控制器自动搜索的目录规范
+* 改进请求缓存
+* 改进自动参数绑定
+* 修正路由的请求缓存设置
+* 改进Route类name方法
+
+### [数据库和模型]
+* 增加数据库查询(CURD)事件
+* 改进多表更新的字段不存在问题
+* 改进Model类的`useGlobalScope`方法
+* 修正子查询作为表名查询的问题
+* Model类增加`resultSetType`属性 用于指定模型查询的数据集对象(默认为空返回数组) 
+* Model类增加`toCollection`方法(自动调用)
+* 关联模型架构调整
+* 改进预载入`with`方法的参数支持小写和下划线定义
+* 修正关联多对多一处错误
+* 改进关联多对多的查询
+* 关联模型支持多态一对多关联
+* 预载入关联查询支持关联对象属性绑定到当前模型
+* 支持追加关联对象的属性到当前模型数据
+* 一对一关联预载入支持JOIN和IN两种方式(默认为JOIN)
+* 改进多对多查询
+* 改进模型更新的数据变化比较规则
+* 查询支持一个字段多次查询条件
+* 改进sql日志的sql语句
+* 修正`join`自身表的别名覆盖问题
+* 模型类的`connection`属性和数据库默认配置合并
+* 改进`in`和`between`查询条件的自动参数绑定
+* 改进Query类对数据集对象以及关联字段排序的支持
+* 增加模型的快捷事件方法
+* 改进Query类的`getTableInfo`方法缓存读取
+* model类的`saveAll`方法支持调用`allowField`方法进行字段过滤
+* 修正关联查询的时候 `whereTime`方法的bug
+* 改进Query类的聚合查询
+* table方法支持字符串方式的子查询
+* 修正`count` `avg`方法使用`fetchsql`无法正确返回sql的问题
+
+### [其它]
+* 改进命令行下的日志记录
+* 部署模式下简化日志记录
+* 增加debug日志类型 仅限调试模式记录
+* 改进Template类`parseTemplateFile`方法
+* 改进Validate类的`getRuleMsg`方法
+* 控制器的`error`方法在AJAX请求默认返回url为空
+* Validate类架构方法增加`field`参数 用于设置验证字段的描述
+* 改进App类`invokeMethod`方法对架构函数依赖注入的支持
+* 增加RedirectResponse的`restore`方法返回值
+* View类增加`share`静态方法 用于静态赋值模板变量
+* 验证类增加`hasScene`方法判断是否存在某个场景的验证配置
+* 修正redis和session驱动的`destroy`方法返回值
+* 空操作方法的参数传入去掉操作方法后缀
+* 在控制器中调用request和view增加类型提示
+* 改进`input`助手函数支持多维数据获取
+* Cache类增加`pull`和`remember`方法
+* 改进验证类的`confirm`验证规则 支持自动规则识别
+* 改进验证类的错误信息定义
+* 增加Validate类自定义验证错误信息的替换规则
+* Cookie类增加`forever`方法用于永久保存
+* 模板渲染支持从视图根目录读取模板
+* 改进Hook类的exec方法
+
+### [调整]
+* Db类查询不再支持设置自定义数据集对象
+* 废除Query类的`fetchClass`方法
+* 控制器的`error`方法在AJAX请求默认返回的url为空
+* 关联方法定义不支持使用小写下划线,必须使用驼峰法
+* 行为类的方法必须使用驼峰法命名
+
+## 2016-11-11 V5.0.3
+### 主要调整:
+* 请求缓存增强;
+* 路由增强;
+* 数据库和模型完善;
+* 支持反射的异常捕获;
+* File类改进;
+* 修正社区反馈的一些BUG;
+
+### [ 请求和路由 ]
+
+* 资源路由自动注册的路由规则的时候会记录当前使用的资源标识;
+* 增强请求缓存功能和规则定义,支持全局自动缓存
+* 修正控制器自动搜索的大小写问题
+* 修正路由绑定到命名空间后 类的自动定位
+* 改进Route类的parseRule方法 路由地址中的变量替换不自动去除路由变量
+* 改进控制器自动搜索
+* Route类增加setOption和getOption方法 用于记录当前路由执行过程中的参数信息
+* 优化路由分组方法
+* 改进分组路由的url生成
+
+### [ 数据库和模型 ]
+
+* 一对一关联查询方法支持定义`field`方法
+* 聚合模型支持设置`field`属性
+* 改进Query类的`alias`方法
+* 改进Query类`join`和`view`方法的table参数
+* 改进Query类`where`方法
+* 改进Query类的`paginate`方法,支持`order`方法
+* 改进Query类的`min`和`max`方法支持日期类型
+* 修正软删除`withTrashed`方法
+* 优化Connection类的`getRealSql`方法生成的sql
+
+### [ 其它 ]
+* 增加request_cache和request_cache_expire配置参数用于配置全局请求缓存;
+* 修正input助手函数的数组过滤
+* cache助手函数支持清空操作
+* 改进Config类load方法 一级配置名称强制转为小写
+* 修正Url多次生成的问题
+* File类修正某些环境下面无法识别上传文件的问题
+* 改进App类的空操作方法调用
+* 域名部署URL生成不依赖 url_domain_deploy 配置参数
+* 修正Url类域名部署的问题
+* 视图文件目录支持集中式存放 不放入模块目录
+* cache助手函数支持 remember方法
+* Request类的input方法或者input助手函数的`filter`参数支持传入null 表示不过滤
+
+## 2016-10-24 V5.0.2
+### 主要调整:
+
+* 数据库和模型完善;
+* 路由功能完善;
+* 增加`yaml`配置格式支持;
+* 依赖注入完善;
+* Session类完善;
+* Cookie类完善;
+* Validate类完善;
+* 支持反射类的异常捕获;
+* 修正社区反馈BUG;
+
+### [ 请求和路由 ]
+* 依赖注入的类如果定义了`invoke`方法则自动调用
+* Request类的`header`方法增加自定义header支持
+* Request类禁止直接实例化调用
+* 改进Request类ip方法
+* 路由变量规则支持闭包定义
+* 路由参数增加`ajax`和`pjax`判断
+* 别名路由增加允许和排除操作
+* 改进路由域名绑定后的url生成
+* 路由生成改进对路由到类的支持
+* 路由生成支持`url_param_type`配置参数
+* 路由生成支持别名路由
+* Route重定向规则支持更多` schema`
+* 别名路由支持定义单独方法的请求类型
+* 改进路由分组的url生成
+* 路由规则的组合变量支持可选分隔符定义
+* 改进路由合并参数的获取
+* 路由规则支持单独设置url分隔符,路由参数为 `param_depr`
+* 自动搜索控制器支持自定义访问控制器层的情况
+* 改进路由标识不区分大小写
+* 改进路由地址是否定义过路由规则的检测
+
+### [ 数据库和模型 ]
+* 改进Query类的join方法
+* 改进Query类分页方法的参数绑定
+* 修正软删除方法
+* 修正Query类parseOrder方法一处错误
+* 修正sqlsrv驱动parseOrder方法
+* 修正Query类setInc和setDec方法
+* 改进Model类的save方法支持非自增主键的处理
+* 整型字段的参数绑定如果为空写入默认值0
+* 改进Model类has和hasWhere方法
+* 改进Query类的value方法缓存判断
+* 改进Query类join方法对子查询支持
+* 改进Query类的table方法和alias方法用法
+* 关联预载入支持`hasOne`自关联
+* 改进Builder类的parseKey方法
+* 改进Builder类的join/alias/table方法的解析
+* 改进全局查询范围
+* 改进Query类的聚合查询方法的返回值
+* 改进关联属性的读取
+* 改进聚合模型主键和关联键相同的情况
+* 改进模型在开启`class_suffix`参数情况下的name属性的识别
+
+### [ 其它 ]
+* Cache类增加`remember`方法 用于当获取的缓存不存在的时候自动写入
+* Session类增加`flash`方法用于设置下一次请求有效的值 
+* Session类增加`flush`方法用于清空当前请求有效的值 
+* Session类增加`push`方法用于更新数组数据
+* 增加yaml配置格式支持
+* 改进App类的反射异常无法捕获问题
+* 修正session助手函数的清空操作
+* 改进验证类的`image`方法
+* 改进验证类的`activeUrl`方法 
+* 改进自定义验证规则的使用
+* 改进控制器自动搜索后的控制器名获取
+* 修正import方法加载extend目录类库
+* 修正json_encode时 "Failed calling XXX::jsonSerialize()" 的异常
+* 改进Loader类model和validate方法的单例问题
+* 改进方法执行的日志记录
+* 改进模板引擎的Think变量解析
+* 改进Lang类`load`方法
+* 验证错误信息支持多语言读取
+* 改进ROOT_PATH常量
+* 改进语言包加载
+* 改进模板session和cookie变量获取,自动判断前缀
+* 缓存驱动统一增加handler方法用于获取操作对象的句柄(某些缓存类型可能为null)
+* File类增加`__call`方法用于兼容5.0版本的`md5`和 `sha1`方法
+* 改进文件缓存驱动的`clear`方法
+* Lang类增加`setLangCookieExpire`方法设置多语言cookie过期时间
+* 增加`route_complete_match`配置参数
+
+### [ 调整 ]
+下列模型属性和方法由原来的静态(static)定义改为动态定义:
+* 聚合模型的`relationModel`属性
+* Model类的`useGlobalScope `属性
+* 全局查询范围方法`base`改为动态方法
+* 软删除属性 `deleteTime`属性
+
+
+## 2016-9-28 V5.0.1
+### 主要调整:
+* [依赖注入](215849)完善;
+* [扩展配置](118027)文件位置调整;
+* 新增数据表[字段缓存命令](211524);
+* 支持设置当前的查询对象;
+* 支持[请求和路由缓存](215850);
+
+### [ 请求和路由 ]
+* 改进Controller类的`success`和`error`方法的跳转地址识别 支持更多Scheme
+* 操作方法和架构方法支持任何对象自动注入
+* Requesst类增加`getInput`方法 用于获取` php://input`值
+* 路由到方法的时候 支持架构方法注入请求对象
+* 改进Route类路由到类的判断
+* Request增加`cache`方法,支持请求缓存
+* 绑定到模块后 路由依然优先检查
+* 路由增加请求缓存参数
+* 修正路由组合变量的可选变量的BUG
+
+### [ 数据库 ]
+* 修正`pgsql`数据库驱动的数据表字段信息读取
+* 改进Query类的`view`方法 第二个参数默认值更改为true 获取全部的字段
+* 数据库配置信息增加`query`参数用于配置查询对象名称
+* 型类增加`query`属性用于配置模型需要的查询对象名称
+* 改进数据表字段缓存读取
+* 改进数据表字段缓存生成 模型为抽象类或者 没有继承Model类 不生成字段缓存
+* 改进模型的字段缓存 虚拟模型不生成字段缓存
+* 改进数据表字段缓存生成 支持读取模块的模型生成
+* 改进聚合模型的`save`方法 主键写入
+* 模型类的field属性定义简化 取消`Query`类的`allowField`和`setFieldType`方法及相关属性
+* 改进数据表字段缓存生成 支持生成多个数据库的
+* 更新数据库驱动类 改进`getTables`方法
+* 增加` optimize:schema` 命令 用于生成数据表字段信息缓存
+* 修正一个查询条件多个条件的时候的参数绑定BUG
+* 分页查询方法`paginate`第二个参数传入数字表示总记录数
+* 修正mysql的`JSON`字段查询
+* 改进Query类的getOptions方法 当name参数不存在的时候返回null
+
+### [ 模型和关联 ]
+* 模型类的field属性不需要添加字段类型定义
+* 改进Model类 添加`getDb`静态方法获取db查询对象
+* 改进聚合模型`save`方法返回值
+* 改进Relation类`save`方法
+* 修正关联模型 多对多`save`方法一处问题
+* 改进Model类的save方法 修正不按主键查询的更新问题
+* 时间字段获取器获取的时候为NULL则不做转换
+
+### [ 其它 ]
+
+* 改进配置缓存生成 支持扩展配置
+* 取消`extra_config_list`配置参数 扩展配置文件直接放到 `extra`目录下面即可自动加载(数据库配置文件位置不变)
+* cache助手函数支持判断缓存是否有效
+* 修正 模板引擎驱动类的`config`方法
+* 修复在配置Model属性field=true情况下,通过`__call`调用db()引发的BUG
+* 改进模板引擎驱动的config方法 支持获取配置参数值
+* 改进redirct的url地址解析
+* 删除`File`类的`md5`和`sha1`方法 改为`hash`方法 支持更多的散列值类型生成
+* 增加`response_end`行为标签
+* 改进默认语言的加载
+
+## 2016-9-15 V5.0
+
+### [ 请求和路由 ]
+
+* Request对象支持动态绑定属性
+* 定义了路由规则的URL原地址禁止访问
+* 改进路由规则存储结构
+* 路由分组功能增强,支持嵌套和虚拟分组
+* 路由URL高效反解
+* 改进Request对象param方法获取优先级
+* 路由增加name方法设置和获取路由标识
+* 增加MISS和AUTO路由规则
+* Route类增加auto方法 支持注册一个自动解析URL的路由
+* 路由规则支持模型绑定
+* 路由变量统一使用param方法获取
+* 路由规则标识功能和自动标识
+* 增加生成路由缓存指令 optimize:route
+* Request对象增加route方法单独获取路由变量
+* Request对象的param get post put request delete server cookie env方法的第一个参数传入false 则表示获取原始数据 不进行过滤
+* 改进自动路由标识生成 支持不同的路由规则 指向同一个路由标识,改进Url自动生成对路由标识的支持
+* 改进Request类 filter属性的初始化
+* 改进Request类的isAjax和isPjax方法
+* Request类增加token方法
+* 路由配置文件支持多个 使用 route_config_file 配置参数配置
+* 域名绑定支持https检测
+* 改进域名绑定 支持同时绑定模块和其他 支持绑定到数组定义的路由规则,取消域名绑定到分组
+* 路由规则增加PATCH请求类型支持
+* 增加route_complete_match配置参数设置全局路由规则定义是否采用完整匹配 可以由路由规则的参数complete_match 进行覆盖
+* 改进路由的 后缀参数识别 优先于系统的伪静态后缀参数
+* Url类增加root方法用于指定当前root地址(不含域名)
+* 改进Url生成对可选参数的支持
+
+### [ 数据库 ]
+
+* 查询条件自动参数绑定
+* 改进分页方法支持参数绑定
+* Query类的cache方法增加缓存标签参数
+* Query类的update和delete方法支持调用cache方法 会自动清除指定key的缓存 配合查询方法的cache方法一起使用 
+* 改进Query类的延迟写入方法
+* Query类的column和value方法支持fetchsql
+* 改进日期查询方法
+* 改进存储过程方法exec的支持
+* 改进Connection类的getLastInsID方法获取
+* 记录数据库的连接日志(连接时间和DSN)
+* 改进Query类的select方法的返回结果集判断  
+* Connection类增加getNumRows方法
+* 数据库事务方法取消返回值
+* 改进Query类的chunk方法对主键的获取
+* 改进当数据库驱动类型使用完整命名空间的时候 Query类的builder方法的问题
+
+### [ 模型 ]
+
+* 增加软删除功能
+* 关联模型和预载入改进
+* 关联预载入查询闭包支持更多的连贯操作
+* 完善savell方法支持更新和验证
+* 关联定义统一返回Relation类
+* Model类的has和hasWhere方法对join类型的支持
+* Model类的data方法 批量赋值数据的时候 清空原始数据
+* Model类的get方法第三个参数传入true的时候会自动更新缓存
+* Model类增加只读字段支持
+* Model类增加useGlobalScope方法设置是否启用全局查询范围
+* Model类的base方法改为静态定义 全局多次调用有效
+* Model类支持设定主键、字段信息和字段类型,不依赖自动获取,提高性能
+* Model类的data方法 支持修改器
+* 改进Relation类对非数字类型主键的支持
+* 改进Relation类的一对多删除
+* 修正Relation类的一对多关联预载入查询
+
+### [ 日志和缓存 ]
+
+* 支持日志类型分离存储
+* 日志允许设置记录级别
+* 增加缓存标签功能
+* 缓存类增加pull方法用于获取并删除
+* cache助手函数增加tag参数
+* 简化日志信息,隐藏数据库密码
+* 增加cache/session redis驱动的库选择逻辑;
+* memcached驱动的配置参数支持option参数
+* 调试模式下面 日志记录增加页面的header和param参数记录
+* memcached缓存驱动增加连接账号密码参数
+* 缓存支持设置complex类型 支持配置多种缓存并用store切换
+* 缓存类增加tag方法 用于缓存标签设置 clear方法支持清除某个缓存标签的数据
+* File类型日志驱动支持设置单独文件记录不同的日志级别
+* 改进文件缓存和日志的存储文件名命名规范
+* 缓存类增加inc和dec方法 针对数值型数据提供自增和自减操作
+* Cache类增加has方法 get方法支持默认值
+
+### [ 其它 ]
+
+* 视图类支持设置模板引擎参数
+* 增加表单令牌生成和验证
+* 增加中文验证规则
+* 增加image和文件相关验证规则
+* 重定向Response对象支持with方法隐含传参
+* 改进Session类自动初始化
+* session类增加pull方法用于获取并删除
+* 增加Env类用于获取环境变量
+* Request类get/post/put等更改赋值后param方法依然有效
+* 改进Jump跳转地址支持Url::build 解析
+* 优化Hook类
+* 应用调试模式和页面trace支持环境变量设置
+* config助手函数支持 config('?name') 用法
+* 支持使用BIND_MODULE常量的方式绑定模块
+* 入口文件自动绑定模块功能
+* 改进验证异常类的错误信息和模板输出,支持批量验证的错误信息抛出
+* 完善console 增加output一些常用的方法
+* 增加token助手函数 用于在页面快速显示令牌
+* 增加halt方法用于变量调试并中断输出
+* 改进Validate类的number验证规则 和 integer区分开
+* optimize:autoload增加对extend扩展目录的扫描
+* 改进Validate类的boolean验证规则 支持表单数据
+* 改进cookie助手函数支持 判断是否存在某个cookie值
+* 改进abort助手函数 支持抛出HttpResponseException异常
+* 改进File类增加对上传错误的处理
+* 改进File类move方法的返回对象增加上传表单信息,增加获取文件散列值的方法
+* 改进File类的move方法的返回对象改为返回File对象实例
+* 增加clear和optimize:config 指令
+* 改进File类和Validate类的图像文件类型验证
+* 控制器的操作方法支持注入Request之外的对象实例
+* Request类 param(true) 支持获取带文件的数据
+* input助手函数第一个参数增加默认值
+* Validate类增加image验证规则 并改进max min length支持多种数据类型
+* json输出时数据编码失败后抛出异常
+
+### [ 调整 ]
+* 废除路由映射(静态路由)定义
+* 取消url_deny_suffix配置 改由路由的deny_ext参数设置
+* 模型save方法返回值改为影响的记录数,取消getId参数
+* Request对象controller方法返回驼峰控制器名
+* 控制器前置操作方法不存在则抛出异常
+* Loader类db方法增加name标识参数
+* db助手函数增加第三个参数用于指定连接标识
+* Sqlsrv驱动默认不对数据表字段进行小写转换
+* 移除sae驱动 改为扩展包
+* Oracle驱动移出核心包
+* Firebird驱动移出核心包
+* 取消别名定义文件alias.php
+* 配置参数读取的时候取消环境变量判断 需要读取环境变量的时候使用Env类
+* 环境变量定义文件更改为 .env 由原来的PHP数组改为ini格式定义(支持数组方式)
+* 状态配置和扩展配置的加载顺序调整 便于状态配置文件中可以更改扩展配置的参数
+* 取消域名绑定到路由分组功能
+* 控制器类的success和error方法url参数支持传入空字符串,则不做任何处理
+* 控制器的error success result redirect方法均不需要使用return
+* 创建目录的权限修改为0644
+
+
+## 2016-7-1 RC4版本
+### [ 底层架构 ]
+* 增加Request类 并支持自动注入
+* 统一Composer的自动加载机制
+* 增加Response类的子类扩展
+* 增加File类用于上传和文件操作
+* 取消模式扩展 SAE支持降权
+* 优化框架入口文件
+* 改进异常机制
+* App类输入/输出调整
+* 单元测试的完美支持
+* 增加新的控制台指令
+* 取消系统路径之外的大部分常量定义
+* 类库映射文件由命令行动态生成 包含应用类库
+
+### [ 数据库 ]
+
+* 增加分表规则方法
+* 增加日期和时间表达式查询方法
+* 增加分页查询方法
+* 增加视图查询方法
+* 默认保持数据表字段大小写
+* 数据缓存自动更新机制
+* 完善事务嵌套支持
+* 改进存储过程数据读取
+* 支持设置数据库查询数据集返回类型
+
+### [ 模型 ]
+* 增加Merge扩展模型
+* 模型支持动态查询
+* 增加更多的类型自动转换支持
+* 增加全局查询范围
+* toJson/toArray支持隐藏和增加属性输出
+* 增加远程一对多关联
+
+### [ 其它 ]
+* 日志存储结构调整
+* Trace调试功能从日志类独立并增强
+* 原Input类功能并入Request类
+* 类库映射文件采用命令行生成 包含应用类库
+* 验证类的check方法data数据取消引用传参
+* 路由增加MISS路由规则
+* 路由增加路由别名功能
+
+## 2016-4-23 RC3版本
+### [ 底层架构 ]
+* 框架核心仓库和应用仓库分离 便于composer独立更新
+* 数据库类重构,拆分为Connection(连接器)/Query(查询器)/Builder(SQL生成器)
+* 模型类重构,更加对象化
+
+### [ 数据库 ]
+
+* 新的查询语法
+* 闭包查询和闭包事务
+* Query对象查询
+* 数据分批处理
+* 数据库SQL执行监听
+
+### [ 模型 ]
+* 对象化操作
+* 支持静态调用(查询)
+* 支持读取器/修改器
+* 时间戳字段
+* 对象/数组访问
+* JSON序列化
+* 事件触发
+* 命名范围
+* 类型自动转换
+* 数据验证和完成
+* 关联查询/写入
+* 关联预载入
+
+### [ 其它更新 ]
+* 路由类增加快速路由支持
+* 验证Validate类重构
+* Build类增加快速创建模块的方法
+* Url生成类改进
+* Validate类改进
+* View类及模板引擎驱动设计改进
+* 取消模板引擎的模板主题设计
+* 修正社区反馈的一些问题
+* 助手函数重新命名
+* `router.php`文件位置移动
+
+## 2016-3-11 RC2版本
+
+* 重新设计的自动验证和自动完成机制(原有自动验证和完成支持采用traits\model\Auto兼容);
+* 验证类Validate独立设计;
+* 自动生成功能交给Console完成;
+* 对数据表字段大小写的处理;
+* 改进Controller类(取消traits\contorller\View);
+* 改进Input类;
+* 改进Url类;
+* 改进Cookie类;
+* 优化Loader类;
+* 优化Route类;
+* 优化Template类;
+* Session类自动初始化;
+* 增加traits\model\Bulk模型扩展用于大批量数据写入和更新;
+* 缓存类和日志类增加Test驱动;
+* 对异常机制和错误处理的改进;
+* 增加URL控制器和操作是否自动转换开关;
+* 支持类名后缀设置;
+* 取消操作绑定到类的功能;
+* 取消use_db_switch参数设计;
+
+## 2016-1-30 RC1版本
+### [ 底层架构 ]
+
+*   真正的惰性加载
+*   核心类库组件化
+*   框架引导文件
+*   完善的类库自动加载(支持Composer)
+*   采用Traits扩展
+*   API友好(输出、异常和调试)
+*   文件命名规范调整
+
+### [ 调试和异常 ]
+
+*   专为API开发而设计的输出、调试和异常处理
+*   日志类支持本地文件/SAE/页面Trace/SocketLog输出,可以实现远程浏览器插件调试
+*   内置trace方法直接远程调试
+*   异常预警通知驱动设计
+*   数据库SQL性能分析支持
+
+### [ 路由 ]
+
+*   动态注册路由
+*   自定义路由检测方法
+*   路由分组功能
+*   规则路由中的变量支持采用正则规则定义(包括全局和局部)
+*   闭包路由
+*   支持路由到多层控制器
+
+### [ 控制器 ]
+
+*   控制器类无需继承controller类
+*   灵活的多层控制器支持
+*   可以Traits引入高级控制器功能
+*   rest/yar/rpc/hprose/jsonrpc控制器扩展
+*   前置操作方法支持排除和指定操作
+
+
+### [ 模型 ]
+
+*   简化的核心模型
+*   Traits引入高级模型/视图模型/关联模型
+*   主从分布时候主数据库读操作支持
+*   改进的join方法和order方法
+
+### [ 视图 ]
+
+*   视图解析驱动设计(模板引擎)
+*   所有方法不再直接输出而是返回交由系统统一输出处理
+*   动态切换模板主题设计
+*   动态切换模板引擎设计
+
+### [ 数据库 ]
+
+*   完全基于PDO实现
+*   简化的数据库驱动设计
+*   SQL性能监控(需要开启数据库调试模式)
+*   PDO参数绑定改进
+
+### [ 其他方面 ]
+
+*   目录和MVC文件自动生成支持
+*   I函数默认添加变量修饰符为/s
+*   一个行为类里面支持为多个标签位定义不同的方法
+*   更多的社交扩展类库

+ 32 - 0
repairceshi/LICENSE.txt

@@ -0,0 +1,32 @@
+
+ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
+版权所有Copyright © 2006-2017 by ThinkPHP (http://thinkphp.cn)
+All rights reserved。
+ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
+
+Apache Licence是著名的非盈利开源组织Apache采用的协议。
+该协议和BSD类似,鼓励代码共享和尊重原作者的著作权,
+允许代码修改,再作为开源或商业软件发布。需要满足
+的条件: 
+1. 需要给代码的用户一份Apache Licence ;
+2. 如果你修改了代码,需要在被修改的文件中说明;
+3. 在延伸的代码中(修改和有源代码衍生的代码中)需要
+带有原来代码中的协议,商标,专利声明和其他原来作者规
+定需要包含的说明;
+4. 如果再发布的产品中包含一个Notice文件,则在Notice文
+件中需要带有本协议内容。你可以在Notice中增加自己的
+许可,但不可以表现为对Apache Licence构成更改。 
+具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.

+ 133 - 0
repairceshi/README.md

@@ -0,0 +1,133 @@
+ThinkPHP 5.0
+===============
+
+[![Total Downloads](https://poser.pugx.org/topthink/think/downloads)](https://packagist.org/packages/topthink/think)
+[![Latest Stable Version](https://poser.pugx.org/topthink/think/v/stable)](https://packagist.org/packages/topthink/think)
+[![Latest Unstable Version](https://poser.pugx.org/topthink/think/v/unstable)](https://packagist.org/packages/topthink/think)
+[![License](https://poser.pugx.org/topthink/think/license)](https://packagist.org/packages/topthink/think)
+
+ThinkPHP5在保持快速开发和大道至简的核心理念不变的同时,PHP版本要求提升到5.4,对已有的CBD模式做了更深的强化,优化核心,减少依赖,基于全新的架构思想和命名空间实现,是ThinkPHP突破原有框架思路的颠覆之作,其主要特性包括:
+
+ + 基于命名空间和众多PHP新特性
+ + 核心功能组件化
+ + 强化路由功能
+ + 更灵活的控制器
+ + 重构的模型和数据库类
+ + 配置文件可分离
+ + 重写的自动验证和完成
+ + 简化扩展机制
+ + API支持完善
+ + 改进的Log类
+ + 命令行访问支持
+ + REST支持
+ + 引导文件支持
+ + 方便的自动生成定义
+ + 真正惰性加载
+ + 分布式环境支持
+ + 更多的社交类库
+
+> ThinkPHP5的运行环境要求PHP5.4以上。
+
+详细开发文档参考 [ThinkPHP5完全开发手册](http://www.kancloud.cn/manual/thinkphp5)
+
+## 目录结构
+
+初始的目录结构如下:
+
+~~~
+www  WEB部署目录(或者子目录)
+├─application           应用目录
+│  ├─common             公共模块目录(可以更改)
+│  ├─module_name        模块目录
+│  │  ├─config.php      模块配置文件
+│  │  ├─common.php      模块函数文件
+│  │  ├─controller      控制器目录
+│  │  ├─model           模型目录
+│  │  ├─view            视图目录
+│  │  └─ ...            更多类库目录
+│  │
+│  ├─command.php        命令行工具配置文件
+│  ├─common.php         公共函数文件
+│  ├─config.php         公共配置文件
+│  ├─route.php          路由配置文件
+│  ├─tags.php           应用行为扩展定义文件
+│  └─database.php       数据库配置文件
+│
+├─public                WEB目录(对外访问目录)
+│  ├─index.php          入口文件
+│  ├─router.php         快速测试文件
+│  └─.htaccess          用于apache的重写
+│
+├─thinkphp              框架系统目录
+│  ├─lang               语言文件目录
+│  ├─library            框架类库目录
+│  │  ├─think           Think类库包目录
+│  │  └─traits          系统Trait目录
+│  │
+│  ├─tpl                系统模板目录
+│  ├─base.php           基础定义文件
+│  ├─console.php        控制台入口文件
+│  ├─convention.php     框架惯例配置文件
+│  ├─helper.php         助手函数文件
+│  ├─phpunit.xml        phpunit配置文件
+│  └─start.php          框架入口文件
+│
+├─extend                扩展类库目录
+├─runtime               应用的运行时目录(可写,可定制)
+├─vendor                第三方类库目录(Composer依赖库)
+├─build.php             自动生成定义文件(参考)
+├─composer.json         composer 定义文件
+├─LICENSE.txt           授权说明文件
+├─README.md             README 文件
+├─think                 命令行入口文件
+~~~
+
+> router.php用于php自带webserver支持,可用于快速测试
+> 切换到public目录后,启动命令:php -S localhost:8888  router.php
+> 上面的目录结构和名称是可以改变的,这取决于你的入口文件和配置参数。
+
+## 命名规范
+
+`ThinkPHP5`遵循PSR-2命名规范和PSR-4自动加载规范,并且注意如下规范:
+
+### 目录和文件
+
+*   目录不强制规范,驼峰和小写+下划线模式均支持;
+*   类库、函数文件统一以`.php`为后缀;
+*   类的文件名均以命名空间定义,并且命名空间的路径和类库文件所在路径一致;
+*   类名和类文件名保持一致,统一采用驼峰法命名(首字母大写);
+
+### 函数和类、属性命名
+
+*   类的命名采用驼峰法,并且首字母大写,例如 `User`、`UserType`,默认不需要添加后缀,例如`UserController`应该直接命名为`User`;
+*   函数的命名使用小写字母和下划线(小写字母开头)的方式,例如 `get_client_ip`;
+*   方法的命名使用驼峰法,并且首字母小写,例如 `getUserName`;
+*   属性的命名使用驼峰法,并且首字母小写,例如 `tableName`、`instance`;
+*   以双下划线“__”打头的函数或方法作为魔法方法,例如 `__call` 和 `__autoload`;
+
+### 常量和配置
+
+*   常量以大写字母和下划线命名,例如 `APP_PATH`和 `THINK_PATH`;
+*   配置参数以小写字母和下划线命名,例如 `url_route_on` 和`url_convert`;
+
+### 数据表和字段
+
+*   数据表和字段采用小写加下划线方式命名,并注意字段名不要以下划线开头,例如 `think_user` 表和 `user_name`字段,不建议使用驼峰和中文作为数据表字段命名。
+
+## 参与开发
+
+请参阅 [ThinkPHP5 核心框架包](https://github.com/top-think/framework)。
+
+## 版权信息
+
+ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
+
+本项目包含的第三方源码和二进制文件之版权信息另行标注。
+
+版权所有Copyright © 2006-2018 by ThinkPHP (http://thinkphp.cn)
+
+All rights reserved。
+
+ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
+
+更多细节参阅 [LICENSE.txt](LICENSE.txt)

+ 1 - 0
repairceshi/application/.htaccess

@@ -0,0 +1 @@
+deny from all

+ 143 - 0
repairceshi/application/admin/controller/AuthortyManage.php

@@ -0,0 +1,143 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: Titan 名字就是密码
+ * Date: 2019/4/25
+ * Time: 18:03
+ * 权限管理
+ */
+
+namespace app\admin\controller;
+use think\Controller;
+use think\Db;
+use think\Request;
+
+class AuthortyManage extends Controller
+{
+
+    /**
+     * 管理员首页
+     * @return mixed
+     */
+    public function index()
+    {
+        $admin = Db::name('admin')->select();
+        $this->assign('admin',$admin);
+        return $this->fetch();
+    }
+
+    /**
+     * 增加管理员
+     * @param Request $request
+     * @return bool|mixed
+     */
+    public function addAdmin(Request $request)
+    {
+        if($request->isPost() && $request->isAjax()){
+            $data = $request->param();
+            $data['user_nickname'] = '管理员';
+            $data['create_time'] = time();
+            $data['password'] = md5($data['password']);
+            $authority = '';
+            //管理组
+            foreach ($data['authority'] as $key=>$v){
+                $authority .= $v .",";
+            }
+            $data['authority'] = substr($authority,0,-1);
+            unset($data['repass']);
+          	$name = Db::name('admin')->where('username',$data['username'])->find();
+          	$openid = Db::name('admin')->where('openid',$data['openid'])->find();
+          	if($name){
+            	echo json_encode(['status'=>0,'message'=>'登录名重复'],JSON_UNESCAPED_UNICODE);
+              	exit;
+            }
+          	if($openid){
+            	echo json_encode(['status'=>0,'message'=>'此微信已绑定,不能重复绑定'],JSON_UNESCAPED_UNICODE);
+              	exit;
+            }
+            $insert = Db::name('admin')->insert($data);
+            if($insert){
+                echo json_encode(['status'=>1,'message'=>'增加成功'],JSON_UNESCAPED_UNICODE);
+              	exit;
+            }
+            echo json_encode(['status'=>0,'message'=>'增加失败'],JSON_UNESCAPED_UNICODE);
+        }else{
+
+            $this->assign('adminGroup',$this->getGroup());
+          	$this->assign('admin',$this->admin());
+            return $this->fetch();
+        }
+
+    }
+
+  	public function admin()
+    {
+        $admin = Db::name('user')->where(['identity'=>99,'is_register'=>1,'is_check'=>1])->field(['openid','headimgurl','nickname','username'])->select();
+        return $admin;
+    }
+    /**
+     * 删除管理员
+     * @param Request $request
+     */
+    public function del(Request $request)
+    {
+        $id = $request->param('id');
+        $result = Db::name('admin')->delete($id);
+        if($result){
+            header('Location: /admin/authorty_manage/index');
+            exit;
+        }
+    }
+
+    /**
+     * 获取所有组
+     * @return false|\PDOStatement|string|\think\Collection
+     */
+    public function getGroup()
+    {
+        $adminGroup = Db::name('group')->select();
+        return $adminGroup;
+    }
+
+    /**
+     * 查看管理员
+     * @param Request $request
+     * @return mixed
+     */
+    public function view(Request $request)
+    {
+        $id = $request->param('adminId');
+        $data = Db::name('admin')->where('id',$id)->find();
+        $this->assign('data',$data);
+        $this->assign('adminGroup',$this->getGroup());
+
+        return $this->fetch();
+    }
+
+    /**
+     * 编辑管理员
+     * @param Request $request
+     * @return bool|mixed
+     */
+    public function editAdmin(Request $request)
+    {
+        if($request->isGet()){
+            $id = $request->param('adminId');
+            $data = Db::name('admin')->where('id',$id)->find();
+            $this->assign('data',$data);
+            $this->assign('adminGroup',$this->getGroup());
+            return $this->fetch();
+        }else{
+            $id = $request->param('id');
+            $data = $request->param();
+            $authority = '';
+            foreach ($data['authority'] as $key=>$v){
+                $authority .= $v .",";
+            }
+            $data['authority'] = substr($authority,0,-1);
+            $result = Db::name('admin')->where('id',$id)->update($data);
+            return true;
+
+        }
+    }
+}

+ 602 - 0
repairceshi/application/admin/controller/Index.php

@@ -0,0 +1,602 @@
+<?php
+namespace app\admin\controller;
+use think\Controller;
+use think\Request;
+use think\Db;
+use think\Session;
+use Endroid\QrCode\QrCode;
+class Index  extends Controller
+{
+
+    //登录的函数 
+    public function login(Request $request)
+    {
+        if ($request->isPost()){
+            $data =input();
+            $login = model('Login');
+             if($login->login($data)){
+                return json(['Code'=>'00','msg'=>'登录成功']);
+             }else{ 
+                return json(['Code'=>'01','msg'=>'用户名或者密码不正确']);
+             }
+        } else {
+            return view('login');
+        }
+    }
+  
+  	public function qrcode()
+    {
+    	$appid = "wx6ddfdda51d6a1a19";
+      	$time = time();
+        $redirect_url = "http://www.xzh8.cn/index/admin_weixin_login/index?time=$time";
+        $state = str_shuffle("abcdef").mt_rand(1,10).$time;
+        $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_url&response_type=code&scope=snsapi_base&state=$state#wechat_redirect";
+        $srcUrl = sprintf("http://qr.liantu.com/api.php?text=%s,",urlencode($url));
+      	$this->assign('srcUrl',$srcUrl);
+      	$this->assign('state',$state);
+      	 return $this->fetch();
+      	
+    }
+
+    //-----------区域------------
+
+    public function region()
+    {
+        $region = Db::name('region')->select();
+        $this->assign('region',$region);
+        return $this->fetch();
+    }
+
+    public function getRegion()
+    {
+       $data = Db::name('region')->where(['status'=>0])->select();
+       return $data;
+    }
+    public function editRegion(Request $request)
+    {
+        $id = $request->param('id');
+        if($request->isPost() && $request->isAjax()){
+            $username = $request->param('username');
+            $res = Db::name('region')->where('id',$id)->update(['username'=>$username]);
+            if($res){
+                return json(['status'=>1,'message'=>'修改成功']);
+            }else{
+                return json(['status'=>0,'message'=>'未进行修改']);
+            }
+
+        }
+        $region = Db::name('region')->where('id',$id)->find();
+        $this->assign('region',$region);
+        return $this->fetch();
+    }
+    public function delRegion(Request $request)
+    {
+        $id = $request->param('id');
+        $res = Db::name('region')->delete($id);
+        if($res){
+            $this->success('删除成功','region');
+            exit;
+        }
+    }
+    public function addRegion(Request $request)
+    {
+        if($request->isAjax() && $request->isPost()){
+            $data = $request->param();
+            $data['create_time'] = time();
+
+            $res = Db::name('region')->insert($data);
+            if($res){
+                echo json_encode(['status'=>1,'message'=>'增加成功']);
+                exit;
+            }else{
+                echo json_encode(['status'=>0,'message'=>'增加失败']);
+                exit;
+            }
+        }
+        return $this->fetch();
+    }
+
+    public function weixinLogin(Request $request)
+    {
+        $code = $request->param('state');
+        $uid = Db::name('login')->where(['code'=>$code])->value('uid');
+     	if($uid){
+        	Db::name('login')->where('uid',$uid)->setField('code',null);
+          	session::set('admin_user',$uid);  
+          	return $uid;
+        }else{
+        	return false;
+        }
+       
+    }
+    // 管理员配置设置
+    public function configsave(Request $request){
+        if ($request->isPost()){
+            $data =input();
+            $result = Db::name('admin')->where(['id'=>1])->update($data);
+            if($result!==false){
+                return json(['code'=>'00','msg'=>'保存成功']);
+            }else{ 
+                return json(['code'=>'01','msg'=>'保存失败']);
+            }
+        } else {
+            return json(['code'=>'01','msg'=>'访问方式错误']);
+        }
+    }
+
+
+
+    //管理员权限
+    public function adminAuthorty()
+    {
+        $admin_user = session::get('admin_user');
+        if($admin_user){
+            $admin_info = Db::name('admin')->where(['id'=>$admin_user])->find();
+            return $admin_info;
+        }
+    }
+//======================================管理员首页=======================================
+    public function index()
+    {
+        $admin_user = session::get('admin_user');
+        if($admin_user){
+            //获取整个网站的信息
+            $admin_info = Db::name('admin')->where(['id'=>$admin_user])->find();    //管理员信息
+            $time_info = date("Y-m-d");                                   //当前时间
+            $user_num = Db::name('user')->count();                        //当前注册用户数
+            $merchants_num = Db::name('admin')->count();                  //当前商户数
+            $this->assign('admin_info',$admin_info);
+            $this->assign('time_info',$time_info);
+            $this->assign('user_num',$user_num);
+            $this->assign('merchants_num',$merchants_num-1);
+            return view();
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+    }
+
+
+
+//    ===================================订单页面========================================
+
+    // 订单管理(可以查询订单)
+    public function order(Request $request){
+
+        $admin_user = session::get('admin_user');
+        //此处需要多条件进行筛选,然后进行搜索信息
+        $type = empty($request->param('type'))? "":$request->param('type');
+        $keyword = empty($request->param('keyword'))? "":$request->param('keyword');
+        $statusValue = empty($request->param('statusValue')) ? "":$request->param('statusValue');
+       if(empty($request->param('type'))){
+           $where = [];
+       }elseif(!empty($request->param('statusValue'))){
+           $where[$type] = $statusValue;
+       }else{
+           $where[$type] = $keyword;
+       }
+
+        if($admin_user){
+            $allowGroup = $this->adminAuthorty()['authority'];
+            if($allowGroup){
+                $allowGroupWhere['group'] = ['in',$allowGroup];
+            }else{
+                $allowGroupWhere = [];
+            }
+            $order_info = Db::name('repair_order')->where($where)->where($allowGroupWhere)->order('create_time desc')->paginate(15)->each(function($item, $key){
+                $item['create_time'] =date("Y-m-d H:i",$item['create_time']);
+                if($item['repuser']){
+                    $user_info = Db::name('user')->where(['openid'=>$item['repuser']])->find();
+                    $item['repuser'] = $user_info['username'];
+                }
+                return $item;
+             });
+			
+            $this->assign('order_info',$order_info);   //订单信息
+            return view();
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+    }
+
+    //查看某一个详细的订单
+    public function order_info(Request $request){
+
+
+            $admin_user = session::get('admin_user');  //判断当前登录者
+          
+            if($admin_user){
+                $data = input();
+                $order_id = $data['orderid'];
+                $order_info = Db::name('repair_order')->where(['order_id'=>$order_id])->find(); //根据订单获取到
+
+                $user_info = Db::name('user')->where(['openid'=>$order_info['repuser']])->find();
+                $order_info['repuser'] = $user_info['username'];
+                $this->assign('order_info',$order_info);  
+                return view();
+            }else{
+                $this->redirect("admin/index/login");  
+            }
+
+    }
+
+
+    // 编辑某个订单
+    public function edit_order_info(Request $request){
+
+        $admin_user = session::get('admin_user');  //判断当前登录者
+
+        if($admin_user){
+            $data = input();
+            // 如果是post数据(更改数据)
+            if($request->isPost()){  
+                $data['update_time'] = time();  //订单更新时间
+                unset($data['create_time']);    //创建时间不需要更改
+                $result = Db::name('repair_order')->where(['order_id'=>$data['order_id']])->update($data);               
+                if($result){
+                   $this->redirect("admin/index/order");  //订单列表
+                }else{
+                    $this->error();
+                }
+
+            }else{
+            //如果是get请求,就再次把数据渲染一下 
+
+             $order_id = $data['orderid'];
+             $order_info = Db::name('repair_order')->where(['order_id'=>$order_id])->find(); //根据订单获取到
+             $this->assign('order_info',$order_info);  
+             return view();
+
+            } 
+
+        }else{
+            $this->redirect("admin/index/login");  
+        }
+
+    }
+
+
+
+
+
+//====================================用户页面============================================
+
+
+
+    //用户管理
+    public function  user(Request $request){
+
+       $admin_user = session::get('admin_user');
+
+        $type = empty($request->param('type'))?'':$request->param('type');            //筛选的条件
+        $keyword = empty($request->param('keyword'))?'':$request->param('keyword');   //筛选的文字
+        $is_register = empty($request->param('is_register'))? "": $request->param('is_register');
+        $is_check = empty($request->param('is_check'))? "": $request->param('is_check');
+      	$region = empty($request->param('region')) ? "": $request->param('region');
+      	$group = empty($request->param('group')) ? "": $request->param('group');
+        if(empty($request->param('type'))){
+            $where = [];
+        }elseif (!empty($request->param('is_register'))){
+            $where[$type] = $is_register;
+        }elseif (!empty($request->param('is_check'))){
+            $where[$type] = $is_check;
+        }elseif(!empty($request->param('region'))){
+          	 $where[$type] = $region;
+        }elseif(!empty($request->param('group'))){
+          	 $where[$type] = $group;
+        }else{
+            $where[$type] = $keyword;
+        }
+
+        $allowGroup = $this->adminAuthorty()['authority'];//获取允许访问的组
+        if($allowGroup){
+            $allowGroupWhere['group'] = ['in',$allowGroup];
+
+
+        }else{
+            $allowGroupWhere = [];
+        }
+      
+      	$group = Db::name('group')->select();//获取所有组
+      	$region = Db::name('region')->select();//获取所有区域
+      	
+        if($admin_user){
+            $user_info = Db::name('user')->where($allowGroupWhere)->where($where)->paginate(10)->each(function($item, $key){
+                $item['addtime'] =date("Y-m-d H:i",$item['addtime']);
+                $group_info = Db::name('group')->where(['id'=>$item['group']])->find();
+                $item['group'] = $group_info['name'];
+                return $item;
+            });
+            $this->assign('user_info',$user_info);   //订单信息
+          	$this->assign('group',$group);
+          	$this->assign('region',$region);
+            return view();
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+
+    }
+
+    
+    //添加用户
+    public function add_user(Request $request){
+        $admin_user = session::get('admin_user');
+
+        if($admin_user){
+            if($request->isPost()){
+
+                $data = input();   //获取到数据
+                $data['addtime'] = time();
+                $data['is_register'] = 1;  //注册用户
+                $result = Db::name('user')->insert($data); 
+                if($result){
+                   
+                    $this->redirect("admin/index/user");
+
+                }else{
+                    $this->error();
+                }
+            }else{
+
+
+              $group_info = Db::name('group')->select();   //获取分组信息
+              $this->assign('group_info',$group_info);     //渲染分组信息
+              return view();
+            }
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+      
+
+    }
+
+
+    //查看具体用户
+    public function user_info(){
+        $admin_user = session::get('admin_user');  //判断当前登录者
+            if($admin_user){
+                $data = input();
+                $user_id = $data['user_id'];
+                $user_info = Db::name('user')->where(['id'=>$user_id])->find();                //获取用户的信息
+                $group_info = Db::name('group')->where(['id'=>$user_info['group']])->find();   //根据用户的信息获取到分组信息
+                $user_region = Db::name('region')->where(['id'=>$user_info['region']])->value('username');
+                $user_info['group'] = $group_info['name'];
+                $user_info['region'] = $user_region;
+                $user_order_info = Db::name('repair_order')->where(['openid'=>$user_info['openid']])->order('create_time desc')->paginate(15)->each(function($item, $key){
+					$repuser_data =  Db::name('user')->where(['openid'=>$item['repuser']])->find();
+                    $item['repuser'] = $repuser_data['username'];
+                    $item['create_time'] =date("Y-m-d H:i",$item['create_time']);
+                    return $item;
+                 });  //获取用户
+
+                $this->assign('user_info',$user_info);               //用户信息
+                $this->assign('user_order_info',$user_order_info);   //用户的订单信息 
+                return view();
+
+            }else{
+
+                $this->redirect("admin/index/login");
+            }
+
+     }
+
+    //编辑用户
+    public function edit_user_info(Request $request){
+        $admin_user = session::get('admin_user');  //判断当前登录者
+
+        if($admin_user){
+            $data = input();                    //获取请求的数据
+            if($request->isPost()){
+
+               $result = Db::name('user')->where(['id'=>$data['id']])->update($data); 
+               if($result){
+                 	$user = Db::name('user')->where(['id'=>$data['id']])->find();
+                 	if($user['identity'] != 99){
+                    		$admin = Db::name('admin')->where(['openid'=>$user['openid']])->update(['status'=>1]);
+                    }else{
+                    		$admin = Db::name('admin')->where(['openid'=>$user['openid']])->update(['status'=>0]);
+                    }
+                   $this->success('修改成功','user');
+               }else{
+                   $this->error();
+               }
+
+            }else{
+
+
+                //如果是get请求,就再次把数据渲染一下 
+                $user_id = $data['user_id'];   //获取用户的id
+                $user_info = Db::name('user')->where(['id'=>$user_id])->find(); //获取用户的信息
+                $user_group = empty($user_info['group']) ? 1:$user_info['group'];
+                $group_info = Db::name('group')->select();
+
+                $this->assign('user_info',$user_info);      //用户信息
+                $this->assign('region',$this->findRegion($user_group));
+                $this->assign('group_info',$group_info);    //分组信息 
+                
+                return view();
+            } 
+          
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+    }
+
+    public function findRegion($user_group='1')
+    {
+
+        if(isset($_GET['id'])){
+            $id = $_GET['id'];
+            $id = Db::name('group')->where(['id'=>$id])->value('region');
+            $region = Db::name('region')->where('id','in',$id)->select();
+            return json($region);
+        }else{
+            $id = Db::name('group')->where(['id'=>$user_group])->value('region');
+            $region = Db::name('region')->where('id','in',$id)->select();
+            return $region;
+        }
+
+    }
+
+
+
+    // 订单评论
+    public function order_message(Request $request){
+        $admin_user = session::get('admin_user');  //判断当前登录者
+
+        if($admin_user){
+            if($request->isPost()){
+
+                $data = input();            //获取请求的数据
+               $result = Db::name('repair_order')->where(['order_id'=>$data['order_id']])->update($data); 
+               if($result){
+                   $this->success();
+               }else{
+                   $this->error();
+               }
+            }else{
+   
+                $data = input();  //获取请求的数据
+                //如果是get请求,就再次把数据渲染一下 
+                $order_id = $data['orderid'];   //获取订单的id
+                $order_info = Db::name('repair_order')->where(['order_id'=>$order_id])->find(); //获取订单的信息
+                $this->assign('order_info',$order_info);    //分组信息 
+                return view();
+            } 
+          
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+    }
+
+
+
+
+
+//====================================================分组页面===========================================//
+
+
+    //查看分组
+     public function group(){
+
+        $admin_user = session::get('admin_user');
+        $type = isset($_GET['type'])?$_GET['type']:'';            //筛选的条件
+        $keyword = isset($_GET['keyword'])?$_GET['keyword']:'';   //筛选的文字
+        if($admin_user){
+            $where =[];
+            if($type == 1 && $keyword){
+                $group_name = $keyword;                            //获取条件
+                $where['name'] = array('like', "%$group_name%");   //模糊查询
+            }
+            $group_info = Db::name('group')->where($where)->paginate(15)->each(function($item, $key){
+              	$result = Db::name('region')->where('id','in',$item['region'])->select();
+              	$item['regionName'] = $result;
+                return $item;
+            });
+			
+            $this->assign('group_info',$group_info);   //分组的信息
+            return view();
+        }else{
+
+            $this->redirect("admin/index/login"); 
+
+        }
+    }
+
+
+    // 编辑分组
+    public function edit_group(Request $request){
+        $admin_user = session::get('admin_user');  //判断当前登录者
+
+        if($admin_user){
+            $data = input();                    //获取请求的数据
+            if($request->isPost()){
+                if(!empty($data['region'])){
+                    $data['region'] = implode(',',$data['region']);
+                }else{
+                    $data['region'] = "";
+                }
+              	$region = Db::name('group')->where(['id'=>$data['id']])->value('region');
+
+              	$res = Db::name('region')->where('id','in',$region)->update(['status'=>0]);
+
+                $resu = Db::name('region')->where('id','in',$data['region'])->update(['status'=>1]);
+
+                $result = Db::name('group')->where(['id'=>$data['id']])->update($data); 
+
+                    $this->success('修改成功','group');
+               
+
+            }else{
+
+                //如果是get请求,就再次把数据渲染一下 
+                $group_id = $data['group_id'];                                     //获取分组的id
+                $group_info = Db::name('group')->where(['id'=>$group_id])->find(); //获取分组的信息
+              	$group_region = Db::name('region')->where('id','in',$group_info['region'])->whereor('status',0)->select();
+                $this->assign('group_info',$group_info);
+                $this->assign('region',$group_region);
+                return view();
+            } 
+          
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+    }
+
+    //添加分组
+    public function add_group(Request $request){
+
+        $admin_user = session::get('admin_user');
+        if($admin_user){
+            if($request->isPost()){
+
+                $data = input();   //获取到数据
+                if(!empty($data['region'])){
+                    $data['region'] = implode(',',$data['region']);
+                }else{
+                    $data['region'] = "";
+                }
+              	$retion = Db::name('region')->where('id','in',$data['region'])->update(['status'=>1]);
+                $data['addtime'] = time();
+                $result = Db::name('group')->insert($data); 
+                if($result ){
+                    $this->redirect("admin/index/group");
+                }else{
+                    $this->error();
+                }
+            }else{
+                $this->assign('region',$this->getRegion());
+              return view();
+
+            }
+        }else{
+            $this->redirect("admin/index/login"); 
+        }
+
+    }
+
+    public function del_group(Request $request)
+    {
+        $id = $request->param('group_id');
+        $result = Db::name('group')->delete($id);
+        if($result){
+            header('Location: /admin/index/group');
+            exit;
+
+        }
+    }
+
+
+//========================================================退出登录==========================================//
+  
+
+
+    // 退出登录
+    public function loginout(){
+        session::delete('admin_user');
+        $this->redirect("admin/index/login");
+    }
+
+
+
+    
+}

+ 20 - 0
repairceshi/application/admin/model/Login.php

@@ -0,0 +1,20 @@
+<?php
+namespace app\admin\model;
+use think\Model;
+use think\Db;
+use think\Session;
+class Login extends Model{
+
+  public function login($data){
+        $username = $data['user'];        //用户名
+        $pass = md5($data['password']);   //密码加密  此处使用的md5加密方法
+        $obj = Db::name('admin')->where(['username'=>$username,'password'=>$pass])->find();
+
+        if($obj){
+            session::set('admin_user',$obj['id']);     //如果验证成功,将信息保存在session中
+            return true;
+        }else{
+            return false;
+        }
+  }
+}

+ 56 - 0
repairceshi/application/admin/model/Ulist.php

@@ -0,0 +1,56 @@
+<?php
+namespace app\admin\model;
+use think\Model;
+use think\Db;
+class Ulist extends Model{
+
+    //展示所有数据
+    public function listData($data)
+    {
+        $keyword = $data;
+        if($keyword){
+            $result =  Db::name('pay_user')->where(['id'=>$keyword])->paginate(1);
+        }else{
+            $result =  Db::name('pay_user')->paginate(15);
+        }
+        return $result;
+    }
+
+    // 添加商户
+    public function add($data){
+        $data['addtime']= date("Y-m-d H:i:s",time());
+        $data['pass'] = md5($data['pass']);
+        $data['key'] = md5(uniqid(md5(microtime(true)),true));     //只有在增加的时候才会增加密钥
+        $result =  Db::name('pay_user')->insert($data);
+        return $result==1;
+    }
+
+
+    // 编辑商户
+    public function edit($data)
+    {
+        $id = $data['id'];
+        return $result =  Db::name('pay_user')->where(['id'=>$id])->select();
+    }
+
+    public function ulistedit($data){
+        if(!empty($data['pass'])){
+            $data['pass'] = md5($data['pass']);
+        }else{
+            unset($data['pass']);
+        }
+       return  $result =  Db::name('pay_user')->update($data);
+    }
+
+
+
+    // 删除商户(暂时不允许删除,只允许改变状态,为未激活)
+    public function remove($data)
+    {
+       $id = $data['id'];
+       $result =  Db::name('pay_user')->where(['id'=>$id])->delete();
+    }
+
+
+
+}

+ 156 - 0
repairceshi/application/admin/view/authorty_manage/add_admin.html

@@ -0,0 +1,156 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>管理员类型
+                </label>
+                <div class="layui-input-block">
+                    <input type="radio" name="user_type" value="0" title="超级管理员">
+                    <input type="radio" name="user_type" value="1" title="普通管理员">
+                </div>
+
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    {foreach $adminGroup as $v}
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="{$v.name}" value="{$v.id}">
+
+                    {/foreach}
+                </div>
+            </div>
+          	<div class="layui-form-item">
+                <label class="layui-form-label">绑定微信</label>
+                <div class="layui-input-block">
+                    <select name="openid" lay-verify="required">
+                        <option value=""></option>
+                        {foreach $admin as $v}
+                        <option value="{$v.openid}">管理员:{$v.username}  &nbsp;&nbsp;&nbsp; 昵称:{$v.nickname}</option>
+                        {/foreach}
+                    </select>
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_pass" class="layui-form-label">
+                    <span class="x-red">*</span>密码
+                </label>
+                <div class="layui-input-inline">
+                    <input type="password" id="L_pass" name="password" required="" lay-verify="pass"
+                           autocomplete="off" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    6到16个字符
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                    <span class="x-red">*</span>确认密码
+                </label>
+                <div class="layui-input-inline">
+                    <input type="password" id="L_repass" name="repass" required="" lay-verify="repass"
+                           autocomplete="off" class="layui-input">
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    增加
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+            form.verify({
+                nikename: function(value) {
+                    if (value.length < 5) {
+                        return '昵称至少得5个字符啊';
+                    }
+                },
+                pass: [/(.+){6,12}$/, '密码必须6到12位'],
+                repass: function(value) {
+                    if ($('#L_pass').val() != $('#L_repass').val()) {
+                        return '两次密码不一致';
+                    }
+                }
+            });
+
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/authorty_manage/addAdmin",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                      	console.log(datas);
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                              	 parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+                              	
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 116 - 0
repairceshi/application/admin/view/authorty_manage/edit_admin.html

@@ -0,0 +1,116 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="{$data['id']}" hidden>
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value={$data['username']} readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $authority = [];
+                        if(strlen($data['authority']) == 1){
+                            array_push($authority,$data['authority']);
+                        }else{
+                             $authority = explode(',',$data['authority']);
+                        }
+                    ?>
+                    {foreach $adminGroup as $v}
+                        <?php
+                         if(in_array($v['id'],$authority)){?>
+                        <input type="checkbox" name="authority[]" lay-skin="primary" title="{$v.name}" value="{$v.id}" checked="true">
+                        <?php }else{?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="{$v.name}" value="{$v.id}">
+                    <?php }?>
+                    {/foreach}
+                </div>
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    增加
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+            form.verify({
+
+            });
+
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/authorty_manage/editAdmin",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas){
+                            layer.alert("编辑成功", {icon: 6},function () {
+                                // 获得frame索引
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+                                window.location.href = "/admin/authorty_manage/index";
+                            });
+                        }else{
+                            alert('编辑失败');
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 39 - 0
repairceshi/application/admin/view/authorty_manage/index.html

@@ -0,0 +1,39 @@
+{include file="public/header"}
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/authorty_manage/addAdmin',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        {volist	name="admin"	id="vo"}
+        <tr>
+            <td>{$vo.username}</td>
+            <td>{$vo.create_time | date="Y-m-d H:i",###}</td>
+            <td>
+                <button data-orderid="" class="btn btn-xs btn-info buttoninfo" onclick="xadmin.open('查看用户','/admin/authorty_manage/view?adminId={$vo.id}',600,400)">查看</button>
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('添加用户','/admin/authorty_manage/editAdmin?adminId={$vo.id}',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('{$vo.id}')">删除</button>
+            </td>
+        </tr>
+        {/volist}
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/authorty_manage/del?id="+id;
+    }
+</script>

+ 83 - 0
repairceshi/application/admin/view/authorty_manage/view.html

@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="{$data['id']}" hidden>
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value={$data['username']} readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $authority = [];
+                        if(strlen($data['authority']) == 1){
+                            array_push($authority,$data['authority']);
+                        }else{
+                             $authority = explode(',',$data['authority']);
+                        }
+                    ?>
+                    {foreach $adminGroup as $v}
+                    <?php
+                         if(in_array($v['id'],$authority)){?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="{$v.name}" value="{$v.id}" checked="true" readonly>
+                    <?php }else{?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="{$v.name}" value="{$v.id}" readonly>
+                    <?php }?>
+                    {/foreach}
+                </div>
+            </div>
+
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 27 - 0
repairceshi/application/admin/view/index/add_group.html

@@ -0,0 +1,27 @@
+{include file="public/header"}
+
+<div class="panel-heading">
+    <h3 class="panel-title">添加分组</h3>
+</div>
+<div class="panel-body">
+    <form action="__URL__/add_group" method="POST">
+        <div class="form-group">
+            <label>小组名:</label><br>
+            <input type="text" class="form-control" name="name" value="" placeholder="请填写小组的名称">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red"></span>管理区域</label>
+                <div class="layui-input-block">
+                    {if condition="$region eq null"}
+                    <span>暂无可管理区域</span>
+                    {else/}
+                    {foreach $region as $v}
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="{$v.username}" value="{$v.id}">
+                    <span>{$v.username}</span>
+                    {/foreach}
+                    {/if}
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确认添加">
+    </form>
+</div>

+ 86 - 0
repairceshi/application/admin/view/index/add_region.html

@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>区域名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input">
+                </div>
+
+            </div>
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    增加
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/index/addRegion",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                                parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 48 - 0
repairceshi/application/admin/view/index/add_user.html

@@ -0,0 +1,48 @@
+{include file="public/header"}
+<div class="panel-heading">
+    <h3 class="panel-title">添加用户</h3>
+</div>
+<div class="panel-body">
+    <form action="__URL__/add_user" method="POST">
+
+        <div class="form-group">
+            <label>用户微信名称:</label><br>
+            <input type="text" class="form-control" name="nickname" value="" placeholder="请填写用户微信号">
+        </div>
+        <div class="form-group">
+            <label>联系电话:</label><br>
+            <input type="text" class="form-control" name="telephone" value="" placeholder="请填写联系电话">
+        </div>
+        <div class="form-group">
+            <label>用户名:</label><br>
+            <input type="text" class="form-control" name="username" value="" placeholder="请填写用户名">
+        </div>
+        <div class="form-group">
+            <label>分组(请筛选):</label><br>
+            <select class="form-control" name="group">
+                {volist name="group_info" id="vo"}
+                  <option value="{$vo.id}">{$vo.name}</option>
+                {/volist}
+            </select>
+        </div>
+        <div class="form-group">
+            <label>用户地址:</label><br>
+            <input type="text" class="form-control" name="address" value="" placeholder="请填写用户地址">
+        </div>
+        <div class="form-group">
+            <label>用户身份:</label><br>
+            <select class="form-control" name="identity">
+                <option value="0">报修者</option>
+                <option value="1">维修者</option>
+            </select>
+        </div>
+        <div class="form-group">
+            <label>是否审核:</label><br>
+            <select class="form-control" name="is_register">
+                <option value="0">未审核</option>
+                <option value="1">已审核</option>
+            </select>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确认添加">
+    </form>
+</div>

+ 43 - 0
repairceshi/application/admin/view/index/edit_group.html

@@ -0,0 +1,43 @@
+{include file="public/header"}
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="__URL__/edit_group" method="POST">
+        <div class="form-group">
+            <label>分组编号:</label><br>
+            <input type="text" class="form-control" name="id" value="{$group_info.id}" readonly>
+        </div>
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="{$group_info.name}">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red"></span>管理区域</label>
+                <?php
+                        $regions = [];
+                        if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    ?>
+                <div class="layui-input-block">
+                    {if condition="$region eq null"}
+                        暂无可管理区域
+                    {else /}
+                    {foreach $region as $v}
+                    <?php
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="{$v.username}" value="{$v.id}" checked="true"><span>{$v.username}</span>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="{$v.username}" value="{$v.id}"><span>{$v.username}</span>
+                    <?php }?>
+
+                    {/foreach}
+                    {/if}
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 50 - 0
repairceshi/application/admin/view/index/edit_order_info.html

@@ -0,0 +1,50 @@
+{include file="public/header"}
+<div class="panel-body">
+    <form action="__URL__/edit_order_info" method="POST">
+        <div class="form-group">
+            <label>当前订单号码:</label><br>
+            <input type="text" class="form-control" name="order_id" value="{$order_info.order_id}" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修人:</label><br>
+            <input type="text" class="form-control" name="linkman" value="{$order_info.linkman}" readonly>
+        </div>
+        <div class="form-group">
+            <label>手机号码:</label><br>
+            <input type="text" class="form-control" name="linktel" value="{$order_info.linktel}" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修问题:</label><br>
+            <input type="text" class="form-control" name="title" value="{$order_info.title}" readonly>
+        </div>
+        <div class="form-group">
+            <label>备注问题:</label><br>
+            <input type="text" class="form-control" name="message" value="{$order_info.message}" readonly>
+        </div>
+        <div class="form-group">
+            <label>具体信息:</label><br>
+            <input type="text" class="form-control" name="content" value="{$order_info.content}" readonly>
+        </div>
+        <div class="form-group">
+            <label>维修人:</label><br>
+            <input type="text" class="form-control" name="repuser" value="{$order_info.repuser}">
+        </div>
+        <div class="form-group">
+            <label>添加时间:</label><br>
+            <input type="text" class="form-control" name="create_time" value="{$order_info.create_time |date='Y-m-d H:i:s',###}" readonly>
+        </div>
+        <div class="form-group">
+            <label>更新时间:</label><br>
+            <input type="text" class="form-control" name="update_time" value="{$order_info.update_time|date='Y-m-d H:i:s',###}">
+        </div>
+        <div class="form-group">
+            <label>当前订单状态:</label><br>
+            <select class="form-control" name="status">
+                <option value="0">接单中</option>
+                <option value="1">处理中</option>
+                <option value="2">已完成</option>
+            </select>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 88 - 0
repairceshi/application/admin/view/index/edit_region.html

@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>区域名
+                </label>
+                <input type="text" hidden value="{$region.id}" name="id">
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value="{$region.username}">
+                </div>
+
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    编辑
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/index/editRegion",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                                parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 85 - 0
repairceshi/application/admin/view/index/edit_user_info.html

@@ -0,0 +1,85 @@
+{include file="public/header"}
+<div class="panel-heading">
+    <h3 class="panel-title">编辑用户</h3>
+</div>
+<div class="panel-body">
+    <form action="__URL__/edit_user_info" method="POST">
+
+        <input type="hidden" name="id" value="{$user_info.id}">
+
+        <div class="form-group">
+            <label>用户微信名称:</label><br>
+            <input type="text" class="form-control" name="nickname" value="{$user_info.nickname}" readonly>
+        </div>
+        <div class="form-group">
+            <label>联系电话:</label><br>
+            <input type="text" class="form-control" name="telephone" value="{$user_info.telephone}">
+        </div>
+        <div class="form-group">
+            <label>用户名:</label><br>
+            <input type="text" class="form-control" name="username" value="{$user_info.username}">
+        </div>
+        <div class="form-group">
+            <label>分组:</label><br>
+             <select class="form-control" name="group">
+                {volist name="group_info" id="vo"}
+                <option value="{$vo.id}" {if condition="$user_info.group==$vo.id" }selected{/if}>{$vo.name}</option>
+                {/volist}
+            </select>
+        </div>
+        <div class="form-group">
+            <label>区域:</label><br>
+            <div class="region">
+                <select class="form-control" name="region" id="#region">
+                    {volist name="region" id="vo"}
+                    <option value="{$vo.id}" {if condition="$user_info.region==$vo.id" }selected{/if}>{$vo.username}</option>
+                    {/volist}
+                </select>
+            </div>
+
+        </div>
+        <div class="form-group">
+            <label>用户地址:</label><br>
+            <input type="text" class="form-control" name="address" value="{$user_info.address}">
+        </div>
+        <div class="form-group">
+            <label>用户身份:</label><br>
+            <select class="form-control" name="identity">
+                <option value="0" {if condition="$user_info.identity==0" }selected{/if}>报修者 </option> 
+                <option value="1" {if condition="$user_info.identity==1" }selected{/if}>维修者 </option> 
+                <option value="2" {if condition="$user_info.identity==2" }selected{/if}>协管者 </option> 
+                <option value="99" {if condition="$user_info.identity==99" }selected{/if}>管理员 </option> 
+            </select> 
+            </div> 
+                <div class="form-group">
+                <label>是否审核:</label><br>
+                <select class="form-control" name="is_check">
+                    <option value="0" {if condition="$user_info.is_check==0" }selected{/if}>未审核</option>
+                    <option value="1" {if condition="$user_info.is_check==1" }selected{/if}>已审核</option>
+                </select>
+            </div>
+            <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>
+
+<script>
+    $(function (  ) {
+        $("[name='group']").change(function () {
+            var selected = $(this).children('option:selected').val();
+            $.ajax({
+                url:"/admin/index/findRegion",
+                type:"get",
+                data:{id:selected},
+                dataType:"json",
+                success:function (datas) {
+                   $html = "<select class='form-control' name='region' id='region'>";
+                    for(var i=0; i<datas.length; i++){
+                        $html += "<option value=datas[i]['id']>"+datas[i]['username']+"</option>"
+                    }
+                    $html += "</select>"
+                    $(".region").html($html);
+                }
+            });
+        })
+    })
+</script>

+ 89 - 0
repairceshi/application/admin/view/index/group.html

@@ -0,0 +1,89 @@
+{include file="public/header"}
+<form action="group" method="GET" class="form-inline">
+
+    <button type="button" class="btn btn-primary" id="addgroup">添加小组</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            {volist name="group_info" id="vo"}
+            <tr>
+                <td><b>{$vo.id}</b></td>
+                <td>
+                    {if condition = "$vo.name eq null"}
+                       暂无
+                    {else/}
+                       {$vo.name}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.regionName eq null"}
+                       暂无
+                    {else/}
+                       {foreach $vo.regionName as $v}
+                  			{$v['username']} &nbsp;
+                  	{/foreach}
+                    {/if}
+                </td>
+                <td>
+                    
+                    <button data-groupid="{$vo['id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-groupid="{$vo['id']}" class="btn btn-xs btn-warning del" >删除</button>
+                </td>
+            </tr>
+            {/volist}
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    {$group_info->render()}
+</div>
+
+
+
+
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+       
+
+        $('.buttoneidt').click(function () {
+            
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "__URL__/edit_group?group_id=" + groupid;  //编辑分组信息
+
+        });
+
+
+        $('#addgroup').click(function(){
+
+            window.location.href = "__URL__/add_group";     //添加分组
+
+        });
+
+        $('.del').click(function () {
+
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "/admin/index/del_group?group_id=" + groupid;
+        })
+    });
+</script>

+ 84 - 0
repairceshi/application/admin/view/index/group_info.html

@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="{$group_info['id']}" hidden>
+                    <input type="text" id="username" name="name" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value={$group_info['name']} readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $regions = [];
+                         if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    ?>
+                    {foreach $region as $v}
+                    <?php
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="{$v.username}" value="{$v.id}" checked="true" readonly>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="{$v.username}" value="{$v.id}" readonly>
+                    <?php }?>
+
+                    {/foreach}
+                </div>
+            </div>
+
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 63 - 0
repairceshi/application/admin/view/index/index.html

@@ -0,0 +1,63 @@
+{include file="public/header"}
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">基本信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>当前登录者:</b>{$admin_info.user_nickname}</li>
+        <li class="list-group-item"><b>当前商户数:</b>{$merchants_num}</li>
+        <li class="list-group-item"><b>当前用户数:</b>{$user_num}</li>
+        <li class="list-group-item"><b>现在时间:</b>{$time_info}</li>
+    </ul>
+</div>
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">配置信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>邀请码的有效时间:</b>
+            <input type="text" oninput="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" id="sharetime" value="{$admin_info.code_time}">&nbsp;&nbsp;分钟
+        </li>
+        <li class="list-group-item"> 
+            <b>其他设置,后续更新</b>
+        </li>
+        <li class="list-group-item">
+            <button id="save" class="btn btn-primary">保存</button>
+        </li>
+    </ul>
+</div>
+
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    
+    $(function() {
+            
+        $('#save').click(function(){
+            var sharetime = $('#sharetime').val();
+            console.log(sharetime);
+            if(sharetime==''){
+                alert('请正确有效时间');
+                return false;
+            }
+             $.ajax({
+                 url:"__URL__/configsave",
+                 dataType:"json",
+                 async:true,
+                 data:{"code_time":sharetime},
+                 type:"post",
+                 success:function(data){
+                    if(data.code==0){
+                       alert("保存成功");
+                    }else{
+                        alert('保存失败')
+                    }
+                 },
+                 error:function(error){
+                    console.log(error);
+                 }
+             });
+        });
+     });
+
+</script>

+ 118 - 0
repairceshi/application/admin/view/index/login.html

@@ -0,0 +1,118 @@
+<!DOCTYPE html>
+<html class="no-js " lang="en">
+<head>
+<meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
+    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+    <meta name="description" content="Responsive Bootstrap 4 and web Application ui kit.">
+
+    <title>登录中心</title>
+    <!-- Favicon-->
+    <!-- Custom Css -->
+    <link rel="stylesheet" href="__LOGIN__/css/bootstrap.min.css">
+    <link rel="stylesheet" href="__LOGIN__/css/main.css">
+    <link rel="stylesheet" href="__LOGIN__/css/authentication.css">
+    <link rel="stylesheet" href="__LOGIN__/css/color_skins.css">
+</head>
+
+<body class="theme-purple authentication sidebar-collapse">
+<!-- Navbar -->
+<nav class="navbar navbar-expand-lg fixed-top navbar-transparent">
+    <div class="container">        
+        <div class="navbar-translate n_logo">
+            <a class="navbar-brand" href="./" title="" target="_blank">管理中心</a>
+        </div>
+        <div class="navbar-collapse">
+            <ul class="navbar-nav">
+                <li class="nav-item">
+                    <a class="nav-link" href="./">Home</a>
+                </li>
+            </ul>
+        </div>
+    </div>
+</nav>
+<!-- End Navbar -->
+<div class="page-header">
+    <div class="page-header-image" style="background-image:url(__LOGIN__/images/login.jpg)"></div>
+    <div class="container">
+        <div class="col-md-12 content-center">
+            <div class="card-plain">   
+                    <div class="header">
+                        <div class="logo-container">
+                        </div>
+                        <h5>Admin Center</h5>
+                    </div>
+                    <div class="content">                                                
+                        <div class="input-group input-lg">
+                            <input type="text" name="user" value="" class="form-control" placeholder="账号" id="user">
+                        </div>
+                        <div class="input-group input-lg">
+                            <input type="password" name="pass" value="" placeholder="密码" class="form-control" id="password">
+                      </div>
+                    <div class="footer text-center">
+                        <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="userbutton">立即登入</button>
+                    </div>
+                        <div class="footer text-center">
+                            <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="button">扫码登录</button>
+                        </div>
+            </div>
+              
+        </div>
+            
+    </div>
+    <footer class="footer">
+        <div class="container">
+            <div class="copyright">
+                &copy;
+                <script>
+                    document.write(new Date().getFullYear())
+                </script>,
+                <span>Designed by <a href="#" target="_blank">管理中心</a></span>
+            </div>
+        </div>
+    </footer>
+</div>
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+  	
+    $(function() {
+
+        $("#button").click(function () {
+           
+                        window.location.href="/admin/index/qrcode";
+           
+        })
+       $('#userbutton').click(function(){
+           var user = $('#user').val();
+           var password = $('#password').val();
+           if(user==''||password==''){
+               alert('请正确填写信息');
+               return false;
+           }
+            $.ajax({
+                url:"__URL__/login",
+                dataType:"json",
+                async:true,
+                data:{"user":user,"password":password},
+                type:"post",
+                success:function(data){
+                    console.log(data);
+                    if(data.Code=='00'){
+                        window.location.href="__URL__/index"
+                    }else{
+                       alert(data.msg);
+                    }
+                },
+                error:function(error){
+                   console.log(error);
+                }
+            });
+       });
+    });
+ 
+
+</script>
+ 
+</body>
+</html>
+

+ 145 - 0
repairceshi/application/admin/view/index/order.html

@@ -0,0 +1,145 @@
+{include file="public/header"}
+<form action="order" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="order_id">订单号</option>
+            <option value="linkman">报修人</option>
+            <option value="linktel">报修号码</option>
+            <option value="repuser">维修人</option>
+            <option value="status">进度</option>
+        </select>
+    </div>
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="statusValue" id="statusValue"  hidden disabled>
+            <option value="4">请选择</option>
+            <option value="0">接单中</option>
+            <option value="1">处理中</option>
+            <option value="2">已完成</option>
+            <option value="3">转单</option>
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            {volist name="order_info" id="vo"}
+            <tr>
+                <td><b>{$vo.order_id}</b></td>
+                <td>{$vo.linkman}</td>
+                <td>{$vo.linktel}</td>
+                <td>
+                    {if condition = "$vo.repuser eq null"}
+                      暂无
+                    {else /}
+                      {$vo.repuser}
+                    {/if}
+                </td>
+                <td>{$vo.title}</td>
+                <td>{$vo.create_time}</td>
+                <td>{$vo.update_time | date='Y-m-d H:i',###}</td>
+                <td>
+                    {if condition="$vo.status eq '0'"}
+                       <font color="green">接单中</font>
+                    {elseif condition="$vo.status eq '1'"}
+                       <font color="green">处理中</font>
+                    {elseif condition="$vo.status eq '3'"}
+                    <font color="green">转单</font>
+                    {else /}
+                       <font color="red">完成</font>
+                    {/if}
+                </td>
+                <td>
+                    <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-success buttonmessage">评论</button>
+                </td>
+            </tr>
+            {/volist}
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<div style="text-align:center;">
+    {$order_info->render()}
+</div>
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val()
+            if(selected == "status"){
+                $("#statusValue").show();
+                $("#statusValue").removeAttr('disabled')
+                $("#statusValue").addClass('form-control')
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#statusValue").hide();
+                $("#statusValue").attr("disabled",true)
+            }
+        });
+
+        //查看信息
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "__URL__/order_info?orderid="+orderid;
+        });
+
+        $("[name='type']");
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "__URL__/edit_order_info?orderid="+orderid;
+        });
+
+
+        //评论订单
+        $('.buttonmessage').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            console.log(orderid);  
+            window.location.href =  "__URL__/order_message?orderid="+orderid;
+        });
+
+
+    });
+
+
+
+
+</script>

+ 87 - 0
repairceshi/application/admin/view/index/order_info.html

@@ -0,0 +1,87 @@
+{include file="public/header"}
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">订单信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>当前订单号码:</b>
+            {if condition = "$order_info.order_id eq null"}
+              暂无
+            {else /}
+              {$order_info.order_id}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>报修人:</b>
+            {if condition = "$order_info.linkman eq null"}
+              暂无
+            {else /}
+              {$order_info.linkman}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            {if condition = "$order_info.linktel eq null"}
+              暂无
+            {else /}
+              {$order_info.linktel}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>报修问题:</b>
+            {if condition = "$order_info.title eq null"}
+               暂无
+            {else /}
+              {$order_info.title}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>备注信息:</b>
+            {if condition = "$order_info.message eq null"}
+               暂无
+            {else /}
+              {$order_info.message}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>具体信息:</b>
+            {if condition = "$order_info.content eq null"}
+               暂无
+            {else /}
+              {$order_info.content}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>维修人:</b>
+            {if condition = "$order_info.repuser eq null"}
+               暂无
+            {else /}
+               {$order_info.repuser}
+            {/if}
+        </li>
+        <li class="list-group-item"><b>创建时间:</b>{$order_info.create_time | date="Y-m-d H:i",###}</li>
+        <li class="list-group-item"><b>更新时间:</b>{$order_info.update_time | date="Y-m-d H:i",###}</li>
+        <li class="list-group-item">
+            <b>订单状态:</b>
+            {if condition="$order_info.status eq '0'"}
+               接单中
+            {elseif condition="$order_info.status eq '1'"}
+               处理中
+            {else /}
+               完成
+            {/if}
+        </li>
+      {if condition="$order_info.status eq '2'"}
+      
+       <li class="list-group-item">
+            <b>用户评论:</b>
+         {if condition="$order_info.linkman_message neq null"}
+            {$order_info.linkman_message}
+         {else/}
+         暂无评论
+        </li>
+      {/if}
+      {/if}
+    </ul>
+</div>

+ 17 - 0
repairceshi/application/admin/view/index/order_message.html

@@ -0,0 +1,17 @@
+{include file="public/header"}
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="__URL__/order_message" method="POST">
+        <div class="form-group">
+            <label>订单编号:</label><br>
+            <input type="text" class="form-control" name="order_id" value="{$order_info.order_id}" readonly>
+        </div>
+        <div class="form-group">
+            <label>评论内容:</label><br>
+            <input type="text" class="form-control" name="repuser_message" value="{$order_info.repuser_message}">
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 101 - 0
repairceshi/application/admin/view/index/qrcode.html

@@ -0,0 +1,101 @@
+<!doctype html>
+<html  class="x-admin-sm">
+<head>
+    <meta charset="UTF-8">
+    <title>后台登录-X-admin2.2</title>
+    <meta name="renderer" content="webkit|ie-comp|ie-stand">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/login.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+  	<style>
+      .qrcode_image_container img{
+      	width:100%;
+      }
+      .qrcode_image_container h4 {
+          	text-align:center;
+        	top:47%;
+        	left:47%;
+        	transform:translate(-50%,-50%);
+        	position:absolute;
+          	font-weight: bold;
+        	
+      }
+      .qrcode_image_container .expier_cont {
+          width: 340px;
+          height: 340px;
+          position: absolute;
+          background: rgba(255,255,255,.95);
+          left: 50px;
+          top: 150px;
+          z-index: 9999;
+		}
+  	</style>
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <![endif]-->
+</head>
+<body class="login-bg">
+
+<div class="login layui-anim layui-anim-up">
+    <div class="message"><strong style="padding:0px 0px 0px 20px;font-size:18px;">微信扫码登录</strong></div>
+    <div id="darkbannerwrap"></div>
+  	<div class="qrcode_image_container">
+  	
+		<img src="{$srcUrl}" id ="wxewm">
+      	<div class="expier_cont" style="display: none;"> <h4>二维码已失效,请重新刷新页面</h4></div>
+  	</div>
+   	<input type="hidden" name="code" value="{$state}">
+</div>
+
+<script>
+  	var t1 = '';
+    $(function  () {
+      t1 = window.setInterval("login()",2000);
+       setTimeout("end()",120000);
+    });
+  	    function end(){  //停止定时器
+          
+        $('.expier_cont').css('display','block');
+        clearInterval(t1);    //清除定时器
+        
+    }
+	 // window 失去焦点,停止输出
+    window.onblur = function() {
+        clearInterval(t1);
+    };
+    // window 每次获得焦点
+    window.onfocus = function() {
+        t1 = window.setInterval("login()",2000);
+    };
+	 function login(){   //验证是否扫描二维码
+      
+        var code =$('input[name=code]').val();
+        var url = "/admin/index/weixinLogin";
+        $.post(url,{state:code},function(data){
+          	
+            if(data){
+                window.location.href="/admin/index/index";
+            }
+        });
+    }
+
+</script>
+<!-- 底部结束 -->
+<script>
+    //百度统计可去掉
+    var _hmt = _hmt || [];
+    (function() {
+        var hm = document.createElement("script");
+        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+        var s = document.getElementsByTagName("script")[0];
+        s.parentNode.insertBefore(hm, s);
+    })();
+</script>
+</body>
+</html>

+ 39 - 0
repairceshi/application/admin/view/index/region.html

@@ -0,0 +1,39 @@
+{include file="public/header"}
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/index/addRegion',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">区域名</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        {volist	name="region"	id="vo"}
+        <tr>
+            <td>{$vo.username}</td>
+            <td>{$vo.create_time | date="Y-m-d H:i",###}</td>
+            <td>
+
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('编辑','/admin/index/editRegion?id={$vo.id}',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('{$vo.id}')">删除</button>
+            </td>
+        </tr>
+        {/volist}
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">区域名</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/index/delRegion?id="+id;
+    }
+</script>

+ 59 - 0
repairceshi/application/admin/view/index/test.html

@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset=UTF-8> <meta name=viewport content="width=device-width,initial-scale=1,user-scalable=0">
+    <title>weui.js</title>
+    <link rel=stylesheet href=https://res.wx.qq.com/open/libs/weui/1.1.1/weui.min.css>
+    <style>
+        body,html{height:100%;background-color:#f8f8f8}
+        body{font-family:-apple-system-font,Helvetica Neue,Helvetica,sans-serif}
+        .item{padding:10px 0}
+        .item__title{margin-bottom:5px;padding-left:15px;padding-right:15px;color:#999;font-weight:400;font-size:14px}
+        .item__ctn{padding:0 15px}
+        .page_feedback{padding:15px;overflow:auto;background-color:#FFF}
+        label>*{pointer-events:none}
+        .weui-picker__item{padding:0;height:34px;line-height:34px}
+    </style>
+</head>
+<body ontouchstart>
+<p id=bear></p>
+
+<a href=javascript:; id=actionSheetBtn class="weui-btn weui-btn_default" onclick="removeMeun()">ActionSheet</a>
+<div class="custom-classname" hidden>
+    <div class="weui-mask weui-animate-fade-in" onclick="addMeun()"></div>
+    <div class="weui-actionsheet weui-animate-slide-up">
+        <div class="weui-actionsheet__menu">
+            {volist	name="mintain"	id="vo"}
+            <div class="weui-actionsheet__cell" onclick="transferOrder('{$vo.openid}')"><img src="{$vo.headimgurl}" alt="" style="height: 40px;width: 40px; border-radius:50%;">{if condition="$vo.username eq null"}
+                {$vo.nickname}
+                {else/}
+                {$vo.username}
+                {/if}
+            </div>
+            {/volist}
+        </div>
+        <div class="weui-actionsheet__action" onclick="addMeun()">
+            <div class="weui-actionsheet__cell" >取消</div>
+        </div>
+    </div>
+</div>
+
+
+</body>
+</html>
+
+<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
+<script type="text/javascript">
+
+    function removeMeun() {
+        $(".custom-classname").removeAttr("hidden");
+    }
+
+    function addMeun( ) {
+        $(".custom-classname").attr("hidden",true);
+    }
+    function transferOrder(openid) {
+        var openid = openid;
+
+    }
+</script>

+ 258 - 0
repairceshi/application/admin/view/index/user.html

@@ -0,0 +1,258 @@
+{include file="public/header"}
+<form action="user" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="id">用户id</option>
+            <option value="nickname">微信昵称</option>
+            <option value="username">用户名字</option>
+            <option value="telephone">手机号码</option>
+          	<option value="group">所属分组</option>
+          	<option value="region">所属区域</option>
+            <option value="is_register">注册状态</option>
+            <option value="is_check">审核状态</option>
+        </select>
+    </div>
+
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="is_register" id="is_register"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未注册</option>
+            <option value="1">已注册</option>
+        </select>
+        <select name="is_check" id="is_check"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未审核</option>
+            <option value="1">已审核</option>
+        </select>
+      	 <select name="group" id="group"  hidden disabled>
+           <option value="">请选择</option>
+           {foreach $group as $v}        
+            <option value="{$v.id}">{$v.name}</option>
+           {/foreach}
+        </select>
+      	<select name="region" id="region"  hidden disabled>
+           <option value="">请选择</option>
+           {foreach $region as $v}        
+            <option value="{$v.id}">{$v.username}</option>
+           {/foreach}
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+    <button type="button" class="btn btn-primary" id="adduser">添加用户</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+               <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            {volist name="user_info" id="vo"}
+            <tr>
+                <td><b>{$vo.id}</b></td>
+                <td>
+                    {if condition = "$vo.nickname eq null"}
+                       暂无
+                    {else/}
+                       {$vo.nickname}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.headimgurl eq null"}
+                       暂无
+                    {else/}
+                       <img src="{$vo.headimgurl}" alt="微信头像" style="width:30px;border-radius: 50%">
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.telephone eq null"}
+                     暂无
+                    {else/}
+                      {$vo.telephone}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.username eq null"}
+                      暂无
+                    {else/}
+                    {$vo.username}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.group eq null"}
+                     暂无
+                    {else/}
+                    {$vo.group}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.address eq null"}
+                      暂无
+                    {else/}
+                      {$vo.address}
+                    {/if}
+                </td>
+                <td>
+                    {if condition = "$vo.identity eq 0"}
+                      报修者
+                    {elseif condition = "$vo.identity eq 1" /}
+                      维修者
+                    {elseif condition = "$vo.identity eq 2" /}
+                      协管者
+                    {elseif condition = "$vo.identity eq 99" /}
+                      管理员
+                    {else/}
+                      暂无
+                    {/if}
+                </td>
+                <td>{$vo.addtime}</td>
+                <td>
+                    {if condition = "$vo.is_register eq 0"}
+                      <font style="color:red;">未注册</font>
+                    {else /}
+                      <font style="color:green;">已注册</font>
+                    {/if}
+                </td>
+                 <td>
+                    {if condition = "$vo.is_check eq 0"}
+                      <font style="color:red;">未审核</font>
+                    {else /}
+                      <font style="color:green;">已审核</font>
+                    {/if}
+                </td>
+                <td>
+                    <button data-userid="{$vo['id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-userid="{$vo['id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            {/volist}
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+              <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    {$user_info->render()}
+</div>
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<!-- 补单函数的触发 -->
+<script>
+    $(function () {
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val();
+
+            if(selected == "is_register"){
+                $("#is_register").show();
+                $("#is_register").removeAttr('disabled')
+                $("#is_register").addClass('form-control')
+              	$("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if(selected == "is_check"){
+                $("#is_check").show();
+                $("#is_check").removeAttr('disabled')
+                $("#is_check").addClass('form-control')
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if(selected == "group"){
+              	$("#group").show();
+                $("#group").removeAttr('disabled')
+                $("#group").addClass('form-control')
+              	 $("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if (selected == "region"){
+            	$("#region").show();
+                $("#region").removeAttr('disabled')
+                $("#region").addClass('form-control')
+               	$("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+            }
+
+          	
+        });
+        $('.buttoninfo').click(function () {
+            //获取当前用户id   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "__URL__/user_info?user_id=" + userid;
+        });
+
+        $('.buttoneidt').click(function () {
+            //编辑当前用户   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "__URL__/edit_user_info?user_id=" + userid;
+
+        });
+
+
+        $('#adduser').click(function(){
+           window.location.href = "__URL__/add_user";  //添加用户
+        });
+
+
+    });
+</script>

+ 159 - 0
repairceshi/application/admin/view/index/user_info.html

@@ -0,0 +1,159 @@
+{include file="public/header"}
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">个人信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>微信号码:</b>{$user_info.nickname}</li>
+        <li class="list-group-item">
+            <b>头像信息:</b>
+            {if condition = "$user_info.headimgurl eq null"}
+            暂无
+            {else/}
+            <img src="{$user_info.headimgurl}" alt="微信头像" style="width:30px;border-radius:50%">
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            {if condition = "$user_info.telephone eq null"}
+            暂无
+            {else/}
+            {$user_info.telephone}
+            {/if}
+        </li>
+        <li class="list-group-item"><b>用户名:</b>
+            {if condition = "$user_info.username eq null"}
+            暂无
+            {else/}
+            {$user_info.username}
+            {/if}
+        </li>
+        <li class="list-group-item"><b>所属组:</b>
+            {if condition = "$user_info.group eq null"}
+            暂无
+            {else/}
+            
+            {$user_info.group}
+            {/if}
+        </li>
+        <li class="list-group-item"><b>所属区域:</b>
+            {if condition = "$user_info.region eq null"}
+            暂无
+            {else/}
+
+            {$user_info.region}
+            {/if}
+        </li>
+        <li class="list-group-item"><b>地址信息:</b>
+            {if condition = "$user_info.address eq null"}
+            暂无
+            {else/}
+            {$user_info.address}
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>身份信息:</b>
+            {if condition = "$user_info.identity eq 0"}
+            报修者
+            {elseif condition = "$user_info.identity eq 1" /}
+            维修者
+            {else/}
+            暂无
+            {/if}
+        </li>
+        <li class="list-group-item">
+            <b>是否审核:</b>
+            {if condition = "$user_info.is_register eq 0"}
+                <font style="color:red;">未审核</font>
+            {else /}
+                <font style="color:green;">已审核</font>
+            {/if}
+        </li>
+    </ul>
+</div>
+
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            {volist name="user_order_info" id="vo"}
+            <tr>
+                <td><b>{$vo.order_id}</b></td>
+                <td>{$vo.linkman}</td>
+                <td>{$vo.linktel}</td>
+                <td>
+                    {if condition = "$vo.repuser eq null"}
+                    暂无
+                    {else /}
+                    {$vo.repuser}
+                    {/if}
+                </td>
+                <td>{$vo.title}</td>
+                <td>{$vo.create_time}</td>
+                <td>
+                    {if condition="$vo.status eq '0'"}
+                    <font color="green">接单中</font>
+                    {elseif condition="$vo.status eq '1'"}
+                    <font color="green">处理中</font>
+                    {else /}
+                    <font color="red">完成</font>
+                    {/if}
+                </td>
+                <td>
+                    <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="{$vo['order_id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            {/volist}
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+
+<!-- 分页的渲染 -->
+<div style="text-align:center;">
+    {$user_order_info->render()}
+</div>
+
+
+<script src="__LOGIN__/js/jquery.min.js"></script>
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            var orderid = $(this).attr('data-orderid');
+            window.location.href = "__URL__/order_info?orderid=" + orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href = "__URL__/edit_user_info?orderid=" + orderid;
+        });
+    });
+</script>

+ 8 - 0
repairceshi/application/admin/view/public/footer.html

@@ -0,0 +1,8 @@
+<script src="__USER__/js/jquery.min.js"></script>
+<script src="__USER__/js/bootstrap.js"></script>
+<script src="__USER__/js/ui-load.js"></script>
+<script src="__USER__/js/ui-jp.js"></script>
+<script src="__USER__/js/ui-nav.js"></script>
+<script src="__USER__/js/ui-toggle.js"></script>
+</body>
+</html>

+ 52 - 0
repairceshi/application/admin/view/public/header.html

@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">

+ 12 - 0
repairceshi/application/command.php

@@ -0,0 +1,12 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: yunwuxin <448901948@qq.com>
+// +----------------------------------------------------------------------
+
+return [];

+ 12 - 0
repairceshi/application/common.php

@@ -0,0 +1,12 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: 流年 <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+// 应用公共文件

+ 247 - 0
repairceshi/application/config.php

@@ -0,0 +1,247 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+return [
+    // +----------------------------------------------------------------------
+    // | 应用设置
+    // +----------------------------------------------------------------------
+
+    // 应用调试模式
+    'app_debug'              => true,
+    // 应用Trace
+    'app_trace'              => false,
+    // 应用模式状态
+    'app_status'             => '',
+    // 是否支持多模块
+    'app_multi_module'       => true,
+    // 入口自动绑定模块
+    'auto_bind_module'       => false,
+    // 注册的根命名空间
+    'root_namespace'         => [],
+    // 扩展函数文件
+    'extra_file_list'        => [THINK_PATH . 'helper' . EXT],
+    // 默认输出类型
+    'default_return_type'    => 'html',
+    // 默认AJAX 数据返回格式,可选json xml ...
+    'default_ajax_return'    => 'json',
+    // 默认JSONP格式返回的处理方法
+    'default_jsonp_handler'  => 'jsonpReturn',
+    // 默认JSONP处理方法
+    'var_jsonp_handler'      => 'callback',
+    // 默认时区
+    'default_timezone'       => 'PRC',
+    // 是否开启多语言
+    'lang_switch_on'         => false,
+    // 默认全局过滤方法 用逗号分隔多个
+    'default_filter'         => 'htmlspecialchars',
+    // 默认语言
+    'default_lang'           => 'zh-cn',
+    // 应用类库后缀
+    'class_suffix'           => false,
+    // 控制器类后缀
+    'controller_suffix'      => false,
+
+    // +----------------------------------------------------------------------
+    // | 模块设置
+    // +----------------------------------------------------------------------
+
+    // 默认模块名
+    'default_module'         => 'admin',
+    // 禁止访问模块
+    'deny_module_list'       => ['common'],
+    // 默认控制器名
+    'default_controller'     => 'Index',
+    // 默认操作名
+    'default_action'         => 'login',
+    // 默认验证器
+    'default_validate'       => '',
+    // 默认的空控制器名
+    'empty_controller'       => 'Error',
+    // 操作方法后缀
+    'action_suffix'          => '',
+    // 自动搜索控制器
+    'controller_auto_search' => false,
+
+    // +----------------------------------------------------------------------
+    // | URL设置
+    // +----------------------------------------------------------------------
+
+    // PATHINFO变量名 用于兼容模式
+    'var_pathinfo'           => 's',
+    // 兼容PATH_INFO获取
+    'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
+    // pathinfo分隔符
+    'pathinfo_depr'          => '/',
+    // URL伪静态后缀
+    'url_html_suffix'        => 'html',
+    // URL普通方式参数 用于自动生成
+    'url_common_param'       => false,
+    // URL参数方式 0 按名称成对解析 1 按顺序解析
+    'url_param_type'         => 0,
+    // 是否开启路由
+    'url_route_on'           => true,
+    // 路由使用完整匹配
+    'route_complete_match'   => false,
+    // 路由配置文件(支持配置多个)
+    'route_config_file'      => ['route'],
+    // 是否开启路由解析缓存
+    'route_check_cache'      => false,
+    // 是否强制使用路由
+    'url_route_must'         => false,
+    // 域名部署
+    'url_domain_deploy'      => false,
+    // 域名根,如thinkphp.cn
+    'url_domain_root'        => '',
+    // 是否自动转换URL中的控制器和操作名
+    'url_convert'            => true,
+    // 默认的访问控制器层
+    'url_controller_layer'   => 'controller',
+    // 表单请求类型伪装变量
+    'var_method'             => '_method',
+    // 表单ajax伪装变量
+    'var_ajax'               => '_ajax',
+    // 表单pjax伪装变量
+    'var_pjax'               => '_pjax',
+    // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
+    'request_cache'          => false,
+    // 请求缓存有效期
+    'request_cache_expire'   => null,
+    // 全局请求缓存排除规则
+    'request_cache_except'   => [],
+
+    // +----------------------------------------------------------------------
+    // | 模板设置
+    // +----------------------------------------------------------------------
+
+    'template'               => [
+        // 模板引擎类型 支持 php think 支持扩展
+        'type'         => 'Think',
+        // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
+        'auto_rule'    => 1,
+        // 模板路径
+        'view_path'    => '',
+        // 模板后缀
+        'view_suffix'  => 'html',
+        // 模板文件名分隔符
+        'view_depr'    => DS,
+        // 模板引擎普通标签开始标记
+        'tpl_begin'    => '{',
+        // 模板引擎普通标签结束标记
+        'tpl_end'      => '}',
+        // 标签库标签开始标记
+        'taglib_begin' => '{',
+        // 标签库标签结束标记
+        'taglib_end'   => '}',
+    ],
+
+    // 视图输出字符串内容替换
+    'view_replace_str'       => [
+        '__LOGIN__' => '/static/login',      //登录
+        '__USER__' => '/static/user',        //用户
+        '__ADMIN__' => '/static/admin',      //管理员
+    ],
+    // 默认跳转页面对应的模板文件
+    'dispatch_success_tmpl'  => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
+    'dispatch_error_tmpl'    => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
+
+    // +----------------------------------------------------------------------
+    // | 异常及错误设置
+    // +----------------------------------------------------------------------
+
+    // 异常页面的模板文件
+    'exception_tmpl'         => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',
+
+    // 错误显示信息,非调试模式有效
+    'error_message'          => '页面错误!请稍后再试~',
+    // 显示错误信息
+    'show_error_msg'         => false,
+    // 异常处理handle类 留空使用 \think\exception\Handle
+    'exception_handle'       => '',
+
+    // +----------------------------------------------------------------------
+    // | 日志设置
+    // +----------------------------------------------------------------------
+
+    'log'                    => [
+        // 日志记录方式,内置 file socket 支持扩展
+        'type'  => 'File',
+        // 日志保存目录
+        'path'  => LOG_PATH,
+        // 日志记录级别
+        'level' => ['notice','warning','error'],
+    ],
+
+    // +----------------------------------------------------------------------
+    // | Trace设置 开启 app_trace 后 有效
+    // +----------------------------------------------------------------------
+    'trace'                  => [
+        // 内置Html Console 支持扩展
+        'type' => 'Html',
+    ],
+
+    // +----------------------------------------------------------------------
+    // | 缓存设置
+    // +----------------------------------------------------------------------
+
+    'cache'                  => [
+        // 驱动方式
+        'type'   => 'File',
+        // 缓存保存目录
+        'path'   => CACHE_PATH,
+        // 缓存前缀
+        'prefix' => '',
+        // 缓存有效期 0表示永久缓存
+        'expire' => 300,
+    ],
+
+    // +----------------------------------------------------------------------
+    // | 会话设置
+    // +----------------------------------------------------------------------
+
+    'session'                => [
+        'id'             => '',
+        // SESSION_ID的提交变量,解决flash上传跨域
+        'var_session_id' => '',
+        // SESSION 前缀
+        'prefix'         => 'think',
+        // 驱动方式 支持redis memcache memcached
+        'type'           => '',
+        // 是否自动开启 SESSION
+        'auto_start'     => true,
+    ],
+
+    // +----------------------------------------------------------------------
+    // | Cookie设置
+    // +----------------------------------------------------------------------
+    'cookie'                 => [
+        // cookie 名称前缀
+        'prefix'    => '',
+        // cookie 保存时间
+        'expire'    => 0,
+        // cookie 保存路径
+        'path'      => '/',
+        // cookie 有效域名
+        'domain'    => '',
+        //  cookie 启用安全传输
+        'secure'    => false,
+        // httponly设置
+        'httponly'  => '',
+        // 是否使用 setcookie
+        'setcookie' => true,
+    ],
+
+    //分页配置
+    'paginate'               => [
+        'type'      => 'bootstrap',
+        'var_page'  => 'page',
+        'list_rows' => 15,
+    ],
+];

+ 55 - 0
repairceshi/application/database.php

@@ -0,0 +1,55 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+return [
+    // 数据库类型
+    'type'            => 'mysql',
+    // 服务器地址
+    'hostname'        => '127.0.0.1',
+    // 数据库名
+    'database'        => 'wxkf',
+    // 用户名
+    'username'        => 'root1',
+    // 密码
+    'password'        => 'titan666',
+    // 端口
+    'hostport'        => '',
+    // 连接dsn
+    'dsn'             => '',
+    // 数据库连接参数
+    'params'          => [],
+    // 数据库编码默认采用utf8
+    'charset'         => 'utf8',
+    // 数据库表前缀
+    'prefix'          => '',
+    // 数据库调试模式
+    'debug'           => true,
+    // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
+    'deploy'          => 0,
+    // 数据库读写是否分离 主从式有效
+    'rw_separate'     => false,
+    // 读写分离后 主服务器数量
+    'master_num'      => 1,
+    // 指定从服务器序号
+    'slave_no'        => '',
+    // 自动读取主库数据
+    'read_master'     => false,
+    // 是否严格检查字段是否存在
+    'fields_strict'   => true,
+    // 数据集返回类型
+    'resultset_type'  => 'array',
+    // 自动写入时间戳字段
+    'auto_timestamp'  => false,
+    // 时间字段取出后的默认时间格式
+    'datetime_format' => 'Y-m-d H:i:s',
+    // 是否需要进行SQL性能分析
+    'sql_explain'     => false,
+];

+ 21 - 0
repairceshi/application/route.php

@@ -0,0 +1,21 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+return [
+    '__pattern__' => [
+        'name' => '\w+',
+    ],
+    '[hello]'     => [
+        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
+        ':name' => ['index/hello', ['method' => 'post']],
+    ],
+
+];

+ 28 - 0
repairceshi/application/tags.php

@@ -0,0 +1,28 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+// 应用行为扩展定义文件
+return [
+    // 应用初始化
+    'app_init'     => [],
+    // 应用开始
+    'app_begin'    => [],
+    // 模块初始化
+    'module_init'  => [],
+    // 操作开始执行
+    'action_begin' => [],
+    // 视图内容过滤
+    'view_filter'  => [],
+    // 日志写入
+    'log_write'    => [],
+    // 应用结束
+    'app_end'      => [],
+];

+ 25 - 0
repairceshi/build.php

@@ -0,0 +1,25 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+return [
+    // 生成应用公共文件
+    '__file__' => ['common.php', 'config.php', 'database.php'],
+
+    // 定义demo模块的自动生成 (按照实际定义的文件名生成)
+    'demo'     => [
+        '__file__'   => ['common.php'],
+        '__dir__'    => ['behavior', 'controller', 'model', 'view'],
+        'controller' => ['Index', 'Test', 'UserType'],
+        'model'      => ['User', 'UserType'],
+        'view'       => ['index/index'],
+    ],
+    // 其他更多的模块定义
+];

+ 33 - 0
repairceshi/composer.json

@@ -0,0 +1,33 @@
+{
+    "name": "topthink/think",
+    "description": "the new thinkphp framework",
+    "type": "project",
+    "keywords": [
+        "framework",
+        "thinkphp",
+        "ORM"
+    ],
+    "homepage": "http://thinkphp.cn/",
+    "license": "Apache-2.0",
+    "authors": [
+        {
+            "name": "liu21st",
+            "email": "liu21st@gmail.com"
+        }
+    ],
+    "require": {
+        "php": ">=5.4.0",
+        "topthink/framework": "5.0.*"
+    },
+    "autoload": {
+        "psr-4": {
+            "app\\": "application"
+        }
+    },
+    "extra": {
+        "think-path": "thinkphp"
+    },
+    "config": {
+        "preferred-install": "dist"
+    }
+}

+ 2 - 0
repairceshi/extend/.gitignore

@@ -0,0 +1,2 @@
+*
+!.gitignore

+ 8 - 0
repairceshi/public/.htaccess

@@ -0,0 +1,8 @@
+<IfModule mod_rewrite.c>
+  
+  RewriteEngine On
+
+  RewriteCond %{REQUEST_FILENAME} !-d
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteRule ^(.*)$ index.php [E=PATH_INFO:$1,QSA,PT,L]
+</IfModule>

BIN
repairceshi/public/favicon.ico


+ 17 - 0
repairceshi/public/index.php

@@ -0,0 +1,17 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+
+// [ 应用入口文件 ]
+
+// 定义应用目录
+define('APP_PATH', __DIR__ . '/../application/');
+// 加载框架引导文件
+require __DIR__ . '/../thinkphp/start.php';

+ 2 - 0
repairceshi/public/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow:

+ 20 - 0
repairceshi/public/router.php

@@ -0,0 +1,20 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: liu21st <liu21st@gmail.com>
+// +----------------------------------------------------------------------
+// $Id$
+
+if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
+    return false;
+} else {
+    if (!isset($_SERVER['PATH_INFO'])) {
+        $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
+    }
+    require __DIR__ . "/index.php";
+}

+ 2 - 0
repairceshi/public/static/.gitignore

@@ -0,0 +1,2 @@
+*
+!.gitignore

+ 137 - 0
repairceshi/runtime/temp/03c356d0ff644d2673a8e1d2d8440fa2.php

@@ -0,0 +1,137 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"/www/maintain/repairceshi/public/../application/admin/view/index/edit_user_info.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑用户</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_user_info" method="POST">
+
+        <input type="hidden" name="id" value="<?php echo $user_info['id']; ?>">
+
+        <div class="form-group">
+            <label>用户微信名称:</label><br>
+            <input type="text" class="form-control" name="nickname" value="<?php echo $user_info['nickname']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>联系电话:</label><br>
+            <input type="text" class="form-control" name="telephone" value="<?php echo $user_info['telephone']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户名:</label><br>
+            <input type="text" class="form-control" name="username" value="<?php echo $user_info['username']; ?>">
+        </div>
+        <div class="form-group">
+            <label>分组:</label><br>
+             <select class="form-control" name="group">
+                <?php if(is_array($group_info) || $group_info instanceof \think\Collection || $group_info instanceof \think\Paginator): $i = 0; $__LIST__ = $group_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+                <option value="<?php echo $vo['id']; ?>" <?php if($user_info['group']==$vo['id']): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
+                <?php endforeach; endif; else: echo "" ;endif; ?>
+            </select>
+        </div>
+        <div class="form-group">
+            <label>区域:</label><br>
+            <div class="region">
+                <select class="form-control" name="region" id="#region">
+                    <?php if(is_array($region) || $region instanceof \think\Collection || $region instanceof \think\Paginator): $i = 0; $__LIST__ = $region;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+                    <option value="<?php echo $vo['id']; ?>" <?php if($user_info['region']==$vo['id']): ?>selected<?php endif; ?>><?php echo $vo['username']; ?></option>
+                    <?php endforeach; endif; else: echo "" ;endif; ?>
+                </select>
+            </div>
+
+        </div>
+        <div class="form-group">
+            <label>用户地址:</label><br>
+            <input type="text" class="form-control" name="address" value="<?php echo $user_info['address']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户身份:</label><br>
+            <select class="form-control" name="identity">
+                <option value="0" <?php if($user_info['identity']==0): ?>selected<?php endif; ?>>报修者 </option> 
+                <option value="1" <?php if($user_info['identity']==1): ?>selected<?php endif; ?>>维修者 </option> 
+                <option value="2" <?php if($user_info['identity']==2): ?>selected<?php endif; ?>>协管者 </option> 
+                <option value="99" <?php if($user_info['identity']==99): ?>selected<?php endif; ?>>管理员 </option> 
+            </select> 
+            </div> 
+                <div class="form-group">
+                <label>是否审核:</label><br>
+                <select class="form-control" name="is_check">
+                    <option value="0" <?php if($user_info['is_check']==0): ?>selected<?php endif; ?>>未审核</option>
+                    <option value="1" <?php if($user_info['is_check']==1): ?>selected<?php endif; ?>>已审核</option>
+                </select>
+            </div>
+            <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>
+
+<script>
+    $(function (  ) {
+        $("[name='group']").change(function () {
+            var selected = $(this).children('option:selected').val();
+            $.ajax({
+                url:"/admin/index/findRegion",
+                type:"get",
+                data:{id:selected},
+                dataType:"json",
+                success:function (datas) {
+                   $html = "<select class='form-control' name='region' id='region'>";
+                    for(var i=0; i<datas.length; i++){
+                        $html += "<option value=datas[i]['id']>"+datas[i]['username']+"</option>"
+                    }
+                    $html += "</select>"
+                    $(".region").html($html);
+                }
+            });
+        })
+    })
+</script>

+ 305 - 0
repairceshi/runtime/temp/0751481bf2e91f32eb02500a6d0d8597.php

@@ -0,0 +1,305 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"/www/maintain/repairceshi/public/../application/admin/view/index/user.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="user" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="id">用户id</option>
+            <option value="nickname">微信昵称</option>
+            <option value="username">用户名字</option>
+            <option value="telephone">手机号码</option>
+          	<option value="group">所属分组</option>
+          	<option value="region">所属区域</option>
+            <option value="is_register">注册状态</option>
+            <option value="is_check">审核状态</option>
+        </select>
+    </div>
+
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="is_register" id="is_register"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未注册</option>
+            <option value="1">已注册</option>
+        </select>
+        <select name="is_check" id="is_check"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未审核</option>
+            <option value="1">已审核</option>
+        </select>
+      	 <select name="group" id="group"  hidden disabled>
+           <option value="">请选择</option>
+           <?php foreach($group as $v): ?>        
+            <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
+           <?php endforeach; ?>
+        </select>
+      	<select name="region" id="region"  hidden disabled>
+           <option value="">请选择</option>
+           <?php foreach($region as $v): ?>        
+            <option value="<?php echo $v['id']; ?>"><?php echo $v['username']; ?></option>
+           <?php endforeach; ?>
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+    <button type="button" class="btn btn-primary" id="adduser">添加用户</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+               <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_info) || $user_info instanceof \think\Collection || $user_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['id']; ?></b></td>
+                <td>
+                    <?php if($vo['nickname'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <?php echo $vo['nickname']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['headimgurl'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <img src="<?php echo $vo['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius: 50%">
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['telephone'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                      <?php echo $vo['telephone']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['username'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                    <?php echo $vo['username']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['group'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                    <?php echo $vo['group']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['address'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['address']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['identity'] == 0): ?>
+                      报修者
+                    <?php elseif($vo['identity'] == 1): ?>
+                      维修者
+                    <?php elseif($vo['identity'] == 2): ?>
+                      协管者
+                    <?php elseif($vo['identity'] == 99): ?>
+                      管理员
+                    <?php else: ?>
+                      暂无
+                    <?php endif; ?>
+                </td>
+                <td><?php echo $vo['addtime']; ?></td>
+                <td>
+                    <?php if($vo['is_register'] == 0): ?>
+                      <font style="color:red;">未注册</font>
+                    <?php else: ?>
+                      <font style="color:green;">已注册</font>
+                    <?php endif; ?>
+                </td>
+                 <td>
+                    <?php if($vo['is_check'] == 0): ?>
+                      <font style="color:red;">未审核</font>
+                    <?php else: ?>
+                      <font style="color:green;">已审核</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+              <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    <?php echo $user_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<!-- 补单函数的触发 -->
+<script>
+    $(function () {
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val();
+
+            if(selected == "is_register"){
+                $("#is_register").show();
+                $("#is_register").removeAttr('disabled')
+                $("#is_register").addClass('form-control')
+              	$("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if(selected == "is_check"){
+                $("#is_check").show();
+                $("#is_check").removeAttr('disabled')
+                $("#is_check").addClass('form-control')
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if(selected == "group"){
+              	$("#group").show();
+                $("#group").removeAttr('disabled')
+                $("#group").addClass('form-control')
+              	 $("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if (selected == "region"){
+            	$("#region").show();
+                $("#region").removeAttr('disabled')
+                $("#region").addClass('form-control')
+               	$("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+              	$("#group").hide();
+                $("#group").attr("disabled",true)
+              	$("#region").hide();
+                $("#region").attr("disabled",true)
+            }
+
+          	
+        });
+        $('.buttoninfo').click(function () {
+            //获取当前用户id   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/user_info?user_id=" + userid;
+        });
+
+        $('.buttoneidt').click(function () {
+            //编辑当前用户   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/edit_user_info?user_id=" + userid;
+
+        });
+
+
+        $('#adduser').click(function(){
+           window.location.href = "/admin/index/add_user";  //添加用户
+        });
+
+
+    });
+</script>

+ 80 - 0
repairceshi/runtime/temp/0b5d053642f52a82da948288fffc25d4.php

@@ -0,0 +1,80 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:83:"/www/wwwroot/repairceshi/public/../application/admin/view/authorty_manage/view.html";i:1557300752;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="<?php echo $data['id']; ?>" hidden>
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value=<?php echo $data['username']; ?> readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $authority = [];
+                        if(strlen($data['authority']) == 1){
+                            array_push($authority,$data['authority']);
+                        }else{
+                             $authority = explode(',',$data['authority']);
+                        }
+                    foreach($adminGroup as $v):                          if(in_array($v['id'],$authority)){?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>" checked="true" readonly>
+                    <?php }else{?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>" readonly>
+                    <?php }endforeach; ?>
+                </div>
+            </div>
+
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 205 - 0
repairceshi/runtime/temp/0b9a04e9117d04211ba0261a5bbe3f2a.php

@@ -0,0 +1,205 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:77:"D:\maintain\repairceshi\public/../application/admin\view\index\user_info.html";i:1557297540;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">个人信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
+        <li class="list-group-item">
+            <b>头像信息:</b>
+            <?php if($user_info['headimgurl'] == null): ?>
+            暂无
+            <?php else: ?>
+            <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($user_info['telephone'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['telephone']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>用户名:</b>
+            <?php if($user_info['username'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['username']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属组:</b>
+            <?php if($user_info['group'] == null): ?>
+            暂无
+            <?php else: ?>
+            
+            <?php echo $user_info['group']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属区域:</b>
+            <?php if($user_info['region'] == null): ?>
+            暂无
+            <?php else: ?>
+
+            <?php echo $user_info['region']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>地址信息:</b>
+            <?php if($user_info['address'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['address']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>身份信息:</b>
+            <?php if($user_info['identity'] == 0): ?>
+            报修者
+            <?php elseif($user_info['identity'] == 1): ?>
+            维修者
+            <?php else: ?>
+            暂无
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>是否审核:</b>
+            <?php if($user_info['is_register'] == 0): ?>
+                <font style="color:red;">未审核</font>
+            <?php else: ?>
+                <font style="color:green;">已审核</font>
+            <?php endif; ?>
+        </li>
+    </ul>
+</div>
+
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                    暂无
+                    <?php else: ?>
+                    <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                    <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                    <font color="green">处理中</font>
+                    <?php else: ?>
+                    <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+
+<!-- 分页的渲染 -->
+<div style="text-align:center;">
+    <?php echo $user_order_info->render(); ?>
+</div>
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            var orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/order_info?orderid=" + orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
+        });
+    });
+</script>

+ 196 - 0
repairceshi/runtime/temp/0bdd325fbde35420afd8e81439ffe4e6.php

@@ -0,0 +1,196 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"/www/wwwroot/repairceshi/public/../application/admin/view/index/order.html";i:1557311647;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="order" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="order_id">订单号</option>
+            <option value="linkman">报修人</option>
+            <option value="linktel">报修号码</option>
+            <option value="repuser">维修人</option>
+            <option value="status">进度</option>
+        </select>
+    </div>
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="statusValue" id="statusValue"  hidden disabled>
+            <option value="4">请选择</option>
+            <option value="0">接单中</option>
+            <option value="1">处理中</option>
+            <option value="2">已完成</option>
+            <option value="3">转单</option>
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($order_info) || $order_info instanceof \think\Collection || $order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td><?php echo date('Y-m-d H:i',$vo['update_time'] ); ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                       <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                       <font color="green">处理中</font>
+                    <?php elseif($vo['status'] == '3'): ?>
+                    <font color="green">转单</font>
+                    <?php else: ?>
+                       <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-success buttonmessage">评论</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<div style="text-align:center;">
+    <?php echo $order_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val()
+            if(selected == "status"){
+                $("#statusValue").show();
+                $("#statusValue").removeAttr('disabled')
+                $("#statusValue").addClass('form-control')
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#statusValue").hide();
+                $("#statusValue").attr("disabled",true)
+            }
+        });
+
+        //查看信息
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/order_info?orderid="+orderid;
+        });
+
+        $("[name='type']");
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/edit_order_info?orderid="+orderid;
+        });
+
+
+        //评论订单
+        $('.buttonmessage').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            console.log(orderid);  
+            window.location.href =  "/admin/index/order_message?orderid="+orderid;
+        });
+
+
+    });
+
+
+
+
+</script>

+ 205 - 0
repairceshi/runtime/temp/0be4a1b74e7ade7cbb200f41dc135c54.php

@@ -0,0 +1,205 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:79:"/www/maintain/repairceshi/public/../application/admin/view/index/user_info.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">个人信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
+        <li class="list-group-item">
+            <b>头像信息:</b>
+            <?php if($user_info['headimgurl'] == null): ?>
+            暂无
+            <?php else: ?>
+            <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($user_info['telephone'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['telephone']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>用户名:</b>
+            <?php if($user_info['username'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['username']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属组:</b>
+            <?php if($user_info['group'] == null): ?>
+            暂无
+            <?php else: ?>
+            
+            <?php echo $user_info['group']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属区域:</b>
+            <?php if($user_info['region'] == null): ?>
+            暂无
+            <?php else: ?>
+
+            <?php echo $user_info['region']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>地址信息:</b>
+            <?php if($user_info['address'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['address']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>身份信息:</b>
+            <?php if($user_info['identity'] == 0): ?>
+            报修者
+            <?php elseif($user_info['identity'] == 1): ?>
+            维修者
+            <?php else: ?>
+            暂无
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>是否审核:</b>
+            <?php if($user_info['is_register'] == 0): ?>
+                <font style="color:red;">未审核</font>
+            <?php else: ?>
+                <font style="color:green;">已审核</font>
+            <?php endif; ?>
+        </li>
+    </ul>
+</div>
+
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                    暂无
+                    <?php else: ?>
+                    <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                    <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                    <font color="green">处理中</font>
+                    <?php else: ?>
+                    <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+
+<!-- 分页的渲染 -->
+<div style="text-align:center;">
+    <?php echo $user_order_info->render(); ?>
+</div>
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            var orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/order_info?orderid=" + orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
+        });
+    });
+</script>

+ 91 - 0
repairceshi/runtime/temp/0eb2d4d98748946783b1b51c32ca1ef8.php

@@ -0,0 +1,91 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"D:\maintain\repairceshi\public/../application/admin\view\index\region.html";i:1557223596;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/index/addRegion',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">区域名</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        <?php if(is_array($region) || $region instanceof \think\Collection || $region instanceof \think\Paginator): $i = 0; $__LIST__ = $region;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+        <tr>
+            <td><?php echo $vo['username']; ?></td>
+            <td><?php echo date("Y-m-d H:i",$vo['create_time'] ); ?></td>
+            <td>
+
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('编辑','/admin/index/editRegion?id=<?php echo $vo['id']; ?>',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('<?php echo $vo['id']; ?>')">删除</button>
+            </td>
+        </tr>
+        <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">区域名</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/index/delRegion?id="+id;
+    }
+</script>

+ 89 - 0
repairceshi/runtime/temp/123497e480f3786bb9a1da60f4884e1d.php

@@ -0,0 +1,89 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:81:"/www/maintain/repairceshi/public/../application/admin/view/index/edit_region.html";i:1561359472;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>区域名
+                </label>
+                <input type="text" hidden value="<?php echo $region['id']; ?>" name="id">
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value="<?php echo $region['username']; ?>">
+                </div>
+
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    编辑
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/index/editRegion",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                                parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 47 - 0
repairceshi/runtime/temp/1774a933b30a6d046547bfac76672ccc.php

@@ -0,0 +1,47 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:55:"/www/wwwroot/repairceshi/thinkphp/tpl/dispatch_jump.tpl";i:1556098668;}*/ ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
+    <title>跳转提示</title>
+    <style type="text/css">
+        *{ padding: 0; margin: 0; }
+        body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
+        .system-message{ padding: 24px 48px; }
+        .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
+        .system-message .jump{ padding-top: 10px; }
+        .system-message .jump a{ color: #333; }
+        .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }
+        .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
+    </style>
+</head>
+<body>
+    <div class="system-message">
+        <?php switch ($code) {case 1:?>
+            <h1>:)</h1>
+            <p class="success"><?php echo(strip_tags($msg));?></p>
+            <?php break;case 0:?>
+            <h1>:(</h1>
+            <p class="error"><?php echo(strip_tags($msg));?></p>
+            <?php break;} ?>
+        <p class="detail"></p>
+        <p class="jump">
+            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
+        </p>
+    </div>
+    <script type="text/javascript">
+        (function(){
+            var wait = document.getElementById('wait'),
+                href = document.getElementById('href').href;
+            var interval = setInterval(function(){
+                var time = --wait.innerHTML;
+                if(time <= 0) {
+                    location.href = href;
+                    clearInterval(interval);
+                };
+            }, 1000);
+        })();
+    </script>
+</body>
+</html>

+ 58 - 0
repairceshi/runtime/temp/18942235d48fca3ec49759de4e5a93ad.php

@@ -0,0 +1,58 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"D:\maintain\repairceshi\public/../application/admin\view\index\test.html";i:1556523484;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset=UTF-8> <meta name=viewport content="width=device-width,initial-scale=1,user-scalable=0">
+    <title>weui.js</title>
+    <link rel=stylesheet href=https://res.wx.qq.com/open/libs/weui/1.1.1/weui.min.css>
+    <style>
+        body,html{height:100%;background-color:#f8f8f8}
+        body{font-family:-apple-system-font,Helvetica Neue,Helvetica,sans-serif}
+        .item{padding:10px 0}
+        .item__title{margin-bottom:5px;padding-left:15px;padding-right:15px;color:#999;font-weight:400;font-size:14px}
+        .item__ctn{padding:0 15px}
+        .page_feedback{padding:15px;overflow:auto;background-color:#FFF}
+        label>*{pointer-events:none}
+        .weui-picker__item{padding:0;height:34px;line-height:34px}
+    </style>
+</head>
+<body ontouchstart>
+<p id=bear></p>
+
+<a href=javascript:; id=actionSheetBtn class="weui-btn weui-btn_default" onclick="removeMeun()">ActionSheet</a>
+<div class="custom-classname" hidden>
+    <div class="weui-mask weui-animate-fade-in" onclick="addMeun()"></div>
+    <div class="weui-actionsheet weui-animate-slide-up">
+        <div class="weui-actionsheet__menu">
+            <?php if(is_array($mintain) || $mintain instanceof \think\Collection || $mintain instanceof \think\Paginator): $i = 0; $__LIST__ = $mintain;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <div class="weui-actionsheet__cell" onclick="transferOrder('<?php echo $vo['openid']; ?>')"><img src="<?php echo $vo['headimgurl']; ?>" alt="" style="height: 40px;width: 40px; border-radius:50%;"><?php if($vo['username'] == null): ?>
+                <?php echo $vo['nickname']; else: ?>
+                <?php echo $vo['username']; endif; ?>
+            </div>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </div>
+        <div class="weui-actionsheet__action" onclick="addMeun()">
+            <div class="weui-actionsheet__cell" >取消</div>
+        </div>
+    </div>
+</div>
+
+
+</body>
+</html>
+
+<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
+<script type="text/javascript">
+
+    function removeMeun() {
+        $(".custom-classname").removeAttr("hidden");
+    }
+
+    function addMeun( ) {
+        $(".custom-classname").attr("hidden",true);
+    }
+    function transferOrder(openid) {
+        var openid = openid;
+
+    }
+</script>

+ 81 - 0
repairceshi/runtime/temp/1967c352714e9dab45def0ba210ef78b.php

@@ -0,0 +1,81 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:82:"D:\maintain\repairceshi\public/../application/admin\view\authorty_manage\view.html";i:1556419106;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="<?php echo $data['id']; ?>" hidden>
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value=<?php echo $data['username']; ?> readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $authority = [];
+                        if(strlen($data['authority']) == 1){
+                            array_push($authority,$data['authority']);
+                        }else{
+                             $authority = explode(',',$data['authority']);
+                        }
+                    foreach($adminGroup as $v): 
+                         if(in_array($v['id'],$authority)){?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>" checked="true" readonly>
+                    <?php }else{?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>" readonly>
+                    <?php }endforeach; ?>
+                </div>
+            </div>
+
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 119 - 0
repairceshi/runtime/temp/1ac9f98adf3355637db79182feeeec8c.php

@@ -0,0 +1,119 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"/www/maintain/repairceshi/public/../application/admin/view/index/login.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html class="no-js " lang="en">
+<head>
+<meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
+    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+    <meta name="description" content="Responsive Bootstrap 4 and web Application ui kit.">
+
+    <title>登录中心</title>
+    <!-- Favicon-->
+    <!-- Custom Css -->
+    <link rel="stylesheet" href="/static/login/css/bootstrap.min.css">
+    <link rel="stylesheet" href="/static/login/css/main.css">
+    <link rel="stylesheet" href="/static/login/css/authentication.css">
+    <link rel="stylesheet" href="/static/login/css/color_skins.css">
+</head>
+
+<body class="theme-purple authentication sidebar-collapse">
+<!-- Navbar -->
+<nav class="navbar navbar-expand-lg fixed-top navbar-transparent">
+    <div class="container">        
+        <div class="navbar-translate n_logo">
+            <a class="navbar-brand" href="./" title="" target="_blank">管理中心</a>
+        </div>
+        <div class="navbar-collapse">
+            <ul class="navbar-nav">
+                <li class="nav-item">
+                    <a class="nav-link" href="./">Home</a>
+                </li>
+            </ul>
+        </div>
+    </div>
+</nav>
+<!-- End Navbar -->
+<div class="page-header">
+    <div class="page-header-image" style="background-image:url(/static/login/images/login.jpg)"></div>
+    <div class="container">
+        <div class="col-md-12 content-center">
+            <div class="card-plain">   
+                    <div class="header">
+                        <div class="logo-container">
+                        </div>
+                        <h5>Admin Center</h5>
+                    </div>
+                    <div class="content">                                                
+                        <div class="input-group input-lg">
+                            <input type="text" name="user" value="" class="form-control" placeholder="账号" id="user">
+                        </div>
+                        <div class="input-group input-lg">
+                            <input type="password" name="pass" value="" placeholder="密码" class="form-control" id="password">
+                      </div>
+                    <div class="footer text-center">
+                        <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="userbutton">立即登入</button>
+                    </div>
+                        <div class="footer text-center">
+                            <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="button">扫码登录</button>
+                        </div>
+            </div>
+              
+        </div>
+            
+    </div>
+    <footer class="footer">
+        <div class="container">
+            <div class="copyright">
+                &copy;
+                <script>
+                    document.write(new Date().getFullYear())
+                </script>,
+                <span>Designed by <a href="#" target="_blank">管理中心</a></span>
+            </div>
+        </div>
+    </footer>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+  	
+    $(function() {
+
+        $("#button").click(function () {
+           
+                        window.location.href="/admin/index/qrcode";
+           
+        })
+       $('#userbutton').click(function(){
+           var user = $('#user').val();
+           var password = $('#password').val();
+           if(user==''||password==''){
+               alert('请正确填写信息');
+               return false;
+           }
+            $.ajax({
+                url:"/admin/index/login",
+                dataType:"json",
+                async:true,
+                data:{"user":user,"password":password},
+                type:"post",
+                success:function(data){
+                    console.log(data);
+                    if(data.Code=='00'){
+                        window.location.href="/admin/index/index"
+                    }else{
+                       alert(data.msg);
+                    }
+                },
+                error:function(error){
+                   console.log(error);
+                }
+            });
+       });
+    });
+ 
+
+</script>
+ 
+</body>
+</html>
+

+ 108 - 0
repairceshi/runtime/temp/1e42234f36ad019efdcc56b3e5392f8f.php

@@ -0,0 +1,108 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:89:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\index.html";i:1553155606;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">基本信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>当前登录者:</b><?php echo $admin_info['user_nickname']; ?></li>
+        <li class="list-group-item"><b>当前商户数:</b><?php echo $merchants_num; ?></li>
+        <li class="list-group-item"><b>当前用户数:</b><?php echo $user_num; ?></li>
+        <li class="list-group-item"><b>现在时间:</b><?php echo $time_info; ?></li>
+    </ul>
+</div>
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">配置信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>邀请码的有效时间:</b>
+            <input type="text" oninput="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" id="sharetime" value="<?php echo $admin_info['code_time']; ?>">&nbsp;&nbsp;分钟
+        </li>
+        <li class="list-group-item"> 
+            <b>其他设置,后续更新</b>
+        </li>
+        <li class="list-group-item">
+            <button id="save" class="btn btn-primary">保存</button>
+        </li>
+    </ul>
+</div>
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    
+    $(function() {
+            
+        $('#save').click(function(){
+            var sharetime = $('#sharetime').val();
+            console.log(sharetime);
+            if(sharetime==''){
+                alert('请正确有效时间');
+                return false;
+            }
+             $.ajax({
+                 url:"/admin/index/configsave",
+                 dataType:"json",
+                 async:true,
+                 data:{"code_time":sharetime},
+                 type:"post",
+                 success:function(data){
+                    if(data.code==0){
+                       alert("保存成功");
+                    }else{
+                        alert('保存失败')
+                    }
+                 },
+                 error:function(error){
+                    console.log(error);
+                 }
+             });
+        });
+     });
+
+</script>

+ 130 - 0
repairceshi/runtime/temp/1f2813fbba9ee62d2bcb9135990e9dee.php

@@ -0,0 +1,130 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:79:"/www/wwwroot/repairceshi/public/../application/admin/view/index/order_info.html";i:1556442796;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">订单信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>当前订单号码:</b>
+            <?php if($order_info['order_id'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['order_id']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>报修人:</b>
+            <?php if($order_info['linkman'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['linkman']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($order_info['linktel'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['linktel']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>报修问题:</b>
+            <?php if($order_info['title'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['title']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>备注信息:</b>
+            <?php if($order_info['message'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['message']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>具体信息:</b>
+            <?php if($order_info['content'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['content']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>维修人:</b>
+            <?php if($order_info['repuser'] == null): ?>
+               暂无
+            <?php else: ?>
+               <?php echo $order_info['repuser']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>创建时间:</b><?php echo date("Y-m-d H:i",$order_info['create_time'] ); ?></li>
+        <li class="list-group-item"><b>更新时间:</b><?php echo date("Y-m-d H:i",$order_info['update_time'] ); ?></li>
+        <li class="list-group-item">
+            <b>订单状态:</b>
+            <?php if($order_info['status'] == '0'): ?>
+               接单中
+            <?php elseif($order_info['status'] == '1'): ?>
+               处理中
+            <?php else: ?>
+               完成
+            <?php endif; ?>
+        </li>
+      <?php if($order_info['status'] == '2'): ?>
+      
+       <li class="list-group-item">
+            <b>用户评论:</b>
+         <?php if($order_info['linkman_message'] != null): ?>
+            <?php echo $order_info['linkman_message']; else: ?>
+         暂无评论
+        </li>
+      <?php endif; endif; ?>
+    </ul>
+</div>

+ 89 - 0
repairceshi/runtime/temp/20a79cf8c2f1989f3cd6ba1b91c830e1.php

@@ -0,0 +1,89 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:79:"D:\maintain\repairceshi\public/../application/admin\view\index\edit_region.html";i:1557224110;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>区域名
+                </label>
+                <input type="text" hidden value="<?php echo $region['id']; ?>" name="id">
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value="<?php echo $region['username']; ?>">
+                </div>
+
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    编辑
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/index/editRegion",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                                parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 119 - 0
repairceshi/runtime/temp/247fd396194fb02b5736265e296c89dc.php

@@ -0,0 +1,119 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:74:"/www/wwwroot/repairceshi/public/../application/admin/view/index/login.html";i:1557199178;}*/ ?>
+<!DOCTYPE html>
+<html class="no-js " lang="en">
+<head>
+<meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
+    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+    <meta name="description" content="Responsive Bootstrap 4 and web Application ui kit.">
+
+    <title>登录中心</title>
+    <!-- Favicon-->
+    <!-- Custom Css -->
+    <link rel="stylesheet" href="/static/login/css/bootstrap.min.css">
+    <link rel="stylesheet" href="/static/login/css/main.css">
+    <link rel="stylesheet" href="/static/login/css/authentication.css">
+    <link rel="stylesheet" href="/static/login/css/color_skins.css">
+</head>
+
+<body class="theme-purple authentication sidebar-collapse">
+<!-- Navbar -->
+<nav class="navbar navbar-expand-lg fixed-top navbar-transparent">
+    <div class="container">        
+        <div class="navbar-translate n_logo">
+            <a class="navbar-brand" href="./" title="" target="_blank">管理中心</a>
+        </div>
+        <div class="navbar-collapse">
+            <ul class="navbar-nav">
+                <li class="nav-item">
+                    <a class="nav-link" href="./">Home</a>
+                </li>
+            </ul>
+        </div>
+    </div>
+</nav>
+<!-- End Navbar -->
+<div class="page-header">
+    <div class="page-header-image" style="background-image:url(/static/login/images/login.jpg)"></div>
+    <div class="container">
+        <div class="col-md-12 content-center">
+            <div class="card-plain">   
+                    <div class="header">
+                        <div class="logo-container">
+                        </div>
+                        <h5>Admin Center</h5>
+                    </div>
+                    <div class="content">                                                
+                        <div class="input-group input-lg">
+                            <input type="text" name="user" value="" class="form-control" placeholder="账号" id="user">
+                        </div>
+                        <div class="input-group input-lg">
+                            <input type="password" name="pass" value="" placeholder="密码" class="form-control" id="password">
+                      </div>
+                    <div class="footer text-center">
+                        <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="userbutton">立即登入</button>
+                    </div>
+                        <div class="footer text-center">
+                            <button type="button" class="btn btn-primary btn-round btn-lg btn-block" id="button">扫码登录</button>
+                        </div>
+            </div>
+              
+        </div>
+            
+    </div>
+    <footer class="footer">
+        <div class="container">
+            <div class="copyright">
+                &copy;
+                <script>
+                    document.write(new Date().getFullYear())
+                </script>,
+                <span>Designed by <a href="#" target="_blank">管理中心</a></span>
+            </div>
+        </div>
+    </footer>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+  	
+    $(function() {
+
+        $("#button").click(function () {
+           
+                        window.location.href="/admin/index/qrcode";
+           
+        })
+       $('#userbutton').click(function(){
+           var user = $('#user').val();
+           var password = $('#password').val();
+           if(user==''||password==''){
+               alert('请正确填写信息');
+               return false;
+           }
+            $.ajax({
+                url:"/admin/index/login",
+                dataType:"json",
+                async:true,
+                data:{"user":user,"password":password},
+                type:"post",
+                success:function(data){
+                    console.log(data);
+                    if(data.Code=='00'){
+                        window.location.href="/admin/index/index"
+                    }else{
+                       alert(data.msg);
+                    }
+                },
+                error:function(error){
+                   console.log(error);
+                }
+            });
+       });
+    });
+ 
+
+</script>
+ 
+</body>
+</html>
+

+ 81 - 0
repairceshi/runtime/temp/28eb98b577a5b5ffc623cce5ed07373a.php

@@ -0,0 +1,81 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:78:"D:\maintain\repairceshi\public/../application/admin\view\index\group_info.html";i:1557281344;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="<?php echo $group_info['id']; ?>" hidden>
+                    <input type="text" id="username" name="name" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value=<?php echo $group_info['name']; ?> readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $regions = [];
+                         if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    foreach($region as $v): 
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>" checked="true" readonly>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>" readonly>
+                    <?php }endforeach; ?>
+                </div>
+            </div>
+
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 114 - 0
repairceshi/runtime/temp/2ba75f454c9faa4cfeb0708c214f4103.php

@@ -0,0 +1,114 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:94:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\order_info.html";i:1551320411;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">订单信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>当前订单号码:</b>
+            <?php if($order_info['order_id'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['order_id']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>报修人:</b>
+            <?php if($order_info['linkman'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['linkman']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($order_info['linktel'] == null): ?>
+              暂无
+            <?php else: ?>
+              <?php echo $order_info['linktel']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>报修问题:</b>
+            <?php if($order_info['title'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['title']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>备注信息:</b>
+            <?php if($order_info['message'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['message']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>具体信息:</b>
+            <?php if($order_info['content'] == null): ?>
+               暂无
+            <?php else: ?>
+              <?php echo $order_info['content']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>维修人:</b>
+            <?php if($order_info['repuser'] == null): ?>
+               暂无
+            <?php else: ?>
+               <?php echo $order_info['repuser']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>现在时间:</b><?php echo $order_info['create_time']; ?></li>
+        <li class="list-group-item"><b>更新时间:</b><?php echo $order_info['update_time']; ?></li>
+        <li class="list-group-item">
+            <b>订单状态:</b>
+            <?php if($order_info['status'] == '0'): ?>
+               接单中
+            <?php elseif($order_info['status'] == '1'): ?>
+               处理中
+            <?php else: ?>
+               完成
+            <?php endif; ?>
+        </li>
+    </ul>
+</div>

+ 102 - 0
repairceshi/runtime/temp/307b60d89c8c913cb8343f053e4ba59e.php

@@ -0,0 +1,102 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"/www/wwwroot/repairceshi/public/../application/admin/view/index/edit_order_info.html";i:1556098664;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-body">
+    <form action="/admin/index/edit_order_info" method="POST">
+        <div class="form-group">
+            <label>当前订单号码:</label><br>
+            <input type="text" class="form-control" name="order_id" value="<?php echo $order_info['order_id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修人:</label><br>
+            <input type="text" class="form-control" name="linkman" value="<?php echo $order_info['linkman']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>手机号码:</label><br>
+            <input type="text" class="form-control" name="linktel" value="<?php echo $order_info['linktel']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修问题:</label><br>
+            <input type="text" class="form-control" name="title" value="<?php echo $order_info['title']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>备注问题:</label><br>
+            <input type="text" class="form-control" name="message" value="<?php echo $order_info['message']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>具体信息:</label><br>
+            <input type="text" class="form-control" name="content" value="<?php echo $order_info['content']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>维修人:</label><br>
+            <input type="text" class="form-control" name="repuser" value="<?php echo $order_info['repuser']; ?>">
+        </div>
+        <div class="form-group">
+            <label>添加时间:</label><br>
+            <input type="text" class="form-control" name="create_time" value="<?php echo date('Y-m-d H:i:s',$order_info['create_time'] ); ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>更新时间:</label><br>
+            <input type="text" class="form-control" name="update_time" value="<?php echo date('Y-m-d H:i:s',$order_info['update_time']); ?>">
+        </div>
+        <div class="form-group">
+            <label>当前订单状态:</label><br>
+            <select class="form-control" name="status">
+                <option value="0">接单中</option>
+                <option value="1">处理中</option>
+                <option value="2">已完成</option>
+            </select>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 95 - 0
repairceshi/runtime/temp/3738f68d49663ec554cb8f505da27057.php

@@ -0,0 +1,95 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:99:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\edit_order_info.html";i:1551146499;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-body">
+    <form action="/admin/index/edit_order_info" method="POST">
+        <div class="form-group">
+            <label>当前订单号码:</label><br>
+            <input type="text" class="form-control" name="order_id" value="<?php echo $order_info['order_id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修人:</label><br>
+            <input type="text" class="form-control" name="linkman" value="<?php echo $order_info['linkman']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>手机号码:</label><br>
+            <input type="text" class="form-control" name="linktel" value="<?php echo $order_info['linktel']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>报修问题:</label><br>
+            <input type="text" class="form-control" name="title" value="<?php echo $order_info['title']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>备注问题:</label><br>
+            <input type="text" class="form-control" name="message" value="<?php echo $order_info['message']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>具体信息:</label><br>
+            <input type="text" class="form-control" name="content" value="<?php echo $order_info['content']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>维修人:</label><br>
+            <input type="text" class="form-control" name="repuser" value="<?php echo $order_info['repuser']; ?>">
+        </div>
+        <div class="form-group">
+            <label>添加时间:</label><br>
+            <input type="text" class="form-control" name="create_time" value="<?php echo date('Y-m-d H:i:s',$order_info['create_time'] ); ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>更新时间:</label><br>
+            <input type="text" class="form-control" name="update_time" value="<?php echo date('Y-m-d H:i:s',$order_info['update_time']); ?>">
+        </div>
+        <div class="form-group">
+            <label>当前订单状态:</label><br>
+            <select class="form-control" name="status">
+                <option value="0">接单中</option>
+                <option value="1">处理中</option>
+                <option value="2">已完成</option>
+            </select>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 137 - 0
repairceshi/runtime/temp/37c26b1d3133cdebc3583f4a99b04fc9.php

@@ -0,0 +1,137 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:83:"/www/wwwroot/repairceshi/public/../application/admin/view/index/edit_user_info.html";i:1557295776;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑用户</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_user_info" method="POST">
+
+        <input type="hidden" name="id" value="<?php echo $user_info['id']; ?>">
+
+        <div class="form-group">
+            <label>用户微信名称:</label><br>
+            <input type="text" class="form-control" name="nickname" value="<?php echo $user_info['nickname']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>联系电话:</label><br>
+            <input type="text" class="form-control" name="telephone" value="<?php echo $user_info['telephone']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户名:</label><br>
+            <input type="text" class="form-control" name="username" value="<?php echo $user_info['username']; ?>">
+        </div>
+        <div class="form-group">
+            <label>分组:</label><br>
+             <select class="form-control" name="group">
+                <?php if(is_array($group_info) || $group_info instanceof \think\Collection || $group_info instanceof \think\Paginator): $i = 0; $__LIST__ = $group_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+                <option value="<?php echo $vo['id']; ?>" <?php if($user_info['group']==$vo['id']): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
+                <?php endforeach; endif; else: echo "" ;endif; ?>
+            </select>
+        </div>
+        <div class="form-group">
+            <label>区域:</label><br>
+            <div class="region">
+                <select class="form-control" name="region" id="#region">
+                    <?php if(is_array($region) || $region instanceof \think\Collection || $region instanceof \think\Paginator): $i = 0; $__LIST__ = $region;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+                    <option value="<?php echo $vo['id']; ?>" <?php if($user_info['region']==$vo['id']): ?>selected<?php endif; ?>><?php echo $vo['username']; ?></option>
+                    <?php endforeach; endif; else: echo "" ;endif; ?>
+                </select>
+            </div>
+
+        </div>
+        <div class="form-group">
+            <label>用户地址:</label><br>
+            <input type="text" class="form-control" name="address" value="<?php echo $user_info['address']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户身份:</label><br>
+            <select class="form-control" name="identity">
+                <option value="0" <?php if($user_info['identity']==0): ?>selected<?php endif; ?>>报修者 </option> 
+                <option value="1" <?php if($user_info['identity']==1): ?>selected<?php endif; ?>>维修者 </option> 
+                <option value="2" <?php if($user_info['identity']==2): ?>selected<?php endif; ?>>协管者 </option> 
+                <option value="99" <?php if($user_info['identity']==99): ?>selected<?php endif; ?>>管理员 </option> 
+            </select> 
+            </div> 
+                <div class="form-group">
+                <label>是否审核:</label><br>
+                <select class="form-control" name="is_check">
+                    <option value="0" <?php if($user_info['is_check']==0): ?>selected<?php endif; ?>>未审核</option>
+                    <option value="1" <?php if($user_info['is_check']==1): ?>selected<?php endif; ?>>已审核</option>
+                </select>
+            </div>
+            <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>
+
+<script>
+    $(function (  ) {
+        $("[name='group']").change(function () {
+            var selected = $(this).children('option:selected').val();
+            $.ajax({
+                url:"/admin/index/findRegion",
+                type:"get",
+                data:{id:selected},
+                dataType:"json",
+                success:function (datas) {
+                   $html = "<select class='form-control' name='region' id='region'>";
+                    for(var i=0; i<datas.length; i++){
+                        $html += "<option value=datas[i]['id']>"+datas[i]['username']+"</option>"
+                    }
+                    $html += "</select>"
+                    $(".region").html($html);
+                }
+            });
+        })
+    })
+</script>

+ 114 - 0
repairceshi/runtime/temp/38dc4e4fceac445a87031196c143a886.php

@@ -0,0 +1,114 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:89:"/www/wwwroot/repairceshi/public/../application/admin/view/authorty_manage/edit_admin.html";i:1557224940;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" name="id" value="<?php echo $data['id']; ?>" hidden>
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value=<?php echo $data['username']; ?> readonly>
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php
+                        $authority = [];
+                        if(strlen($data['authority']) == 1){
+                            array_push($authority,$data['authority']);
+                        }else{
+                             $authority = explode(',',$data['authority']);
+                        }
+                    foreach($adminGroup as $v): 
+                         if(in_array($v['id'],$authority)){?>
+                        <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>" checked="true">
+                        <?php }else{?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>">
+                    <?php }endforeach; ?>
+                </div>
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    增加
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+            form.verify({
+
+            });
+
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/authorty_manage/editAdmin",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas){
+                            layer.alert("编辑成功", {icon: 6},function () {
+                                // 获得frame索引
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+                                window.location.href = "/admin/authorty_manage/index";
+                            });
+                        }else{
+                            alert('编辑失败');
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 90 - 0
repairceshi/runtime/temp/3aff7a7de80cb3b45448f1e189aa61c9.php

@@ -0,0 +1,90 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:98:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\edit_user_info.html";i:1551240810;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑用户</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_user_info" method="POST">
+        <input type="hidden" name="id" value="<?php echo $user_info['id']; ?>">
+        <div class="form-group">
+            <label>用户微信名称:</label><br>
+            <input type="text" class="form-control" name="nickname" value="<?php echo $user_info['nickname']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>联系电话:</label><br>
+            <input type="text" class="form-control" name="telephone" value="<?php echo $user_info['telephone']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户名:</label><br>
+            <input type="text" class="form-control" name="username" value="<?php echo $user_info['username']; ?>">
+        </div>
+        <div class="form-group">
+            <label>分组:</label><br>
+             <select class="form-control" name="group">
+                <?php if(is_array($group_info) || $group_info instanceof \think\Collection || $group_info instanceof \think\Paginator): $i = 0; $__LIST__ = $group_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+                <option value="<?php echo $vo['id']; ?>" <?php if($user_info['group']==$vo['id']): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
+                <?php endforeach; endif; else: echo "" ;endif; ?>
+            </select>
+        </div>
+        <div class="form-group">
+            <label>用户地址:</label><br>
+            <input type="text" class="form-control" name="address" value="<?php echo $user_info['address']; ?>">
+        </div>
+        <div class="form-group">
+            <label>用户身份:</label><br>
+            <select class="form-control" name="identity">
+                <option value="0" <?php if($user_info['identity']==0): ?>selected<?php endif; ?>>报修者 </option> <option value="1"
+                    <?php if($user_info['identity']==1): ?>selected<?php endif; ?>>维修者 </option> </select> </div> <div class="form-group">
+                    <label>是否审核:</label><br>
+                    <select class="form-control" name="is_register">
+                        <option value="0" <?php if($user_info['is_register']==0): ?>selected<?php endif; ?>>未审核</option>
+                        <option value="1" <?php if($user_info['is_register']==1): ?>selected<?php endif; ?>>已审核</option>
+                    </select>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 189 - 0
repairceshi/runtime/temp/3ef8e481361a9f994a1af0602fc93b24.php

@@ -0,0 +1,189 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:88:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\user.html";i:1551241043;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="user" method="GET" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control">
+            <option value="1">用户id</option>
+        </select>
+    </div>
+    <div class="form-group">
+        <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+    <button type="button" class="btn btn-primary" id="adduser">添加用户</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_info) || $user_info instanceof \think\Collection || $user_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['id']; ?></b></td>
+                <td>
+                    <?php if($vo['nickname'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <?php echo $vo['nickname']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['headimgurl'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <img src="<?php echo $vo['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius: 50%">
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['telephone'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                      <?php echo $vo['telephone']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['username'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                    <?php echo $vo['username']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['group'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                    <?php echo $vo['group']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['address'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['address']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['identity'] == 0): ?>
+                      报修者
+                    <?php elseif($vo['identity'] == 1): ?>
+                      维修者
+                    <?php else: ?>
+                      暂无
+                    <?php endif; ?>
+                </td>
+                <td><?php echo $vo['addtime']; ?></td>
+                <td>
+                    <?php if($vo['is_register'] == 0): ?>
+                      <font style="color:red;">未审核</font>
+                    <?php else: ?>
+                      <font style="color:green;">已审核</font>
+                    <?php endif; ?>
+                </td>
+                
+                <td>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    <?php echo $user_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<!-- 补单函数的触发 -->
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取当前用户id   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/user_info?user_id=" + userid;
+        });
+
+        $('.buttoneidt').click(function () {
+            //编辑当前用户   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/edit_user_info?user_id=" + userid;
+
+        });
+
+
+        $('#adduser').click(function(){
+           window.location.href = "/admin/index/add_user";  //添加用户
+        });
+
+
+    });
+</script>

+ 58 - 0
repairceshi/runtime/temp/453ecb46eba0cb937d72ec2615c2fdda.php

@@ -0,0 +1,58 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:93:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\add_group.html";i:1551236491;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">添加分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/add_group" method="POST">
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="" placeholder="请填写小组的名称">
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确认添加">
+    </form>
+</div>

+ 115 - 0
repairceshi/runtime/temp/4d57a3aad414561257e10decd58a7790.php

@@ -0,0 +1,115 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"/www/maintain/repairceshi/public/../application/admin/view/index/index.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">基本信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>当前登录者:</b><?php echo $admin_info['user_nickname']; ?></li>
+        <li class="list-group-item"><b>当前商户数:</b><?php echo $merchants_num; ?></li>
+        <li class="list-group-item"><b>当前用户数:</b><?php echo $user_num; ?></li>
+        <li class="list-group-item"><b>现在时间:</b><?php echo $time_info; ?></li>
+    </ul>
+</div>
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">配置信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>邀请码的有效时间:</b>
+            <input type="text" oninput="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" id="sharetime" value="<?php echo $admin_info['code_time']; ?>">&nbsp;&nbsp;分钟
+        </li>
+        <li class="list-group-item"> 
+            <b>其他设置,后续更新</b>
+        </li>
+        <li class="list-group-item">
+            <button id="save" class="btn btn-primary">保存</button>
+        </li>
+    </ul>
+</div>
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    
+    $(function() {
+            
+        $('#save').click(function(){
+            var sharetime = $('#sharetime').val();
+            console.log(sharetime);
+            if(sharetime==''){
+                alert('请正确有效时间');
+                return false;
+            }
+             $.ajax({
+                 url:"/admin/index/configsave",
+                 dataType:"json",
+                 async:true,
+                 data:{"code_time":sharetime},
+                 type:"post",
+                 success:function(data){
+                    if(data.code==0){
+                       alert("保存成功");
+                    }else{
+                        alert('保存失败')
+                    }
+                 },
+                 error:function(error){
+                    console.log(error);
+                 }
+             });
+        });
+     });
+
+</script>

+ 138 - 0
repairceshi/runtime/temp/4eada77e078aa9731871314cfdbaf755.php

@@ -0,0 +1,138 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"/www/maintain/repairceshi/public/../application/admin/view/index/group.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="group" method="GET" class="form-inline">
+
+    <button type="button" class="btn btn-primary" id="addgroup">添加小组</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($group_info) || $group_info instanceof \think\Collection || $group_info instanceof \think\Paginator): $i = 0; $__LIST__ = $group_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['id']; ?></b></td>
+                <td>
+                    <?php if($vo['name'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <?php echo $vo['name']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['regionName'] == null): ?>
+                       暂无
+                    <?php else: foreach($vo['regionName'] as $v): ?>
+                  			<?php echo $v['username']; ?> &nbsp;
+                  	<?php endforeach; endif; ?>
+                </td>
+                <td>
+                    
+                    <button data-groupid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-groupid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-warning del" >删除</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    <?php echo $group_info->render(); ?>
+</div>
+
+
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+       
+
+        $('.buttoneidt').click(function () {
+            
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "/admin/index/edit_group?group_id=" + groupid;  //编辑分组信息
+
+        });
+
+
+        $('#addgroup').click(function(){
+
+            window.location.href = "/admin/index/add_group";     //添加分组
+
+        });
+
+        $('.del').click(function () {
+
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "/admin/index/del_group?group_id=" + groupid;
+        })
+    });
+</script>

+ 75 - 0
repairceshi/runtime/temp/4f0b77786deee46143acc31b306b40c4.php

@@ -0,0 +1,75 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:77:"D:\maintain\repairceshi\public/../application/admin\view\index\add_group.html";i:1557225323;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+
+<div class="panel-heading">
+    <h3 class="panel-title">添加分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/add_group" method="POST">
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="" placeholder="请填写小组的名称">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php foreach($region as $v): ?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>">
+                    <span><?php echo $v['username']; ?></span>
+                    <?php endforeach; ?>
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确认添加">
+    </form>
+</div>

+ 91 - 0
repairceshi/runtime/temp/549f400d1ef15dae9dbf8fa2984132eb.php

@@ -0,0 +1,91 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:85:"/www/maintain/repairceshi/public/../application/admin/view/authorty_manage/index.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/authorty_manage/addAdmin',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        <?php if(is_array($admin) || $admin instanceof \think\Collection || $admin instanceof \think\Paginator): $i = 0; $__LIST__ = $admin;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+        <tr>
+            <td><?php echo $vo['username']; ?></td>
+            <td><?php echo date("Y-m-d H:i",$vo['create_time'] ); ?></td>
+            <td>
+                <button data-orderid="" class="btn btn-xs btn-info buttoninfo" onclick="xadmin.open('查看用户','/admin/authorty_manage/view?adminId=<?php echo $vo['id']; ?>',600,400)">查看</button>
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('添加用户','/admin/authorty_manage/editAdmin?adminId=<?php echo $vo['id']; ?>',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('<?php echo $vo['id']; ?>')">删除</button>
+            </td>
+        </tr>
+        <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/authorty_manage/del?id="+id;
+    }
+</script>

+ 159 - 0
repairceshi/runtime/temp/57cb85b43ce0629acd6a964a29ffb961.php

@@ -0,0 +1,159 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:89:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\order.html";i:1551334808;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="order" method="GET" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control">
+            <option value="1">订单号</option>
+        </select>
+    </div>
+    <div class="form-group">
+        <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($order_info) || $order_info instanceof \think\Collection || $order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td><?php echo date('Y-m-d H:i',$vo['update_time'] ); ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                       <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                       <font color="green">处理中</font>
+                    <?php else: ?>
+                       <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-success buttonmessage">评论</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+<div style="text-align:center;">
+    <?php echo $order_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+
+        //查看信息
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/order_info?orderid="+orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/edit_order_info?orderid="+orderid;
+        });
+
+
+        //评论订单
+        $('.buttonmessage').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            console.log(orderid);  
+            window.location.href =  "/admin/index/order_message?orderid="+orderid;
+        });
+
+
+    });
+
+
+
+
+</script>

+ 77 - 0
repairceshi/runtime/temp/615334978839363d398b90ca994a492f.php

@@ -0,0 +1,77 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:79:"/www/maintain/repairceshi/public/../application/admin/view/index/add_group.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+
+<div class="panel-heading">
+    <h3 class="panel-title">添加分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/add_group" method="POST">
+        <div class="form-group">
+            <label>小组名:</label><br>
+            <input type="text" class="form-control" name="name" value="" placeholder="请填写小组的名称">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red"></span>管理区域</label>
+                <div class="layui-input-block">
+                    <?php if($region == null): ?>
+                    <span>暂无可管理区域</span>
+                    <?php else: foreach($region as $v): ?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>">
+                    <span><?php echo $v['username']; ?></span>
+                    <?php endforeach; endif; ?>
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确认添加">
+    </form>
+</div>

+ 138 - 0
repairceshi/runtime/temp/64ac0fda8767a98ea84ed7f8ed5c51da.php

@@ -0,0 +1,138 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"/www/wwwroot/repairceshi/public/../application/admin/view/index/group.html";i:1557311618;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="group" method="GET" class="form-inline">
+
+    <button type="button" class="btn btn-primary" id="addgroup">添加小组</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($group_info) || $group_info instanceof \think\Collection || $group_info instanceof \think\Paginator): $i = 0; $__LIST__ = $group_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['id']; ?></b></td>
+                <td>
+                    <?php if($vo['name'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <?php echo $vo['name']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['regionName'] == null): ?>
+                       暂无
+                    <?php else: foreach($vo['regionName'] as $v): ?>
+                  			<?php echo $v['username']; ?> &nbsp;
+                  	<?php endforeach; endif; ?>
+                </td>
+                <td>
+                    
+                    <button data-groupid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-groupid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-warning del" >删除</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">分组编号</th>
+                <th style="text-align: center;">分组名</th>
+                <th style="text-align: center;">管理区域</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    <?php echo $group_info->render(); ?>
+</div>
+
+
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+       
+
+        $('.buttoneidt').click(function () {
+            
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "/admin/index/edit_group?group_id=" + groupid;  //编辑分组信息
+
+        });
+
+
+        $('#addgroup').click(function(){
+
+            window.location.href = "/admin/index/add_group";     //添加分组
+
+        });
+
+        $('.del').click(function () {
+
+            let groupid = $(this).attr('data-groupid');
+            window.location.href = "/admin/index/del_group?group_id=" + groupid;
+        })
+    });
+</script>

+ 62 - 0
repairceshi/runtime/temp/66f5412565167f20ba086dea2725f489.php

@@ -0,0 +1,62 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:97:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\order_message.html";i:1551334272;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/order_message" method="POST">
+        <div class="form-group">
+            <label>订单编号:</label><br>
+            <input type="text" class="form-control" name="order_id" value="<?php echo $order_info['order_id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>评论内容:</label><br>
+            <input type="text" class="form-control" name="repuser_message" value="<?php echo $order_info['repuser_message']; ?>">
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 89 - 0
repairceshi/runtime/temp/6744bad3cc59e5b7034cd8f2fd35ab0c.php

@@ -0,0 +1,89 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:80:"/www/wwwroot/repairceshi/public/../application/admin/view/index/edit_region.html";i:1557224112;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>区域名
+                </label>
+                <input type="text" hidden value="<?php echo $region['id']; ?>" name="id">
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input" value="<?php echo $region['username']; ?>">
+                </div>
+
+            </div>
+
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    编辑
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/index/editRegion",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                                parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 250 - 0
repairceshi/runtime/temp/6ab40a2f804ab8157b1a465579bdaa0e.php

@@ -0,0 +1,250 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:72:"D:\maintain\repairceshi\public/../application/admin\view\index\user.html";i:1557282477;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="user" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="id">用户id</option>
+            <option value="nickname">微信昵称</option>
+            <option value="username">用户名字</option>
+            <option value="telephone">手机号码</option>
+            <option value="is_register">注册状态</option>
+            <option value="is_check">审核状态</option>
+        </select>
+    </div>
+
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="is_register" id="is_register"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未注册</option>
+            <option value="1">已注册</option>
+        </select>
+        <select name="is_check" id="is_check"  hidden disabled>
+            <option value="">请选择</option>
+            <option value="0">未审核</option>
+            <option value="1">已审核</option>
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+    <button type="button" class="btn btn-primary" id="adduser">添加用户</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+               <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_info) || $user_info instanceof \think\Collection || $user_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['id']; ?></b></td>
+                <td>
+                    <?php if($vo['nickname'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <?php echo $vo['nickname']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['headimgurl'] == null): ?>
+                       暂无
+                    <?php else: ?>
+                       <img src="<?php echo $vo['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius: 50%">
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['telephone'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                      <?php echo $vo['telephone']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['username'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                    <?php echo $vo['username']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['group'] == null): ?>
+                     暂无
+                    <?php else: ?>
+                    <?php echo $vo['group']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['address'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['address']; endif; ?>
+                </td>
+                <td>
+                    <?php if($vo['identity'] == 0): ?>
+                      报修者
+                    <?php elseif($vo['identity'] == 1): ?>
+                      维修者
+                    <?php elseif($vo['identity'] == 2): ?>
+                      协管者
+                    <?php elseif($vo['identity'] == 99): ?>
+                      管理员
+                    <?php else: ?>
+                      暂无
+                    <?php endif; ?>
+                </td>
+                <td><?php echo $vo['addtime']; ?></td>
+                <td>
+                    <?php if($vo['is_register'] == 0): ?>
+                      <font style="color:red;">未注册</font>
+                    <?php else: ?>
+                      <font style="color:green;">已注册</font>
+                    <?php endif; ?>
+                </td>
+                 <td>
+                    <?php if($vo['is_check'] == 0): ?>
+                      <font style="color:red;">未审核</font>
+                    <?php else: ?>
+                      <font style="color:green;">已审核</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">用户id</th>
+                <th style="text-align: center;">微信名称</th>
+                <th style="text-align: center;">微信头像</th>
+                <th style="text-align: center;">注册手机号</th>
+                <th style="text-align: center;">用户名称</th>
+                <th style="text-align: center;">所属分组</th>
+                <th style="text-align: center;">地址</th>
+                <th style="text-align: center;">身份</th>
+                <th style="text-align: center;">添加时间</th>
+              <th style="text-align: center;">是否注册</th>
+                <th style="text-align: center;">是否审核</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<!-- 分页的渲染函数 -->
+<div style="text-align:center;">
+    <?php echo $user_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<!-- 补单函数的触发 -->
+<script>
+    $(function () {
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val();
+
+            if(selected == "is_register"){
+                $("#is_register").show();
+                $("#is_register").removeAttr('disabled')
+                $("#is_register").addClass('form-control')
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else if(selected == "is_check"){
+                $("#is_check").show();
+                $("#is_check").removeAttr('disabled')
+                $("#is_check").addClass('form-control')
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#is_check").hide();
+                $("#is_check").attr("disabled",true)
+                $("#is_register").hide();
+                $("#is_register").attr("disabled",true)
+            }
+
+        });
+        $('.buttoninfo').click(function () {
+            //获取当前用户id   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/user_info?user_id=" + userid;
+        });
+
+        $('.buttoneidt').click(function () {
+            //编辑当前用户   
+            let userid = $(this).attr('data-userid');
+            window.location.href = "/admin/index/edit_user_info?user_id=" + userid;
+
+        });
+
+
+        $('#adduser').click(function(){
+           window.location.href = "/admin/index/add_user";  //添加用户
+        });
+
+
+    });
+</script>

+ 91 - 0
repairceshi/runtime/temp/6cdb5afac70034c5f156ddc9d60e3cb0.php

@@ -0,0 +1,91 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"/www/wwwroot/repairceshi/public/../application/admin/view/authorty_manage/index.html";i:1556439634;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/authorty_manage/addAdmin',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        <?php if(is_array($admin) || $admin instanceof \think\Collection || $admin instanceof \think\Paginator): $i = 0; $__LIST__ = $admin;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+        <tr>
+            <td><?php echo $vo['username']; ?></td>
+            <td><?php echo date("Y-m-d H:i",$vo['create_time'] ); ?></td>
+            <td>
+                <button data-orderid="" class="btn btn-xs btn-info buttoninfo" onclick="xadmin.open('查看用户','/admin/authorty_manage/view?adminId=<?php echo $vo['id']; ?>',600,400)">查看</button>
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('添加用户','/admin/authorty_manage/editAdmin?adminId=<?php echo $vo['id']; ?>',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('<?php echo $vo['id']; ?>')">删除</button>
+            </td>
+        </tr>
+        <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/authorty_manage/del?id="+id;
+    }
+</script>

+ 88 - 0
repairceshi/runtime/temp/71351bcb7f066bf75aee637c1057347a.php

@@ -0,0 +1,88 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:78:"D:\maintain\repairceshi\public/../application/admin\view\index\edit_group.html";i:1557279705;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_group" method="POST">
+        <div class="form-group">
+            <label>分组编号:</label><br>
+            <input type="text" class="form-control" name="id" value="<?php echo $group_info['id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="<?php echo $group_info['name']; ?>">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理区域</label>
+                <?php
+                        $regions = [];
+                        if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    ?>
+                <div class="layui-input-block">
+                    <?php foreach($region as $v): 
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>" checked="true"><span><?php echo $v['username']; ?></span>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>"><span><?php echo $v['username']; ?></span>
+                    <?php }endforeach; ?>
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 157 - 0
repairceshi/runtime/temp/74f36bb3d45f9a33704d2c04a89b8e7c.php

@@ -0,0 +1,157 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:88:"/www/wwwroot/repairceshi/public/../application/admin/view/authorty_manage/add_admin.html";i:1557391177;}*/ ?>
+<!DOCTYPE html>
+<html class="x-admin-sm">
+
+<head>
+    <meta charset="UTF-8">
+    <title>欢迎页面-X-admin2.2</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+    <![endif]-->
+</head>
+<body>
+<div class="layui-fluid">
+    <div class="layui-row">
+        <form class="layui-form">
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>登录名
+                </label>
+                <div class="layui-input-inline">
+                    <input type="text" id="username" name="username" required="" lay-verify="required"
+                           autocomplete="off" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    <span class="x-red">*</span>将会成为您唯一的登入名
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="username" class="layui-form-label">
+                    <span class="x-red">*</span>管理员类型
+                </label>
+                <div class="layui-input-block">
+                    <input type="radio" name="user_type" value="0" title="超级管理员">
+                    <input type="radio" name="user_type" value="1" title="普通管理员">
+                </div>
+
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理小组</label>
+                <div class="layui-input-block">
+                    <?php foreach($adminGroup as $v): ?>
+                    <input type="checkbox" name="authority[]" lay-skin="primary" title="<?php echo $v['name']; ?>" value="<?php echo $v['id']; ?>">
+
+                    <?php endforeach; ?>
+                </div>
+            </div>
+          	<div class="layui-form-item">
+                <label class="layui-form-label">绑定微信</label>
+                <div class="layui-input-block">
+                    <select name="openid" lay-verify="required">
+                        <option value=""></option>
+                        <?php foreach($admin as $v): ?>
+                        <option value="<?php echo $v['openid']; ?>">管理员:<?php echo $v['username']; ?>  &nbsp;&nbsp;&nbsp; 昵称:<?php echo $v['nickname']; ?></option>
+                        <?php endforeach; ?>
+                    </select>
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_pass" class="layui-form-label">
+                    <span class="x-red">*</span>密码
+                </label>
+                <div class="layui-input-inline">
+                    <input type="password" id="L_pass" name="password" required="" lay-verify="pass"
+                           autocomplete="off" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    6到16个字符
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                    <span class="x-red">*</span>确认密码
+                </label>
+                <div class="layui-input-inline">
+                    <input type="password" id="L_repass" name="repass" required="" lay-verify="repass"
+                           autocomplete="off" class="layui-input">
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label for="L_repass" class="layui-form-label">
+                </label>
+                <button  class="layui-btn" lay-filter="add" lay-submit="">
+                    增加
+                </button>
+            </div>
+        </form>
+    </div>
+</div>
+<script>layui.use(['form', 'layer'],
+        function() {
+            $ = layui.jquery;
+            var form = layui.form,
+                    layer = layui.layer;
+
+            //自定义验证规则
+            form.verify({
+                nikename: function(value) {
+                    if (value.length < 5) {
+                        return '昵称至少得5个字符啊';
+                    }
+                },
+                pass: [/(.+){6,12}$/, '密码必须6到12位'],
+                repass: function(value) {
+                    if ($('#L_pass').val() != $('#L_repass').val()) {
+                        return '两次密码不一致';
+                    }
+                }
+            });
+
+            //监听提交
+            form.on('submit(add)', function(data){
+                $.ajax({
+                    url:"/admin/authorty_manage/addAdmin",
+                    type:"post",
+                    data:data.field,
+                    dataType:"json",
+                    success:function (datas) {
+                      	console.log(datas);
+                        if(datas.status){
+                            layer.alert(datas.message, {icon: 6},function () {
+                                // 获得frame索引
+                              	 parent.location.reload();
+                                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
+                                parent.layer.close(index);
+                              	
+                            });
+                        }else{
+                            alert(datas.message);
+                        }
+
+
+                    }
+                });
+                return false;
+            });
+
+
+        });</script>
+<script>var _hmt = _hmt || []; (function() {
+    var hm = document.createElement("script");
+    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+    var s = document.getElementsByTagName("script")[0];
+    s.parentNode.insertBefore(hm, s);
+})();</script>
+</body>
+
+</html>

+ 102 - 0
repairceshi/runtime/temp/7b250c2da1060eaf85a396fd2d234acd.php

@@ -0,0 +1,102 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"/www/wwwroot/repairceshi/public/../application/admin/view/index/qrcode.html";i:1557302149;}*/ ?>
+<!doctype html>
+<html  class="x-admin-sm">
+<head>
+    <meta charset="UTF-8">
+    <title>后台登录-X-admin2.2</title>
+    <meta name="renderer" content="webkit|ie-comp|ie-stand">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/login.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+  	<style>
+      .qrcode_image_container img{
+      	width:100%;
+      }
+      .qrcode_image_container h4 {
+          	text-align:center;
+        	top:47%;
+        	left:47%;
+        	transform:translate(-50%,-50%);
+        	position:absolute;
+          	font-weight: bold;
+        	
+      }
+      .qrcode_image_container .expier_cont {
+          width: 340px;
+          height: 340px;
+          position: absolute;
+          background: rgba(255,255,255,.95);
+          left: 50px;
+          top: 150px;
+          z-index: 9999;
+		}
+  	</style>
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <![endif]-->
+</head>
+<body class="login-bg">
+
+<div class="login layui-anim layui-anim-up">
+    <div class="message"><strong style="padding:0px 0px 0px 20px;font-size:18px;">微信扫码登录</strong></div>
+    <div id="darkbannerwrap"></div>
+  	<div class="qrcode_image_container">
+  	
+		<img src="<?php echo $srcUrl; ?>" id ="wxewm">
+      	<div class="expier_cont" style="display: none;"> <h4>二维码已失效,请重新刷新页面</h4></div>
+  	</div>
+   	<input type="hidden" name="code" value="<?php echo $state; ?>">
+</div>
+
+<script>
+  	var t1 = '';
+    $(function  () {
+      t1 = window.setInterval("login()",2000);
+       setTimeout("end()",120000);
+    });
+  	    function end(){  //停止定时器
+          
+        $('.expier_cont').css('display','block');
+        clearInterval(t1);    //清除定时器
+        
+    }
+	 // window 失去焦点,停止输出
+    window.onblur = function() {
+        clearInterval(t1);
+    };
+    // window 每次获得焦点
+    window.onfocus = function() {
+        t1 = window.setInterval("login()",2000);
+    };
+	 function login(){   //验证是否扫描二维码
+      
+        var code =$('input[name=code]').val();
+        var url = "/admin/index/weixinLogin";
+        $.post(url,{state:code},function(data){
+          	
+            if(data){
+                window.location.href="/admin/index/index";
+            }
+        });
+    }
+
+</script>
+<!-- 底部结束 -->
+<script>
+    //百度统计可去掉
+    var _hmt = _hmt || [];
+    (function() {
+        var hm = document.createElement("script");
+        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+        var s = document.getElementsByTagName("script")[0];
+        s.parentNode.insertBefore(hm, s);
+    })();
+</script>
+</body>
+</html>

+ 90 - 0
repairceshi/runtime/temp/8a5f664a491421dd3454d38d471d4692.php

@@ -0,0 +1,90 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"/www/maintain/repairceshi/public/../application/admin/view/index/edit_group.html";i:1561359472;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561443967;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://192.168.5.104:81/static/layui/css/font.css">
+    <script src="http://192.168.5.104:81/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://192.168.5.104:81/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_group" method="POST">
+        <div class="form-group">
+            <label>分组编号:</label><br>
+            <input type="text" class="form-control" name="id" value="<?php echo $group_info['id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="<?php echo $group_info['name']; ?>">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red"></span>管理区域</label>
+                <?php
+                        $regions = [];
+                        if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    ?>
+                <div class="layui-input-block">
+                    <?php if($region == null): ?>
+                        暂无可管理区域
+                    <?php else: foreach($region as $v): 
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>" checked="true"><span><?php echo $v['username']; ?></span>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>"><span><?php echo $v['username']; ?></span>
+                    <?php }endforeach; endif; ?>
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 191 - 0
repairceshi/runtime/temp/8ceed9bb3cba75f51b47f37fa7a535ff.php

@@ -0,0 +1,191 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:93:"E:\phpStudy\PHPTutorial\WWW\repairceshi\public/../application/admin\view\index\user_info.html";i:1551241078;s:81:"E:\phpStudy\PHPTutorial\WWW\repairceshi\application\admin\view\public\header.html";i:1551230385;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+          <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+          <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">个人信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
+        <li class="list-group-item">
+            <b>头像信息:</b>
+            <?php if($user_info['headimgurl'] == null): ?>
+            暂无
+            <?php else: ?>
+            <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($user_info['telephone'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['telephone']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>用户名:</b>
+            <?php if($user_info['username'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['username']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属组:</b>
+            <?php if($user_info['group'] == null): ?>
+            暂无
+            <?php else: ?>
+            
+            <?php echo $user_info['group']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>地址信息:</b>
+            <?php if($user_info['address'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['address']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>身份信息:</b>
+            <?php if($user_info['identity'] == 0): ?>
+            报修者
+            <?php elseif($user_info['identity'] == 1): ?>
+            维修者
+            <?php else: ?>
+            暂无
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>是否审核:</b>
+            <?php if($user_info['is_register'] == 0): ?>
+                <font style="color:red;">未审核</font>
+            <?php else: ?>
+                <font style="color:green;">已审核</font>
+            <?php endif; ?>
+        </li>
+    </ul>
+</div>
+
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                    暂无
+                    <?php else: ?>
+                    <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                    <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                    <font color="green">处理中</font>
+                    <?php else: ?>
+                    <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+
+<!-- 分页的渲染 -->
+<div style="text-align:center;">
+    <?php echo $user_order_info->render(); ?>
+</div>
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            var orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/order_info?orderid=" + orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
+        });
+    });
+</script>

+ 115 - 0
repairceshi/runtime/temp/8e3556719f40c14a1eccf874d60f24b6.php

@@ -0,0 +1,115 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"/www/wwwroot/repairceshi/public/../application/admin/view/index/index.html";i:1556098662;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">基本信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>当前登录者:</b><?php echo $admin_info['user_nickname']; ?></li>
+        <li class="list-group-item"><b>当前商户数:</b><?php echo $merchants_num; ?></li>
+        <li class="list-group-item"><b>当前用户数:</b><?php echo $user_num; ?></li>
+        <li class="list-group-item"><b>现在时间:</b><?php echo $time_info; ?></li>
+    </ul>
+</div>
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">配置信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>邀请码的有效时间:</b>
+            <input type="text" oninput="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" id="sharetime" value="<?php echo $admin_info['code_time']; ?>">&nbsp;&nbsp;分钟
+        </li>
+        <li class="list-group-item"> 
+            <b>其他设置,后续更新</b>
+        </li>
+        <li class="list-group-item">
+            <button id="save" class="btn btn-primary">保存</button>
+        </li>
+    </ul>
+</div>
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    
+    $(function() {
+            
+        $('#save').click(function(){
+            var sharetime = $('#sharetime').val();
+            console.log(sharetime);
+            if(sharetime==''){
+                alert('请正确有效时间');
+                return false;
+            }
+             $.ajax({
+                 url:"/admin/index/configsave",
+                 dataType:"json",
+                 async:true,
+                 data:{"code_time":sharetime},
+                 type:"post",
+                 success:function(data){
+                    if(data.code==0){
+                       alert("保存成功");
+                    }else{
+                        alert('保存失败')
+                    }
+                 },
+                 error:function(error){
+                    console.log(error);
+                 }
+             });
+        });
+     });
+
+</script>

+ 47 - 0
repairceshi/runtime/temp/8f27cbf3f597bf02410d7624e270e2f0.php

@@ -0,0 +1,47 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:54:"D:\maintain\repairceshi\thinkphp\tpl\dispatch_jump.tpl";i:1556098668;}*/ ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
+    <title>跳转提示</title>
+    <style type="text/css">
+        *{ padding: 0; margin: 0; }
+        body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
+        .system-message{ padding: 24px 48px; }
+        .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
+        .system-message .jump{ padding-top: 10px; }
+        .system-message .jump a{ color: #333; }
+        .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }
+        .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
+    </style>
+</head>
+<body>
+    <div class="system-message">
+        <?php switch ($code) {case 1:?>
+            <h1>:)</h1>
+            <p class="success"><?php echo(strip_tags($msg));?></p>
+            <?php break;case 0:?>
+            <h1>:(</h1>
+            <p class="error"><?php echo(strip_tags($msg));?></p>
+            <?php break;} ?>
+        <p class="detail"></p>
+        <p class="jump">
+            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
+        </p>
+    </div>
+    <script type="text/javascript">
+        (function(){
+            var wait = document.getElementById('wait'),
+                href = document.getElementById('href').href;
+            var interval = setInterval(function(){
+                var time = --wait.innerHTML;
+                if(time <= 0) {
+                    location.href = href;
+                    clearInterval(interval);
+                };
+            }, 1000);
+        })();
+    </script>
+</body>
+</html>

+ 205 - 0
repairceshi/runtime/temp/9804f1623e81b278e6cac41563c0ff0e.php

@@ -0,0 +1,205 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:78:"/www/wwwroot/repairceshi/public/../application/admin/view/index/user_info.html";i:1557297542;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">个人信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>微信号码:</b><?php echo $user_info['nickname']; ?></li>
+        <li class="list-group-item">
+            <b>头像信息:</b>
+            <?php if($user_info['headimgurl'] == null): ?>
+            暂无
+            <?php else: ?>
+            <img src="<?php echo $user_info['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius:50%">
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>电话:</b>
+            <?php if($user_info['telephone'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['telephone']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>用户名:</b>
+            <?php if($user_info['username'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['username']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属组:</b>
+            <?php if($user_info['group'] == null): ?>
+            暂无
+            <?php else: ?>
+            
+            <?php echo $user_info['group']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>所属区域:</b>
+            <?php if($user_info['region'] == null): ?>
+            暂无
+            <?php else: ?>
+
+            <?php echo $user_info['region']; endif; ?>
+        </li>
+        <li class="list-group-item"><b>地址信息:</b>
+            <?php if($user_info['address'] == null): ?>
+            暂无
+            <?php else: ?>
+            <?php echo $user_info['address']; endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>身份信息:</b>
+            <?php if($user_info['identity'] == 0): ?>
+            报修者
+            <?php elseif($user_info['identity'] == 1): ?>
+            维修者
+            <?php else: ?>
+            暂无
+            <?php endif; ?>
+        </li>
+        <li class="list-group-item">
+            <b>是否审核:</b>
+            <?php if($user_info['is_register'] == 0): ?>
+                <font style="color:red;">未审核</font>
+            <?php else: ?>
+                <font style="color:green;">已审核</font>
+            <?php endif; ?>
+        </li>
+    </ul>
+</div>
+
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($user_order_info) || $user_order_info instanceof \think\Collection || $user_order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                    暂无
+                    <?php else: ?>
+                    <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                    <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                    <font color="green">处理中</font>
+                    <?php else: ?>
+                    <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">订单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+
+<!-- 分页的渲染 -->
+<div style="text-align:center;">
+    <?php echo $user_order_info->render(); ?>
+</div>
+
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            var orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/order_info?orderid=" + orderid;
+        });
+
+
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href = "/admin/index/edit_user_info?orderid=" + orderid;
+        });
+    });
+</script>

+ 115 - 0
repairceshi/runtime/temp/9d9716183b0f69bc08090e1b9e8ae6ca.php

@@ -0,0 +1,115 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"D:\maintain\repairceshi\public/../application/admin\view\index\index.html";i:1556098662;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">基本信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item"><b>当前登录者:</b><?php echo $admin_info['user_nickname']; ?></li>
+        <li class="list-group-item"><b>当前商户数:</b><?php echo $merchants_num; ?></li>
+        <li class="list-group-item"><b>当前用户数:</b><?php echo $user_num; ?></li>
+        <li class="list-group-item"><b>现在时间:</b><?php echo $time_info; ?></li>
+    </ul>
+</div>
+<div class="panel panel-primary">
+    <div class="panel-heading">
+        <h3 class="panel-title">配置信息</h3>
+    </div>
+    <ul class="list-group">
+        <li class="list-group-item">
+            <b>邀请码的有效时间:</b>
+            <input type="text" oninput="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" id="sharetime" value="<?php echo $admin_info['code_time']; ?>">&nbsp;&nbsp;分钟
+        </li>
+        <li class="list-group-item"> 
+            <b>其他设置,后续更新</b>
+        </li>
+        <li class="list-group-item">
+            <button id="save" class="btn btn-primary">保存</button>
+        </li>
+    </ul>
+</div>
+
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    
+    $(function() {
+            
+        $('#save').click(function(){
+            var sharetime = $('#sharetime').val();
+            console.log(sharetime);
+            if(sharetime==''){
+                alert('请正确有效时间');
+                return false;
+            }
+             $.ajax({
+                 url:"/admin/index/configsave",
+                 dataType:"json",
+                 async:true,
+                 data:{"code_time":sharetime},
+                 type:"post",
+                 success:function(data){
+                    if(data.code==0){
+                       alert("保存成功");
+                    }else{
+                        alert('保存失败')
+                    }
+                 },
+                 error:function(error){
+                    console.log(error);
+                 }
+             });
+        });
+     });
+
+</script>

+ 69 - 0
repairceshi/runtime/temp/a3345dc1d8960cf161fb00eb0daf2f65.php

@@ -0,0 +1,69 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:82:"/www/wwwroot/repairceshi/public/../application/admin/view/index/order_message.html";i:1556098662;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1556439521;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://maintain.admin.com/static/layui/css/font.css">
+    <script src="http://maintain.admin.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://maintain.admin.com/static/layui/js/xadmin.js"></script>
+
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/order_message" method="POST">
+        <div class="form-group">
+            <label>订单编号:</label><br>
+            <input type="text" class="form-control" name="order_id" value="<?php echo $order_info['order_id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>评论内容:</label><br>
+            <input type="text" class="form-control" name="repuser_message" value="<?php echo $order_info['repuser_message']; ?>">
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

+ 196 - 0
repairceshi/runtime/temp/a386f3e1f26fd99354fe2a018e9cfd80.php

@@ -0,0 +1,196 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"/www/maintain/repairceshi/public/../application/admin/view/index/order.html";i:1561513114;s:67:"/www/maintain/repairceshi/application/admin/view/public/header.html";i:1561513114;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<form action="order" method="post" class="form-inline">
+    <div class="form-group">
+        <label>搜索</label>
+        <select name="type" class="form-control" id="select_id">
+            <option value="">全部</option>
+            <option value="order_id">订单号</option>
+            <option value="linkman">报修人</option>
+            <option value="linktel">报修号码</option>
+            <option value="repuser">维修人</option>
+            <option value="status">进度</option>
+        </select>
+    </div>
+    <div class="form-group">
+        <input type="text" class="form-control" id="input" name="keyword" placeholder="搜索内容">
+        <select name="statusValue" id="statusValue"  hidden disabled>
+            <option value="4">请选择</option>
+            <option value="0">接单中</option>
+            <option value="1">处理中</option>
+            <option value="2">已完成</option>
+            <option value="3">转单</option>
+        </select>
+    </div>
+    <button type="submit" class="btn btn-primary">搜索</button>
+</form>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+        <tbody style="text-align: center;">
+            <?php if(is_array($order_info) || $order_info instanceof \think\Collection || $order_info instanceof \think\Paginator): $i = 0; $__LIST__ = $order_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+            <tr>
+                <td><b><?php echo $vo['order_id']; ?></b></td>
+                <td><?php echo $vo['linkman']; ?></td>
+                <td><?php echo $vo['linktel']; ?></td>
+                <td>
+                    <?php if($vo['repuser'] == null): ?>
+                      暂无
+                    <?php else: ?>
+                      <?php echo $vo['repuser']; endif; ?>
+                </td>
+                <td><?php echo $vo['title']; ?></td>
+                <td><?php echo $vo['create_time']; ?></td>
+                <td><?php echo date('Y-m-d H:i',$vo['update_time'] ); ?></td>
+                <td>
+                    <?php if($vo['status'] == '0'): ?>
+                       <font color="green">接单中</font>
+                    <?php elseif($vo['status'] == '1'): ?>
+                       <font color="green">处理中</font>
+                    <?php elseif($vo['status'] == '3'): ?>
+                    <font color="green">转单</font>
+                    <?php else: ?>
+                       <font color="red">完成</font>
+                    <?php endif; ?>
+                </td>
+                <td>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
+                    <button data-orderid="<?php echo $vo['order_id']; ?>" class="btn btn-xs btn-success buttonmessage">评论</button>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+            <tr>
+                <th style="text-align: center;">工单号</th>
+                <th style="text-align: center;">报修人</th>
+                <th style="text-align: center;">联系电话</th>
+                <th style="text-align: center;">维修者</th>
+                <th style="text-align: center;">订单问题</th>
+                <th style="text-align: center;">创建时间</th>
+                <th style="text-align: center;">订单更新时间</th>
+                <th style="text-align: center;">订单状态</th>
+                <th style="text-align: center;">操作</th>
+            </tr>
+        </thead>
+    </table>
+</div>
+
+<div style="text-align:center;">
+    <?php echo $order_info->render(); ?>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    $(function () {
+
+        $("#select_id").change(function(){
+            var selected = $(this).children('option:selected').val()
+            if(selected == "status"){
+                $("#statusValue").show();
+                $("#statusValue").removeAttr('disabled')
+                $("#statusValue").addClass('form-control')
+                $('#input').hide();
+                $('#input').attr("disabled",true);
+            }else{
+                $('#input').show();
+                $("#input").removeAttr('disabled')
+                $("#statusValue").hide();
+                $("#statusValue").attr("disabled",true)
+            }
+        });
+
+        //查看信息
+        $('.buttoninfo').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/order_info?orderid="+orderid;
+        });
+
+        $("[name='type']");
+        //编辑信息
+        $('.buttoneidt').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            window.location.href =  "/admin/index/edit_order_info?orderid="+orderid;
+        });
+
+
+        //评论订单
+        $('.buttonmessage').click(function () {
+            //获取到当前订单   
+            let orderid = $(this).attr('data-orderid');
+            console.log(orderid);  
+            window.location.href =  "/admin/index/order_message?orderid="+orderid;
+        });
+
+
+    });
+
+
+
+
+</script>

+ 91 - 0
repairceshi/runtime/temp/a413bf75de92ff7be04a7e99c3e70a11.php

@@ -0,0 +1,91 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:83:"D:\maintain\repairceshi\public/../application/admin\view\authorty_manage\index.html";i:1556439634;s:65:"D:\maintain\repairceshi\application\admin\view\public\header.html";i:1557225144;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+            <?php endif;?>
+            <li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-user"></span>区域管理</a></li>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<button class="layui-btn btn btn-primary" onclick="xadmin.open('添加用户','/admin/authorty_manage/addAdmin',600,400)">添加</button>
+<div class="table-responsive" style="padding-top: 10px;">
+    <table class="table table-striped" border='1'>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+        <tbody style="text-align: center;">
+        <?php if(is_array($admin) || $admin instanceof \think\Collection || $admin instanceof \think\Paginator): $i = 0; $__LIST__ = $admin;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
+        <tr>
+            <td><?php echo $vo['username']; ?></td>
+            <td><?php echo date("Y-m-d H:i",$vo['create_time'] ); ?></td>
+            <td>
+                <button data-orderid="" class="btn btn-xs btn-info buttoninfo" onclick="xadmin.open('查看用户','/admin/authorty_manage/view?adminId=<?php echo $vo['id']; ?>',600,400)">查看</button>
+                <button data-orderid="" class="btn btn-xs btn-danger buttoneidt" onclick="xadmin.open('添加用户','/admin/authorty_manage/editAdmin?adminId=<?php echo $vo['id']; ?>',600,400)">编辑</button>
+                <button type="button" class="btn btn-xs btn-warning" id="del" onclick="del('<?php echo $vo['id']; ?>')">删除</button>
+            </td>
+        </tr>
+        <?php endforeach; endif; else: echo "" ;endif; ?>
+        </tbody>
+        <thead>
+        <tr>
+            <th style="text-align: center;">管理员</th>
+            <th style="text-align: center;">添加时间</th>
+            <th style="text-align: center;">操作</th>
+        </tr>
+        </thead>
+    </table>
+</div>
+<script src="/static/login/js/jquery.min.js"></script>
+<script>
+    function del( id ) {
+        window.location.href = "/admin/authorty_manage/del?id="+id;
+    }
+</script>

+ 101 - 0
repairceshi/runtime/temp/a43aafefb5071092dbe48565579c49c7.php

@@ -0,0 +1,101 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:74:"D:\maintain\repairceshi\public/../application/admin\view\index\qrcode.html";i:1557215352;}*/ ?>
+<!doctype html>
+<html  class="x-admin-sm">
+<head>
+    <meta charset="UTF-8">
+    <title>后台登录-X-admin2.2</title>
+    <meta name="renderer" content="webkit|ie-comp|ie-stand">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
+    <meta http-equiv="Cache-Control" content="no-siteapp" />
+    <link rel="stylesheet" href="/static/layui/css/font.css">
+    <link rel="stylesheet" href="/static/layui/css/login.css">
+    <link rel="stylesheet" href="/static/layui/css/xadmin.css">
+    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
+    <script src="/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+  	<style>
+      .qrcode_image_container img{
+      	width:100%;
+      }
+      .qrcode_image_container h4 {
+          	text-align:center;
+        	top:47%;
+        	left:47%;
+        	transform:translate(-50%,-50%);
+        	position:absolute;
+          	font-weight: bold;
+        	
+      }
+      .qrcode_image_container .expier_cont {
+          width: 340px;
+          height: 340px;
+          position: absolute;
+          background: rgba(255,255,255,.95);
+          left: 50px;
+          top: 150px;
+          z-index: 9999;
+		}
+  	</style>
+    <!--[if lt IE 9]>
+    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
+    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
+    <![endif]-->
+</head>
+<body class="login-bg">
+
+<div class="login layui-anim layui-anim-up">
+    <div class="message"><strong style="padding:0px 0px 0px 20px;font-size:18px;">微信扫码登录</strong></div>
+    <div id="darkbannerwrap"></div>
+  	<div class="qrcode_image_container">
+  	
+		<img src="<?php echo $srcUrl; ?>" id ="wxewm">
+      	<div class="expier_cont" style="display: none;"> <h4>二维码已失效,请重新刷新页面</h4></div>
+  	</div>
+   	<input type="hidden" name="code" value="<?php echo $state; ?>">
+</div>
+
+<script>
+  	var t1 = '';
+    $(function  () {
+      t1 = window.setInterval("login()",2000);
+       setTimeout("end()",120000);
+    });
+  	    function end(){  //停止定时器
+          
+        $('.expier_cont').css('display','block');
+        clearInterval(t1);    //清除定时器
+        
+    }
+	 // window 失去焦点,停止输出
+    window.onblur = function() {
+        clearInterval(t1);
+    };
+    // window 每次获得焦点
+    window.onfocus = function() {
+        t1 = window.setInterval("login()",2000);
+    };
+	 function login(){   //验证是否扫描二维码
+      
+        var code =$('input[name=code]').val();
+        var url = "/admin/index/weixinLogin";
+        $.post(url,{state:code},function(data){
+            if(data){
+                window.location.href="/admin/index/index";
+            }
+        });
+    }
+
+</script>
+<!-- 底部结束 -->
+<script>
+    //百度统计可去掉
+    var _hmt = _hmt || [];
+    (function() {
+        var hm = document.createElement("script");
+        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
+        var s = document.getElementsByTagName("script")[0];
+        s.parentNode.insertBefore(hm, s);
+    })();
+</script>
+</body>
+</html>

+ 90 - 0
repairceshi/runtime/temp/aa5b63278be50b59eb0d967d6a34729c.php

@@ -0,0 +1,90 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:79:"/www/wwwroot/repairceshi/public/../application/admin/view/index/edit_group.html";i:1557384550;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1557302768;}*/ ?>
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <title>管理中心</title>
+  <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
+    <link rel="stylesheet" href="http://www.kamihu.com/static/layui/css/font.css">
+    <script src="http://www.kamihu.com/static/layui/lib/layui/layui.js" charset="utf-8"></script>
+    <script type="text/javascript" src="http://www.kamihu.com/static/layui/js/xadmin.js"></script>
+  <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
+  <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+
+</head>
+<?php
+    $allow = (new \app\admin\controller\Index())->adminAuthorty();
+?>
+<body>
+
+  <nav class="navbar navbar-fixed-top navbar-default">
+    <div class="container">
+      <div class="navbar-header">
+        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+          aria-expanded="false" aria-controls="navbar">
+          <span class="sr-only">导航按钮</span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+        <a class="navbar-brand" href="#">管理中心</a>
+      </div><!-- /.navbar-header -->
+      <div id="navbar" class="collapse navbar-collapse">
+        <ul class="nav navbar-nav navbar-right">
+          <li>
+            <a href="<?=url('admin/index/index')?>"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
+          </li>
+          <li><a href="<?=url('admin/index/order')?>"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
+          <li><a href="<?=url('admin/index/user')?>"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
+            <?php if($allow['user_type'] === '0'):?>
+                <li><a href="<?=url('admin/index/group')?>"><span class="glyphicon glyphicon-align-justify"></span> 分组管理</a></li>
+            <li><a href="<?=url('admin/AuthortyManage/index');?>"><span class="glyphicon glyphicon-user"></span>管理员</a></li>
+          	<li><a href="<?=url('admin/index/region');?>"><span class="glyphicon glyphicon-map-marker"></span>区域管理</a></li>
+            <?php endif;?>
+          <li><a href="<?=url('admin/index/loginout')?>"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
+        </ul>
+      </div><!-- /.navbar-collapse -->
+    </div><!-- /.container -->
+  </nav><!-- /.navbar -->
+
+  <div class="container" style="padding-top:70px;">
+  <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
+<div class="panel-heading">
+    <h3 class="panel-title">编辑分组</h3>
+</div>
+<div class="panel-body">
+    <form action="/admin/index/edit_group" method="POST">
+        <div class="form-group">
+            <label>分组编号:</label><br>
+            <input type="text" class="form-control" name="id" value="<?php echo $group_info['id']; ?>" readonly>
+        </div>
+        <div class="form-group">
+            <label>小组名称:</label><br>
+            <input type="text" class="form-control" name="name" value="<?php echo $group_info['name']; ?>">
+            <div class="layui-form-item">
+                <label class="layui-form-label"><span class="x-red">*</span>管理区域</label>
+                <?php
+                        $regions = [];
+                        if(strlen($group_info['region']) == 1){
+                            array_push($regions,$group_info['region']);
+                        }else{
+                             $regions = explode(',',$group_info['region']);
+                        }
+                    ?>
+                <div class="layui-input-block">
+                    <?php if($region == null): ?>
+                        暂无可管理区域
+                    <?php else: foreach($region as $v): 
+                         if(in_array($v['id'],$regions)){?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>" checked="true"><span><?php echo $v['username']; ?></span>
+                    <?php }else{?>
+                    <input type="checkbox" name="region[]" lay-skin="primary" title="<?php echo $v['username']; ?>" value="<?php echo $v['id']; ?>"><span><?php echo $v['username']; ?></span>
+                    <?php }endforeach; endif; ?>
+                </div>
+            </div>
+        </div>
+        <input type="submit" class="btn btn-primary btn-block" value="确定更改">
+    </form>
+</div>

Some files were not shown because too many files changed in this diff