index.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <?php
  2. use common\helpers\ComponentHelper;
  3. ComponentHelper::loadComponentView('com-export-dialog');
  4. ?>
  5. <div id="app" v-cloak>
  6. <el-card shadow="never" style="border:0;" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
  7. <div slot="header">
  8. <div>
  9. <span>认证记录</span>
  10. <div style="float: right; margin: -5px 0;display:flex;">
  11. <com-export-dialog style="float: right;margin-top: -5px" :field_list='export_list' :action_url="export_url" :params="searchData">
  12. </com-export-dialog>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="table-body">
  17. <el-form :inline="true" :model="searchData" class="demo-form-inline">
  18. <el-col :span="24">
  19. <el-form-item label="会员ID">
  20. <el-input v-model="searchData.user_id" placeholder="会员ID"></el-input>
  21. </el-form-item>
  22. <el-form-item label="姓名">
  23. <el-input v-model="searchData.real_name" placeholder="姓名"></el-input>
  24. </el-form-item>
  25. <el-form-item label="证件号">
  26. <el-input v-model="searchData.id_no" placeholder="证件号"></el-input>
  27. </el-form-item>
  28. <el-form-item label="认证时间">
  29. <el-date-picker value-format="yyyy-MM-dd" v-model="searchData.data" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  30. </el-date-picker>
  31. </el-form-item>
  32. </el-col>
  33. <el-form-item>
  34. <el-button type="primary" @click="onSubmit">查询</el-button>
  35. <el-button @click="resetForm">重置</el-button>
  36. </el-form-item>
  37. </el-form>
  38. <!-- 用户信息 -->
  39. <template>
  40. <el-table ref="multipleTable" :data="user_list" @selection-change="handleSelectionChange">
  41. <el-table-column prop="user_id" label="会员ID" align="center"></el-table-column>
  42. <el-table-column label="基本信息" >
  43. <template slot-scope="scope">
  44. <div class="user_img" flex="cross:center">
  45. <el-image class="default-avatar" :src="scope.row.avatar_url">
  46. <div slot="error" class="image-slot">
  47. <com-image src="resources/img/mall/default_avatar_url.png"></com-image>
  48. </div>
  49. </el-image>
  50. <div class="table-info-text">
  51. <div style="color:#000;">昵称:{{scope.row.nickname}}</div>
  52. <div style="color:#000;">用户名:{{scope.row.username}}</div>
  53. </div>
  54. </div>
  55. </template>
  56. </el-table-column>
  57. <el-table-column label="手机号" prop="mobile" align="center" >
  58. <template slot-scope="scope">
  59. <div>{{scope.row.mobile}}</div>
  60. </template>
  61. </el-table-column>
  62. <el-table-column label="姓名" align="center">
  63. <template slot-scope="scope">
  64. <div>
  65. {{scope.row.real_name}}
  66. </div>
  67. </template>
  68. </el-table-column>
  69. <el-table-column label="证件号" align="center">
  70. <template slot-scope="scope">
  71. <div>
  72. {{scope.row.id_no}}
  73. </div>
  74. </template>
  75. </el-table-column>
  76. <el-table-column label="认证时间" align="center">
  77. <template slot-scope="scope">
  78. <div>
  79. {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}
  80. </div>
  81. </template>
  82. </el-table-column>
  83. </el-table>
  84. </template>
  85. <!-- 分页 -->
  86. <el-row type="flex" class="page" justify="end">
  87. <el-pagination @current-change="pagination" background layout="prev, pager, next" :page-count="pageCount" v-if="user_list"></el-pagination>
  88. </el-row>
  89. </div>
  90. </el-card>
  91. </div>
  92. <script>
  93. const app = new Vue({
  94. el: '#app',
  95. data() {
  96. return {
  97. searchData: {
  98. user_id: '',
  99. user_mobile: '',
  100. user_name: '',
  101. status: '',
  102. data: [],
  103. },
  104. user_list: [],
  105. pageCount: 0,
  106. page: 1,
  107. currentPage: null,
  108. listLoading: false,
  109. btnLoading: false,
  110. checked: false,
  111. type: '',
  112. sort: '',
  113. export_list: {},
  114. export_url: 'real-auth/user/index',
  115. };
  116. },
  117. methods: {
  118. navUserDetail(id){
  119. this.$navigate({
  120. r: 'mall/user/user-detail',
  121. id: id
  122. })
  123. },
  124. handleSelectionChange(val) {
  125. this.select_order = val
  126. },
  127. // 全选
  128. allSelect() {
  129. if (this.checked) {
  130. this.goods_list.forEach(function(item, index) {
  131. if (!item.storage) {
  132. item.is_select = true
  133. }
  134. })
  135. } else {
  136. this.goods_list.forEach(function(item, index) {
  137. item.is_select = false
  138. })
  139. }
  140. },
  141. //搜索
  142. onSubmit() {
  143. this.page = 1
  144. this.getOrderList()
  145. },
  146. pagination(currentPage) {
  147. this.page = currentPage
  148. this.getOrderList()
  149. },
  150. getOrderList() {
  151. this.listLoading = true;
  152. var param = {
  153. r: 'real-auth/user/index',
  154. page: this.page,
  155. limit: 20
  156. }
  157. Object.assign(param, param, this.searchData)
  158. request({
  159. params: param,
  160. }).then(e => {
  161. if (e.data.code === 0) {
  162. this.user_list = e.data.data.list
  163. this.pageCount = e.data.data.page_count
  164. this.currentPage = e.data.data.pagination.current_page;
  165. this.export_list = e.data.data.export_list;
  166. } else {
  167. this.$message.error(e.data.msg)
  168. }
  169. this.listLoading = false
  170. }).catch(e => {
  171. this.listLoading = false
  172. })
  173. },
  174. //重置
  175. resetForm() {
  176. this.searchData = {
  177. user_id: '',
  178. user_mobile: '',
  179. user_name: '',
  180. data: [],
  181. }
  182. },
  183. },
  184. mounted: function() {
  185. this.page = getQuery('page') ? getQuery('page') : 1
  186. this.getOrderList()
  187. },
  188. });
  189. </script>
  190. <style>
  191. .table-body {
  192. padding: 20px;
  193. background-color: #fff;
  194. }
  195. .input-item {
  196. display: inline-block;
  197. width: 150px;
  198. margin: 0 0 20px;
  199. margin-right: 10px;
  200. }
  201. .input-item .el-input__inner {
  202. border-right: 1px solid #dcdfe6;
  203. }
  204. .input-item .el-input__inner:hover {
  205. border: 1px solid #dcdfe6;
  206. border-right: 0;
  207. outline: 0;
  208. }
  209. .input-item .el-input__inner:focus {
  210. border: 1px solid #dcdfe6;
  211. border-right: 0;
  212. outline: 0;
  213. }
  214. .input-item .el-input-group__append {
  215. background-color: #fff;
  216. border-left: 0;
  217. width: 10%;
  218. padding: 0;
  219. }
  220. .input-item .el-input-group__append .el-button {
  221. padding: 0;
  222. }
  223. .input-item .el-input-group__append .el-button {
  224. margin: 0;
  225. }
  226. .select {
  227. float: left;
  228. width: 100px;
  229. margin-right: 10px;
  230. }
  231. .el-table th>.cell {
  232. color: #333;
  233. font-weight: bold;
  234. font-size: 14px;
  235. }
  236. .el-table__footer-wrapper,
  237. .el-table__header-wrapper {
  238. border-bottom: 1.4px solid #D6D6D6;
  239. }
  240. .search-sort {
  241. display: inline-block;
  242. margin: 0px 10px;
  243. cursor: pointer;
  244. color: rgb(51, 51, 51);
  245. }
  246. .caret-wrapper {
  247. display: inline-flex;
  248. flex-direction: column;
  249. align-items: center;
  250. height: 25px;
  251. width: 11px;
  252. vertical-align: middle;
  253. cursor: pointer;
  254. overflow: initial;
  255. position: relative;
  256. }
  257. .caret-top {
  258. border: 5px solid transparent;
  259. margin: 1px 0;
  260. border-bottom-color: rgb(51, 51, 51);
  261. }
  262. .caret-bottom {
  263. border: 5px solid transparent;
  264. margin: 1px 0;
  265. border-top-color: rgb(51, 51, 51);
  266. }
  267. .active {
  268. border-top-color: rgb(41, 186, 156);
  269. }
  270. .ellipsis {
  271. font-size: .14rem;
  272. color: #333;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. }
  276. .goods-wrapper {
  277. border: 2px solid #CCCCCC;
  278. display: inline-block
  279. }
  280. .goods-select {
  281. border: 2px solid #bb730c;
  282. }
  283. .goods-price {
  284. text-align: center;
  285. }
  286. .goods-price .number {
  287. color: red;
  288. font-weight: 600;
  289. font-size: .18rem;
  290. }
  291. .goods-price .title {
  292. padding: 5px 0;
  293. color: #999;
  294. ;
  295. font-size: .1rem;
  296. font-weight: 600;
  297. }
  298. .bottom-price .title {
  299. padding: 5px 0;
  300. color: #8b8888;
  301. ;
  302. font-size: .1rem;
  303. }
  304. .bottom-price .number {
  305. color: #ff5100;
  306. font-size: .1rem;
  307. }
  308. .goods-action {
  309. margin-top: 0.8rem;
  310. }
  311. .goods-action .title {
  312. color: #0634aa;
  313. }
  314. .bottom-active {
  315. border-bottom-color: rgb(186, 41, 92);
  316. }
  317. .top-active {
  318. border-top-color: rgb(186, 41, 92);
  319. }
  320. .price {
  321. white-space: nowrap;
  322. }
  323. .goods-image {
  324. display: flex;
  325. justify-content: center;
  326. }
  327. .page {
  328. padding: 10px 0;
  329. }
  330. .table-info-img-text {
  331. justify-content: center;
  332. }
  333. .user_img{
  334. position: relative;
  335. margin-right: 8px;
  336. }
  337. .default-avatar{
  338. width: 50px;
  339. height: 50px;
  340. border-radius: 50%;
  341. margin-right: 8px;
  342. }
  343. .uer-nickname {
  344. flex: 1;
  345. }
  346. </style>