diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index f0f95033..caba8973 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -308,9 +308,17 @@ class Customer extends HD_Controller $rec_text = '未接通'; } } + $imgs = []; + if ($value['imgs']) { + $json_imgs = json_decode($value['imgs'], true); + foreach ($json_imgs as $key1 => $value1) { + $imgs[] = build_qiniu_image_url($value1); + } + } $logs[] = array( 'uname' => $value['uname'], 'log' => $value['log'], + 'imgs' => $imgs, 'rec_url' => $rec_url, 'rec_text' => $rec_text, 'type_name' => $this->customer_oplogs_model->typeAry()[$value['type']], diff --git a/admin/views/receiver/customer/get.php b/admin/views/receiver/customer/get.php index c6f31f57..4b1b2535 100644 --- a/admin/views/receiver/customer/get.php +++ b/admin/views/receiver/customer/get.php @@ -107,7 +107,8 @@ - +
{{td.title}}:{{td.value}}{{td.title}}:{{td.value}} +
@@ -149,6 +150,19 @@ + +
+ $val1) { ?> +
+ + + +
+ +
+ @@ -179,11 +193,11 @@ vue_obj = new Vue({ el: '#vue-edit', data: { - edit_index:0, + edit_index: 0, info: {}, - statusAry:[], - toshop:[], - logs:[], + statusAry: [], + toshop: [], + logs: [], goods: {"imgs_url": [], "imgs": [], "log": ''} }, mounted: function () { diff --git a/admin/views/receiver/orders/get.php b/admin/views/receiver/orders/get.php index 0fc008c4..46f66636 100644 --- a/admin/views/receiver/orders/get.php +++ b/admin/views/receiver/orders/get.php @@ -1,6 +1,6 @@
@@ -254,14 +254,16 @@ - + 收款记录
@@ -311,6 +314,7 @@ }); }); var vue_obj; + var xz_num = 0; $(document).ready(function () { vue_obj = new Vue({ el: '#vue-edit', @@ -371,8 +375,8 @@ }, carModal: function () { var that = this - if(!that.info.payway){ - if (!that.info.loan_info || that.info.loan_info.status<2) { + if (!that.info.payway) { + if (!that.info.loan_info || that.info.loan_info.status < 2) { layer.msg('按揭审核尚未通过~', {icon: 2}); return; } @@ -464,9 +468,9 @@ }, finish_loan: function (status) { var that = this; - if(status==3){ + if (status == 3) { var loan_time = $('#loan_time').val(); - if(!loan_time){ + if (!loan_time) { layer.msg("请填写放款时间"); return; } @@ -475,10 +479,10 @@ $.post("/receiver/orders/edit_loan", {'info': this.info, 'status': status}, function (data) { console.dir(data); if (data.code) { - layer.msg(data.msg,function(){ + layer.msg(data.msg, function () { $.form.reload(); }); - }else{ + } else { layer.msg(data.msg); } }, 'json'); @@ -489,13 +493,13 @@ formData.append("file", $(event.currentTarget).get(0).files[0]); //上传一个files对象 formData.append('id', this.info.id); formData.append('type', type); - if(type){ + if (type) { var loan_time = $('#loan_time').val(); - if(!loan_time){ + if (!loan_time) { layer.msg("请填写放款时间"); return; } - formData.append('loan_time',loan_time); + formData.append('loan_time', loan_time); } $.ajax({//jQuery方法,此处可以换成其它请求方式 url: '/receiver/orders/edit_loan', @@ -511,10 +515,10 @@ success: function (res) { console.dir(res) if (res.code) { - layer.msg(res.msg,function(){ + layer.msg(res.msg, function () { $.form.reload(); }); - }else{ + } else { layer.msg(res.msg); } return; @@ -582,8 +586,14 @@ }, show_carimg: function () { layer.photos({ - photos: '#layer-photos-demo' - , anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数) + photos: '#layer-photos-demo', + anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数) + tab: function () { + xz_num = 0; + $("#layui-layer-photos").parent().append('
\n' + + '\t\t\n' + + '\t
'); + } }); }, //保存身份证 @@ -629,6 +639,12 @@ } }); }); + //旋转图片 + $(document).on("click", "#xuanzhuan", function (e) { + xz_num = (xz_num + 90) % 360; + $(".layui-layer.layui-layer-page.layui-layer-photos").css('background', 'black');//旋转之后背景色设置为黑色,不然在旋转长方形图片时会留下白色空白 + $("#layui-layer-photos").css('transform', 'rotate(' + xz_num + 'deg)'); + }); //图片放大缩小 $(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg", function (e) { var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie diff --git a/www/admin/img/xuanzhuan.png b/www/admin/img/xuanzhuan.png new file mode 100644 index 00000000..200e074f Binary files /dev/null and b/www/admin/img/xuanzhuan.png differ