sms_open.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. {include file="public/head"}
  5. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  6. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  7. <title>{$title|default=''}</title>
  8. <style>
  9. .check {
  10. color: #ff0000
  11. }
  12. .demo-upload {
  13. display: block;
  14. height: 33px;
  15. text-align: center;
  16. border: 1px solid transparent;
  17. border-radius: 4px;
  18. overflow: hidden;
  19. background: #fff;
  20. position: relative;
  21. box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  22. margin-right: 4px;
  23. }
  24. .demo-upload img {
  25. width: 100%;
  26. height: 100%;
  27. display: block;
  28. }
  29. .demo-upload-cover {
  30. display: none;
  31. position: absolute;
  32. top: 0;
  33. bottom: 0;
  34. left: 0;
  35. right: 0;
  36. background: rgba(0, 0, 0, .6);
  37. }
  38. .demo-upload:hover .demo-upload-cover {
  39. display: block;
  40. }
  41. .demo-upload-cover i {
  42. color: #fff;
  43. font-size: 20px;
  44. cursor: pointer;
  45. margin: 0 2px;
  46. }
  47. .code-send {
  48. cursor: pointer;
  49. }
  50. </style>
  51. <script>
  52. window.test = 1;
  53. </script>
  54. </head>
  55. <body>
  56. <div class="wrapper wrapper-content">
  57. <div class="row">
  58. <div class="col-sm-12">
  59. <div class="ibox float-e-margins">
  60. <div class="ibox-title">
  61. <h5>开通短信服务</h5>
  62. <a style="margin-left: 10px;display: inline-block;" onclick="history.go(-1)">返回</a>
  63. </div>
  64. <div id="store-attr" class="mp-form" v-cloak>
  65. <i-Form :label-width="80" style="width: 100%">
  66. <template>
  67. <template>
  68. <Form-Item>
  69. <Row>
  70. <i-Col span="13">
  71. <i-Input placeholder="请输入短信签名" v-model="form.sign" style="width: 80%"
  72. type="text" value="{{ sign }}"></i-Input>
  73. </i-Col>
  74. </Row>
  75. </Form-Item>
  76. </template>
  77. <Form-Item>
  78. <Row>
  79. <i-Col span="13" offset="6">
  80. <i-Button type="primary" @click="submit">确认开通</i-Button>
  81. </i-Col>
  82. </Row>
  83. </Form-Item>
  84. </template>
  85. </i-Form>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <script>
  92. var _vm;
  93. var sms_sign = "<?php echo $info['sms']['sign'] ?? '';?>";
  94. mpFrame.start(function (Vue) {
  95. new Vue({
  96. data() {
  97. return {
  98. form: {
  99. sign: sms_sign,
  100. },
  101. isSend: true,
  102. }
  103. },
  104. methods: {
  105. submit() {
  106. var that = this;
  107. $eb.axios.post("{:Url('go_sms_open')}", that.form).then(function (res) {
  108. if (res.status == 200 && res.data.code == 200) {
  109. $eb.message('success', res.data.msg || '提交成功!');
  110. $eb.closeModalFrame(window.name);
  111. window.location.href = "{:url('setting.systemPlat/index')}";
  112. } else {
  113. $eb.message('error', res.data.msg || '请求失败!');
  114. }
  115. }).catch(function (err) {
  116. $eb.message('error', err);
  117. })
  118. },
  119. },
  120. mounted() {
  121. }
  122. }).$mount(document.getElementById('store-attr'));
  123. });
  124. </script>
  125. </body>