|
@@ -350,12 +350,14 @@
|
|
|
<td class="align-center"><?php echo $order['quality_text']; ?></td>
|
|
|
<td class="align-center"><?php echo $order['org_quality_text']; ?></td>
|
|
|
<!-- <td class="align-center">--><?php //echo $order['mch_amount']; ?><!--</td>-->
|
|
|
- <td class="w144 align-center">
|
|
|
+ <td class="align-center">
|
|
|
<a href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
|
|
|
回调</a>
|
|
|
- <!-- |
|
|
|
- <a href="#" class="examine" data-order="<?php echo $order['order_id']; ?>">
|
|
|
- 查看</a> -->
|
|
|
+ <?php if($order['card_type'] == mtopcard\ThirdRefillCard){?>
|
|
|
+ |
|
|
|
+ <a href="#" class="examine" data-order="<?php echo $order['order_id']; ?>">
|
|
|
+ 查看</a>
|
|
|
+ <?php }?>
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
@@ -386,28 +388,40 @@
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
//查看
|
|
|
- // $('.examine').click(function() {
|
|
|
- // let sq = $(this).attr('data-order')
|
|
|
- // console.log(sq);
|
|
|
- // $.get('index.php?act=refill_order&op=refill_third_info&order_id=',
|
|
|
+ $('.examine').click(function() {
|
|
|
+ let sq = $(this).attr('data-order')
|
|
|
+ // console.log(sq);
|
|
|
+ $.get('index.php?act=refill_order&op=refill_third_info',
|
|
|
+ {
|
|
|
+ order_id:sq
|
|
|
+ },function(data) {
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if (data.state == 1) {
|
|
|
+ let contentArr = []
|
|
|
+ contentArr.push(`单号:${data.data.order_sn}`)
|
|
|
+ contentArr.push(`产品编码:${data.data.pcode}`)
|
|
|
+ contentArr.push(`渠道编码:${data.data.chcode}`)
|
|
|
+ contentArr.push(`充值数量:${data.data.quantity}`)
|
|
|
+ if (data.data.user_account) {
|
|
|
+ contentArr.push(`充值账号:${data.data.user_account}`)
|
|
|
+ contentArr.push(`账号类型:${data.data.account_type_text}`)
|
|
|
+ } else {
|
|
|
+ contentArr.push(`卡密验证状态:${data.data.ret_state_text}`)
|
|
|
+ contentArr.push(`卡密信息:${data.data.card_info}`)
|
|
|
+ }
|
|
|
+ let content = ''
|
|
|
+ for (let index = 0; index < contentArr.length; index++) {
|
|
|
+ content += `<p>${contentArr[index]}</p>`
|
|
|
+ }
|
|
|
+ layer.open({
|
|
|
+ title: "查看",
|
|
|
+ content: content
|
|
|
|
|
|
- // function(data) {
|
|
|
- // let selectStr = ''
|
|
|
-
|
|
|
- // for(let i = 0; i < data.length; i++) {
|
|
|
- // selectStr += ``
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
- // console.log(data);
|
|
|
- // })
|
|
|
- // layer.open({
|
|
|
- // title: "订单列表",
|
|
|
- // area: ['700px', '450px'],
|
|
|
- // content: ''
|
|
|
+ });
|
|
|
|
|
|
- // });
|
|
|
- // })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
// 获取不包含客户
|
|
|
let selest_nc
|
|
|
let default_no_mch = $('input[name="default_no_mch"]').val().split(',');
|