physics_path.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('物理路径修改'))
  4. <style>
  5. .panel{
  6. margin-bottom:10px!important;
  7. padding-left: 20px;
  8. border-radius: 10px;
  9. }
  10. .panel .active a {
  11. background-color: #29ba9c!important;
  12. border-radius: 18px!important;
  13. color:#fff;
  14. }
  15. .panel a{
  16. border:none!important;
  17. background-color:#fff!important;
  18. }
  19. .content{
  20. background: #eff3f6;
  21. padding: 10px!important;
  22. }
  23. .con{
  24. padding-bottom:20px;
  25. position:relative;
  26. border-radius: 8px;
  27. min-height:100vh;
  28. background-color:#fff;
  29. }
  30. .con .setting .block{
  31. padding:10px;
  32. background-color:#fff;
  33. border-radius: 8px;
  34. }
  35. .con .setting .block .title{
  36. font-size:18px;
  37. margin-bottom:15px;
  38. display:flex;
  39. align-items:center;
  40. }
  41. .confirm-btn{
  42. width: calc(100% - 266px);
  43. position:fixed;
  44. bottom:0;
  45. right:0;
  46. margin-right:10px;
  47. line-height:63px;
  48. background-color: #ffffff;
  49. box-shadow: 0px 8px 23px 1px
  50. rgba(51, 51, 51, 0.3);
  51. background-color:#fff;
  52. text-align:center;
  53. }
  54. b{
  55. font-size:14px;
  56. }
  57. </style>
  58. <div id='re_content' >
  59. @include('layouts.newTabs')
  60. <div class="con">
  61. <div class="setting">
  62. <el-form ref="form" :model="form" label-width="15%">
  63. <div class="block">
  64. <div class="title"><b>物理路径修改</b></div>
  65. <span style="font-size: 8px;line-height: 20px;margin-left: 200px" >!!!此功能可用于服务器迁移之后,证书文件路径的修改&nbsp;&nbsp;(胡乱使用会导致商城无法使用,非技术人员不建议使用)</span>
  66. <el-form-item label="旧路径">
  67. <el-input v-model="form.old_url" placeholder="请输入旧路径" style="width:70%;"></el-input>
  68. </el-form-item>
  69. <el-form-item label="新路径">
  70. <el-input v-model="form.new_url" placeholder="请输入新路径" style="width:70%;"></el-input>
  71. </el-form-item>
  72. </div>
  73. </div>
  74. <div class="confirm-btn">
  75. <el-button type="primary" @click="submit">提交</el-button>
  76. </div>
  77. </el-form>
  78. </div>
  79. </div>
  80. <script>
  81. var vm = new Vue({
  82. el: "#re_content",
  83. delimiters: ['[[', ']]'],
  84. data() {
  85. return {
  86. activeName: 'first',
  87. form:{
  88. old_url:'',
  89. new_url:'',
  90. },
  91. }
  92. },
  93. mounted () {
  94. //this.getData();
  95. },
  96. methods: {
  97. getData(){
  98. this.$http.post('{!! yzWebFullUrl('siteSetting.index.physics-path1') !!}').then(function (response){
  99. if (response.data.result) {
  100. this.form=response.data.data.set
  101. }else {
  102. this.$message({message: response.data.msg,type: 'error'});
  103. }
  104. },function (response) {
  105. this.$message({message: response.data.msg,type: 'error'});
  106. })
  107. },
  108. submit() {
  109. let loading = this.$loading({target:document.querySelector(".content"),background: 'rgba(0, 0, 0, 0)'});
  110. this.$http.post('{!! yzWebFullUrl('siteSetting.index.physics-path') !!}',{'physics':this.form}).then(function (response){
  111. if (response.data.result) {
  112. this.$message({message: "提交成功",type: 'success'});
  113. }else {
  114. this.$message({message: response.data.msg,type: 'error'});
  115. }
  116. loading.close();
  117. location.reload();
  118. },function (response) {
  119. this.$message({message: response.data.msg,type: 'error'});
  120. })
  121. },
  122. },
  123. });
  124. </script>
  125. @endsection