express_open.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. </div>
  63. <div id="store-attr" class="mp-form" v-cloak="">
  64. <i-Form :label-width="80" style="width: 100%">
  65. <template>
  66. <template>
  67. <Form-Item>
  68. <Row>
  69. <i-Col span="13">
  70. <i-Input placeholder="请选择快递公司" v-model="form.express" style="width: 80%"
  71. type="text"></i-Input>
  72. </i-Col>
  73. </Row>
  74. </Form-Item>
  75. <Form-Item>
  76. <Row>
  77. <i-Col span="13">
  78. <i-Input placeholder="请选择电子面单模版" v-model="form.temp" style="width: 80%"
  79. type="text"></i-Input>
  80. </i-Col>
  81. </Row>
  82. </Form-Item>
  83. <Form-Item>
  84. <Row>
  85. <i-Col span="13">
  86. <i-Input placeholder="请输入寄件人姓名" v-model="form.name" style="width: 80%"
  87. type="text"></i-Input>
  88. </i-Col>
  89. </Row>
  90. </Form-Item>
  91. <Form-Item>
  92. <Row>
  93. <i-Col span="13">
  94. <i-Input placeholder="请输入寄件人电话" v-model="form.phone" style="width: 80%"
  95. type="text"></i-Input>
  96. </i-Col>
  97. </Row>
  98. </Form-Item>
  99. <Form-Item>
  100. <Row>
  101. <i-Col span="13">
  102. <i-Input placeholder="请输入寄件人详细地址" v-model="form.address" style="width: 80%"
  103. type="text"></i-Input>
  104. </i-Col>
  105. </Row>
  106. </Form-Item>
  107. <Form-Item>
  108. <Row>
  109. <i-Col span="13">
  110. <i-Input placeholder="请输入云打印机编号" v-model="form.siid" style="width: 80%"
  111. type="text"></i-Input>
  112. </i-Col>
  113. </Row>
  114. </Form-Item>
  115. </template>
  116. <Form-Item>
  117. <Row>
  118. <i-Col span="13" offset="6">
  119. <i-Button type="primary" @click="submit">确认开通</i-Button>
  120. </i-Col>
  121. </Row>
  122. </Form-Item>
  123. </template>
  124. </i-Form>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <script>
  131. var _vm;
  132. mpFrame.start(function (Vue) {
  133. new Vue({
  134. data() {
  135. return {
  136. form: {
  137. express: '',
  138. temp: '',
  139. name: '',
  140. phone: '',
  141. address: '',
  142. siid: ''
  143. },
  144. isSend: true,
  145. }
  146. },
  147. methods: {
  148. submit() {
  149. var that = this;
  150. $eb.axios.post("{:Url('go_express_open')}", that.form).then(function (res) {
  151. if (res.status == 200 && res.data.code == 200) {
  152. $eb.message('success', res.data.msg || '提交成功!');
  153. $eb.closeModalFrame(window.name);
  154. location.href = "{:url('setting.systemPlat/index')}";
  155. } else {
  156. $eb.message('error', res.data.msg || '请求失败!');
  157. }
  158. }).catch(function (err) {
  159. $eb.message('error', err);
  160. })
  161. },
  162. },
  163. mounted() {
  164. }
  165. }).$mount(document.getElementById('store-attr'));
  166. });
  167. </script>
  168. </body>