From e74a3ff6e044851818eafd38a58e6e5782790d14 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Sun, 22 Jun 2025 18:25:14 +0800 Subject: [PATCH] sth --- .../admin/view/orders/auditorder/edit.html | 44 +++++++++++++++---- public/assets/js/backend/orders/auditorder.js | 18 ++++++++ 2 files changed, 54 insertions(+), 8 deletions(-) diff --git a/application/admin/view/orders/auditorder/edit.html b/application/admin/view/orders/auditorder/edit.html index 961a658..43c1569 100755 --- a/application/admin/view/orders/auditorder/edit.html +++ b/application/admin/view/orders/auditorder/edit.html @@ -196,18 +196,34 @@ + + + + + + + + + + + + + + + +
-
- -
- - -
- +
+ {if $worker.images} + {foreach name="worker.images|explode=','" item="img"} + + {/foreach} + {/if}
-
    @@ -259,3 +275,15 @@
    + + + + + diff --git a/public/assets/js/backend/orders/auditorder.js b/public/assets/js/backend/orders/auditorder.js index 12ac61b..2761345 100755 --- a/public/assets/js/backend/orders/auditorder.js +++ b/public/assets/js/backend/orders/auditorder.js @@ -130,6 +130,24 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin }, edit: function () { Controller.api.bindevent(); + // 图片点击预览逻辑 + $(function () { + var $overlay = $('#image-preview-overlay'); + var $previewImg = $('#image-preview-img'); + + // 委托点击预览 + $('body').on('click', 'img[data-preview="true"]', function () { + var src = $(this).attr('src'); + $previewImg.attr('src', src); + $overlay.fadeIn(100).css('display', 'flex'); + }); + + // 点击遮罩关闭 + $overlay.on('click', function () { + $previewImg.attr('src', ''); + $overlay.fadeOut(100); + }); + }); }, api: { bindevent: function () {