reject.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" href="../../css/api.css">
  9. <link rel="stylesheet" href="../../css/aui.css">
  10. <link rel="stylesheet" type="text/css" href="../../css/projeck.css" />
  11. </head>
  12. <style type="text/css">
  13. html,body{
  14. background: transparent;
  15. -webkit-touch-callout: none;
  16. font-family: Tahoma, Geneva, sans-serif;
  17. font-style: normal;
  18. margin: 0;
  19. }
  20. .api_layout{
  21. background-color: #fff;
  22. position: absolute; margin: auto;
  23. left: 0; right: 0; top: 0; bottom: 0;
  24. width: 325px; height: 258px;
  25. opacity: 1;
  26. padding: 0 20px;
  27. -webkit-box-sizing: border-box;
  28. box-sizing: border-box;
  29. -webkit-border-radius: 5px;
  30. border-radius: 5px;
  31. overflow: hidden;
  32. padding-top: 106px;
  33. }
  34. .api_box{
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 100%;
  39. background: #fff;
  40. z-index: 100;
  41. padding: 0 20px;
  42. -webkit-box-sizing: border-box;
  43. box-sizing: border-box;
  44. border-radius: 5px;
  45. }
  46. .selectTitle{
  47. padding: 15px 0;
  48. margin-bottom: 15px;
  49. }
  50. .column-textarea{
  51. border: 1px solid #97a3b4;
  52. -webkit-border-radius: 5px;
  53. -moz-border-radius: 5px;
  54. border-radius: 5px;
  55. padding: 10px;
  56. height: 124px;
  57. width: 100%;
  58. -webkit-box-sizing: border-box;
  59. box-sizing: border-box;
  60. }
  61. .column-textarea::placeholder{
  62. font-size: 13px;
  63. color: #97a3b4;
  64. }
  65. .examine-blue{
  66. background: #3498db;
  67. }
  68. .h3{
  69. font-size: 20px;
  70. }
  71. .api-icon-close{
  72. position: absolute;
  73. top: 13px;
  74. right: -5px;
  75. font-size: 24px;
  76. font-weight: bold;
  77. }
  78. </style>
  79. <body>
  80. <div class="api_layout">
  81. <div class="api_box">
  82. <div class="selectTitle after-border relative">
  83. <h3 class="h3">驳回</h3>
  84. <i class="aui-iconfont aui-icon-close api-icon-close" onclick="api.closeFrame()"></i>
  85. </div>
  86. <div style="padding:0 10px;">
  87. <textarea name="name" rows="8" cols="80" class="column-textarea font-s" placeholder="简述内容"></textarea>
  88. </div>
  89. <div style="text-align: right;margin-top: 15px;padding-right:10px;">
  90. <div class="aui-btn aui-btn-info examine-blue" onclick="submitReject(api.pageParam.ID)">提交</div>
  91. </div>
  92. </div>
  93. </div>
  94. </body>
  95. <script type="text/javascript" src="../../script/api.js"></script>
  96. <script type="text/javascript" src="../../script/config.js"></script>
  97. <script type="text/javascript">
  98. var token="";
  99. apiready = function(){
  100. var info = $api.getStorage('data');
  101. token = JSON.parse(info).data.access_token;
  102. }
  103. // 提交驳回
  104. function submitReject(id) {
  105. var headers = {
  106. "Authorization": "Bearer " + token
  107. };
  108. var parse= {
  109. allow:0,
  110. remark:$api.val($api.dom('.column-textarea'))
  111. }
  112. $http.fnReuestDataNologing(UrlRouter.submitAdopt+id,headers,'post',parse,function (ret,err) {
  113. if (ret.code === 0) {
  114. api.toast({
  115. msg: '驳回成功',
  116. duration: 2000,
  117. location: 'top'
  118. });
  119. api.closeWin({
  120. name: 'wordorderDetails_win'
  121. });
  122. api.sendEvent({
  123. name: 'eventWord'
  124. });
  125. }
  126. })
  127. }
  128. </script>
  129. </html>