| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- @extends('layouts.base')
- @section('content')
- <style>
- .panel{
- margin-bottom:10px!important;
- padding-left: 20px;
- border-radius: 10px;
- }
- .panel .active a {
- background-color: #29ba9c!important;
- border-radius: 18px!important;
- color:#fff;
- }
- .panel a{
- border:none!important;
- background-color:#fff!important;
- }
- .content{
- background: #eff3f6;
- padding: 10px!important;
- }
- .con{
- padding-bottom:20px;
- position:relative;
- border-radius: 8px;
- min-height:100vh;
- background-color:#fff;
- }
- .con .setting .block{
- padding:10px;
- background-color:#fff;
- border-radius: 8px;
- }
- .con .setting .block .title{
- font-size:18px;
- margin-bottom:15px;
- display:flex;
- align-items:center;
- }
- .confirm-btn{
- width: calc(100% - 266px);
- position:fixed;
- bottom:0;
- right:0;
- margin-right:10px;
- line-height:63px;
- background-color: #ffffff;
- box-shadow: 0px 8px 23px 1px
- rgba(51, 51, 51, 0.3);
- background-color:#fff;
- text-align:center;
- }
- b{
- font-size:14px;
- }
- </style>
- <div id='re_content' >
- <div class="con">
- <div class="setting">
- <el-form ref="form" :model="form" label-width="15%">
- <div class="block">
- <div class="title"> <span style="width: 4px;height: 18px;background-color: #29ba9c;margin-right:15px;display:inline-block;"></span><b>92折话费慢充</b>
- </div>
- <el-card shadow="always" style="border:1px solid #b3d8ff;color:#333;background:#ecf5ff;line-height:28px;font-weight:600;margin-bottom:50px;">
- <span style="font-size: 18px;">重要提示:</span><br>
- <span style="color: red">
- 1、后台系统-系统工具-HTTPS设置中的域名必须设置,未设置会导致退款失败等问题<br>
- 2、该功能使用第三方话费慢充接口,第三方收费标准、服务政策、业务流程等由第三方对接<br>
- 3、我司不承诺该接口可以长期使用,因接口和第三方公司原因导致的任何问题,我司不承担任何责任!<br>
- 4、请不要随意改成appKey和appSecret,可能会导致充值中的订单充值失败
- </span>
- </el-card>
- <el-form-item label="92折话费慢充" >
- <template>
- <el-switch
- v-model="form.status"
- active-value="1"
- inactive-value="0"
- >
- </el-switch>
- </template>
- </el-form-item>
- <el-form-item label="appKey">
- <el-input v-model="form.appKey" placeholder="请输入第三方接口提供的appKey" style="width:70%;"></el-input>
- </el-form-item>
- <el-form-item label="appSecret">
- <el-input v-model="form.appSecret" placeholder="请输入第三方接口提供的appSecret" style="width:70%;"></el-input>
- </el-form-item>
- <el-form-item label="预下单自定义提示">
- <tinymceee v-model="form.tips" style="width:70%;"></tinymceee>
- </el-form-item>
- <div class="confirm-btn">
- <el-button type="primary" @click="submit">提交</el-button>
- </div>
- </div>
- </el-form>
- </div>
- </div>
- </div>
- <script src="{{resource_get('static/yunshop/tinymce4.7.5/tinymce.min.js')}}"></script>
- @include('public.admin.tinymceee')
- <script>
- var vm = new Vue({
- el: "#re_content",
- delimiters: ['[[', ']]'],
- data() {
- let data = {!! json_encode($data) !!}
- return {
- activeName: 'one',
- form: data ? data : {},
- }
- },
- mounted () {
- },
- methods: {
- submit() {
- let loading = this.$loading({target:document.querySelector(".content"),background: 'rgba(0, 0, 0, 0)'});
- this.$http.post('{!! yzWebFullUrl('plugin.phone-bill.admin.set.index') !!}',{'form':this.form}).then(function (response){
- if (response.data.result) {
- this.$message({message: response.data.msg,type: 'success'});
- }else {
- this.$message({message: response.data.msg,type: 'error'});
- }
- loading.close();
- location.reload();
- },function (response) {
- this.$message({message: response.data.msg,type: 'error'});
- })
- },
- },
- });
- </script>
- @endsection
|