list.blade.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. @extends('layouts.base')
  2. @section('title', '账号注册管理审核')
  3. @section('content')
  4. <style>
  5. .panel-info {
  6. margin: 6px 0;
  7. }
  8. .add-shopnav {
  9. padding: 5px;
  10. }
  11. .add-shopnav li.active a{
  12. padding: 4px 12px;
  13. letter-spacing: 2px;
  14. font-size: 14px;
  15. border-radius: 5px!important;
  16. }
  17. .tips {
  18. color: red;
  19. margin-bottom:20px;
  20. }
  21. .panel{
  22. margin-bottom: 20px!important;
  23. border-radius: 10px;
  24. padding-left: 5px;
  25. }
  26. .panel .active a {
  27. background-color: #29ba9c!important;
  28. border-radius: 18px!important;
  29. color:#fff;
  30. }
  31. .panel a{
  32. border:none!important;
  33. background-color:#fff!important;
  34. }
  35. .content{
  36. background: #eff3f6;
  37. padding: 15px!important;
  38. }
  39. .con{
  40. padding-bottom:20px;
  41. position:relative;
  42. border-radius: 8px;
  43. min-height: 100vh;
  44. background: #fff;
  45. }
  46. .con .setting .block{
  47. padding:10px;
  48. background-color:#fff;
  49. border-radius: 8px;
  50. margin-bottom:10px;
  51. }
  52. .con .setting .block .title{
  53. font-size:18px;
  54. margin-bottom:20px;
  55. display:flex;
  56. align-items:center;
  57. justify-content:space-between;
  58. }
  59. .confirm-btn{
  60. width: 100%;
  61. position:absolute;
  62. bottom:0;
  63. left:0;
  64. line-height:63px;
  65. background-color: #ffffff;
  66. box-shadow: 0px 8px 23px 1px
  67. rgba(51, 51, 51, 0.3);
  68. background-color:#fff;
  69. text-align:center;
  70. }
  71. .add{
  72. width: 154px;
  73. height: 36px;
  74. border-radius: 4px;
  75. border: solid 1px #29ba9c;
  76. color:#29ba9c;
  77. display:flex;
  78. align-items:center;
  79. justify-content:center;
  80. }
  81. .el-table--fit{
  82. margin-top:-10px;
  83. }
  84. b{
  85. font-size:14px;
  86. }
  87. .el-table--border::after, .el-table--group::after, .el-table::before{
  88. background-color:#fff;
  89. }
  90. </style>
  91. <div id='re_content' >
  92. <div class="panel panel-info">
  93. <ul class="add-shopnav">
  94. <li>
  95. <a href="{{ yzWebFullUrl('member.member-cancel.index') }}">
  96. 账号注销设置
  97. </a>
  98. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  99. </li>
  100. <li class="active">
  101. <a href="{{ yzWebFullUrl('member.member-cancel.verify') }}">
  102. 账号注销申请审核
  103. </a>
  104. </li>
  105. </ul>
  106. </div>
  107. <div class="con">
  108. <div class="setting">
  109. <div class="block">
  110. <div class="title">
  111. <div style="display:flex;align-items:center;">
  112. <span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;"></span><b>账号注销申请审核</b>
  113. </div>
  114. </div>
  115. <div class="tips">
  116. <span>注:账号注销后,会员个人信息(包含昵称,姓名,手机号,收获信息,会员资料等),商城等级,个人资产(包含金额,积分等),优惠券,插件分红等将失效,且不能恢复,若会员存在交易中订单,暂不能进行审核,交易完成后可进行审核。</span>
  117. </div>
  118. <el-input v-model="search_form.member_id" style="width:15%;margin-right:16px;" placeholder="会员ID"></el-input>
  119. <el-input v-model="search_form.member" style="width:15%;margin-right:16px;" placeholder="昵称/姓名/手机号"></el-input>
  120. <template>
  121. <el-select v-model="search_form.status" placeholder="状态" style="width:15%;margin-right:16px;">
  122. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.status"></el-option>
  123. </el-select>
  124. </template>
  125. <template>
  126. <span class="demonstration"></span>
  127. <el-date-picker
  128. v-model="search_form.create_time"
  129. type="datetimerange"
  130. range-separator="至"
  131. start-placeholder="开始日期"
  132. end-placeholder="结束日期"
  133. align="right">
  134. </el-date-picker>
  135. </template>
  136. <el-button type="primary" @click="search">搜索</el-button>
  137. </div>
  138. <div style="background: #eff3f6;width:100%;height:20px;"></div>
  139. <div class="block">
  140. <div class="title">
  141. <div style="display:flex;align-items:center;">
  142. <span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;">
  143. </span><b>申请列表</b>
  144. </div>
  145. </div>
  146. </div>
  147. <el-table :data="tableData" style="padding:0 10px" style="width: 100%">
  148. <el-table-column prop="id" align="center" label="ID"></el-table-column>
  149. <el-table-column prop="created_at" align="center" label="申请时间"></el-table-column>
  150. <el-table-column prop="member_id" align="center" label="会员id"></el-table-column>
  151. <el-table-column align="center" label="会员">
  152. <template slot-scope="scope">
  153. <img style='width:40px;height:40px' v-if="scope.row.has_one_member" :src=scope.row.has_one_member.avatar_image style="max-width:100px">
  154. <div>[[scope.row.has_one_member?scope.row.has_one_member.nickname:'未更新']]</div>
  155. </template>
  156. </el-table-column>
  157. <el-table-column align="center" label="状态">
  158. <template slot-scope="scope" >
  159. <div v-if="scope.row.status==1" style="color: #FFBF00">待审核</div>
  160. <div v-if="scope.row.status==2" style="color: #0ad76d">审核通过</div>
  161. <div v-if="scope.row.status==3" style="color: #A4A4A4">审核驳回</div>
  162. <div v-if="scope.row.status==4" style="color: #A4A4A4">申请取消</div>
  163. </template>
  164. </el-table-column>
  165. <el-table-column align="center" label="操作">
  166. <template slot-scope="scope" >
  167. <a style="color:#999">
  168. <i class="el-icon-circle-check" style="font-size:20px;margin-right:35px;" v-if="scope.row.status==1" @click="pass(scope.row.id)"></i>
  169. </a>
  170. <a style="color:#999">
  171. <i class="el-icon-circle-close" style="font-size:20px;" v-if="scope.row.status==1" @click="reject(scope.row.id)"></i>
  172. </a>
  173. </template>
  174. </el-table-column>
  175. </el-table>
  176. <el-row style="background-color:#fff;">
  177. <el-col :span="24" align="center" migra style="padding:15px 5% 15px 0" v-loading="loading">
  178. <el-pagination background @current-change="currentChange"
  179. layout="prev, pager, next"
  180. :page-size="page_size" :current-page="current_page" :total="page_total">
  181. </el-pagination>
  182. </el-col>
  183. </el-row>
  184. </div>
  185. </div>
  186. </div>
  187. <script>
  188. var vm = new Vue({
  189. el: "#re_content",
  190. delimiters: ['[[', ']]'],
  191. data() {
  192. return {
  193. dataList:[],
  194. loading:false,
  195. search_loading:false,
  196. all_loading:false,
  197. page_total:0,
  198. page_size:0,
  199. current_page:0,
  200. search_form:{
  201. member_id:'{!! $_REQUEST['member_id'] ? :"" !!}'
  202. },
  203. real_search_form:{},
  204. options: [
  205. {
  206. status: '1',
  207. label: '待审核'
  208. },
  209. {
  210. status: '2',
  211. label: '审核通过'
  212. },
  213. {
  214. status: '3',
  215. label: '审核驳回'
  216. },
  217. {
  218. status: '4',
  219. label: '申请取消'
  220. }
  221. ],
  222. tableData: []
  223. }
  224. },
  225. mounted () {
  226. this.getData();
  227. },
  228. methods: {
  229. search() {
  230. this.search_loading = true;
  231. if(this.search_form.create_time){
  232. this.search_form.create_time[0] = Math.round(this.search_form.create_time[0]/1000).valueOf();
  233. this.search_form.create_time[1] = Math.round(this.search_form.create_time[1]/1000).valueOf();
  234. }
  235. let json={
  236. search:this.search_form,
  237. }
  238. this.$http.post('{!! yzWebFullUrl('member.member-cancel.search') !!}',json
  239. ).then(function (response) {
  240. if (response.data.result){
  241. let datas = response.data.data.list;
  242. this.dataList=datas.data
  243. this.tableData=datas.data
  244. this.page_total = datas.total;
  245. this.page_size = datas.per_page;
  246. this.current_page = datas.current_page;
  247. this.loading = false;
  248. this.real_search_form=Object.assign({},this.search_form);
  249. }
  250. else {
  251. this.$message({message: response.data.msg,type: 'error'});
  252. }
  253. this.search_loading = false;
  254. },function (response) {
  255. this.search_loading = false;
  256. this.$message({message: response.data.msg,type: 'error'});
  257. }
  258. );
  259. },
  260. currentChange(val) {
  261. this.loading = true;
  262. this.$http.post('{!! yzWebFullUrl('member.member-cancel.search') !!}',{page:val,search:this.real_search_form}).then(function (response){
  263. if (response.data.result){
  264. let datas = response.data.data.list;
  265. this.tableData = datas.data
  266. this.page_total = datas.total;
  267. this.page_size = datas.per_page;
  268. this.current_page = datas.current_page;
  269. this.loading = false;
  270. } else {
  271. this.$message({message: response.data.msg,type: 'error'});
  272. }
  273. },function (response) {
  274. console.log(response);
  275. this.loading = false;
  276. }
  277. );
  278. },
  279. pass(id){
  280. this.$confirm('是否通过审核?', '提示', {
  281. confirmButtonText: '确定',
  282. cancelButtonText: '取消',
  283. type: 'warning'
  284. }).then(() => {
  285. let json={
  286. id:id
  287. };
  288. this.$http.post('{!! yzWebFullUrl('member.member-cancel.pass') !!}',json).then(function (response){
  289. if (response.data.result) {
  290. this.$message({message:"审核通过!",type:"success"});
  291. this.loading = false;
  292. location.reload();
  293. }else {
  294. this.$message({message: response.data.msg,type: 'error'});
  295. }
  296. },function (response) {
  297. this.loading = false;
  298. }
  299. );
  300. }).catch(() => {
  301. this.$message({
  302. type: 'info',
  303. message: '已取消审核'
  304. });
  305. });
  306. },
  307. reject(id){
  308. this.$confirm('是否驳回审核?', '提示', {
  309. confirmButtonText: '确定',
  310. cancelButtonText: '取消',
  311. type: 'warning'
  312. }).then(() => {
  313. let json={
  314. id:id
  315. };
  316. this.$http.post('{!! yzWebFullUrl('member.member-cancel.reject') !!}',json).then(function (response){
  317. if (response.data.result) {
  318. this.$message({message:"驳回成功!",type:"success"});
  319. this.loading = false;
  320. location.reload();
  321. }else {
  322. this.$message({message: response.data.msg,type: 'error'});
  323. }
  324. },function (response) {
  325. this.loading = false;
  326. }
  327. );
  328. }).catch(() => {
  329. this.$message({
  330. type: 'info',
  331. message: '已取消驳回'
  332. });
  333. });
  334. },
  335. getData(){
  336. this.$http.post('{!! yzWebFullUrl('member.member-cancel.search') !!}').then(function (response){
  337. if (response.data.result) {
  338. let datas = response.data.data.list;
  339. this.tableData = datas.data;
  340. this.page_total = datas.total;
  341. this.page_size = datas.per_page;
  342. this.current_page = datas.current_page;
  343. this.loading = false;
  344. }else{
  345. this.$message({message: response.data.msg,type: 'error'});
  346. }
  347. },function (response) {
  348. this.$message({message: response.data.msg,type: 'error'});
  349. })
  350. },
  351. },
  352. });
  353. </script>
  354. @endsection