From 2730eeb03237e9507db0b59782e9a733990700c8 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Tue, 22 Nov 2022 15:22:11 +0800 Subject: [PATCH] edit-admin-loan_img --- admin/controllers/receiver/orderv2/Orders.php | 29 +++++++++++++++---- admin/views/receiver/orderv2/get/loaninfo.php | 22 +++++++++++++- home/views/h5/market/sylive/act/index.php | 14 ++++----- 3 files changed, 49 insertions(+), 16 deletions(-) diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index 7d0b0d70..c7059e4c 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -219,8 +219,15 @@ class Orders extends HD_Controller if (!$row['payway']) { $loan = $this->order_loans_model->get(['o_id' => $row['id']]); - $loan['notify_file'] = $loan['notify_file'] ? build_qiniu_image_url($loan['notify_file']) : ''; - $loan['notify_file_name'] = $loan['notify_file'] ? end(explode('/', $loan['notify_file'])) : ''; + $notify_file_list = []; + $file_list = explode(',',$loan['notify_file']); + if($file_list){ + foreach ($file_list as $item) { + $notify_file_list[] = build_qiniu_image_url($item); + } + } + $loan['notify_file_list'] = $notify_file_list; +// $loan['notify_file_name'] = $loan['notify_file'] ? end(explode('/', $loan['notify_file'])) : ''; $loan['lend_file'] = $loan['lend_file'] ? build_qiniu_image_url($loan['lend_file']) : ''; $loan['lend_file_name'] = $loan['lend_file'] ? end(explode('/', $loan['lend_file'])) : ''; @@ -486,6 +493,7 @@ class Orders extends HD_Controller $this->order_loans_model->add(['o_id' => $oid, 'c_time' => time()]); $row = $this->order_loans_model->get(['o_id' => $oid]); } + $notify_file_list = $row['notify_file'] ? explode(',',$row['notify_file']) : []; $update = []; $update['company_id'] = $info['loan_info']['company_id']; $price_loan = $info['loan_info']['price_loan']; @@ -512,7 +520,8 @@ class Orders extends HD_Controller if ($params['type']) { $update['lend_file'] = $res['file']; } else { - $update['notify_file'] = $res['file']; + $notify_file_list[] = $res['file']; + $update['notify_file'] = implode(',',$notify_file_list); } $this->data['file_url'] = build_qiniu_image_url($res['file']); } @@ -1404,9 +1413,17 @@ class Orders extends HD_Controller if(!$row){ return $this->show_json(SYS_CODE_FAIL, '参数错误'); } - $update = [ - $info['field'] => '' - ]; + if($info['field']=='notify_file'){ + $notify_file_lists = explode(',',$row['notify_file']); + unset($notify_file_lists[$info['value']]); + $update = [ + $info['field'] => implode(',',$notify_file_lists) + ]; + }else{ + $update = [ + $info['field'] => '' + ]; + } $res = $this->order_loans_model->update($update,['o_id'=>$info['id']]); } if($res){ diff --git a/admin/views/receiver/orderv2/get/loaninfo.php b/admin/views/receiver/orderv2/get/loaninfo.php index 01065bf7..cf5e6117 100644 --- a/admin/views/receiver/orderv2/get/loaninfo.php +++ b/admin/views/receiver/orderv2/get/loaninfo.php @@ -52,9 +52,28 @@
-
+
+ +
    + $val) {?> +
  • +
    x +
    + + 按揭通知函 + +
    +
  • + +
+
diff --git a/home/views/h5/market/sylive/act/index.php b/home/views/h5/market/sylive/act/index.php index d9c46a7c..c207a396 100644 --- a/home/views/h5/market/sylive/act/index.php +++ b/home/views/h5/market/sylive/act/index.php @@ -119,11 +119,7 @@ this.getInfo() if(this.info.alert_code){ // this.msgisShowCode = true - mDialog.msg({ - duration: 250, - pause: 2000, - content: "预约成功", - }); + mDialog.msg('预约成功'); } this.getNotice() @@ -135,11 +131,11 @@ showCode: function() { let that = this; if (that.info.subscribemsg == '已订阅直播') { - if(that.info.show_code){ - this.msgisShowCode = true - }else{ + // if(that.info.show_code){ + // this.msgisShowCode = true + // }else{ mDialog.msg({content: that.info.subscribemsg}); - } + // } }else{ window.location.href = that.info.subscribemsg; }