clearFan.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @extends('layouts.base')
  2. @section('title', trans('小程序清除粉丝'))
  3. @section('content')
  4. <style>
  5. .all {
  6. background: #eff3f6;
  7. padding-top:20px ;
  8. }
  9. .ac {
  10. min-height: 100vh;
  11. background-color: #fff;
  12. padding: 20px 0 0 20px;
  13. border-radius: 10px;
  14. }
  15. .vue-main-title {
  16. display: flex;
  17. margin: 5px 0;
  18. line-height: 28px;
  19. font-size: 14px;
  20. color: #333;
  21. font-weight: 700;
  22. }
  23. .vue-main-title-left {
  24. width: 4px;
  25. height: 14px;
  26. margin-top: 6px;
  27. background: #29ba9c;
  28. display: inline-block;
  29. margin-right: 10px;
  30. }
  31. .vue-main-title-content {
  32. font-size: 14px;
  33. flex: 1;
  34. }
  35. .el-dialog {
  36. border-radius:10px;
  37. }
  38. .el-dialog__footer {
  39. padding: 10px 195px 24px;
  40. }
  41. </style>
  42. <div class="all">
  43. <div id="app" class="ac">
  44. <div class="vue-main-title">
  45. <div class="vue-main-title-left"></div>
  46. <div class="vue-main-title-content">清除小程序粉丝</div>
  47. </div>
  48. <div style="margin:50px 0 0 150px;">
  49. <el-button type="danger" @click="openDialog">清除小程序粉丝</el-button>
  50. <div style="margin-top:10px;color:#888;">若平台变更了对接的小程序,点击可清除之前的小程序残留的会员数据,注:仅清除残留数据,非删除会员。</div>
  51. </div>
  52. <el-dialog
  53. :visible.sync="dialogVisible"
  54. width="30%"
  55. :close="handleClose"
  56. >
  57. <span style="font-weight: 700;">创建者密码</span>
  58. <el-input style="margin-top:10px;" v-model.trim="pwd" placeholder="请输入创建者密码"></el-input>
  59. <div style="margin:20px 0 0 20px; color:red">[[err]]</div>
  60. <span slot="footer" class="dialog-footer">
  61. <el-button type="primary" @click="clear">确认清除</el-button>
  62. <el-button @click="dialogVisible = false"> 取 消 </el-button>
  63. </span>
  64. </el-dialog>
  65. </div>
  66. </div>
  67. <script>
  68. var vm = new Vue({
  69. el:'#app',
  70. delimiters: ['[[', ']]'],
  71. data() {
  72. return {
  73. dialogVisible:false,
  74. pwd:'',
  75. err:'',
  76. }
  77. },
  78. methods:{
  79. openDialog(){
  80. this.dialogVisible = true;
  81. },
  82. handleClose(){
  83. this.dialogVisible = false;
  84. },
  85. async clear(){
  86. let res = await this.$http.post("{!! yzWebFullUrl('plugin.min-app.Backend.Controllers.clear-min-app.clear-fans') !!}",{password:this.pwd})
  87. if(res.body.result == 0){
  88. this.err = res.body.msg;
  89. }
  90. if(res.body.result == 1){
  91. this.err = '';
  92. this.$message.success(res.body.msg);
  93. this.dialogVisible = false;
  94. }
  95. }
  96. }
  97. })
  98. </script>
  99. @endsection