tb-wechat-transfer-info.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>微信转账详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label{width: 8em;}
  18. .info-table {
  19. width: 100%;
  20. border-collapse: collapse;
  21. margin-bottom: 20px;
  22. }
  23. .info-table th, .info-table td {
  24. border: 1px solid #ebeef5;
  25. padding: 12px 10px;
  26. font-size: 14px;
  27. line-height: 1.5;
  28. }
  29. .info-table th {
  30. border: 1px solid darkgray;
  31. text-align: left;
  32. height: 22px;
  33. padding: 8px;
  34. background-color: #dddddd;
  35. width: 15%;
  36. min-width: 120px;
  37. }
  38. .info-table td {
  39. border: 1px solid darkgray;
  40. text-align: left;
  41. width: 35%;
  42. }
  43. h3 {
  44. margin: 20px 0 15px 0;
  45. color: #303133;
  46. font-size: 16px;
  47. font-weight: bold;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  53. <!-- ------- 内容部分 ------- -->
  54. <div class="s-body">
  55. <div class="c-panel">
  56. <el-form v-if="m">
  57. <h3>微信转账信息</h3>
  58. <table class="info-table">
  59. <tr>
  60. <th>转账单号</th>
  61. <td>{{m.transferId}}</td>
  62. <th>业务订单号</th>
  63. <td>{{m.outTradeNo}}</td>
  64. </tr>
  65. <tr>
  66. <th>用户微信openid</th>
  67. <td>{{m.openId}}</td>
  68. <th>用户姓名</th>
  69. <td>{{m.userName}}</td>
  70. </tr>
  71. <tr>
  72. <th>转账场景</th>
  73. <td>{{m.transferSceneId}}</td>
  74. <th>转账金额(分)</th>
  75. <td>{{m.transferAmount}}</td>
  76. </tr>
  77. <tr>
  78. <th>转账备注</th>
  79. <td>{{m.transferRemark}}</td>
  80. <th>创建时间</th>
  81. <td>{{m.createTime}}</td>
  82. </tr>
  83. <tr>
  84. <th>微信业务单号</th>
  85. <td>{{m.transferBillNo}}</td>
  86. <th>状态</th>
  87. <td>{{m.state}}</td>
  88. </tr>
  89. <tr>
  90. <th>转账状态</th>
  91. <td>{{m.isTransfer == 1 ? '成功' : '失败'}}</td>
  92. <th>更新时间</th>
  93. <td>{{m.updateTime}}</td>
  94. </tr>
  95. </table>
  96. </el-form>
  97. </div>
  98. </div>
  99. <!-- ------- 底部按钮 ------- -->
  100. <div class="s-foot">
  101. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  102. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  103. </div>
  104. </div>
  105. <script>
  106. var app = new Vue({
  107. el: '.vue-box',
  108. data: {
  109. transferId: sa.p('transferId', 0), // 获取数据ID
  110. m: null
  111. },
  112. methods: {
  113. },
  114. mounted: function() {
  115. sa.ajax('/transport-server/TbWechatTransfer/getById?transferId=' + this.transferId, function(res) {
  116. this.m = res.data;
  117. if(res.data == null) {
  118. sa.alert('未能查找到 transferId=' + this.transferId + " 详细数据");
  119. }
  120. }.bind(this))
  121. }
  122. })
  123. </script>
  124. </body>
  125. </html>