index.blade.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @extends('layouts.base')
  2. @section('content')
  3. <style>
  4. .panel{
  5. margin-bottom:10px!important;
  6. padding-left: 20px;
  7. border-radius: 10px;
  8. }
  9. .panel .active a {
  10. background-color: #29ba9c!important;
  11. border-radius: 18px!important;
  12. color:#fff;
  13. }
  14. .panel a{
  15. border:none!important;
  16. background-color:#fff!important;
  17. }
  18. .content{
  19. background: #eff3f6;
  20. padding: 10px!important;
  21. }
  22. .con{
  23. padding-bottom:20px;
  24. position:relative;
  25. border-radius: 8px;
  26. min-height:100vh;
  27. background-color:#fff;
  28. }
  29. .con .setting .block{
  30. padding:10px;
  31. background-color:#fff;
  32. border-radius: 8px;
  33. }
  34. .con .setting .block .title{
  35. font-size:18px;
  36. margin-bottom:15px;
  37. display:flex;
  38. align-items:center;
  39. }
  40. .confirm-btn{
  41. width: calc(100% - 266px);
  42. position:fixed;
  43. bottom:0;
  44. right:0;
  45. margin-right:10px;
  46. line-height:63px;
  47. background-color: #ffffff;
  48. box-shadow: 0px 8px 23px 1px
  49. rgba(51, 51, 51, 0.3);
  50. background-color:#fff;
  51. text-align:center;
  52. }
  53. b{
  54. font-size:14px;
  55. }
  56. </style>
  57. <div id='re_content' >
  58. <div class="con">
  59. <div class="setting">
  60. <el-form ref="form" :model="form" label-width="15%">
  61. <div class="block">
  62. <div class="title"> <span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;"></span><b>92折话费慢充</b>
  63. </div>
  64. <el-card shadow="always" style="border:1px solid #b3d8ff;color:#333;background:#ecf5ff;line-height:28px;font-weight:600;margin-bottom:50px;">
  65. <span style="font-size: 18px;">重要提示:</span><br>
  66. <span style="color: red">
  67. 1、后台系统-系统工具-HTTPS设置中的域名必须设置,未设置会导致退款失败等问题<br>
  68. 2、该功能使用第三方话费慢充接口,第三方收费标准、服务政策、业务流程等由第三方对接<br>
  69. 3、我司不承诺该接口可以长期使用,因接口和第三方公司原因导致的任何问题,我司不承担任何责任!<br>
  70. 4、请不要随意改成appKey和appSecret,可能会导致充值中的订单充值失败
  71. </span>
  72. </el-card>
  73. <el-form-item label="92折话费慢充" >
  74. <template>
  75. <el-switch
  76. v-model="form.status"
  77. active-value="1"
  78. inactive-value="0"
  79. >
  80. </el-switch>
  81. </template>
  82. </el-form-item>
  83. <el-form-item label="appKey">
  84. <el-input v-model="form.appKey" placeholder="请输入第三方接口提供的appKey" style="width:70%;"></el-input>
  85. </el-form-item>
  86. <el-form-item label="appSecret">
  87. <el-input v-model="form.appSecret" placeholder="请输入第三方接口提供的appSecret" style="width:70%;"></el-input>
  88. </el-form-item>
  89. <el-form-item label="预下单自定义提示">
  90. <tinymceee v-model="form.tips" style="width:70%;"></tinymceee>
  91. </el-form-item>
  92. <div class="confirm-btn">
  93. <el-button type="primary" @click="submit">提交</el-button>
  94. </div>
  95. </div>
  96. </el-form>
  97. </div>
  98. </div>
  99. </div>
  100. <script src="{{resource_get('static/yunshop/tinymce4.7.5/tinymce.min.js')}}"></script>
  101. @include('public.admin.tinymceee')
  102. <script>
  103. var vm = new Vue({
  104. el: "#re_content",
  105. delimiters: ['[[', ']]'],
  106. data() {
  107. let data = {!! json_encode($data) !!}
  108. return {
  109. activeName: 'one',
  110. form: data ? data : {},
  111. }
  112. },
  113. mounted () {
  114. },
  115. methods: {
  116. submit() {
  117. let loading = this.$loading({target:document.querySelector(".content"),background: 'rgba(0, 0, 0, 0)'});
  118. this.$http.post('{!! yzWebFullUrl('plugin.phone-bill.admin.set.index') !!}',{'form':this.form}).then(function (response){
  119. if (response.data.result) {
  120. this.$message({message: response.data.msg,type: 'success'});
  121. }else {
  122. this.$message({message: response.data.msg,type: 'error'});
  123. }
  124. loading.close();
  125. location.reload();
  126. },function (response) {
  127. this.$message({message: response.data.msg,type: 'error'});
  128. })
  129. },
  130. },
  131. });
  132. </script>
  133. @endsection