index.blade.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. @extends('layouts.base')
  2. @section('title', '账号注册管理设置')
  3. @section('content')
  4. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}"/>
  5. <style>
  6. .panel-info {
  7. margin: 6px 0;
  8. }
  9. .add-shopnav {
  10. padding: 5px;
  11. }
  12. .add-shopnav li.active a{
  13. padding: 4px 12px;
  14. letter-spacing: 2px;
  15. font-size: 14px;
  16. border-radius: 5px!important;
  17. }
  18. .main-panel{
  19. margin-top:50px;
  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:40px;
  41. position:relative;
  42. border-radius: 8px;
  43. }
  44. .con .setting .block{
  45. padding:10px;
  46. background-color:#fff;
  47. border-radius: 8px;
  48. }
  49. .con .setting .block .title{
  50. font-size:18px;
  51. margin-bottom:15px;
  52. display:flex;
  53. align-items:center;
  54. }
  55. .confirm-btn{
  56. width: calc(100% - 266px);
  57. position:fixed;
  58. bottom:0;
  59. right:0;
  60. margin-right:10px;
  61. line-height:63px;
  62. background-color: #ffffff;
  63. box-shadow: 0px 8px 23px 1px
  64. rgba(51, 51, 51, 0.3);
  65. background-color:#fff;
  66. text-align:center;
  67. }
  68. b{
  69. font-size:14px;
  70. }
  71. .el-checkbox__inner{
  72. border:solid 1px #56be69!important;
  73. }
  74. .upload-boxed .el-icon-close {
  75. position: absolute;
  76. top: -5px;
  77. right: -5px;
  78. color: #fff;
  79. background: #333;
  80. border-radius: 50%;
  81. cursor: pointer;
  82. }
  83. </style>
  84. <div id='re_content' >
  85. <div class="panel panel-info">
  86. <ul class="add-shopnav">
  87. <li class="active">
  88. <a href="{{ yzWebFullUrl('member.member-cancel.index') }}">
  89. 账号注销设置
  90. </a>
  91. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  92. </li>
  93. <li>
  94. <a href="{{ yzWebFullUrl('member.member-cancel.verify') }}">
  95. 账号注销申请审核
  96. </a>
  97. </li>
  98. </ul>
  99. </div>
  100. <div class="con">
  101. <div class="setting">
  102. <el-form ref="form" :model="form" label-width="15%">
  103. <div class="block">
  104. <div class="title"><span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;"></span><b>账号注销设置</b></div>
  105. <el-form-item label="账号注销功能开启" prop="status">
  106. <el-switch v-model="form.status" :active-value="1" :inactive-value="0"></el-switch>
  107. </el-form-item>
  108. <el-form-item label="手机验证码开启" prop="tel_status">
  109. <el-switch v-model="form.tel_status" :active-value="1" :inactive-value="0"></el-switch>
  110. </el-form-item>
  111. <el-form-item label="账号注销申请标题">
  112. <el-input v-model="form.title" style="width:70%;"></el-input>
  113. </el-form-item>
  114. <el-form-item label="申请协议内容" prop="content">
  115. <tinymceee v-model="form.content" style="width:70%"></tinymceee>
  116. </el-form-item>
  117. </div>
  118. <div class="confirm-btn">
  119. <el-button type="primary" @click="submit">提交</el-button>
  120. </div>
  121. </el-form>
  122. </div>
  123. </div>
  124. </div>
  125. <script src="{{resource_get('static/yunshop/tinymce4.7.5/tinymce.min.js')}}"></script>
  126. <!-- @include('public.admin.uploadImg') -->
  127. @include('public.admin.tinymceee')
  128. @include('public.admin.uploadMultimediaImg')
  129. <script>
  130. var vm = new Vue({
  131. el: "#re_content",
  132. delimiters: ['[[', ']]'],
  133. data() {
  134. let set = {!! $set ?: '{}' !!};
  135. return {
  136. activeName: 'one',
  137. level:[],
  138. uploadShow:false,
  139. chooseImgName:'',
  140. uploadListShow:false,
  141. chooseImgListName:'',
  142. form:{
  143. status:1,
  144. tel_status:1,
  145. title:'',
  146. content:'',
  147. ...set,
  148. },
  149. }
  150. },
  151. mounted () {
  152. },
  153. methods: {
  154. openUpload(str,type,sel) {
  155. this.chooseImgName = str;
  156. this.uploadShow = true;
  157. this.type = type;
  158. this.selNum = sel
  159. },
  160. changeProp(val) {
  161. if(val == true) {
  162. this.uploadShow = false;
  163. }
  164. else {
  165. this.uploadShow = true;
  166. }
  167. },
  168. sureImg(name,uploadShow,fileList) {
  169. if(fileList.length <= 0) {
  170. return
  171. }
  172. this.form[name] =fileList[0].attachment;
  173. this.form[name+'_url'] = fileList[0].url;
  174. },
  175. getInfo(){
  176. this.$forceUpdate()
  177. },
  178. submit() {
  179. let loading = this.$loading({target:document.querySelector(".content"),background: 'rgba(0, 0, 0, 0)'});
  180. this.$http.post('{!! yzWebFullUrl('member.member-cancel.index') !!}',{'form':this.form}).then(function (response){
  181. if (response.data.result) {
  182. this.$message({message: response.data.msg,type: 'success'});
  183. }else {
  184. this.$message({message: response.data.msg,type: 'error'});
  185. }
  186. loading.close();
  187. location.reload();
  188. },function (response) {
  189. this.$message({message: response.data.msg,type: 'error'});
  190. loading.close();
  191. })
  192. },
  193. },
  194. });
  195. </script>
  196. @endsection