miaoguo_user_agency_check.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>秒过学习</title>
  6. <link rel="stylesheet" href="../mg/common.css">
  7. <style type="text/css">
  8. .container {
  9. width:98%;
  10. margin: 0 20px 0 20px;
  11. }
  12. #app {
  13. margin: 0 auto;
  14. font-size: 18px;
  15. }
  16. .panelHead{
  17. font-size: 20px;
  18. font-weight: 500;
  19. }
  20. .panelTop{
  21. width:100%;
  22. height:50px;
  23. justify-content: flex-start;
  24. }
  25. .btn1{
  26. width:80px;
  27. height: 25px;
  28. border-radius: 2px;
  29. margin: 0px 10px 0px 10px;
  30. border: 1px solid #aaaaaa;
  31. text-align: center;
  32. background-color: #fff;
  33. color:#000;
  34. cursor:pointer;
  35. }
  36. .btn2{
  37. background-color: #19C575;
  38. color:#fff;
  39. }
  40. table {
  41. border-collapse: collapse;
  42. margin: 0 0 50px 0;
  43. width:100%;
  44. }
  45. .tdClass {
  46. background-color: #ddd;
  47. text-align: center;
  48. }
  49. .tdA{
  50. color:blue;
  51. text-decoration: underline;
  52. cursor:pointer;
  53. }
  54. td {
  55. border: 1px solid #aaaaaa;
  56. min-height: 30px;
  57. padding: 5px 10px 5px 10px;
  58. flex: 1;
  59. }
  60. .td1{
  61. text-align: center;
  62. }
  63. .td2{
  64. width: 250px;
  65. }
  66. .td3{
  67. justify-content: space-between;
  68. }
  69. .td2_1{
  70. background-color: #90CAF9;
  71. }
  72. .td2__1{
  73. border:4px groove #EF9A9A;
  74. }
  75. .main {
  76. width: 100%;
  77. }
  78. .avatar {
  79. width: 60px;
  80. height: 60px;
  81. border-radius: 10px;
  82. }
  83. button {
  84. margin: 0 3px;
  85. }
  86. select{
  87. font-size:18px;
  88. }
  89. .top{
  90. position: fixed;
  91. width: 50px;
  92. height:26px;
  93. bottom:10px;
  94. left:10px;
  95. z-index: 100;
  96. background-color: #19C575;
  97. color:#fff;
  98. border-radius: 5px;
  99. text-align: center;
  100. }
  101. .DateStart{
  102. margin: 0 0 10px 0;
  103. }
  104. .timg{
  105. margin-top: 50px;
  106. width:220px;
  107. height:145px;
  108. }
  109. .img{
  110. width:40px;
  111. height:40px;
  112. border-radius: 5px;
  113. margin-right: 10px;
  114. }
  115. .pDetail{
  116. justify-content: flex-start;
  117. padding-left: 20px;
  118. }
  119. .trDelete{
  120. text-decoration: line-through;
  121. background-color: #eee;
  122. }
  123. .hasRefund-1{
  124. background-color: #FFB8B3;
  125. }
  126. </style>
  127. <script src="js/jquery-1.6.4.min.js"></script>
  128. <script src="js/vue.js"></script>
  129. <script>
  130. var vm;
  131. const Colors=["#EF9A9A","#90CAF9","#C5E1A5","#CE93D8","#80DEEA","#FFF59D","#BCAAA4","#9FA8DA","#FFCC80","#B0BEC5"]
  132. $(document).ready(function () {
  133. vm = new Vue({
  134. el: '#app',
  135. data: {
  136. ListPay: [],
  137. ListDetail:[],
  138. ClassList: [],
  139. PayFinished:"0",
  140. RecordID:0,
  141. },
  142. methods: {
  143. getApplyList:function () {
  144. var str = event.currentTarget.id;
  145. var url="/api/GetMiaoguoAgentRecordApplyList";
  146. if (str=="PayFinished"){
  147. url+="?PayFinished=1";
  148. vm.PayFinished="1";
  149. }
  150. else{
  151. vm.PayFinished="0";
  152. }
  153. $.get(url, function (data) {
  154. var arr = [];
  155. arr = data.result;
  156. for(var i=0;i<arr.length;i++){
  157. if (arr[i].IsCheck==-1)
  158. arr[i].Delete="trDelete";
  159. }
  160. vm.ListPay = arr;
  161. });
  162. },
  163. showDetail:function () {
  164. if (event.currentTarget.id==vm.RecordID){
  165. vm.ListDetail=[];
  166. vm.RecordID=0;
  167. }
  168. else {
  169. vm.RecordID = event.currentTarget.id;
  170. var userid = event.currentTarget.dataset.userid;
  171. var paytype = event.currentTarget.dataset.title;
  172. if (paytype == "1")
  173. paytype = "promotion";
  174. else if (paytype == "2")
  175. paytype = "ambassador";
  176. var url = "/api/GetMiaoguoAgentPayList?HasDelete=1&UserID=" + userid + "&RecordID=" + vm.RecordID + "&AgentCategory=" + paytype;
  177. $.get(url, function (data) {
  178. var arr = [];
  179. arr = data.result;
  180. vm.ListDetail = arr;
  181. });
  182. }
  183. },
  184. checkPay:function () {
  185. $("#imgMain").css("display","block");
  186. var userid = event.currentTarget.dataset.userid;
  187. var recordid = event.currentTarget.dataset.recordid;
  188. var ischeck = event.currentTarget.dataset.ischeck;
  189. var url="/api/CheckWithdraw?UserID="+userid+"&RecordID="+recordid+"&IsCheck="+ischeck;
  190. $.get(url, function (data) {
  191. $("#imgMain").css("display","none");
  192. vm.getApplyList();
  193. alert("审核完成");
  194. });
  195. },
  196. }
  197. });
  198. vm.getApplyList();
  199. });
  200. </script>
  201. </head>
  202. <body class="container">
  203. <div id="app">
  204. <div class="panelHead">提现审核</div>
  205. <div class="panelTop FlexRow">
  206. <button v-on:click="getApplyList" id="payApply" v-if="PayFinished!='0'">待审核</button>
  207. <button disabled="disabled" v-if="PayFinished=='0'">待审核</button>
  208. <button v-on:click="getApplyList" id="PayFinished" v-if="PayFinished!='1'">已审核</button>
  209. <button disabled="disabled" v-if="PayFinished=='1'">已审核</button>
  210. </div>
  211. <div class="main FlexColumn">
  212. <table>
  213. <thead>
  214. <tr>
  215. <td class="tdClass">序号</td>
  216. <td class="tdClass">提现申请编号</td>
  217. <td class="tdClass">提现类型</td>
  218. <td class="tdClass">提现金额</td>
  219. <td class="tdClass">用户ID</td>
  220. <td class="tdClass">微信号</td>
  221. <td class="tdClass">真实姓名</td>
  222. <td class="tdClass">申请时间</td>
  223. <td class="td3 td2 FlexRow tdClass" v-if="PayFinished=='0'">审核</td>
  224. <td class="tdClass" v-if="PayFinished=='1'">批复时间</td>
  225. <td class="tdClass" v-if="PayFinished=='1'">实付金额</td>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <template :id=" 'Tr_'+item.ID " v-for="(item, index) in ListPay">
  230. <tr :class="item.Delete">
  231. <td class="td1">{{index+1}}</td>
  232. <td class="td1"><a href="#" v-on:click="showDetail" :id="item.ID" :data-userid="item.UserID" :data-title="item.PayType">{{item.ID}}</a></td>
  233. <td class="td1">{{item.PayTypeName}}</td>
  234. <td class="td1">{{item.ApplyMoney}}</td>
  235. <td class="td1"><a :href="'webuserinfo?UserID=' + item.UserID " target="_blank">{{item.UserID}}</a></td>
  236. <td class="td1">{{item.PayeeWechatAccount}}</td>
  237. <td class="td1">{{item.RealName}}</td>
  238. <td class="td1">{{item.ApplyTime}}</td>
  239. <td class="td3 td2 FlexRow" v-if="PayFinished=='0'">
  240. <button v-on:click="checkPay" :data-userid="item.UserID" :data-recordid="item.ID" data-ischeck="1">通过</button>
  241. <button v-on:click="checkPay" :data-userid="item.UserID" :data-recordid="item.ID" data-ischeck="-1">拒绝</button>
  242. </td>
  243. <td class="td1" v-if="PayFinished=='1'">{{item.CheckTime}}</td>
  244. <td class="td1" v-if="PayFinished=='1'">{{item.RealMoney}}</td>
  245. </tr>
  246. <tr v-if="ListDetail.length>0 && item.ID==RecordID" v-for="(itemChild, indexChild) in ListDetail">
  247. <td></td>
  248. <td></td>
  249. <td colspan="4">
  250. <template v-if="item.PayType==1">
  251. <p :class=" 'pDetail FlexRow hasRefund'+itemChild.Status " ><img :src="itemChild.AvatarUrl" class="img"/> <a :href="'webuserinfo?UserID=' + itemChild.UserID " target="_blank">{{itemChild.UserID}}</a>&nbsp;{{itemChild.NickName}} {{itemChild.Money}} <template v-if="itemChild.Status==-1">退款</template></p>
  252. </template>
  253. <template v-if="item.PayType==2">
  254. <template v-for="(itemChild2, indexChild2) in itemChild.List">
  255. <p :class=" 'pDetail FlexRow hasRefund'+itemChild2.Status " ><img :src="itemChild2.AvatarUrl" class="img"/> <a :href="'webuserinfo?UserID=' + itemChild2.UserID " target="_blank">{{itemChild2.UserID}}</a>&nbsp;{{itemChild2.NickName}} {{itemChild2.Money}} <template v-if="itemChild2.Status==-1">退款</template> 上级介绍人:<a :href="'webuserinfo?UserID=' + itemChild.Introducer " target="_blank">{{itemChild.Introducer}}</a>&nbsp;{{itemChild.IntroducerNickName}}</p>
  256. </template>
  257. </template>
  258. </td>
  259. </tr>
  260. </template>
  261. </tbody>
  262. </table>
  263. </div>
  264. </div>
  265. </body>
  266. </html>