small-see.blade.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. @extends('layouts.base')
  2. @section('content')
  3. <style>
  4. .panel{
  5. margin-bottom:10px!important;
  6. margin-top:10px!important;
  7. border-radius: 10px;
  8. padding-left: 20px;
  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. .panel{
  20. margin-bottom:10px!important;
  21. padding-left: 20px;
  22. border-radius: 10px;
  23. }
  24. .panel .active a {
  25. background-color: #29ba9c!important;
  26. border-radius: 18px!important;
  27. color:#fff;
  28. }
  29. .panel a{
  30. border:none!important;
  31. background-color:#fff!important;
  32. }
  33. .content{
  34. background: #eff3f6;
  35. padding: 10px!important;
  36. }
  37. .con{
  38. padding-bottom:20px;
  39. position:relative;
  40. min-height:100vh;
  41. background-color:#fff;
  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. display:flex;
  51. align-items:center;
  52. margin-bottom:15px;
  53. }
  54. .confirm-btn{
  55. width: calc(100% - 266px);
  56. position:fixed;
  57. bottom:0;
  58. right:0;
  59. margin-right:10px;
  60. line-height:63px;
  61. background-color: #ffffff;
  62. box-shadow: 0px 8px 23px 1px
  63. rgba(51, 51, 51, 0.3);
  64. background-color:#fff;
  65. text-align:center;
  66. }
  67. textarea{
  68. height:150px;
  69. }
  70. b{
  71. font-size:14px;
  72. }
  73. </style>
  74. <div id='re_content' >
  75. <div class="con">
  76. <div class="setting">
  77. <div class="block">
  78. <div class="title"><span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;"></span><b>基础设置</b></div>
  79. <el-form label-width="15%">
  80. <el-form-item label="模板ID">
  81. <div>[[template.priTmplId]]</div>
  82. </el-form-item>
  83. <el-form-item label="模板名称">
  84. <div>[[template.title]]</div>
  85. </el-form-item>
  86. <el-form-item label="模板格式">
  87. <el-input type="textarea" v-model="template.content" disabled style="width:70%;"></el-input>
  88. </el-form-item>
  89. <el-form-item label="模板示例">
  90. <el-input type="textarea" v-model="template.example" disabled style="width:70%;"></el-input>
  91. </el-form-item>
  92. </el-form>
  93. </div>
  94. </div>
  95. <div class="confirm-btn">
  96. <el-button type="primary" @click="back">返回列表</el-button>
  97. </div>
  98. </div>
  99. </div>
  100. <script>
  101. var vm = new Vue({
  102. el: "#re_content",
  103. delimiters: ['[[', ']]'],
  104. data() {
  105. let template = {!! json_encode($template) ?: '{}' !!}
  106. console.log(template)
  107. return {
  108. activeName: 'first',
  109. template:template
  110. }
  111. },
  112. mounted () {
  113. },
  114. methods: {
  115. back(){
  116. window.location.href = `{!! yzWebFullUrl('setting.small-program.index') !!}`;
  117. },
  118. },
  119. });
  120. </script>
  121. @endsection